[asterisk-users] modifying CID for different trunks

Grygoriy Dobrovolskyy megahohol at gmail.com
Wed Jun 17 07:58:42 CDT 2009


>
>
>
> Make sure you are actually setting it as:
>
> Set(CALLERID(num)=290XXXX)
>
> The previous poster has the formatting incorrect. If your callerID is a 4
> digit
> number, and you want to modify it to have the prefix on it before you send
> it
> back out, you can do:
>
> Set(CALLERID(num)=290${CALLERID(num)})
>
> Alternatively you could make the 290 a variable, then set it prior to
> calling
> the Set() application if you needed the prefix to be set based upon some
> logic.
>
>
Thank you for correcting me. I forgot that actually Set() does no need that
${} brackets to set that $var.
And about prefix, it's can be done with many ways my direct setting number
was just an exemple.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090617/f1011efb/attachment.htm 


More information about the asterisk-users mailing list