我要转移到线路号,而无需在此线路上设置跟进呼叫转移。
以下是一些代码:
<?xml version="1.0" ?>
<vxml version="2.1" xmlns="http://www.w3.org/2001/vxml" xml:lang="fr-FR">
<var name="destinations" expr="['0033xxxxxxxxx', '0033xxxxxxxxx']"/>
<form id="transferCall">
<var name="currentDestination" expr="'number/'+destinations.shift()" />
<transfer name="transferResult" type="consultation" destexpr="currentDestination" connecttimeout='20s'>
<prompt>
<audio src="./files/samples/waiting.wav"/>
</prompt>
<filled>
<if cond="transferResult=='noanswer'" />
<assign name="transferDuration" expr="transferDuration+20" />
<goto next="#transferCall" />
<elseif cond="transferResult=='busy'" />
<assign name="transferDuration" expr="transferDuration+20" />
<goto next="#transferCall" />
<else/>
<prompt> <value expr="transferResult" /> </prompt>
</if>
</filled>
<catch event="connection.disconnect.hangup">
</catch>
</transfer>
</form>
谢谢