[Freeswitch-users] Second transfer
Santiago Soares
santiagosoares at gmail.com
Wed Feb 23 21:01:38 MSK 2011
Hello,
I'm using att_xfer to make call transfer, like that:
A calls B
B calls C
B hangup and A is bridged do C
The thing is, the way I am trying to do it, C is able to transfer the call
again.
I don't want that C be able to transfer the call again.
The call should be transfered only once.
Is it possible?
This is my dialplan:
<include>
<extension name="test_extension">
<condition field="destination_number" expression="^numberB$">
<action application="set" data="bind_meta_key=*"/>
<action application="bind_meta_app" data="3 b s
execute_extension::transferencia XML public"/>
<action application="bridge" data="sofia/gateway/test/loginB"/>
</condition>
</extension>
<extension name="transferencia">
<condition field="destination_number" expression="^transferencia$">
<action application="read" data="3 3 base256/16000/sound.wav
attxfer_callthis 30000 #"/>
<action application="execute_extension" data="transferencia2"/>
</condition>
</extension>
<extension name="transferencia2">
<condition field="${attxfer_callthis}" expression="^numberC$">
<action application="att_xfer" data="sofia/gateway/test/loginC"/>
</condition>
<condition field="${attxfer_callthis}" expression="^numberD$">
<action application="att_xfer" data="sofia/gateway/test/loginD"/>
</condition>
</extension>
</include>
Thank you,
Santiago Soares
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110223/ea299d27/attachment.html
More information about the FreeSWITCH-users
mailing list