[asterisk-users] callerid overwrite

Chad Wallace cwallace at lodgingcompany.com
Tue Jan 28 15:05:13 CST 2014


On Tue, 28 Jan 2014 10:55:58 -0800
motty cruz <motty.cruz at gmail.com> wrote:

> this is what i have in extensions.conf
> [outbound]
> exten => _91NXXNXXXXXX,1,Set(CALLERID(num)=mycompanyinc)
> exten => _91NXXNXXXXXX,2,Dial(SIP/att/${EXTEN:1},80)
> exten => _9NXXXXXX,1,Set(CALLERID(num)=mycompanyinc)
> exten => _9NXXXXXX,2,Dial(SIP/att/${EXTEN:1},80)
> 
> any ideas? as this happens random,

You're setting CALLERID(num) to a name.  Use CALLERID(name) instead.
Additionally, you might want to set CALLERID(num) to your DID.

You can do both name and number at the same time by using
CALLERID(all), something like this:

exten => _91NXXNXXXXXX,1,Set(CALLERID(all)="mycompanyinc"<123-456-7890>)


-- 

C. Chad Wallace, B.Sc.
The Lodging Company
http://www.lodgingcompany.com/
OpenPGP Public Key ID: 0x262208A0




More information about the asterisk-users mailing list