I am making some changes to the dial plan at the request of the company president and have run into some problems. I have a couple of layers of menu's and I am not sure how to handle them. Here is how it should work (sorry for the crappy diagram) main menu --------Dial 1 for support | Dial 2 for special | Dial 3 sales | Dial 5 For sales | | |______________________________submenu Dial 1 for product a support Dial 2 for pdoduct b support Dial 3 for product c support My problem is that if you choose option one in the second menu it loop back to the first menu. I don't know how to handle this, and I'm sure it can be done. here is the section of extensions.conf that deals with it exten => 6666,1,Wait,2 ; Allow for PRI to grab info in facility exten => 6666,2,SetCallerID(Toll Free No Cpub) exten => 6666,3,BackGround(greeting) exten => 6666,4,BackGround(mainmenu) exten => 6666,5,Wait,5 exten => 6666,6,Queue(tech) exten => 1,1,SetCallerID(Toll Free No Cpub) exten => 1,2,AGI(openclose.agi) exten => 1,3,GotoIf($[${STATUS} = closed]?6:4) exten => 1,4,GotoIf($[${STATUS} = holiday]?8:10) exten => 1,5,Goto(1,10) exten => 1,6,BackGround(nighttime-greeting) exten => 1,7,Goto(4,1) exten => 1,8,BackGround(holiday-greeting) exten => 1,9,Goto(4,1) exten => 1,10,BackGround(tech-menu) exten => 1,1,Playback(cpub-support) exten => 1,2,Hangup exten => 2,1,SetVar(QUEUE_PRIO=10) exten => 2,2,Queue(tech) exten => 3,1,SetVar(QUEUE_PRIO=5) exten => 3,2,Queue(tech) exten => 4,1,Hangup exten => 2,1,Wait,1 exten => 2,2,SetCallerID(TimeIPS) exten => 2,3,AGI(openclose.agi) exten => 2,4,GotoIf($[${STATUS} = closed]?7:5) exten => 2,5,GotoIf($[${STATUS} = holiday]?9:11) exten => 2,6,Goto(1,11) exten => 2,7,BackGround(nighttime-greeting) exten => 2,8,Goto(1,28) exten => 2,9,BackGround(holiday-greeting) exten => 2,10,Goto(1,28) exten => 2,11,Dial(SIP/3085,15|m) exten => 2,12,Dial(SIP/3082,15|m) exten => 2,13,Dial(SIP/3006,15|m) exten => 2,14,Dial(SIP/3007,15|m) exten => 2,15,Background(sales-hold) exten => 2,16,WaitMusicOnHold(60) exten => 2,17,Dial(SIP/3085,15|m) exten => 2,18,Dial(SIP/3082,15|m) exten => 2,19,Dial(SIP/3006,15|m) exten => 2,20,Dial(SIP/3007,15|m) exten => 2,21,Background(sales-hold) exten => 2,22,WaitMusicOnHold(60) exten => 2,23,Dial(SIP/3085,15|m) exten => 2,24,Dial(SIP/3082,15|m) exten => 2,25,Dial(SIP/3006,15|m) exten => 2,26,Dial(SIP/3007,15|m) exten => 2,27,Voicemail(u3082) exten => 2,28,Hangup exten => 5,1,Wait,1 exten => 5,2,SetCallerID(Sales) exten => 5,3,AGI(openclose.agi) exten => 5,4,GotoIf($[${STATUS} = closed]?7:5) exten => 5,5,GotoIf($[${STATUS} = holiday]?9:11) exten => 5,6,Goto(1,11) exten => 5,7,BackGround(nighttime-greeting) exten => 5,8,Goto(1,28) exten => 5,9,BackGround(holiday-greeting) exten => 5,10,Goto(1,28) exten => 5,11,Dial(SIP/3085,15|m) exten => 5,12,Dial(SIP/3082,15|m) exten => 5,13,Dial(SIP/3006,15|m) exten => 5,14,Dial(SIP/3007,15|m) exten => 5,15,Background(sales-hold) exten => 5,16,WaitMusicOnHold(60) exten => 5,17,Dial(SIP/3085,15|m) exten => 5,18,Dial(SIP/3082,15|m) exten => 5,19,Dial(SIP/3006,15|m) exten => 5,20,Dial(SIP/3007,15|m) exten => 5,21,Background(sales-hold) exten => 5,22,WaitMusicOnHold(60) exten => 5,23,Dial(SIP/3085,15|m) exten => 5,24,Dial(SIP/3082,15|m) exten => 5,25,Dial(SIP/3006,15|m) exten => 5,26,Dial(SIP/3007,15|m) exten => 5,27,Voicemail(u3082) exten => 5,28,Hangup exten => 7,1,Wait,1 exten => 7,2,SetCallerID(TimeIPS) exten => 7,3,AGI(openclose.agi) exten => 7,4,GotoIf($[${STATUS} = closed]?7:5) exten => 7,5,GotoIf($[${STATUS} = holiday]?9:11) exten => 7,6,Goto(1,11) exten => 7,7,BackGround(nighttime-greeting) exten => 7,8,Goto(1,28) exten => 7,9,BackGround(holiday-greeting) exten => 7,10,Goto(1,28) exten => 7,11,Dial(SIP/3085,15|m) exten => 7,12,Dial(SIP/3082,15|m) exten => 7,13,Dial(SIP/3006,15|m) exten => 7,14,Dial(SIP/3007,15|m) exten => 7,15,Background(sales-hold) exten => 7,16,WaitMusicOnHold(60) exten => 7,17,Dial(SIP/3085,15|m) exten => 7,18,Dial(SIP/3082,15|m) exten => 7,19,Dial(SIP/3006,15|m) exten => 7,20,Dial(SIP/3007,15|m) exten => 7,21,Background(sales-hold) exten => 7,22,WaitMusicOnHold(60) exten => 7,23,Dial(SIP/3085,15|m) exten => 7,24,Dial(SIP/3082,15|m) exten => 7,25,Dial(SIP/3006,15|m) exten => 7,26,Dial(SIP/3007,15|m) exten => 7,27,Voicemail(u3082) exten => 7,28,Hangup Thanks, Chris Locke Systems Administrator Stratitec INC
On Tue, 2004-08-17 at 17:03, defiance wrote:> I am making some changes to the dial plan at the request of the company > president and have run into some problems. I have a couple of layers of > menu's and I am not sure how to handle them. > > Here is how it should work (sorry for the crappy diagram) > > main menu > > --------Dial 1 for support > | Dial 2 for special > | Dial 3 sales > | Dial 5 For sales > | > | > |______________________________submenu > Dial 1 for product a support > Dial 2 for pdoduct b support > Dial 3 for product c support > > My problem is that if you choose option one in the second menu it loop > back to the first menu. I don't know how to handle this, and I'm sure it > can be done. here is the section of extensions.conf that deals with itCONTEXTS.... [main context] --------Dial 1 for support | Dial 2 for special | Dial 3 sales | Dial 5 For sales [support context] ; don't include main context |______________________________submenu Dial 1 for product a support Dial 2 for pdoduct b support Dial 3 for product c support [special context[ [sales context] [and so on.] -- Steven Critchfield <critch@basesys.com>
I'm not sure if this is your issue or not, but it looks like ext=> 1, starts over at the bottom of the 1's. You have 1,1-10 and then 1,1 and 2 after it. I can see how asterisk might get confused if you sent your call back to ext 1 at starting point 1 or 2. On Tue, 2004-08-17 at 15:03, defiance wrote:> I am making some changes to the dial plan at the request of the company > president and have run into some problems. I have a couple of layers of > menu's and I am not sure how to handle them. > > Here is how it should work (sorry for the crappy diagram) > > main menu > > --------Dial 1 for support > | Dial 2 for special > | Dial 3 sales > | Dial 5 For sales > | > | > |______________________________submenu > Dial 1 for product a support > Dial 2 for pdoduct b support > Dial 3 for product c support > > My problem is that if you choose option one in the second menu it loop > back to the first menu. I don't know how to handle this, and I'm sure it > can be done. here is the section of extensions.conf that deals with it > > exten => 6666,1,Wait,2 ; Allow for PRI to grab info in facility > exten => 6666,2,SetCallerID(Toll Free No Cpub) > exten => 6666,3,BackGround(greeting) > exten => 6666,4,BackGround(mainmenu) > exten => 6666,5,Wait,5 > exten => 6666,6,Queue(tech) > > exten => 1,1,SetCallerID(Toll Free No Cpub) > exten => 1,2,AGI(openclose.agi) > exten => 1,3,GotoIf($[${STATUS} = closed]?6:4) > exten => 1,4,GotoIf($[${STATUS} = holiday]?8:10) > exten => 1,5,Goto(1,10) > exten => 1,6,BackGround(nighttime-greeting) > exten => 1,7,Goto(4,1) > exten => 1,8,BackGround(holiday-greeting) > exten => 1,9,Goto(4,1) > exten => 1,10,BackGround(tech-menu) > exten => 1,1,Playback(cpub-support) > exten => 1,2,Hangup > exten => 2,1,SetVar(QUEUE_PRIO=10) > exten => 2,2,Queue(tech) > exten => 3,1,SetVar(QUEUE_PRIO=5) > exten => 3,2,Queue(tech) > exten => 4,1,Hangup > > exten => 2,1,Wait,1 > exten => 2,2,SetCallerID(TimeIPS) > exten => 2,3,AGI(openclose.agi) > exten => 2,4,GotoIf($[${STATUS} = closed]?7:5) > exten => 2,5,GotoIf($[${STATUS} = holiday]?9:11) > exten => 2,6,Goto(1,11) > exten => 2,7,BackGround(nighttime-greeting) > exten => 2,8,Goto(1,28) > exten => 2,9,BackGround(holiday-greeting) > exten => 2,10,Goto(1,28) > exten => 2,11,Dial(SIP/3085,15|m) > exten => 2,12,Dial(SIP/3082,15|m) > exten => 2,13,Dial(SIP/3006,15|m) > exten => 2,14,Dial(SIP/3007,15|m) > exten => 2,15,Background(sales-hold) > exten => 2,16,WaitMusicOnHold(60) > exten => 2,17,Dial(SIP/3085,15|m) > exten => 2,18,Dial(SIP/3082,15|m) > exten => 2,19,Dial(SIP/3006,15|m) > exten => 2,20,Dial(SIP/3007,15|m) > exten => 2,21,Background(sales-hold) > exten => 2,22,WaitMusicOnHold(60) > exten => 2,23,Dial(SIP/3085,15|m) > exten => 2,24,Dial(SIP/3082,15|m) > exten => 2,25,Dial(SIP/3006,15|m) > exten => 2,26,Dial(SIP/3007,15|m) > exten => 2,27,Voicemail(u3082) > exten => 2,28,Hangup > > exten => 5,1,Wait,1 > exten => 5,2,SetCallerID(Sales) > exten => 5,3,AGI(openclose.agi) > exten => 5,4,GotoIf($[${STATUS} = closed]?7:5) > exten => 5,5,GotoIf($[${STATUS} = holiday]?9:11) > exten => 5,6,Goto(1,11) > exten => 5,7,BackGround(nighttime-greeting) > exten => 5,8,Goto(1,28) > exten => 5,9,BackGround(holiday-greeting) > exten => 5,10,Goto(1,28) > exten => 5,11,Dial(SIP/3085,15|m) > exten => 5,12,Dial(SIP/3082,15|m) > exten => 5,13,Dial(SIP/3006,15|m) > exten => 5,14,Dial(SIP/3007,15|m) > exten => 5,15,Background(sales-hold) > exten => 5,16,WaitMusicOnHold(60) > exten => 5,17,Dial(SIP/3085,15|m) > exten => 5,18,Dial(SIP/3082,15|m) > exten => 5,19,Dial(SIP/3006,15|m) > exten => 5,20,Dial(SIP/3007,15|m) > exten => 5,21,Background(sales-hold) > exten => 5,22,WaitMusicOnHold(60) > exten => 5,23,Dial(SIP/3085,15|m) > exten => 5,24,Dial(SIP/3082,15|m) > exten => 5,25,Dial(SIP/3006,15|m) > exten => 5,26,Dial(SIP/3007,15|m) > exten => 5,27,Voicemail(u3082) > exten => 5,28,Hangup > > exten => 7,1,Wait,1 > exten => 7,2,SetCallerID(TimeIPS) > exten => 7,3,AGI(openclose.agi) > exten => 7,4,GotoIf($[${STATUS} = closed]?7:5) > exten => 7,5,GotoIf($[${STATUS} = holiday]?9:11) > exten => 7,6,Goto(1,11) > exten => 7,7,BackGround(nighttime-greeting) > exten => 7,8,Goto(1,28) > exten => 7,9,BackGround(holiday-greeting) > exten => 7,10,Goto(1,28) > exten => 7,11,Dial(SIP/3085,15|m) > exten => 7,12,Dial(SIP/3082,15|m) > exten => 7,13,Dial(SIP/3006,15|m) > exten => 7,14,Dial(SIP/3007,15|m) > exten => 7,15,Background(sales-hold) > exten => 7,16,WaitMusicOnHold(60) > exten => 7,17,Dial(SIP/3085,15|m) > exten => 7,18,Dial(SIP/3082,15|m) > exten => 7,19,Dial(SIP/3006,15|m) > exten => 7,20,Dial(SIP/3007,15|m) > exten => 7,21,Background(sales-hold) > exten => 7,22,WaitMusicOnHold(60) > exten => 7,23,Dial(SIP/3085,15|m) > exten => 7,24,Dial(SIP/3082,15|m) > exten => 7,25,Dial(SIP/3006,15|m) > exten => 7,26,Dial(SIP/3007,15|m) > exten => 7,27,Voicemail(u3082) > exten => 7,28,Hangup > > > Thanks, > Chris Locke > Systems Administrator > Stratitec INC > _______________________________________________ > 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
On Tuesday 17 August 2004 18:03, defiance wrote:> exten => 1,1,SetCallerID(Toll Free No Cpub)...> exten => 1,1,Playback(cpub-support)Do you see a problem? 'cos I sure do... You can use the numbers over again if you use Goto and jump to a different context. -A.
> CONTEXTS.... > > [main context] > --------Dial 1 for support > | Dial 2 for special > | Dial 3 sales > | Dial 5 For sales > [support context] > ; don't include main context > |______________________________submenu > Dial 1 for product a support > Dial 2 for pdoduct b support > Dial 3 for product c support > [special context[ > [sales context] > [and so on.]To elaborate, try something like this: [mainmenu] exten => s,1,Background(greeting) ; ... ; Do your closed/holiday logic here, whatever ; Dialing 1-3 takes you to different contexts which have their own logic exten => 1,Goto(support,s,1) exten => 2,Goto(special,s,1) exten => 3,Goto(sales,s,1) [support] exten => s,1,Background(product-support) ; Jump to [support-a] context which might give them a new menu exten => 1,Goto(support-a,s,1) ; Only one guy knows product B, so send to his phone exten => 2,Dial(SIP/1234) ... --Will Glynn Freedom Healthcare Group, Inc.
Hello all, Inspired by the Asterisk talks at FOSDEM 2006, I've decided to give it a whirl. I'm having some newbie problems with my dialplan and was wondering if anyone could be of assistance Smile When trying to dial 500, 600 or 601 I get the following notice: pbx.c:1330 pbx_extension_helper: Cannot find extension context Internal' Any suggestions would be GREATLY appreciated! extensions.conf: [general] static => yes writeprotect => yes [External] include => Internal [Internal] exten => 500,1,Dial(SIP/Dave) exten => 600,1,Echo() exten => 601,1,Answer() exten => 601,2,Playback(demo-echotest) exten => 601,3,Echo exten => 601,4,Playback(demo-echodone) exten => 601,5,Hangup sip.conf [general] context = External srvlookup = yes [Dave] type = friend ;username = Dave secret = dave host = dynamic allow = all context = Internal Thanks for any input, Dave.
hehe, I cannot do a "reload" because it causes LCDial to stop working :-P Dont know why but it does. - Gabe ----- Original Message ----- From: "Time Bandit" <timebandit001@gmail.com> To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users@lists.digium.com> Sent: Sunday, March 12, 2006 5:37 PM Subject: Re: [Asterisk-Users] Dialplan woes> After updating your sip.conf and extensions.conf, did you reload > asterisk? Asterisk caches the config files and does not re-read themunless> you issue a "sip reload", "extensions reload" or an all-in-one "restartwhen> convenient" at the CLI.Actually, the all-in-one is done with only "reload", no need to restart. Only time you need to restart is when you modify zapata.conf. _______________________________________________ --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
Seemingly Similar Threads
- call queue help
- python-libvirt for 0.9.3 leaking file descriptors
- Delay after entering digits with IVR
- Error trying to add context: Context 'internal' tries to include nonexistent context 'nighttime|12:30-8:00|mon-fri|*|*'
- [PATCH 1/2] nouveau: make nouveau importing global buffers completely thread-safe, with tests