[asterisk-users] Multiple Outgoing Lines: extensions.conf
Clara Chan
clarac at tc.com.au
Thu Jun 18 05:19:27 CDT 2009
Dear all,
I am currently trying to configure a PBX make use of a multiple of
outgoing lines, currently my extensions.conf looks something like below
>>
; extensions.conf
; 20th October 2008
[globals]
sip1=201
sip2=202
sip3=203
sip4=204
[general]
autofallthrough=yes
[default]
[incoming_calls]
exten => _89859715,1,Dial(SIP/201)
exten => _89859716,1,Dial(SIP/202)
[macro-sipmail]
exten => s,1,Verbose(1,Extension ${ARG1}) ;line req to pick up ext if
it's not reg.
exten => s,n,Dial(SIP/${ARG1},30)
exten => s,n,GotoIf($["${DIALSTATUS}" = "BUSY"]?busy:unavail)
exten => s,n(unavail),Voicemail(${ARG1}@default,u)
exten => s,n,Hangup()
exten => s,n(busy),VoiceMail(${ARG1}@default,b)
exten => s,n,Hangup()
[macro-conference]
exten => s,1,Playback(conf-theatre)
exten => s,n,MeetMe(${ARG1},i)
[internal]
include => outbound
;Voicemail
exten => 8,1,VoiceMailMain()
;Conference Rooms
exten => 600,1,Macro(conference,600)
exten => 601,1,Macro(conference,601)
exten => 602,1,Macro(conference,602)
exten => 603,1,Macro(conference,603)
exten => 604,1,Macro(conference,604)
exten => 605,1,Macro(conference,605)
;Extensions
exten => 201,1,Macro(sipmail,201)
exten => 202,1,Macro(sipmail,202)
exten => 203,1,Macro(sipmail,203)
exten => 204,1,Macro(sipmail,204)
exten => 205,1,Macro(sipmail,205)
exten => 206,1,Macro(sipmail,206)
exten => 207,1,Macro(sipmail,207)
exten => 208,1,Macro(sipmail,208)
;Digium card Channels
exten => 301,1,Dial(Zap/1-1)
exten => 302,1,Dial(Zap/1-2)
[outbound]
exten => _9.,1,Dial(SIP/${EXTEN:1}@61289859715,30,tr)
exten => _9.,n,Hangup()
exten => 000,1,Dial(SIP/000 at 61289859715)
exten => _7.,1,Dial(SIP/${EXTEN:1}@61289859716,30,tr)
exten => _7.,n,Hangup()
exten => 000,1,Dial(SIP/000 at 61289859716)
[phones]
include => internal
include => incoming_calls
include => outbound
>>
Each extension has its own incoming and outgoing account, I know how to
route the incoming number to each particular extension, but how does one
route outgoing calls from a particular phone to use a specific line, ie,
from phone no. 89859715 an outgoing call will use caller id 89859715 and
line 89859715? Or for phone no. 89859716 to use the 89859716 line?
I have sixteen outgoing lines I need to configure, so that each
individual phone can send its own caller id; any suggestions?
Thanks for your thoughts.
Rgds,
Clara
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090618/b10c14f9/attachment-0001.htm
More information about the asterisk-users
mailing list