I think you can make another call to bind_meta_app and disable the *3 prior to the att_xfer. You could make *3 do something completely different (like trigger a log entry) and then you could see how many times your users tried to use *3 when they weren't supposed to. :)<div>
<br></div><div>-MC<br><br><div class="gmail_quote">On Wed, Feb 23, 2011 at 10:01 AM, Santiago Soares <span dir="ltr"><<a href="mailto:santiagosoares@gmail.com">santiagosoares@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello,<br><br>I'm using att_xfer to make call transfer, like that:<br>A calls B<br>B calls C<br>B hangup and A is bridged do C<br><br>The thing is, the way I am trying to do it, C is able to transfer the call again.<br>
I don't want that C be able to transfer the call again.<br>The call should be transfered only once.<br>Is it possible?<br><br>This is my dialplan:<br><br><include><br><br> <extension name="test_extension"><br>
<condition field="destination_number" expression="^numberB$"><br> <action application="set" data="bind_meta_key=*"/><br> <action application="bind_meta_app" data="3 b s execute_extension::transferencia XML public"/><br>
<action application="bridge" data="sofia/gateway/test/loginB"/><br> </condition><br> </extension><br><br> <extension name="transferencia"><br> <condition field="destination_number" expression="^transferencia$"><br>
<action application="read" data="3 3 base256/16000/sound.wav attxfer_callthis 30000 #"/><br> <action application="execute_extension" data="transferencia2"/><br>
</condition><br> </extension><br><br> <extension name="transferencia2"><br> <condition field="${attxfer_callthis}" expression="^numberC$"><br> <action application="att_xfer" data="sofia/gateway/test/loginC"/><br>
</condition><br> <condition field="${attxfer_callthis}" expression="^numberD$"><br>
<action application="att_xfer" data="sofia/gateway/test/loginD"/><br>
</condition><br>
</extension><br><br></include><br><br><br>Thank you,<br clear="all"><font color="#888888">Santiago Soares<br><br>
</font><br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>