wasim@convergence.com.pk
2003-Jun-11 03:26 UTC
[Asterisk-Users] Dialing out through a Hardware PBX
On Wed, 11 Jun 2003 surajee@infotechs.lk wrote:> is there any possiblity that asterisk can make calls like that, ie, first dialing 9, and then > wait for the dial tone and then dialing the number? > how do i pause between 9 and the telephone number, will comma ( , ) do the job? > for ex. will Dial(Zap/g3/9,0777701338|20|t) will work? or else pls let me know a way toDial(Zap/g3/9w0777blah|20|t) etc, iirc a "," will terminate that field according to the old dialplan syntax -wasim
surajee@infotechs.lk
2003-Jun-11 03:37 UTC
[Asterisk-Users] Dialing out through a Hardware PBX
<DIV><FONT face=Arial size=2>hello All,</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>our Asterisk pbx is sitting behind a normal analog hardware pbx, we have to dial 9</FONT></DIV> <DIV><FONT face=Arial size=2>to take an outside call through the hardware pbx, our fxo interface is also connected</FONT></DIV> <DIV><FONT face=Arial size=2>to one of the extensions of it. we can make calls to internal hardware pbx extensions </FONT></DIV> <DIV><FONT face=Arial size=2>by dialing through the fxo interface using Dial function, for ex. Dial(Zap/g3/599|20|t) </FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>but we also want make calls to outside by first dialing 9, and then dialing the number.</FONT></DIV> <DIV><FONT face=Arial size=2>is there any possiblity that asterisk can make calls like that, ie, first dialing 9, and then</FONT></DIV> <DIV><FONT face=Arial size=2>wait for the dial tone and then dialing the number?</FONT></DIV> <DIV><FONT face=Arial size=2>how do i pause between 9 and the telephone number, will comma ( , ) do the job? </FONT></DIV> <DIV><FONT face=Arial size=2>for ex. will Dial(Zap/g3/9,0777701338|20|t) will work? or else pls let me know a way to</FONT></DIV> <DIV><FONT face=Arial size=2>do that.</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>Thanx inadvance,</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>Surajee</FONT></DIV><br> --------------This mail sent through OmniBIS.com--------------
On Wed, 11 Jun 2003 surajee@infotechs.lk wrote:> our Asterisk pbx is sitting behind a normal analog hardware pbx, we have > to dial 9 > to take an outside call through the hardware pbx, our fxo interface is > also connected > to one of the extensions of it. we can make calls to internal hardware > pbx extensions > by dialing through the fxo interface using Dial function, for ex. > Dial(Zap/g3/599|20|t) > ? > but we also want make calls to outside by first dialing 9, and then > dialing the number. > is there any possiblity that asterisk can make calls like that, ie, first > dialing 9, and then > wait for the dial tone and then dialing the number? > how do i pause between 9 and the telephone number, will comma ( , )?do > the job? > for ex. will Dial(Zap/g3/9,0777701338|20|t) will work? or else pls let me > know a way to > do that.I'd suggest something like exten = _9.,1,Dial(Zap/g3/9|20|t) ;dial "9" for outbound line exten = _9.,2,Wait(1) ;wait 1s for dialtone, PBX may take longer exten = _9.,3,SendDTMF(${EXTEN:1}) ;send remaining digits as DTMF If you have more than one (9...) case, you may want to use a macro. Cheers, Siggi
I use to do this before we got phone company lines into our * system. I can't remember the exact syntax but it was something like: Dial(Zap/g3/9ww0777701338|20|t) where w stands for wait. You may need to add more than one w if it takes longer to get the dialtone. Attach a high impedance monitor to the phone line you are dialing out on if you need to listen to call progress. Don Pobanz On Thursday, June 12, 2003 5:53 AM, wasim@convergence.com.pk [SMTP:wasim@convergence.com.pk] wrote:> use Flash and SendDTMF to talk to dumb pbxs, Flash'll only work onZAP> > channels though... > > exten => 0,1,Flash > exten => 0,2,SendDTMF(2) > exten => 0,3,Wait(1) > exten => 0,4,SendDTMF(123123123) > exten => 0,5,Hangup > > -wasim > > On Thu, 12 Jun 2003, Steven Critchfield wrote: > > > On Thu, 2003-06-12 at 03:53, Siggi Langauf wrote: > > > On Wed, 11 Jun 2003 surajee@infotechs.lk wrote: > > > > > > > our Asterisk pbx is sitting behind a normal analog hardwarepbx,> > > > we have > > > > to dial 9 > > > > to take an outside call through the hardware pbx, our fxo > > > > interface is > > > > also connected > > > > to one of the extensions of it. we can make calls to internal > > > > hardware > > > > pbx extensions > > > > by dialing through the fxo interface using Dial function, for > > > > ex. > > > > Dial(Zap/g3/599|20|t) > > > > > > > > but we also want make calls to outside by first dialing 9, and > > > > then > > > > dialing the number. > > > > is there any possiblity that asterisk can make calls like that, > > > > ie, first > > > > dialing 9, and then > > > > wait for the dial tone and then dialing the number? > > > > how do i pause between 9 and the telephone number, will comma > > > > ( , ) do > > > > the job? > > > > for ex. will Dial(Zap/g3/9,0777701338|20|t) will work? or else > > > > pls let me > > > > know a way to > > > > do that. > > > > > > I'd suggest something like > > > > > > exten = _9.,1,Dial(Zap/g3/9|20|t) ;dial "9" for outbound line > > > exten = _9.,2,Wait(1) ;wait 1s for dialtone, PBX may > > > take longer > > > exten = _9.,3,SendDTMF(${EXTEN:1}) ;send remaining digits as DTMF > > > > This won't work due to the fact that the dial won't return till you > > hangup. Remember dial will bridge the channels.