MANDATORY_IE_MISSING and NORMAL_TEMPORARY_FAILURE using javascript in dialplan.
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@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.
I svn'd to today's latest trunk to see if the problem remained. However, things seemed to have turned worse. The error messages I had before don't occur but I still can't bridge to my other application with choice=demo. I tried the application by dialing straight into it with the following dial plan. This has worked in FS 1.0.1 through 1.0.3 but fails to make any connection in the current svn trunk. NOTE ON UNRELATED ERROR: I don't use Lua but there was an error in compiling LUA on Windows with 2008 Express so I get a error loading mod_lua.dll today. Simple dialpan that worked before: <extension name=""> <condition field="destination_number" expression="^2010$"> <!--<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="bypass_media=true"/> <!-- Bridge to Voxeo Prophecy ASR/TTS --> <action application="bridge" data="sofia/internal/${sip_to_user}@127.0.0.1:5068"/> </condition> </extension> SIP TRACE: http://pastebin.freeswitch.org/8336 -- View this message in context: http://www.nabble.com/MANDATORY_IE_MISSING-and-NORMAL_TEMPORARY_FAILURE-usin... Sent from the Freeswitch-users mailing list archive at Nabble.com.
On Apr 6, 2009, at 6:42 PM, mszlazak wrote:
NOTE ON UNRELATED ERROR: I don't use Lua but there was an error in compiling LUA on Windows with 2008 Express so I get a error loading mod_lua.dll today.
This is fixed in svn a bit earlier today. Mike
participants (3)
-
Michael Jerris
-
mszlazak
-
mszlazak@aol.com