[Home]

Summary:ASTERISK-16208: Dahdi callerid name is no passed
Reporter:Maciej Krajewski (jamicque)Labels:
Date Opened:2010-06-04 05:55:29Date Closed:2010-07-19 11:54:46
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Channels/chan_dahdi
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:When calling from SIP to DAHDI, callerid name is not passed.
Callerid name should be passed in DSS1 "display" message. However it is not send.

 == Using SIP RTP TOS bits 136
 == Using SIP RTP CoS mark 4
 == Using SIP VRTP TOS bits 136
 == Using SIP VRTP CoS mark 4
 == Using UDPTL TOS bits 136
 == Using UDPTL CoS mark 4
   -- Executing [0586204003@CALLEX:1] GotoIf("SIP/test002-00000002", "0?3") in new stack
   -- Executing [0586204003@CALLEX:2] Set("SIP/test002-00000002", "__ORGDEST=0586204003") in new stack
   -- Executing [0586204003@CALLEX:3] AGI("SIP/test002-00000002", "agi://127.0.0.1/call-processor") in new stack
   -- AGI Script Executing Application: (Set) Options: (CHANNEL(language)=pl)
   -- AGI Script Executing Application: (Set) Options: (CALLERID(all)=test002 test002<+48616252100>)
   -- AGI Script Executing Application: (Set) Options: (CALLERPRES()=ALLOWED_PASSED_SCREEN)
   -- AGI Script Executing Application: (Set) Options: (GROUP(in)=user3)
   -- AGI Script Executing Application: (Set) Options: (GROUP(out)=hdw1)
   -- AGI Script Executing Application: (Set) Options: (_NUMBER_A=48616252100)
   -- AGI Script Executing Application: (Set) Options: (_NUMBER_B=48586204003)
   -- AGI Script Executing Application: (Dial) Options: (DAHDI/g1/0586204003,45,tTr)
-- Making new call for cr 32771
   -- Requested transfer capability: 0x00 - SPEECH
> Protocol Discriminator: Q.931 (8)  len=45
> Call Ref: len= 2 (reference 3/0x3) (Originator)
> Message type: SETUP (5)
> [04 03 80 90 a3]
> Bearer Capability (len= 5) [ Ext: 1  Q.931 Std: 0  Info transfer capability: Speech (0)
>                              Ext: 1  Trans mode/rate: 64kbps, circuit-mode (16)
>                                User information layer 1: A-Law (35)
> [18 03 a1 83 81]
> Channel ID (len= 5) [ Ext: 1  IntID: Implicit  PRI  Spare: 0  Preferred  Dchan: 0
>                        ChanSel: As indicated in following octets
>                       Ext: 1  Coding: 0  Number Specified  Channel Type: 3
>                       Ext: 1  Channel: 1 ]
> [6c 0e 21 81 2b 34 38 36 31 36 32 35 32 31 30 30]
> Calling Number (len=16) [ Ext: 0  TON: National Number (2)  NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1)
>                           Presentation: Presentation permitted, user number passed network screening (1)  '+48616252100' ]
> [70 0b 80 30 35 38 36 32 30 34 30 30 33]
> Called Number (len=13) [ Ext: 1  TON: Unknown Number Type (0)  NPI: Unknown Number Plan (0)  '0586204003' ]
> [a1]
> Sending Complete (len= 1)
q931.c:3134 q931_setup: call 32771 on channel 1 enters state 1 (Call Initiated)
   -- Called g1/0586204003
   -- Accepting call from '+48616252100' to '0586204003' on channel 0/1, span 2
   -- Executing [0586204003@CALLEX:1] GotoIf("DAHDI/32-1", "0?3") in new stack
   -- Executing [0586204003@CALLEX:2] Set("DAHDI/32-1", "__ORGDEST=0586204003") in new stack
   -- Executing [0586204003@CALLEX:3] AGI("DAHDI/32-1", "agi://127.0.0.1/call-processor") in new stack
< Protocol Discriminator: Q.931 (8)  len=10
< Call Ref: len= 2 (reference 3/0x3) (Terminator)
< Message type: CALL PROCEEDING (2)
< [18 03 a9 83 81]
< Channel ID (len= 5) [ Ext: 1  IntID: Implicit  PRI  Spare: 0  Exclusive  Dchan: 0
<                        ChanSel: As indicated in following octets
<                       Ext: 1  Coding: 0  Number Specified  Channel Type: 3
<                       Ext: 1  Channel: 1 ]
-- Processing IE 24 (cs0, Channel Identification)
q931.c:3683 q931_receive: call 32771 on channel 1 enters state 3 (Outgoing call  Proceeding)
   -- DAHDI/1-1 is proceeding passing it to SIP/test002-00000002
   -- AGI Script Executing Application: (Set) Options: (CHANNEL(language)=pl)
   -- AGI Script Executing Application: (Set) Options: (CALLERID(all)=unknown<+48616252100>)
   -- AGI Script Executing Application: (Set) Options: (CALLERPRES()=ALLOWED_PASSED_SCREEN)
   -- AGI Script Executing Application: (Set) Options: (GROUP(in)=hdw2)
   -- AGI Script Executing Application: (Set) Options: (GROUP(out)=user2)
[Jun  4 12:52:39] WARNING[31484]: chan_sip.c:16430 func_header_read: This function can only be used on SIP channels.
   -- AGI Script Executing Application: (Set) Options: (_CFWD_ACCOUNT=test001)
   -- AGI Script Executing Application: (Set) Options: (_NUMBER_A=48616252100)
   -- AGI Script Executing Application: (Set) Options: (_NUMBER_B=11)
   -- AGI Script Executing Application: (Dial) Options: (SIP/test001,45,wW)
 == Using SIP RTP TOS bits 136
 == Using SIP RTP CoS mark 4
 == Using SIP VRTP TOS bits 136
 == Using SIP VRTP CoS mark 4
 == Using UDPTL TOS bits 136
 == Using UDPTL CoS mark 4
   -- Called test001
   -- SIP/test001-00000003 is ringing
< Protocol Discriminator: Q.931 (8)  len=9
< Call Ref: len= 2 (reference 3/0x3) (Terminator)
< Message type: ALERTING (1)
< [1e 02 81 88]
< Progress Indicator (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0)  0: 0  Location: Private network serving the local user (1)
<                               Ext: 1  Progress Description: Inband information or appropriate pattern now available. (8) ]
-- Processing IE 30 (cs0, Progress Indicator)
q931.c:3596 q931_receive: call 32771 on channel 1 enters state 4 (Call Delivered)
   -- DAHDI/1-1 is ringing
Comments:By: Maciej Krajewski (jamicque) 2010-06-04 09:30:41

here is my chan_dahdi.conf


[trunkgroups]

hidecalleridname=no

[channels]
context=default
facilityenable = yes
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
hidecalleridname=no
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes
relaxdtmf=yes
rxgain=0.0
txgain=0.0
group=1
callgroup=1
pickupgroup=1
immediate=no


;Sangoma A102 port 1 [slot:2 bus:8 span:1] <wanpipe1>
switchtype=euroisdn
context=CALLEX
group=1
echocancel=yes
signalling=pri_cpe
channel =>1-15,17-31

;Sangoma A102 port 2 [slot:2 bus:8 span:2] <wanpipe2>
switchtype=euroisdn
context=CALLEX
group=2
echocancel=yes
signalling=pri_net
channel =>32-46,48-62

By: Russell Bryant (russell) 2010-06-04 10:16:04

what version of Asterisk and libpri are you using?  Asterisk 1.6.1 is no longer supported.

By: Maciej Krajewski (jamicque) 2010-06-04 11:25:27

on Asterisk 1.6.2.8 there is the same problem.
libpri-1.4.10.1
dahdi-linux-2.2.0.2
dahdi-tools-2.2.0

By: Maciej Krajewski (jamicque) 2010-06-04 11:34:45

installing libpri 1.4.11.1 didn't help

By: Maciej Krajewski (jamicque) 2010-06-04 12:26:02

Ok, I've noticed that display name can be only send through pri_net trunk

By: Paul Belanger (pabelanger) 2010-06-25 09:18:47

Talking on #asterisk-dev, this maybe a limitation with libpri.  Do you mind retrying with the latest trunk of libpri?

By: Paul Belanger (pabelanger) 2010-06-30 08:58:05

ping

By: Maciej Krajewski (jamicque) 2010-06-30 09:08:20

sorry for late response, I'll check it tomorrow

By: Maciej Krajewski (jamicque) 2010-07-01 03:51:32

the same situation with pri trunk.

By: Paul Belanger (pabelanger) 2010-07-19 10:23:06

I'm not sure what else can be done here.  From my understanding this is a feature request.

By: Richard Mudgett (rmudgett) 2010-07-19 11:52:49

Q.931 says the display ie is only valid in the net to cpe direction.  It is not valid in the cpe to net direction because the network does not have a "display".

This is not a problem with libpri it is a limitation of the protocol specification.  Unless you can point to a standard document that adds this functionality, the only thing we can do is reject this issue.

If you want names you should look into switching your PRI trunk to use Q.SIG.