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
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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
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@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@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
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@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@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@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@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@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@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@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
On Thu, Feb 24, 2011 at 3:11 PM, Anthony Minessale < anthony.minessale@gmail.com> wrote:
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.
Awesome. The I'll get this properly wikified. -MC
On Thu, Feb 24, 2011 at 6:58 PM, Michael Collins <msc@freeswitch.org> wrote:
On Thu, Feb 24, 2011 at 3:11 PM, Anthony Minessale < anthony.minessale@gmail.com> wrote:
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.
Awesome. The I'll get this properly wikified. -MC
Wiki has been updated to reflect the proper flags that can be set. Also, I
happened to stumble across "unbind_meta_app" which I'm assuming could also be used. -MC P.S. - The i flag says to execute inline... what exactly does that do?
The 'i' makes it execute the app right there on the spot vs queuing it to be executed async by the session's thread in a similar way to how ESL queues an app. On Thu, Feb 24, 2011 at 9:07 PM, Michael Collins <msc@freeswitch.org> wrote:
On Thu, Feb 24, 2011 at 6:58 PM, Michael Collins <msc@freeswitch.org> wrote:
On Thu, Feb 24, 2011 at 3:11 PM, Anthony Minessale <anthony.minessale@gmail.com> wrote:
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.
Awesome. The I'll get this properly wikified. -MC
Wiki has been updated to reflect the proper flags that can be set. Also, I happened to stumble across "unbind_meta_app" which I'm assuming could also be used. -MC P.S. - The i flag says to execute inline... what exactly does that do?
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@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@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
It worked! Thank you very much! Santiago Soares Fone: (41) 8488-0537 On Fri, Feb 25, 2011 at 2:02 PM, Anthony Minessale < anthony.minessale@gmail.com> wrote:
The 'i' makes it execute the app right there on the spot vs queuing it to be executed async by the session's thread in a similar way to how ESL queues an app.
On Thu, Feb 24, 2011 at 9:07 PM, Michael Collins <msc@freeswitch.org> wrote:
On Thu, Feb 24, 2011 at 6:58 PM, Michael Collins <msc@freeswitch.org>
wrote:
On Thu, Feb 24, 2011 at 3:11 PM, Anthony Minessale <anthony.minessale@gmail.com> wrote:
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.
Awesome. The I'll get this properly wikified. -MC
Wiki has been updated to reflect the proper flags that can be set. Also, I happened to stumble across "unbind_meta_app" which I'm assuming could also be used. -MC P.S. - The i flag says to execute inline... what exactly does that do?
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@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@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (3)
-
Anthony Minessale
-
Michael Collins
-
Santiago Soares