Clara Chan
2009-Jun-18 10:19 UTC
[asterisk-users] Multiple Outgoing Lines: extensions.conf
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
Ioan Indreias
2009-Jun-18 11:15 UTC
[asterisk-users] Multiple Outgoing Lines: extensions.conf
Hi Clara, You could put some data into astdb and query for the outgoing line and callerid based on internal callerid (extension). something like user/201/outline 89859715 user/201/outcallerid 89859715 and so on... By the way: "_89859715" without the dot (".") is same like 89859715 - maybe you renounce to the underline ... HTH, Ioan. On Thu, Jun 18, 2009 at 1:19 PM, Clara Chan <clarac at tc.com.au> wrote:> 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 > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-- Best regards, Ioan (Nini) Indreias - indreias at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090618/eaf5d950/attachment.htm
Roger Casaponsa
2009-Jun-18 11:56 UTC
[asterisk-users] Multiple Outgoing Lines: extensions.conf
hello, you can define a variable in sip.conf in each extension like: [201] ... setvar=LINE=89859716 ... then in extensions when user 201 calls you have a the var defined and you can use it with ${LINE}. On Thu, Jun 18, 2009 at 08:19:27PM +1000, Clara Chan wrote:> 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 >> _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users-- Roger Casaponsa - Adam Telefon?a IP email: roger.casaponsa at adamvozip.es <mailto:roger.casaponsa at adamvozip.es> www: http://www.adamvozip.es <http://www.adamvozip.es/> tlf: 902546800