[Asterisk-Users] CallerID name lookup AGI script
Jay Milk
jay at skimmilk.net
Fri May 20 11:31:36 MST 2005
What do you see on the * console for incoming calls? There should be
"Formatted Number" and "Extracted Name" logs.
> -----Original Message-----
> From: Chris Coulthurst [mailto:asterisk at shuksan.com]
> Sent: Friday, May 20, 2005 10:35 AM
> To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
> Subject: RE: [Asterisk-Users] CallerID name lookup AGI script
>
>
> Yeah that's the one that I'm using. The incoming context in
> extensions.conf has the following entry:
>
> exten => MYNUMBER,1,EAGI(cid_rewrite.php,us)
> exten => MYNUMBER,2,Macro(stdexten,201,SIP/201)
>
>
> Pretty straight forward. The phone still shows just the
> number when I call inbound.
>
> I modified the agi_config.php script to have mysql data
> proper, and when I run the script from the shell, I can hit
> enter and go through the
> steps:
>
> [root at morse agi-bin]# ./cid_rewrite.php
>
> VERBOSE "Format CID"
>
> VERBOSE ""
>
> VERBOSE "Formatted Number: "
>
> VERBOSE "Extracted Name: "
>
> VERBOSE "Name: Unknown Caller"
>
> VERBOSE "Number: "
>
> VERBOSE "Address: "
>
> SET CALLERID "Unknown Caller"<>
>
> [root at morse agi-bin]#
>
> Thanks,
>
> Chris Coulthurst
> chris at shuksan.com
>
>
> |-----Original Message-----
> |From: asterisk-users-bounces at lists.digium.com
> [mailto:asterisk-users-
> |bounces at lists.digium.com] On Behalf Of Jay Milk
> |Sent: Friday, May 20, 2005 7:09 AM
> |To: 'Asterisk Users Mailing List - Non-Commercial
> Discussion'; 'Brian
> |Dingman'
> |Subject: RE: [Asterisk-Users] CallerID name lookup AGI script
> |
> |Which one are you using? If you're using the script found at
> |http://muware.com/asterisk, then the format of the incoming
> CID doesn't
> |matter -- my script standardizes the CID number to be used
> for lookup
> |and presents it as 1nxxnxxxxxx.
> |
> |> -----Original Message-----
> |> From: Chris Coulthurst [mailto:asterisk at shuksan.com]
> |> Sent: Friday, May 20, 2005 5:49 AM
> |> To: 'Brian Dingman'; 'Asterisk Users Mailing List - Non-Commercial
> |> Discussion'
> |> Subject: RE: [Asterisk-Users] CallerID name lookup AGI script
> |>
> |>
> |> 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...
> |>
> |> Chris Coulthurst
> |> chris at shuksan.com
> |>
> |>
> |> _______________________________________________
> |> 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
>
> _______________________________________________
> 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