[Freeswitch-users] MANDATORY_IE_MISSING and NORMAL_TEMPORARY_FAILURE using javascript in dialplan.
mszlazak at aol.com
mszlazak at aol.com
Sun Apr 5 10:14:32 PDT 2009
On Windows XP/SP3 with FS trunk 12653M I get these errors using javascript in my dialplan:
?
[MANDATORY_IE_MISSING] (see pastebin below)
and/or with [CS_EXCHANGE_MEDIA] I get [NORMAL_TEMPORARY_FAILURE]? (not shown this time in pastebin)
Here is the test javascript file:
session.answer();
session.setVariable("choice", "demo");
If I remove session.answer() in the above test script then there is no problem but that doesn't always work with another scripts.
Here is the related section of the dialplan. You dial into ext. 2222 and the problem happens at <action application="bridge" data="sofia/internal/${sip_to_user}@127.0.0.1:5068"/>. The variable "choice" is set to "demo" to get here.
? ??? <extension name="">???
? ??? ??? <condition field="destination_number" expression="^2222$">
? ??? ??? ??? <!--<action application="info"/>-->
? ??? ??? ??? <action application="set" data="effective_caller_id_name=${caller_id_name}"/>
? ??? ??? ??? <action application="set" data="effective_caller_id_number=${caller_id_number}"/>
? ??? ??? ??? <action application="set" data="choice='not_saved'"/>
? ??? ??? ??? <action application="javascript" data="home_phone.js"/>? ??? ??? ???
? ??? ??? ??? <action application="transfer" data="2223 XML default"/>
? ??? ??? </condition>
? ??? </extension>
? ???
??? ??? <extension name="">???
??? ??? ??? <condition field="destination_number" expression="^2223$"/>
? ??? ??? <condition field="${choice}" expression="^saved">
? ??? ??? ??? <action application="set" data="api_hangup_hook=sched_api +60 none originate {id_name='${caller_id_name}',id_number=${caller_id_number},id_message=${uuid}}sofia/gateway/spa3102PSTN/12223334444 at 10.0.0.5:5061 GINO_ANS"/>??? ??? ???
?? ??? ??? ??? <anti-action application="transfer" data="2224 XML default"/>
? ??? ??? </condition>
? ??? </extension>
? ???
? ??? <extension name="">???
? ??? ??? <condition field="destination_number" expression="^2224$"/>
?? ??? ??? <condition field="${choice}" expression="^demo">
? ??? ??? ??? <!-- Bridge to Voxeo Prophecy ASR/TTS -->
? ??? ??? ??? <action application="set" data="effective_caller_id_name=${caller_id_name}"/>
? ??? ??? ??? <action application="set" data="effective_caller_id_number=${caller_id_number}"/>
?? ??? ??? ??? <action application="set" data="bypass_media=true"/>
??? ??? ??? <action application="set" data="hangup_after_bridge=true"/>
? ??? ??? ??? <action application="bridge" data="sofia/internal/${sip_to_user}@127.0.0.1:5068"/>
? ??? ??? ??? <anti-action application="hangup"/>
? ??? ??? </condition>
? ??? </extension>
? ??? <extension name="">
? ??? ??? <condition field="destination_number" expression="^GINO_ANS$">
? ??? ??? ??? <action application="answer"/>
? ??? ??? ??? <action application="javascript" data="notify_Gino.js '${id_name}' ${id_number} ${id_message}"/>
? ??? ??? ??? <action application="hangup"/>
? ??? ??? </condition>
? ??? </extension>
I enabled SIP/Sofia tracing and "pastebinned" part of the output here:
?http://pastebin.freeswitch.org/8321
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090405/f000a858/attachment-0001.html
More information about the Freeswitch-users
mailing list