[Freeswitch-users] Unbridge and send to queue
David Villasmil Govea
david.villasmil at gmail.com
Wed Dec 31 23:46:26 MSK 2014
Hello,
I don't think that would work, I need to launch a lua script before
transferring the B-leg.
I need to transfer it from the lua script, but
session:execute("transfer", "-bleg 9999 XML default");
Doesn't work...
On Wed, Dec 31, 2014 at 9:13 PM, Andrew <aademattia at comcast.net> wrote:
> Maybe you can set leg b transfer_after_bridge and hang up on leg a.
>
>
>
>
>
> *From:* freeswitch-users-bounces at lists.freeswitch.org [mailto:
> freeswitch-users-bounces at lists.freeswitch.org] *On Behalf Of *David
> Villasmil Govea
> *Sent:* Wednesday, December 31, 2014 2:41 PM
> *To:* FreeSWITCH Users Help
> *Subject:* Re: [Freeswitch-users] Unbridge and send to queue
>
>
>
> can anyone help me out with this?
>
>
>
> On Tue, Dec 23, 2014 at 5:48 PM, David Villasmil Govea <
> david.villasmil at gmail.com> wrote:
>
> Hello Guys,
>
> I receive a call from side A and send it out to side B.
> I need to unbridge this call once it is answered and send the B side to a
> queue to give it moh. How do I do that?
>
> I'm doing everything with lua and I've tried:
>
> on my dialplan I have:
>
> <action application="set" data="execute_on_answer=lua
> /usr/local/freeswitch/scripts/check_answered.lua"/>
>
> in check_answered-lua, after checking the call was in fact answered I do:
>
> session:execute("transfer", "-bleg 9999 XML default");
>
> and on my dialplan I have:
>
> <extension name="9999">
> <action application="log" data="INFO SENDING CALL TO QUEUE
> >>>>>>>>>>>>>>>>>>"/>
> <action application="lua"
> data="/usr/local/freeswitch/scripts/queue.lua"/>
> <action application="hangup" data="NORMAL_CLEARING"/>
> </extension>
>
> queue.lua:
>
> session:execute("sched_hangup","+50 alloted_timeout");
> session:execute("callcenter","agents_queue");
>
> session:execute("sleep",my_dur);
>
> But this doesn't seem to work at all...
>
> Can anyone give me a hand? thanks!
>
> --
> DVG
>
>
>
>
>
> --
>
> DVG
>
> --
> Imagination is more important than knowledge
> Albert Einstein
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> 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
>
--
DVG
--
Imagination is more important than knowledge
Albert Einstein
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20141231/4a0c6814/attachment.html
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list