Hello Joe:
Per your comment above, have confirmed that the ANI/callerid that is being delivered to the script matches what I have put via the Admin GUI.
Given below is the following information:
- Output from Asterisk Console
- Information from a2billing log file
- Relevant config info from extensions.conf
- Relevant config info from a2billing.conf
Am also attaching the screen shots of the Admin GUI showing the ANI that I added. When I make the call, the ANi is not recognized, the IVR prompts for the PIN#. If I enter the Account # associated with the ANI, it plays the correct balance. For our needs, we need to do ANI authentication. Thanks
From Asterisk Console
================
<--- SIP read from 64.154.41.100:5060 --->
ACK sip:
[email protected] SIP/2.0
Max-Forwards: 68
To: <sip:
[email protected]:5060>;tag=as6740b532
From: <sip:
[email protected]>;tag=3498312065-11854
Call-ID:
[email protected]CSeq: 1 ACK
Allow: INVITE, BYE, OPTIONS, CANCEL, ACK, REGISTER, NOTIFY, INFO, REFER, SUBSCRI BE, PRACK, UPDATE
Via: SIP/2.0/UDP 64.154.41.100:5060;branch=z9hG4bKb32df7b7cc22a43a9e1a6dced5aeb9 c2
Contact: <sip:
[email protected]:5060>
Content-Length: 0
From a2billing log file
===============
[09/11/2010 12:17:59]:[file:a2billing.php - line:106 - uniqueid:]:[CallerID:]:[CN:]:[IDCONFIG : 1]
[09/11/2010 12:17:59]:[file:a2billing.php - line:107 - uniqueid:]:[CallerID:]:[CN:]:[MODE : standard]
[09/11/2010 12:17:59]:[file:Class.A2Billing.php - line:715 - uniqueid:1289323077.0]:[CallerID:9142827675]:[CN:]:[ get_agi_request_parameter = 9142827675 ; SIP/ipcomms-00000000 ; 1289323077.0 ; ; 6468625127]
[09/11/2010 12:17:59]:[file:a2billing.php - line:162 - uniqueid:1289323077.0]:[CallerID:9142827675]:[CN:]:[[ANSWER CALL]]
[09/11/2010 12:18:07]:[file:a2billing.php - line:617 - uniqueid:1289323077.0]:[CallerID:9142827675]:[CN:-1]:[[AUTHENTICATION FAILED (cia_res:-1)]]
[09/11/2010 12:18:07]:[CallerID:9142827675]:[CN:-1]:[[exit]]
In extensions.conf
==============
[a2billing]
; CallingCard application
exten => _X.,1,Answer
exten => _X.,2,Wait,2
;exten => _X.,3,AGI(a2billing.php|1|did)
exten => _X.,3,DeadAGI,a2billing.php
exten => _X.,4,Playback(demo-thanks)
exten => _X.,5,Wait,2
exten => _X.,6,Hangup
[did]
; CallingCard application
;exten => _X.,1,AGI(a2billing.php|1|did)
exten => _X.,1,DeadAGI(a2billing.php|1|did)
In a2billing.conf
============
[agi-conf1]
debug=3
cid_enable = YES