[Home]

Summary:ASTERISK-20036: Different behavior in 1.8.12.0 and 1.8.13.0 than 1.8.9.X
Reporter:Zohair Raza (zuhairraza)Labels:
Date Opened:2012-06-22 10:39:34Date Closed:2012-06-27 16:32:06
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Channels/chan_sip/General
Versions:1.8.9.3 Frequency of
Occurrence
Constant
Related
Issues:
Environment:CentosAttachments:
Description: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 I expected and debug output is as below

  -- Executing [1031@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 asterisk 1.8.12 with these details (also 1.8.13

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@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>)
Comments:By: Rusty Newton (rnewton) 2012-06-27 16:31:39.967-0500

Thanks for your comments. This does not appear to be a bug report and we are closing it. We appreciate the difficulties you are facing, but it would make more sense to raise your question to the community for support: http://www.asterisk.org/support.

The behavior described (CallerID showing up improperly) could be caused by misconfiguration.

For this type of support issue, when finding someone in the community to help you, you'll need to provide not only access to your dialplan, but also to your AGI scripts involved.

In the future, please observe the guidelines here: https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines

By: Zohair Raza (zuhairraza) 2012-06-29 03:04:47.814-0500

Thanks for your response Rusty,

I posted this on forum as well.

I will have a look at these guidelines now.

To me it seems like a  bug because I didn't change asterisk configuration at all. Both versions were using same asterisk configuration files. Modules compilation is also same. Can you suggest what else to check