asterisk user dupont
2005-Nov-19 14:42 UTC
[Asterisk-Users] cmd dial timeout don't work in asterisk
>asterisk user dupont wrote: >> Hello. >> >> My dial timeout worked perfectly on the last asterisk but not on the new. >> >> Here is my extension.conf : >> >> exten => s,1,Answer() >> exten => s,2,noop(${CALLERID}) >> exten => s,3,Set(TIMEOUT(response)=20) >> exten => s,4,Background(test) >> exten => s,5,Dial(Zap/2|${CALLERID},15) >> exten => s,6,GoTo(personnedispo,s,1) >> exten => s,106,GoTo(tousoccupe,s,1) > >Ok problems with the above: > >1) exten => s,5,Dial(Zap/2|${CALLERID},15) should not contain the | - that is >a separator for parameters, so you are setting a timeout of callerid and >options of 15.So what do i have to use instead of | ? As i am not in office today, i can not test.. but it seem curios to write : exten => s,5,Dial(Zap/2${CALLERID},15) no ? I think i must use a separator ?> >2) If you would like to have +101 bridging you need to use the j option to the >dial command now. >I didn't know that. Thank you.
Eric "ManxPower" Wieling
2005-Nov-20 16:24 UTC
[Asterisk-Users] cmd dial timeout don't work in asterisk
asterisk user dupont wrote:>> asterisk user dupont wrote: >>> Hello. >>> >>> My dial timeout worked perfectly on the last asterisk but not on the new. >>> >>> Here is my extension.conf : >>> >>> exten => s,1,Answer() >>> exten => s,2,noop(${CALLERID}) >>> exten => s,3,Set(TIMEOUT(response)=20) >>> exten => s,4,Background(test) >>> exten => s,5,Dial(Zap/2|${CALLERID},15) >>> exten => s,6,GoTo(personnedispo,s,1) >>> exten => s,106,GoTo(tousoccupe,s,1) >> Ok problems with the above: >> >> 1) exten => s,5,Dial(Zap/2|${CALLERID},15) should not contain the | - that is >> a separator for parameters, so you are setting a timeout of callerid and >> options of 15. > > So what do i have to use instead of | ? > > As i am not in office today, i can not test.. but it seem curios to write : > exten => s,5,Dial(Zap/2${CALLERID},15) > > no ?That would depend on what you are trying to do. If ${CALLERID} is equal to Robert Dobbs <666> then the above dial line would expand to: exten => s,5,Dial(Zap/5Robert Dobbs <666>,15) What are you trying to do?> > I think i must use a separator ? > >> 2) If you would like to have +101 bridging you need to use the j option to the >> dial command now. >> > > I didn't know that.You didn't know that because it's not true. There was a BUG for a short time that required the use of "j" to get priority jumping. That was fixed weekw ago.
if you are dialing out from zap channel, you can set the caller id with before dialing out and then you can dial like, exten => Dial(Zap/2/${EXTEN},15) and if you are ringing an analog phone connected to fxs port, then you can set the caller id before dialing, then you can dial it like, exten => Dial(Zap/2,15) Hope this helps. On 11/19/05, asterisk user dupont <astermail@gmail.com> wrote:> >asterisk user dupont wrote: > >> Hello. > >> > >> My dial timeout worked perfectly on the last asterisk but not on the > new. > >> > >> Here is my extension.conf : > >> > >> exten => s,1,Answer() > >> exten => s,2,noop(${CALLERID}) > >> exten => s,3,Set(TIMEOUT(response)=20) > >> exten => s,4,Background(test) > >> exten => s,5,Dial(Zap/2|${CALLERID},15) > >> exten => s,6,GoTo(personnedispo,s,1) > >> exten => s,106,GoTo(tousoccupe,s,1) > > > >Ok problems with the above: > > > >1) exten => s,5,Dial(Zap/2|${CALLERID},15) should not contain the | - > that is > >a separator for parameters, so you are setting a timeout of callerid and > >options of 15. > > So what do i have to use instead of | ? > > As i am not in office today, i can not test.. but it seem curios to write > : > exten => s,5,Dial(Zap/2${CALLERID},15) > > no ? > > I think i must use a separator ? > > > > >2) If you would like to have +101 bridging you need to use the j option > to the > >dial command now. > > > > I didn't know that. > > Thank you. > _______________________________________________ > --Bandwidth and Colocation sponsored by Easynews.com <http://Easynews.com>-- > > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20051121/1aa045cc/attachment.htm