[Asterisk-Users] CallerID name lookup AGI script

J P Edmund listmail at acedsl.com
Fri Jun 24 13:51:33 MST 2005


This is what I am getting...

<br />
<b>Parse error</b>:  parse error, expecting `T_OLD_FUNCTION' or  
`T_FUNCTION' or `T_VAR' or `'}'' in <b>/var/lib/asterisk/agi-bin/ 
astlib_jm.php</b> on line <b>73</b><br />
<br />
<b>Fatal error</b>:  Cannot instantiate non-existent class:  agi in  
<b>/var/lib/asterisk/agi-bin/cid_rewrite.php</b> on line <b>60</b><br />


what am I doing wrong/

tia
J.P. Edmund

"If you think it's not a game, you've already lost"


On May 20, 2005, at 2:27 PM, Jay Milk wrote:

> Run ./cid_rewrite.php from the the shell to see where it's failing.
>
>
>> -----Original Message-----
>> From: pbx at itsngroup.com [mailto:pbx at itsngroup.com]
>> Sent: Friday, May 20, 2005 10:04 AM
>> To: Asterisk Users Mailing List - Non-Commercial Discussion
>> Subject: RE: [Asterisk-Users] CallerID name lookup AGI script
>>
>>
>> I have been trying to get this script to work as well cid_rewrite
>>
>> However this is what the CLI reports:
>>     -- Executing EAGI("Zap/1-1", "cid_rewrite/cid_rewrite.php|us")
>>     -- Launched AGI Script /var/lib/asterisk/agi-bin/cid_rewrite.php
>> AGI Tx >> agi_request: cid_rewrite.php
>> AGI Tx >> agi_channel: Zap/1-1
>> AGI Tx >> agi_language: en
>> AGI Tx >> agi_type: Zap
>> AGI Tx >> agi_uniqueid: 1116600703.79
>> AGI Tx >> agi_callerid: 619xxxxxxx  <-- it is getting caller
>> id number AGI Tx >> agi_calleridname: unknown AGI Tx >>
>> agi_callingpres: 0 AGI Tx >> agi_callingani2: 0 AGI Tx >>
>> agi_callington: 0 AGI Tx >> agi_callingtns: 0 AGI Tx >>
>> agi_dnid: unknown AGI Tx >> agi_rdnis: unknown AGI Tx >>
>> agi_context: incoming-zap AGI Tx >> agi_extension: s AGI Tx
>>
>>>> agi_priority: 2 AGI Tx >> agi_enhanced: 1.0 AGI Tx >>
>>>>
>> agi_accountcode: AGI Tx >>
>>     -- AGI Script cid_rewrite.php completed, returning 0
>>     -- Executing Dial("Zap/1-1", "IAX2/4000|20|rtT")
>>     -- Called 4000
>>     -- Call accepted by 129.46.90.210 (format gsm)
>>     -- Format for call is gsm
>>
>> However, it does not have any information being returned.
>>
>> I have edited the agi_config.php to point to where the
>> information is. But it just is not getting anything.
>>
>> Help???...
>>
>> _______________________________________________
>> Asterisk-Users mailing list
>> Asterisk-Users at lists.digium.com
>> http://lists.digium.com/mailman/listinfo/aster> isk-users
>> To
>> UNSUBSCRIBE or update options visit:
>>
>>
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>




More information about the asterisk-users mailing list