Maintenance Notice - PDF Generation
Dynamic PDF generation for web-based content is temporarily unavailable. This maintenance affects dynamic PDF files that are generated from either the HTML-based page or manual that you are viewing. Links that normally allow this functionality have been hidden, and will reappear as soon as the feature is restored.

Note: Access to static files, including PDF files that are not dynamically generated from our web-based content, is unaffected.

Jump to: navigation, search

Create Call

The following SCXML strategy shows how to create a voice call with extension hints.

<scxml version="1.0" xmlns="" 
    <data ID="reqid"/>
    <data ID="ixnid"/>
    <data ID="time_delay" expr="'2s'" />
  <state id="initial">
    <transition event="interaction.added" target="calling"/>
  <state id="calling">
      <log expr="'Calling ...'" />
      <ixn:createcall requestid="_data.reqid" type="regular" from="'701'" to="'702'" udata="({key_1:10*10, key_2:20*20, key_3:30*30})" hints="({extensions:{key_1:100*100, key_2:200*200, key_3:300*300}})" />
    <transition event="error.voice.createcall" cond=" == _data.reqid" target="error">
      <log expr="'Got createcall error:'" />
      <log expr="uneval( _event )" />
    <transition event="voice.createcall.done" cond=" == _data.reqid" target="delay">
      <log expr="'Got createcall confirmation:'"/>
      <log expr="'event name = ' +" />
        _data.ixnid =;
  <state id="delay">
      <log expr="'======== Inside Delay ========'"/>
      <send event="'SynchroEvent'" delay="_data.time_delay"/>
    <transition event="SynchroEvent" target="acceptcall" />
  <state id="acceptcall">
      <ixn:accept requestid="_data.reqid" interactionid="_data.ixnid" resource="'702'" />
    <transition event="error.interaction.accept" target="error" />
    <transition event="interaction.accept.done" cond=" == _data.reqid" target="exit" />
  <final id="exit"/>
  <final id="error"/>
This page was last edited on August 14, 2014, at 20:21.


Comment on this article:

blog comments powered by Disqus