Re: [Asterisk-Users] Custom Menu Not Working
On Tue, 2005-02-22 at 17:00, Chris Blake wrote: > On Tue, 2005-02-22 at 10:48, [EMAIL PROTECTED] wrote: > > > When adding the details in AMP for when caller dials 3, I have > > > referenced it using 'custom-myapp,s,1', and if I go to > > > 'extensions_additional.conf' I see the following line under the rest of > > > menu item info that was created : > > > > > > "exten => 3,1,Goto(custom-myapp,s,1) ;" > > > > > > and in the extensions_custom.conf file I have > > > > > > [custom-myapp] > > > exten => 3,1,SayDigits(1234) > > > exten => 3,2,Hangup() > > > > Change to this > > [custom-myapp] > > exten => s,1,SayDigits(1234) > > exten => s,2,Hangup() > > > > since you send it to "s,1" > > When I call to test the setup, here is the output from the CLI : == Starting simple switch on 'Zap/4-1' -- Executing GotoIf("Zap/4-1", "0?from-pstn-reghours|s|1:") in new stack -- Executing GotoIf("Zap/4-1", "0?from-pstn-afthours|s|1:") in new stack -- Executing GotoIfTime("Zap/4-1", "||*|*?from-pstn-reghours|s|1:") in new stack -- Goto (from-pstn-reghours,s,1) -- Executing GotoIf("Zap/4-1", "0?from-pstn-reghours-nofax|s|1:2") in new stack -- Goto (from-pstn-reghours,s,2) -- Executing Answer("Zap/4-1", "") in new stack -- Executing Wait("Zap/4-1", "1") in new stack -- Executing SetVar("Zap/4-1", "intype=") in new stack -- Executing Cut("Zap/4-1", "intype=intype|-|1") in new stack -- Executing GotoIf("Zap/4-1", "0?7:9") in new stack -- Goto (from-pstn-reghours,s,9) -- Executing GotoIf("Zap/4-1", "0?10:12") in new stack -- Goto (from-pstn-reghours,s,12) -- Executing Goto("Zap/4-1", "|s|1") in new stack -- Goto (,s,1) -- Hungup 'Zap/4-1' === The second last line --Goto(,s,1) : It`s blank, is that correct ? -- Chris Blake Cell: 082 775 1492 Work: +27 11 782 0840 Fax : +27 11 782 0841 Mail: [EMAIL PROTECTED] Very few people do anything creative after the age of thirty-five. The reason is that very few people do anything creative before the age of thirty-five. -- Joel Hildebrand ___ 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
Re: [Asterisk-Users] Custom Menu Not Working
Howdy, On Tue, 2005-02-22 at 17:13, beonice wrote: > I'll let someone else speak to the missing .conf > files. > > If you could post your extensions.conf Here it is (rather long, sorry): == ; Asterisk Management Portal (AMP) ; Copyright (C) 2004 Coalescent Systems Inc ; dialparties.agi (http://www.sprackett.com/asterisk/) ; Asterisk::AGI (http://asterisk.gnuinter.net/) ; gsm (http://www.ibiblio.org/pub/Linux/utils/compress/!INDEX.short.html) ; loligo sounds (http://www.loligo.com/asterisk/sounds/) ; mpg123 (http://voip-info.org/wiki-Asterisk+config+musiconhold.conf) ; include extension contexts generated from AMP ;include extensions_additional.conf ; Customizations to this dialplan should be made in extensions_custom.conf ; See extensions_custom.conf.sample for an example include extensions_custom.conf [from-pstn] include => ext-did exten => s,1,GotoIf($[${IN_OVERRIDE} = forcereghours]?from-pstn-reghours,s,1:) exten => s,2,GotoIf($[${IN_OVERRIDE} = forceafthours]?from-pstn-afthours,s,1:) exten => s,3,GotoIfTime(${REGTIME}|${REGDAYS}|*|*?from-pstn-reghours,s,1:) exten => s,4,Goto(from-pstn-afthours,s,1) [from-pstn-reghours] exten => s,1,GotoIf($[${FAX_RX} = disabled]?from-pstn-reghours-nofax,s,1:2) ; if fax detection is disabled, then jump to from-pstn-nofax - else continue exten => s,2,Answer exten => s,3,Wait(1) exten => s,4,SetVar(intype=${INCOMING}) exten => s,5,Cut(intype=intype,-,1) exten => s,6,GotoIf($[${intype} = EXT]?7:9) ; If INCOMING starts with EXT, then assume its an extension exten => s,7,Wait(3);wait 3 more second to make sure this isn't a fax before dialing someone exten => s,8,Goto(ext-local,${INCOMING:4},1) exten => s,9,GotoIf($[${intype} = GRP]?10:12) ; If INCOMING starts with GRP, then assume its a ring group exten => s,10,Wait(3) exten => s,11,Goto(ext-group,${INCOMING:4},1) exten => s,12,Goto(${INCOMING},s,1) ; not EXT or GR1 - it's an auto attendant exten => fax,1,Goto(ext-fax,in_fax,1) exten => h,1,Hangup [from-pstn-reghours-nofax] exten => s,1,SetVar(intype=${INCOMING}) exten => s,2,Cut(intype=intype,-,1) exten => s,3,GotoIf($[${intype} = EXT]?4:5) ; If INCOMING starts with EXT, then assume its an extension exten => s,4,Goto(ext-local,${INCOMING:4},1) exten => s,5,GotoIf($[${intype} = GRP]?6:7) ; If INCOMING starts with GRP, then assume its a ring group exten => s,6,Goto(ext-group,${INCOMING:4},1) exten => s,7,Answer ; answer call before auto attendant exten => s,8,Wait(1) exten => s,9,Goto(${INCOMING},s,1) ; not EXT or GR1 - it's an auto attendant exten => fax,1,Goto(ext-fax,in_fax,1) exten => h,1,Hangup [from-pstn-afthours] exten => s,1,GotoIf($[${FAX_RX} = disabled]?from-pstn-afthours-nofax,s,1:2) ; if fax detection is disabled, then jump to from-pstn-nofax - else continue exten => s,2,Answer exten => s,3,Wait(1) exten => s,4,SetVar(intype=${AFTER_INCOMING}) exten => s,5,Cut(intype=intype,-,1) exten => s,6,GotoIf($[${intype} = EXT]?7:9) ; If INCOMING starts with EXT, then assume its an extension exten => s,7,Wait(3);wait 3 more second to make sure this isn't a fax before dialing someone exten => s,8,Goto(ext-local,${AFTER_INCOMING:4},1) exten => s,9,GotoIf($[${intype} = GRP]?10:12) ; If INCOMING starts with GRP, then assume its a ring group exten => s,10,Wait(3) exten => s,11,Goto(ext-group,${AFTER_INCOMING:4},1) exten => s,12,Goto(${AFTER_INCOMING},s,1) ; not EXT or GR1 - it's an auto attendant exten => fax,1,Goto(ext-fax,in_fax,1) exten => h,1,Hangup [from-pstn-afthours-nofax] exten => s,1,SetVar(intype=${AFTER_INCOMING}) exten => s,2,Cut(intype=intype,-,1) exten => s,3,GotoIf($[${intype} = EXT]?4:5) ; If INCOMING starts with EXT, then assume its an extension exten => s,4,Goto(ext-local,${AFTER_INCOMING:4},1) exten => s,5,GotoIf($[${intype} = GRP]?6:7) ; If INCOMING starts with GRP, then assume its a ring group exten => s,6,Goto(ext-group,${AFTER_INCOMING:4},1) exten => s,7,Answer ; answer call before auto attendant exten => s,8,Wait(1) exten => s,9,Goto(${AFTER_INCOMING},s,1); not EXT or GR1 - it's an auto attendant exten => fax,1,Goto(ext-fax,in_fax,1) exten => h,1,Hangup ; ; Macros [macro] ; ; Rings one or more extensions. Handles things like call forwarding and DND ; We don't call dial directly for anything internal anymore. ; ARGS: $TIMER, $OPTIONS, $EXT1, $EXT2, $EXT
Re: [Asterisk-Users] Custom Menu Not Working
I'll let someone else speak to the missing .conf files. If you could post your extensions.conf and extensions_additional.conf, it would be easier to help you debug this. The suggestion from timebandit _should_ have worked given your original post. Personally, for learning my way around Asterisk, I found that AMP actually got in the way. If you browse the wiki, you'll find lots of helpful examples of the config files, which is really what gets you going with Asterisk. Cheers, Maya --- Chris Blake <[EMAIL PROTECTED]> wrote: > On Tue, 2005-02-22 at 10:48, [EMAIL PROTECTED] > wrote: > > > When adding the details in AMP for when caller > dials 3, I have > > > referenced it using 'custom-myapp,s,1', and if I > go to > > > 'extensions_additional.conf' I see the following > line under the rest of > > > menu item info that was created : > > > > > > "exten => 3,1,Goto(custom-myapp,s,1) ;" > > > > > > and in the extensions_custom.conf file I have > > > > > > [custom-myapp] > > > exten => 3,1,SayDigits(1234) > > > exten => 3,2,Hangup() > > > > Change to this > > [custom-myapp] > > exten => s,1,SayDigits(1234) > > exten => s,2,Hangup() > > > > since you send it to "s,1" > > > > hth > > Howdy TimeBandit, thanks for replying... > > I tried your suggestions and it made no difference, > so I went back to > AMP and removed entry pointing to custom-myapp, > leaving the other two > that I had also created earlier, which worked. > > Now when I dial in the digital receptionist doesn`t > do anything, and the > call just disconnects. Here is the output of the CLI > from the time the > call is initiated, to termination : > > == > Starting simple switch on 'Zap/4-1' > -- Executing GotoIf("Zap/4-1", > "0?from-pstn-reghours|s|1:") in new > stack > -- Executing GotoIf("Zap/4-1", > "0?from-pstn-afthours|s|1:") in new > stack > -- Executing GotoIfTime("Zap/4-1", > "||*|*?from-pstn-reghours|s|1:") > in new stack > -- Goto (from-pstn-reghours,s,1) > -- Executing GotoIf("Zap/4-1", > "0?from-pstn-reghours-nofax|s|1:2") > in new stack > -- Goto (from-pstn-reghours,s,2) > -- Executing Answer("Zap/4-1", "") in new stack > -- Executing Wait("Zap/4-1", "1") in new stack > -- Executing SetVar("Zap/4-1", "intype=") in new > stack > -- Executing Cut("Zap/4-1", "intype=intype|-|1") > in new stack > -- Executing GotoIf("Zap/4-1", "0?7:9") in new > stack > -- Goto (from-pstn-reghours,s,9) > -- Executing GotoIf("Zap/4-1", "0?10:12") in new > stack > -- Goto (from-pstn-reghours,s,12) > -- Executing Goto("Zap/4-1", "|s|1") in new > stack > -- Goto (,s,1) > -- Hungup 'Zap/4-1' > > > So I reload, and I notice that there are a few > entries which seem a bit > suspect : > > > > == Parsing '/etc/asterisk/extconfig.conf': Not found > (No such file or > directory) > > == Parsing '/etc/asterisk/adsi.conf': Not found (No > such file or > directory) > > Reloading MGCP > == Parsing '/etc/asterisk/mgcp.conf': Not found > (No such file or > directory) > > > > Based on the recommendations on the AMP site, I > should not manually edit > the extensions.conf, extensions_custom.conf and > extensions_additional.conf files, so if removing the > entries via AMP > does not solve the problem, how do I go about fixing > this ? > > Commenting out the lines inserted by AMP into the > above files does not > make a difference. > > Does the custom-myapp entry I listed earlier (with > corrections of > course) have to be in extensions_additional.conf as > well? > > Regards > > -- > Chris Blake > Cell: 082 775 1492 > Work: +27 11 782 0840 > Fax : +27 11 782 0841 > Mail: [EMAIL PROTECTED] > > Enzymes are things invented by biologists that > explain things which > otherwise require harder thinking. -- Jerome Lettvin > > > ___ > 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 > __ Do you Yahoo!? Yahoo! Mail - Find what you need with new enhanced search. http://info.mail.yahoo.com/mail_250 ___ 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
Re: [Asterisk-Users] Custom Menu Not Working
On Tue, 2005-02-22 at 10:48, [EMAIL PROTECTED] wrote: > > When adding the details in AMP for when caller dials 3, I have > > referenced it using 'custom-myapp,s,1', and if I go to > > 'extensions_additional.conf' I see the following line under the rest of > > menu item info that was created : > > > > "exten => 3,1,Goto(custom-myapp,s,1) ;" > > > > and in the extensions_custom.conf file I have > > > > [custom-myapp] > > exten => 3,1,SayDigits(1234) > > exten => 3,2,Hangup() > > Change to this > [custom-myapp] > exten => s,1,SayDigits(1234) > exten => s,2,Hangup() > > since you send it to "s,1" > > hth Howdy TimeBandit, thanks for replying... I tried your suggestions and it made no difference, so I went back to AMP and removed entry pointing to custom-myapp, leaving the other two that I had also created earlier, which worked. Now when I dial in the digital receptionist doesn`t do anything, and the call just disconnects. Here is the output of the CLI from the time the call is initiated, to termination : == Starting simple switch on 'Zap/4-1' -- Executing GotoIf("Zap/4-1", "0?from-pstn-reghours|s|1:") in new stack -- Executing GotoIf("Zap/4-1", "0?from-pstn-afthours|s|1:") in new stack -- Executing GotoIfTime("Zap/4-1", "||*|*?from-pstn-reghours|s|1:") in new stack -- Goto (from-pstn-reghours,s,1) -- Executing GotoIf("Zap/4-1", "0?from-pstn-reghours-nofax|s|1:2") in new stack -- Goto (from-pstn-reghours,s,2) -- Executing Answer("Zap/4-1", "") in new stack -- Executing Wait("Zap/4-1", "1") in new stack -- Executing SetVar("Zap/4-1", "intype=") in new stack -- Executing Cut("Zap/4-1", "intype=intype|-|1") in new stack -- Executing GotoIf("Zap/4-1", "0?7:9") in new stack -- Goto (from-pstn-reghours,s,9) -- Executing GotoIf("Zap/4-1", "0?10:12") in new stack -- Goto (from-pstn-reghours,s,12) -- Executing Goto("Zap/4-1", "|s|1") in new stack -- Goto (,s,1) -- Hungup 'Zap/4-1' So I reload, and I notice that there are a few entries which seem a bit suspect : == Parsing '/etc/asterisk/extconfig.conf': Not found (No such file or directory) == Parsing '/etc/asterisk/adsi.conf': Not found (No such file or directory) Reloading MGCP == Parsing '/etc/asterisk/mgcp.conf': Not found (No such file or directory) Based on the recommendations on the AMP site, I should not manually edit the extensions.conf, extensions_custom.conf and extensions_additional.conf files, so if removing the entries via AMP does not solve the problem, how do I go about fixing this ? Commenting out the lines inserted by AMP into the above files does not make a difference. Does the custom-myapp entry I listed earlier (with corrections of course) have to be in extensions_additional.conf as well? Regards -- Chris Blake Cell: 082 775 1492 Work: +27 11 782 0840 Fax : +27 11 782 0841 Mail: [EMAIL PROTECTED] Enzymes are things invented by biologists that explain things which otherwise require harder thinking. -- Jerome Lettvin ___ 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
Re: [Asterisk-Users] Custom Menu Not Working
Try this: In the extensions_custom.conf file set: [custom-myapp] exten => s,1,SayDigits(1234) exten => s,2,Hangup() You're telling it to go to priority s, ("exten => 3,1,Goto(custom-myapp,s,1) but in the custom-myapp context, you have priority 3 instead. Hope that helps. Maya --- Chris Blake <[EMAIL PROTECTED]> wrote: > Greetings *`s, > > I am having what appears to be a small problem, but > the frustration is > erally getting to me, what am I doing wrong here ? > > I used AMP to set up a custom menu, so if caller > presses 1 it goes to > ext200, if caller presses 2 it goes to ext201 etc > etc... > > Now I have created a third option that when the > caller presses 3 it must > play a sound and hang up. > No rocket science yet. > > When adding the details in AMP for when caller dials > 3, I have > referenced it using 'custom-myapp,s,1', and if I go > to > 'extensions_additional.conf' I see the following > line under the rest of > menu item info that was created : > > "exten => 3,1,Goto(custom-myapp,s,1) ;" > > and in the extensions_custom.conf file I have > > [custom-myapp] > exten => 3,1,SayDigits(1234) > exten => 3,2,Hangup() > > But when you call and press option 3, it hangs up > immediately. > I have followed examples from the documentation, and > this should be > working. > > Any other places I can check where something is > perhaps missing ? > > Regards > > -- > Chris Blake > Cell: 082 775 1492 > Work: +27 11 782 0840 > Fax : +27 11 782 0841 > Mail: [EMAIL PROTECTED] > > When the ax entered the forest, the trees said, "The > handle is one of > us!" -- Turkish proverb > > > ___ > 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 > __ Do you Yahoo!? The all-new My Yahoo! - What will yours do? http://my.yahoo.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
Re: [Asterisk-Users] Custom Menu Not Working
> When adding the details in AMP for when caller dials 3, I have > referenced it using 'custom-myapp,s,1', and if I go to > 'extensions_additional.conf' I see the following line under the rest of > menu item info that was created : > > "exten => 3,1,Goto(custom-myapp,s,1) ;" > > and in the extensions_custom.conf file I have > > [custom-myapp] > exten => 3,1,SayDigits(1234) > exten => 3,2,Hangup() Change to this [custom-myapp] exten => s,1,SayDigits(1234) exten => s,2,Hangup() since you send it to "s,1" hth ___ 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
[Asterisk-Users] Custom Menu Not Working
Greetings *`s, I am having what appears to be a small problem, but the frustration is erally getting to me, what am I doing wrong here ? I used AMP to set up a custom menu, so if caller presses 1 it goes to ext200, if caller presses 2 it goes to ext201 etc etc... Now I have created a third option that when the caller presses 3 it must play a sound and hang up. No rocket science yet. When adding the details in AMP for when caller dials 3, I have referenced it using 'custom-myapp,s,1', and if I go to 'extensions_additional.conf' I see the following line under the rest of menu item info that was created : "exten => 3,1,Goto(custom-myapp,s,1) ;" and in the extensions_custom.conf file I have [custom-myapp] exten => 3,1,SayDigits(1234) exten => 3,2,Hangup() But when you call and press option 3, it hangs up immediately. I have followed examples from the documentation, and this should be working. Any other places I can check where something is perhaps missing ? Regards -- Chris Blake Cell: 082 775 1492 Work: +27 11 782 0840 Fax : +27 11 782 0841 Mail: [EMAIL PROTECTED] When the ax entered the forest, the trees said, "The handle is one of us!" -- Turkish proverb ___ 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