[Freeswitch-users] Second transfer

Anthony Minessale anthony.minessale at gmail.com
Fri Feb 25 02:11:34 MSK 2011


add the 1 flag to the flags
ction application="bind_meta_app" data="3 b s1 log::INFO> Transfer"/>

this says it can only work once then detaches itself.



On Thu, Feb 24, 2011 at 12:22 PM, Santiago Soares
<santiagosoares at gmail.com> wrote:
> Thanks for your answer, but it doesn't work.
> I tried to assign *3 to log, like this:
>
>    <extension name="transferencia2">
>       <condition field="${attxfer_callthis}" expression="^numberC$">
>          <action application="bind_meta_app" data="3 b s log::INFO
> Transfer"/>
>          <action application="att_xfer" data="sofia/gateway/test/loginC"/>
>       </condition>
>    </extension>
> But *3 still calls the transferencia extension.
> Any ideas?
>
> Thank you very much!
>
> Santiago Soares
> Fone: (41) 8488-0537
>
>
> On Wed, Feb 23, 2011 at 8:20 PM, Michael Collins <msc at freeswitch.org> wrote:
>>
>> 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
>>>
>>
>>
>> _______________________________________________
>> 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
>>
>
>
> _______________________________________________
> 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
>
>



-- 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_minessale at hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org
googletalk:conf+888 at conference.freeswitch.org
pstn:+19193869900



More information about the FreeSWITCH-users mailing list