[Freeswitch-users] fail to bridge 2 openzap channels

Tony Tin tony.tin at noahmedia.com.hk
Mon Jul 5 19:51:17 PDT 2010


Thanks for your help.

I'm building a IVRS. I want to make the outbound call act just like a
inbound call which terminated at a specified extension, so the dialplan for
that extension will be executed, which will play message, get dtmf, data
logging and things like that.

Is there another way to connect 2 channels except bridge, so 2 callers can
talk to each other no matter it is a inbound or outboud call (example usage
- one to one chat service).

Regards,
Tony


On Tue, Jul 6, 2010 at 6:15 AM, Anthony Minessale <
anthony.minessale at gmail.com> wrote:

> 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
>
> _______________________________________________
> 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/20100706/b29f06a3/attachment.html 


More information about the FreeSWITCH-users mailing list