Find answers to your technical questions and learn how to use our products
Search suggestions:
<transition event="dialog.exit" state="in_dialog"> <log expr="'-- ' + event$.name +' -- [' + state +']'"/> <log expr="' eventdata... \n' + objectToString(event$)"/> <!-- Save return values and log --> <assign name="dialogresult" expr="event$.values.dialogresult" /> <assign name="collecteddigits" expr="event$.values.collecteddigits" /> <log expr="' dialogresult : ' + dialogresult"/> <log expr="' collecteddigits : ' + collecteddigits"/> <if cond="dialogresult == 'CANCEL'"> <log expr="'User quit application exiting'" /> <disconnect connectionid="in_connectionid"/> </if> <!-- Construct a SIP INFO message to send the collected digits --> <script> var hints = new Object(); hints.sip = new Object(); hints.sip.requestmethod = 'INFO'; hints.sip.body = new Array(1); hints.sip.body[0] = new Object(); hints.sip.body[0].type = 'application/vnd.nortelnetworks.digits'; hints.sip.body[0].msg = 'p=Digit-Collection\ny=Digits\nd=Digits%3D'+ collecteddigits; </script> <send name="''" target="in_connectionid" targettype="'SIPEndpoint'" hints="hints"/> <log expr="'Program quit application exiting'" /> <disconnect connectionid="in_connectionid"/> </transition>
Previous Topic
Next Topic