Evert
2006-Nov-03 05:48 UTC
[asterisk-users] some simple newbie help with dialplan needed...
Hi all! I need a simple plan for the following: *answer call *wait for 4 digit extension *send call to 4-digit extension entered. I tried the following, but that doesn't work... exten => 998,1,Answer() exten => 998,2,Background(agent-newlocation) exten => 998,n,WaitExten(20) exten => 998,n,Dial(SIP/${EXTEN}@${SERADDRESS},60,tr) WaitExten obviously does not fill EXTEN with its value... Anyone any suggestions? Regards, Evert
William Piper
2006-Nov-03 13:40 UTC
[asterisk-users] some simple newbie help with dialplan needed...
You're on the right track. Try the following: [whatever] exten => 988,1,Answer exten => 998,2,Background(agent-newlocation) exten => 998,3,DigitTimeout,5 exten => 998,4,ResponseTime,10 exten => _XXXX,1,Dial(SIP/${EXTEN}@{SERADDRESS},60,tr) exten => i,1,Playback(pbx-invalid) exten => i,2,goto(whatever,988,2) Good luck, bp On 11/3/06, Evert <evert@poboxes.info> wrote:> > Hi all! > > I need a simple plan for the following: > > > *answer call > *wait for 4 digit extension > *send call to 4-digit extension entered. > > I tried the following, but that doesn't work... > > exten => 998,1,Answer() > exten => 998,2,Background(agent-newlocation) > exten => 998,n,WaitExten(20) > exten => 998,n,Dial(SIP/${EXTEN}@${SERADDRESS},60,tr) > > > WaitExten obviously does not fill EXTEN with its value... > > > > Anyone any suggestions? > > > Regards, > Evert > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > 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/20061103/dee518de/attachment.htm
Evert
2006-Nov-06 01:15 UTC
[asterisk-users] some simple newbie help with dialplan needed...
Hi! :) Thanks for the tip. I'm almost there now, the only problem that I have left is that I do NOT want Asterisk to check whether the extension entered is valid. In the current setup Asterisk will refuse to forward the call since it thinks the extension is invalid... :-/ Regards, Evert Bruce Reeves wrote:> > Try changing the last line to > > exten => _XXXX,n,Dial(SIP/${EXTEN}@${SERADDRESS},60,tr) > > Which will pattern match any 4 digits and then the ${EXTEN} variable > will be those 4 digits. One side note is that if the extensions are on > the same server then you could do either a Goto(<context>,${EXTEN},1) > or just include their context in the context of your menu. > > > On 11/3/06, *Evert* <evert@poboxes.info <mailto:evert@poboxes.info>> > wrote: > > Hi all! > > I need a simple plan for the following: > > > *answer call > *wait for 4 digit extension > *send call to 4-digit extension entered. > > I tried the following, but that doesn't work... > > exten => 998,1,Answer() > exten => 998,2,Background(agent-newlocation) > exten => 998,n,WaitExten(20) > exten => 998,n,Dial(SIP/${EXTEN}@${SERADDRESS},60,tr) > > > WaitExten obviously does not fill EXTEN with its value... > > > > Anyone any suggestions? > > > Regards, > Evert > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com > <http://Easynews.com> -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > > > > > -- > Bruce > Nortex Networks
Angel Heart
2006-Nov-06 02:14 UTC
[asterisk-users] some simple newbie help with dialplan needed...
Hi, Could anyone knows what this error codes means; -- Got SIP response 481 "Call/Transaction Does Not Exist" back from <SIP Gateway IP Address> Thanks Angel -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20061106/0c50f0ec/attachment.htm
William Piper
2006-Nov-06 21:33 UTC
[asterisk-users] some simple newbie help with dialplan needed...
It means that the number you are calling does not exist in the dialplan of wherever you are sending it. FYI, next time start a new email instead of hijacking someone elses thread. bp On 11/6/06, Angel Heart <cocent@yahoo.com> wrote:> > Hi, > > Could anyone knows what this error codes means; > > -- Got SIP response 481 "Call/Transaction Does Not Exist" back from <SIP > Gateway IP Address> > > Thanks > > Angel > > > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com <http://easynews.com/>-- > > asterisk-users mailing list > 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/20061106/a8f54fb8/attachment.htm