Just use LookupCIDName application,
eg:
exten => s,1,LookupCIDName
exten => s,2,Do what you normally did in step 1
This will automatically look up if the Caller*ID number
is in database in cidname family.
To add numbers to cidname family use this command at the console:
database put cidname 1111111 Wierd_number
regards
Martin
On 18 Feb 2003, William X Walsh wrote:
>
> I have asterisk handing my incoming calls via deltathree's iconnecthere
> service.
>
> It is receiving a callerid signal from iconnecthere, and properly
> passing it through, but its setting the CallerIDName to asterisk.
>
> iconnecthere does not pass a CallerIDName.
>
> I'd like to set the CallerIDName equal to the CallerID value, but I
> can't quite figure out how to reference the CallerID value in the
> extension contexts. I'm sure it is something easy, I just haven't
been
> able to find it, in the list archives either.
>
> --
> William Walsh <william at wxw.org>
> Jabber: william at wxw.biz
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
>