[asterisk-users] Specifying DID for outbound calls

Stephen Reese rsreese at gmail.com
Sun Dec 19 05:14:11 UTC 2010


> The outgoing caller-id is probably just the extension number, so the
> provider is setting it to a default (usually the main billing number).  You
> can set what Asterisk sends as the outbound Caller-ID in the outbound
> context before the Dial statement.  Make sure your provider will honor what
> you set, as many filter what you can send to only the DIDs they provide for
> you.
>
> Take a look here for more information on setting the caller-id in the
> dialplan:
>
> http://www.voip-info.org/wiki/view/Asterisk+func+callerid
>
> -Jonathan

Thanks for the heads up, I have been setting the caller-ID but the
trouble I'm running into is specifying the which number to call out
as. How can an extension specify a different number? See below for my
current extension.conf, thanks.

[default]
exten => 201,1,Dial(SIP/201@,30)
exten => 201,n,Voicemail(201 at default)
exten => 201,n,Hangup

exten => 202,1,Dial(SIP/202,30)
exten => 202,n,Voicemail(202 at default)
exten => 202,n,Hangup


include => inbound
include => outgoing

[inbound]
exten => 3012323434,1,Goto(default,201,1)
exten => 3013232322,1,Goto(default,202,1)

[outgoing]

exten => _1NXXNXXXXXX,1,Set(CALLERID(num)=3012323434)
exten => _1NXXNXXXXXX,n,Set(CALLERID(name)="User1")
exten => _1NXXNXXXXXX,n,Dial(SIP/${EXTEN}@vitel-outbound)

[outgoing2]

exten => _1NXXNXXXXXX,1,Set(CALLERID(num)=3013232322)
exten => _1NXXNXXXXXX,n,Set(CALLERID(name)="User2")
exten => _1NXXNXXXXXX,n,Dial(SIP/${EXTEN}@vitel-outbound)



More information about the asterisk-users mailing list