[asterisk-dev] strange "new-callerid" on DAHDI

Klaus Darilion klaus.mailinglists at pernau.at
Wed Nov 11 11:22:02 CST 2009


Hi!

I discovered a strange new callerid set on an outgoing DAHDI channel 
after the channel is answered. It will be changed from called number to 
the caller's number. This does not happen on outgoing SIP channels.

scenario: Incoming SIP call will be forwarded to SIP or DAHDI (PRI)
Traces: below

1. Is this intended behavior? I searched to code but did not find the 
reason. It is strange that the meaning of the callerid of outgoing 
channel depends on the used technology.

regards
klaus

SIP (everything ok): 0043125397361 --> 001505641636
---------------------
outgoing channel in ringing state:
out: SIP/192.174.68.4-b573c288!sipanon!001505641636!1!
   Ringing!AppDial!(Outgoing Line)!001505641636!!3!4!(None)!
   1257959426.226
in: SIP/klaus-b5709d80!authorized!001505641636!7!
   Up!Dial!SIP/431505641636 at 192.174.68.4!0043125397361!!3!7!(None)!
   1257959423.225

outgoing channel is up:
out: SIP/192.174.68.4-b573c288!sipanon!!1!
   Up!AppDial!(Outgoing Line)!001505641636!!3!8!SIP/klaus-b5709d80!
   1257959426.226
in: SIP/klaus-b5709d80!authorized!001505641636!7!
Up!Dial!SIP/431505641636 at 192.174.68.4!0043125397361!!3!11!SIP/192.174.68.4-b573c288!
   1257959423.225


DAHDI (callerid is changed after connect):0043125397361-->001505641639
---------------------
outgoing channel in ringing state:
out: DAHDI/2-1!PSTNin!001505641639!1!
   Ringing!AppDial!(Outgoing Line)!001505641639!!3!7!(None)!
   1257959622.229
                                   ^^^^^^^^^^^^
                                   called number
in: SIP/klaus-098effb8!authorized!001505641639!105!
   Up!Dial!Dahdi/g2/01505641639!125397361!!3!10!(None)!
   1257959620.228

outgoing channel is up:
out: DAHDI/2-1!PSTNin!!1!
   Up!AppDial!(Outgoing Line)!125397361!!3!11!SIP/klaus-098effb8!
   1257959622.229
                              ^^^^^^^^^^
                              caller's number
in: SIP/klaus-098effb8!authorized!001505641639!105!
   Up!Dial!Dahdi/g2/01505641639!125397361!!3!14!DAHDI/2-1!
   1257959620.228



More information about the asterisk-dev mailing list