[asterisk-users] h exten no getting run ...

Steve Edwards asterisk.org at sedwards.com
Sun Mar 29 16:13:49 CDT 2009


Untopposting...

> 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.

>> ============================================================================
>> 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?

>> [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."

Also, cranking the verbosity up and showing the console output may help.

FWIW, I prefer using templates for little snippets that get included often 
instead of includes. It makes it easier to debug the dialplan.

Thanks in advance,
------------------------------------------------------------------------
Steve Edwards      sedwards at sedwards.com      Voice: +1-760-468-3867 PST
Newline                                             Fax: +1-760-731-3000



More information about the asterisk-users mailing list