[Asterisk-Users] CallerID name lookup AGI script

Jay Milk jay at skimmilk.net
Fri May 20 11:31:36 MST 2005


No, the script will 
- conform incoming CID numbers to the 1+10 dialing convention.  This
allows for easy call-return.
- attempt to find a name for this number by doing a reverse-lookup on
Google and 411.com.

You can download the script at http://muware.com/asterisk

It currently requires PHP 5, but I'll make it backward compatible once I
have some time.

> -----Original Message-----
> From: Moises Silva [mailto:moises.silva at gmail.com] 
> Sent: Friday, May 20, 2005 12:54 PM
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: Re: [Asterisk-Users] CallerID name lookup AGI script
> 
> 
> sorry, not sure if i am understanding your purpose, you want 
> to alter the callerid_id??
> 
> if im right, then, could you show me the code inside cid_rewrite.php??
> 
> best regards
> 
> On 5/20/05, pbx at itsngroup.com <pbx at itsngroup.com> wrote:
> > 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/asterisk-users
> > To UNSUBSCRIBE or update options visit:
> >    http://lists.digium.com/mailman/listinfo/asterisk-users
> > 
> 
> 
> -- 
> "Su nombre es GNU/Linux, no solamente Linux, mas info en 
http://www.gnu.org" _______________________________________________
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