[Freeswitch-users] fail to bridge 2 openzap channels
Anthony Minessale
anthony.minessale at gmail.com
Mon Jul 5 15:15:54 PDT 2010
transfer is a final action, the script must exit once it's been transferred.
i think you need to explain what you really want to do.
if it's just play a file use session:execute("playback", "file.wav")
On Mon, Jul 5, 2010 at 2:06 PM, Tony Tin <tony.tin at noahmedia.com.hk> wrote:
> Hi,
>
> I'm trying to bridge 2 openzap channels, one is inbound call, another is
> outbound call.
>
> Below is the Lua script which originates the outbound call in the inbound
> call dialplan.
>
> If the "transfer" line is commented out, bridge is working fine. I suspect
> it is about call legs, but I can find the proper way to set then up. Could
> anyone please help, thanks.
>
>
> -------------------------------------------------------------------------------------
>
> session_orig = freeswitch.Session("OpenZAP/2/a/98877666")
>
> while session:getState()~="CS_HANGUP" do
> os.execute("usleep 500000")
> if session_orig:answered() then
> break
> end
> end
>
> -- need to play message to called party before bridge
> -- comment out the below line, then bridge is working
> session_orig:transfer("orig_ext", "xml", "default")
>
> freeswitch.bridge(session, session_orig)
>
>
> -------------------------------------------------------------------------------------
>
> Regards,
> Tony
>
>
> _______________________________________________
> 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 <MSN%3Aanthony_minessale at hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
pstn:+19193869900
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100705/77d9a4b2/attachment.html
More information about the FreeSWITCH-users
mailing list