> 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(2...@default)
exten => 201,n,Hangup

exten => 202,1,Dial(SIP/202,30)
exten => 202,n,Voicemail(2...@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/${ext...@vitel-outbound)

[outgoing2]

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

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to