[asterisk-users] Strange behavior - Can't figure out

Zohair Raza engineerzuhairraza at gmail.com
Thu Jun 21 04:19:44 CDT 2012


Hi,

I have two asterisk boxes, one with asterisk 1.8.12.0 and the other
with asterisk 1.8.9.2

Sip show settings of both boxes have no difference and also the peers

I am generating a call using call file with following details:
Channel: SIP/1028
Account: 9164421122    < -- this is the accountcode of 1028
MaxRetries: 1
RetryTime: 60
WaitTime: 30
Context: default
Extension: 1031
Priority: 1
CallerID: "Zohair Raza"<1031>  < -- I want to see this caller id at
dialing peer (1028) and "Test" <1028>  (originiating caller id) at
dialed peer

On asterisk 1.8.9.2 I get results as expected and debug output is as below

    -- Executing [1031 at default:1] AGI("SIP/1028-00003897", "agi.php")
in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/agi.php
<SIP/1028-00003897>AGI Tx >> agi_request: agi.php
<SIP/1028-00003897>AGI Tx >> agi_channel: SIP/1028-00003897
<SIP/1028-00003897>AGI Tx >> agi_language: en
<SIP/1028-00003897>AGI Tx >> agi_type: SIP
<SIP/1028-00003897>AGI Tx >> agi_uniqueid: a-1340263981.14503
<SIP/1028-00003897>AGI Tx >> agi_version: 1.8.9.2
<SIP/1028-00003897>AGI Tx >> agi_callerid: 1028
<SIP/1028-00003897>AGI Tx >> agi_calleridname: Test              <--
caller id of 1028
<SIP/1028-00003897>AGI Tx >> agi_callingpres: 0
<SIP/1028-00003897>AGI Tx >> agi_callingani2: 0
<SIP/1028-00003897>AGI Tx >> agi_callington: 0
<SIP/1028-00003897>AGI Tx >> agi_callingtns: 0
<SIP/1028-00003897>AGI Tx >> agi_dnid: unknown
<SIP/1028-00003897>AGI Tx >> agi_rdnis: unknown
<SIP/1028-00003897>AGI Tx >> agi_context: default
<SIP/1028-00003897>AGI Tx >> agi_extension: 1031
<SIP/1028-00003897>AGI Tx >> agi_priority: 1
<SIP/1028-00003897>AGI Tx >> agi_enhanced: 0.0
<SIP/1028-00003897>AGI Tx >> agi_accountcode: 9164421122
  < -- accountcode of 1028 here
<SIP/1028-00003897>AGI Tx >> agi_threadid: 1095772480
<SIP/1028-00003897>AGI Tx >>
<SIP/1028-00003897>AGI Rx << GET VARIABLE CDR(clid)
<SIP/1028-00003897>AGI Tx >> 200 result=1 ("Test" <1028>)



Same I am trying on another box with these details

Channel: SIP/5405
Account: 6167531316    < -- this is the accountcode of 5405
MaxRetries: 1
RetryTime: 60
WaitTime: 30
Context: default
Extension: 5050
Priority: 1
CallerID: "Test 2"<5050>  < -- I want to see this caller id at dialing
peer (5405) and "Test" <5050>  (originiating caller id) at dialed peer

But, for some reason it is showing Test 2 <5050 on both phones.

On Cli Debug, the behavior is also different

-- Executing [5050 at default:1] AGI("SIP/5405-000001f7", "agi.php") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/agi.php
<SIP/5405-000001f7>AGI Tx >> agi_request: agi.php
<SIP/5405-000001f7>AGI Tx >> agi_channel: SIP/5405-000001f7
<SIP/5405-000001f7>AGI Tx >> agi_language: en
<SIP/5405-000001f7>AGI Tx >> agi_type: SIP
<SIP/5405-000001f7>AGI Tx >> agi_uniqueid: TT-1340270088.522
<SIP/5405-000001f7>AGI Tx >> agi_version: 1.8.12.0
<SIP/5405-000001f7>AGI Tx >> agi_callerid: 5050
<SIP/5405-000001f7>AGI Tx >> agi_calleridname: Test 2    < -- here
it's callerid of 5050 instead of 5405
<SIP/5405-000001f7>AGI Tx >> agi_callingpres: 0
<SIP/5405-000001f7>AGI Tx >> agi_callingani2: 0
<SIP/5405-000001f7>AGI Tx >> agi_callington: 0
<SIP/5405-000001f7>AGI Tx >> agi_callingtns: 0
<SIP/5405-000001f7>AGI Tx >> agi_dnid: unknown
<SIP/5405-000001f7>AGI Tx >> agi_rdnis: unknown
<SIP/5405-000001f7>AGI Tx >> agi_context: default
<SIP/5405-000001f7>AGI Tx >> agi_extension: 5050
<SIP/5405-000001f7>AGI Tx >> agi_priority: 1
<SIP/5405-000001f7>AGI Tx >> agi_enhanced: 0.0
<SIP/5405-000001f7>AGI Tx >> agi_accountcode: 6167531316    < --
account code of 5405
<SIP/5405-000001f7>AGI Tx >> agi_threadid: 1084270912
<SIP/5405-000001f7>AGI Tx >>
<SIP/5405-000001f7>AGI Rx << GET VARIABLE CDR(clid)
<SIP/5405-000001f7>AGI Tx >> 200 result=1 ("Test 2" <5050>)


Can anybody help me on figuring this out please.

Thanks

Regards,
Zohair Raza



More information about the asterisk-users mailing list