[Asterisk-Users] Dial Cmd Outbound CLID Failure (* 1.2.1)

Darren Sessions dsessions at ionosphere.net
Mon Dec 12 08:42:24 MST 2005


I've been doing AGI now for 2 years, and this problem is making me feel 
like I just started. :)  I don't have this problem on pre 1.2 
installations, so I'm assuming either this is something new, or I've 
missed something in the change logs or on wiki.

Scenario:

Customer disables caller id on their IAD. Customer calls in to * where a 
perl AGI script reads in RPID info for the customer, and if 
privacy=full, set's the callerid variables with RPID info.

Once callerid is set, the AGI script then dials out to a 3rd party, 
however, the caller id info is set to 'Unknown'.

If the customer's IAD re-enables callerid, in the same scenario, the 
callerid info is passed perfectly through to the 3rd party via *.

It's pretty obvious that * is honoring the privacy=full and/or 
recognizing the 'Anonymous' tag in the 'From' field in the sip packet.

Is there a way to disable this behavior so that the callerid can be 
forced when the call egresses the * server, regardless of what the 
customer's IAD callerid is set to?

I've verified that my RPID parsing subroutine is completely functional 
(by verbosing the variables the subroutine sets), and I've verified that 
if I just enable the callerid on the IAD, without changing anything 
else, that everything works just fine. I completely bypassed this 
subroutine in desperation and just set the CLID stuff manually trying to 
get it to work.

Any help would be appreciated; thanks in advance,

 - Darren




Detailed info below . . .




AGI Excerpts:

Caller ID methods tried:

        $AGI->set_variable('CALLERID(name)',"\"testing\"");
        $AGI->set_variable('CALLERID(num)',"10000000000");

        $AGI->set_callerid("\"testing\" <10000000000>");

        $AGI->set_callerid("10000000000");

        $AGI->exec('SET',"CALLERID <10000000000>");

Dial Command: (btw, I've tried using the pipe 'o' as well)

        
$AGI->exec('Dial',"SIP/18005551212\@xxxxxx.domainnamegoeshere.net|30");



SIP Excerpts (fields modified for protection :) ):

 From the IAD to *:

INVITE sip:18005551212 at asteriskserver.net SIP/2.0
Via: SIP/2.0/UDP 
192.168.1.100:5065;rport=5065;received=xxx.xxx.xxx.xxx;branch=z9hG4bK-5f1f01ef
From: Anonymous <sip:anonymous at localhost>;tag=df69fc0c312eb8bo0
To: <sip:18005551212 at proxydomain>
Remote-Party-ID: TEST 
<sip:18882225555 at proxydomain>;screen=yes;privacy=full;party=calling


 From * out to terminate:

INVITE sip:18005551212 at terminate SIP/2.0
Via: SIP/2.0/UDP xxx.xxx.xxx.xxx:5060;branch=z9hG4bK140bc190;rport
From: "Unknown" <sip:Unknown at asteriskserver>;tag=as335c51b2
To: <sip:+18005551212 at terminatehost>







More information about the asterisk-users mailing list