<font face="Arial, Helvetica, sans-serif">On Windows XP/SP3 with FS trunk 12653M I get these errors using javascript in my dialplan:<br>
<br>
[MANDATORY_IE_MISSING] (see pastebin below)<br>
<br>
and/or with [CS_EXCHANGE_MEDIA] I get [NORMAL_TEMPORARY_FAILURE] (not shown this time in pastebin)<br>
<br>
Here is the test javascript file:<br>
<br>
session.answer();<br>
session.setVariable("choice", "demo");<br>
<br>
If I remove session.answer() in the above test script then there is no problem but that doesn't always work with another scripts.<br>
<br>
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.<br>
<br>
<extension name=""> <br>
<condition field="destination_number" expression="^2222$"><br>
<!--<action application="info"/>--><br>
<action application="set" data="effective_caller_id_name=${caller_id_name}"/><br>
<action application="set" data="effective_caller_id_number=${caller_id_number}"/><br>
<action application="set" data="choice='not_saved'"/><br>
<action application="javascript" data="home_phone.js"/> <br>
<action application="transfer" data="2223 XML default"/><br>
</condition><br>
</extension><br>
<br>
<extension name=""> <br>
<condition field="destination_number" expression="^2223$"/><br>
<condition field="${choice}" expression="^saved"><br>
<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"/> <br>
<anti-action application="transfer" data="2224 XML default"/><br>
</condition><br>
</extension><br>
<br>
<extension name=""> <br>
<condition field="destination_number" expression="^2224$"/><br>
<condition field="${choice}" expression="^demo"><br>
<!-- Bridge to Voxeo Prophecy ASR/TTS --><br>
<action application="set" data="effective_caller_id_name=${caller_id_name}"/><br>
<action application="set" data="effective_caller_id_number=${caller_id_number}"/><br>
<action application="set" data="bypass_media=true"/><br>
<action application="set" data="hangup_after_bridge=true"/><br>
<action application="bridge" data="sofia/internal/${sip_to_user}@127.0.0.1:5068"/><br>
<anti-action application="hangup"/><br>
</condition><br>
</extension><br>
<br>
<extension name=""><br>
<condition field="destination_number" expression="^GINO_ANS$"><br>
<action application="answer"/><br>
<action application="javascript" data="notify_Gino.js '${id_name}' ${id_number} ${id_message}"/><br>
<action application="hangup"/><br>
</condition><br>
</extension><br>
<br>
I enabled SIP/Sofia tracing and "pastebinned" part of the output here:<br>
<br>
http://pastebin.freeswitch.org/8321<br>
<br>
Thanks.<br>
<br>
<br>
</font><div id='MAILCIAMB047-5bb549d8e6f8163' class='aol_ad_footer'><br/><font style="color:black;font:normal 10pt arial,san-serif;"> <hr style="margin-top:10px"/><b>The Average US Credit Score is 692. <a href="http://pr.atwola.com/promoclk/100126575x1220572833x1201387477/aol?redir=http:%2F%2Fwww.freecreditreport.com%2Fpm%2Fdefault.aspx%3Fsc%3D668072%26hmpgID%3D62%26bcd%3DAprilAvgfooterNO62"> See Yours in Just 2 Easy Steps!</a></b></font> </div>