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/[EMAIL PROTECTED]|30");



SIP Excerpts (fields modified for protection :) ):

From the IAD to *:

INVITE sip:[EMAIL PROTECTED] 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:[EMAIL PROTECTED]>;tag=df69fc0c312eb8bo0
To: <sip:[EMAIL PROTECTED]>
Remote-Party-ID: TEST <sip:[EMAIL PROTECTED]>;screen=yes;privacy=full;party=calling


From * out to terminate:

INVITE sip:[EMAIL PROTECTED] SIP/2.0
Via: SIP/2.0/UDP xxx.xxx.xxx.xxx:5060;branch=z9hG4bK140bc190;rport
From: "Unknown" <sip:[EMAIL PROTECTED]>;tag=as335c51b2
To: <sip:[EMAIL PROTECTED]>




_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to