developer_guide:voicexml_references:elements:transfer

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
developer_guide:voicexml_references:elements:transfer [2015/10/27 21:46] – created borjadeveloper_guide:voicexml_references:elements:transfer [2015/12/09 10:54] borja
Line 37: Line 37:
 |connecttimeout|The connecttimeout attribute is the time to wait while trying to connect the call before returning the noanswer condition.  The minimum value allowed is 5s.  This attribute is optional and defaults to 30s. (30 seconds)| |connecttimeout|The connecttimeout attribute is the time to wait while trying to connect the call before returning the noanswer condition.  The minimum value allowed is 5s.  This attribute is optional and defaults to 30s. (30 seconds)|
 |maxtime|The maxtime attribute is the maximum time that the call is allowed to last. Minimum value is 30 seconds; maximum is one week, and 0 for no limit.  This attribute only applies when bridge=true.  This attribute is optional and defaults to 0.| |maxtime|The maxtime attribute is the maximum time that the call is allowed to last. Minimum value is 30 seconds; maximum is one week, and 0 for no limit.  This attribute only applies when bridge=true.  This attribute is optional and defaults to 0.|
-|transferaudio|The transferaudio attribute is the URI of the audio file to be played while connecting the call.  This attribute is optional (not supported by Vxi).|+|transferaudio|The transferaudio attribute is the URI of the audio file to be played while connecting the call.  This attribute is optional (not supported).|
  
 ===== Shadow Variables ===== ===== Shadow Variables =====
Line 69: Line 69:
  
 <code> <code>
-exec:” or “tel:” (with an application name and ())+execute:” or "exec:" or “application:” (with an application name and ())
 The <transfer> tag can be used to “execute” an Asterisk application. The <transfer> tag can be used to “execute” an Asterisk application.
-Set the attribute dest with a URI like "exec:applicationname(parameters)".+Set the attribute dest with a URI like "execute:applicationname(parameters)".
  
 Use “set” to set a variable to the Asterisk channel context: Use “set” to set a variable to the Asterisk channel context:
-<transfer name="setvar" bridge="true" dest="exec:set(VXML_NUMBER=10)">+<transfer name="setvar" bridge="true" dest="execute:set(VXML_NUMBER=10)">
  
 Use “get” to get a variable value from the Asterisk channel context (value is in the value shadow variable): Use “get” to get a variable value from the Asterisk channel context (value is in the value shadow variable):
-<transfer name="getvar" bridge="true" dest="exec:get(URL)" />+<transfer name="getvar" bridge="true" dest="execute:get(URL)" />
 <value expr="getvar$.value" />. <value expr="getvar$.value" />.
  
-Use “function” to set an Asterisk function: +Use “function:” to set an Asterisk function: 
-<transfer name="maxduration" bridge="true" dest="exec:function(TIMEOUT(absolute)=10)">+<transfer name="maxduration" bridge="true" dest="execute:function(TIMEOUT(absolute)=10)">
  
 Use '+=' to append values: Use '+=' to append values:
-<transfer name="userfield" bridge="true" dest="exec:function(CDR(userfield))+=12" />+<transfer name="userfield" bridge="true" dest="execute:function(CDR(userfield))+=12" />
  
 Use “function” to get a Asterik function's value: Use “function” to get a Asterik function's value:
-<transfer name="peerip" bridge="true" dest="exec:function(SIPPEER(user2:ip))">+<transfer name="peerip" bridge="true" dest="execute:function(SIPPEER(user2:ip))">
 <value expr="peerip$.value" />. <value expr="peerip$.value" />.
  
Line 100: Line 100:
  
 <code> <code>
-<transfer name="test" bridge="true" dest="ori:user1=vxml(account2)" connecttimeout="20s" maxtime="0s"/>+<transfer name="test" bridge="true" dest="originate:user1=vxml(account2)" connecttimeout="20s" maxtime="0s"/>
 </code> </code>
  
  • developer_guide/voicexml_references/elements/transfer.txt
  • Last modified: 2015/12/09 22:14
  • by borja