[Asterisk-Users] CallerID name lookup AGI script

Robert Goodyear me at jrob.net
Fri May 20 08:04:29 MST 2005


On May 20, 2005, at 3:48 AM, Chris Coulthurst wrote:

> Well I installed this script on to my system (a few hiccups with php 5
> but its not erroring anymore).
>
> Still not getting any callerid info to pass to my polycom 500 screen.
>
> Could it have anything to do with the fact that the number is prepended
> with a "+1" on the screen?  Teliax sends the +1NXXNXXXXXX on the 
> number.
> Is that being stripped by the agi script when it queries 411 and 
> google?
>
> Or am I just a dumb fart no quite getting what I'm doing? (this is the
> likely case!)
>
> P.S.  If anyone has a suggested script to remove the +1 from the 
> number,
> it would be helpful in other areas as well...
>


I always conform the number before passing it anywhere. From Teliax I 
do this:

exten => s,1,Answer()
exten => s,2,SetCallerID(${CALLERIDNUM:2})
exten => s,3,AGI(callerid.agi|${CALLERIDNUM})


Hope that helps.
/rg




More information about the asterisk-users mailing list