[Asterisk-Users] CallerID name lookup AGI script
Jay Milk
jay at skimmilk.net
Sun May 8 12:46:27 MST 2005
Make sure the script is executable -- since it's hash-banged, you should
be able to run it from the command-line without errors. If not, chances
are you have the wrong PHP version -- this script requires 5.x, a
limitation brought on by my use of the php-agi API. When I have some
time, I'll modify this to run with all PHP versions, or provide at least
a backward compatible version.
So, run it from commmand line
("/var/lib/asterisk/agi-bin/cid_rewrite.php") and see if it throws any
errors. If it just "hangs", CTRL+C will cancel it -- it's waiting for
AGI input and should work ok. If you do see errors, they should point
you to what you're missing. I'm guessing it would be a requirement such
as PHP version or pear DB.
> -----Original Message-----
> From: Brian Dingman [mailto:bdingman at gmail.com]
> Sent: Sunday, May 08, 2005 12:54 PM
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: Re: [Asterisk-Users] CallerID name lookup AGI script
>
>
> Can you give any help on debugging AGI. The CLI just shows
> the following:
>
> May 8 13:23:54 VERBOSE[18102]: -- Executing
> EAGI("IAX2/teliax at teliax/1", "cid_rewrite.php") in new stack
> May 8 13:23:54 VERBOSE[18102]: -- Launched AGI Script
> /var/lib/asterisk/agi-bin/cid_rewrite.php
> May 8 13:23:54 VERBOSE[18102]: -- AGI Script cid_rewrite.php
> completed, returning 0
>
> No rows are put in the db. Somewhere my setup is breaking but
> not sure where.
>
> Thanks
>
> On 5/8/05, Jay Milk <jay at skimmilk.net> wrote:
> > Mine does business lookups properly, and also uses a mySQL
> database to
> > cache results (and allows you to store your own results):
> >
> > http://www.muware.com/asterisk/
> >
> > And yes, it does both google and 411.com, and falls back to
> > telcodata.us to get CO information if the other two come
> back empty.
> > Since it's already on there, it stores the address in the
> DB as well,
> > if google or 411 return it.
> _______________________________________________
> 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
More information about the asterisk-users
mailing list