[asterisk-users] h exten no getting run ...
Julian Lyndon-Smith
asterisk at dotr.com
Sun Mar 29 16:32:47 CDT 2009
Steve Edwards wrote:
> Untopposting...
Ouch. Sorry.
>
>> Julian Lyndon-Smith wrote:
>
>>> Asterisk 1.4 r181990
>>>
>>> given the dialplan snippet below, can anyone tell me why the h exten
>>> is not being run ?
>
> This is not a "dialplan snippet," this is the console output.
Yup, got it the wrong way around. Sorry.
>
>>> ============================================================================
>>>
>>> console output:
>>> [Mar 29 10:33:49] -- Executing [s at questionnaire-menu:1]
>
> [snip]
>
>>> ===========================================================================
>>>
>
>>> [questionnaire-hangup]
>>>
>>> exten =>
>>> h,1,Set(DATA=${CURL(MyApp/SaveQuestionnaire,COMPLETED=${COMPLETED}&QUESTIONNAIRE_GUID=${QUESTIONNAIRE_GUID})})
>>>
>>> exten => h,n,return
>
> "Return" returns from a gosub. Where are you "gosubbing" to
> questionnaire-hangup?
That's a spurious line from my experiments. I am no gosubbing from
anywhere to questionnaire-hangup. Please ignore that.
>
>>> [questionnaire-menu]
>>>
>>> exten => _X,1,GotoIf($["${EXTEN}" >
>>> "${QUESTIONNAIRE_MAX}"]?questionnaire-finished,1,1)
>>> exten => _X,n,Set(QUESTION=${EXTEN})
>>> exten => _X,n,Gosub(get-answer,Q,1)
>>> exten => _X,n(next),Goto(${MATH(${EXTEN}+1,i)},1)
>>>
>>> exten => s,1,set(TIMEOUT(digit)=3)
>>> exten => s,n,set(TIMEOUT(response)=5)
>>> exten => s,n(mainmenu),Playback(custom/Set1/${QUESTIONNAIRE_GUID}-0)
>>> exten => s,n,Goto(1,1)
>>>
>>> exten => t,1,Goto(s,mainmenu)
>>>
>>> include => questionnaire-hangup;
>
> On Sun, 29 Mar 2009, Julian Lyndon-Smith wrote:
>
>> Meh. Has anyone got any clue ? I'm trying to test this tomorrow and it
>> is obviously not going to pass ;)
>>
>> I've replaced the include => with a h,1,NoOp(here) and verified it with
>> a show dialplan
>
> Please show us the output from "dialplan show questionnaire-menu."
Here you go
show dialplan questionnaire-menu
[ Context 'questionnaire-menu' created by 'pbx_config' ]
'0' => 1. Goto(s|mainmenu)
[pbx_config]
'h' => 1. Verbose(0|"==================>>>>>>>>>>>
ZZZZZZZZZZZZ") [pbx_config]
's' => 1. set(TIMEOUT(digit)=3)
[pbx_config]
2. set(TIMEOUT(response)=5)
[pbx_config]
[mainmenu] 3. Playback(custom/Set1/${QUESTIONNAIRE_GUID}-0)
[pbx_config]
4. Goto(1|1)
[pbx_config]
't' => 1. Goto(s|mainmenu)
[pbx_config]
'_X' => 1. GotoIf($["${EXTEN}" >
"${QUESTIONNAIRE_MAX}"]?questionnaire-finished|1|1) [pbx_config]
2. Set(QUESTION=${EXTEN})
[pbx_config]
3. Gosub(get-answer|Q|1)
[pbx_config]
[next] 4. Goto(${MATH(${EXTEN}+1|i)}|1)
[pbx_config]
Include => 'questionnaire-hangup'
[pbx_config]
-= 5 extensions (11 priorities) in 1 context. =-
I added the "hardcoded" h to try and track things down. I never get the
ZZZZZZZZZZZZZZ :(
>
> Also, cranking the verbosity up and showing the console output may help.
verbosity was 3. Will crank it up and send it on.
>
> FWIW, I prefer using templates for little snippets that get included
> often instead of includes. It makes it easier to debug the dialplan.
Thanks for the info - I'll check up on templates.
Thanks for the help thus far.
Julian
>
> Thanks in advance,
> ------------------------------------------------------------------------
> Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST
> Newline Fax: +1-760-731-3000
>
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
More information about the asterisk-users
mailing list