[Freeswitch-users] Second transfer
Michael Collins
msc at freeswitch.org
Thu Feb 24 02:20:17 MSK 2011
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. :)
-MC
On Wed, Feb 23, 2011 at 10:01 AM, Santiago Soares
<santiagosoares at gmail.com>wrote:
> 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
>
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110223/e9a0a88f/attachment.html
More information about the FreeSWITCH-users
mailing list