Yes, I upgraded from 4 to 5. It does make sense now... Thanks for the pointer!
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Coulthurst Sent: Friday, May 20, 2005 3:09 PM To: 'Asterisk Users Mailing List - Non-Commercial Discussion' Subject: RE: [Asterisk-Users] CallerID name lookup AGI script I don't know if you ran in to the same thing I did, but did you upgrade your PHP to 5.0.4 to make this work? I found that the cid_rewrite.php script calls the php from /usr/bin, whereas the PHP 5.0.4 install defaults to /usr/local/bin if you don't specify --prefix on the build. So you might still be running the old php4. I just renamed /usr/bin/php to /usr/bin/php.old, symlinked the /usr/local/bin/php to /usr/bin, and did the same for pear, and it worked. Chris Coulthurst [EMAIL PROTECTED] |-----Original Message----- |From: [EMAIL PROTECTED] [mailto:asterisk-users- |[EMAIL PROTECTED] On Behalf Of Oswaldo Arratia |Sent: Friday, May 20, 2005 11:34 AM |To: 'Asterisk Users Mailing List - Non-Commercial Discussion' |Subject: RE: [Asterisk-Users] CallerID name lookup AGI script | |Hi there, | |I am trying to the the cid_rewrite.php script but if I run it from the |directly I get this error: | |./cid_rewrite.php | |<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 |/> | | | |Here is the PHP version I am using: |PHP 5.0.4 (cgi) (built: May 20 2005 14:08:40) Copyright (c) 1997-2004 |The PHP Group Zend Engine v2.0.4-dev, Copyright (c) 1998-2004 Zend |Technologies | |Does anybody know what my problem is or if I am missing anythiong here? | |Thanks!! | |Oswaldo | | | |_______________________________________________ |Asterisk-Users mailing list |[email protected] |http://lists.digium.com/mailman/listinfo/asterisk-users |To UNSUBSCRIBE or update options visit: | http://lists.digium.com/mailman/listinfo/asterisk-users _______________________________________________ Asterisk-Users mailing list [email protected] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users _______________________________________________ Asterisk-Users mailing list [email protected] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
