[Freeswitch-users] Problem bridging 2 calls with bypass_media=true

Pete Kelly pkelly at gmail.com
Wed Oct 6 02:18:11 PDT 2010


I am having some problems bridging 2 calls and bypassing the media.

I am using a lua script executed from the command line to phone out to the
first device (leg A), then on answer bridge a call to a second device (leg

If I set the bypass_media=true, then freeswitch immediately sends out BYEs
after the reINVITEs have happened.

If I leave bypass_media unset, everything works fine except the media is

The lua script I am using is a very simple one and looks like this:

obSession = freeswitch.Session("sofia/lpmedia/91979197 at")
obSession:setVariable('bypass_media', 'true');

if obSession:ready() then
    -- Do something good here

    obSession:execute("bridge", "sofia/lpmedia/2000 at")

I have tried variations on this including, putting [bypass_media=true]  on
leg A, and using the [bypass_media_after_bridge=true] on leg B

The logs say this:
2010-10-06 10:10:05.847278 [NOTICE] sofia.c:5085 Channel [sofia/lpmedia/
2000 at] has been answered
2010-10-06 10:10:06.650155 [NOTICE] switch_cpp.cpp:976 Hangup sofia/lpmedia/
2010-10-06 10:10:06.650155 [NOTICE] switch_ivr_bridge.c:936 Hangup
sofia/lpmedia/2000 at [CS_HIBERNATE] [NORMAL_CLEARING]
2010-10-06 10:10:06.651420 [NOTICE] switch_core_session.c:1228 Session 27
(sofia/lpmedia/91979197 at Ended
2010-10-06 10:10:06.651420 [NOTICE] switch_core_session.c:1230 Close Channel
sofia/lpmedia/91979197 at [CS_DESTROY]
freeswitch at pete-desktop> 2010-10-06 10:10:06.651420 [NOTICE]
switch_core_session.c:1228 Session 28 (sofia/lpmedia/2000 at
2010-10-06 10:10:06.651420 [NOTICE] switch_core_session.c:1230 Close Channel
sofia/lpmedia/2000 at [CS_DESTROY]

Does anyone have any ideas as to why freeswitch may be ending the calls?

I am using the latest git checkout - the behaviour was slightly different
with the 1.06 package. The call would setup but the reINVITEs did not happen
as they should.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20101006/3ed09c9c/attachment.html 

More information about the FreeSWITCH-users mailing list