[Freeswitch-users] Bypass media succeeds from extension to gateway but fails from extension to extension

Phil Quesinberry philq at qsystemsengineering.com
Thu May 10 18:38:22 MSD 2012

Thanks Ken.  I'm still learning here, so if that's the case then help me to
understand why FS properly sends the external address when that same
extension makes a call out through a gateway instead of to another
extension.  Same settings, same originating extension.

I did try enabling ndlb-connectile-dysfunction to rewrite the contact IP on
those calls but to no avail.


- Phil


Ken Rice 
Tue May 8 11:38:48 MSD 2012 

This is not a bug in FreeSWITCH...
Bypass Media is a special mode to allow us to act as a psuedo proxy.

Other then possibly filtering some codecs the rest of the SDPs are simply
copied across the bridge. That means if your sip devices are sending RFC1918
IPs in their SDPs then FreeSWITCH will forward an RFC1918 SDP. Why is that?
Because FreeSWITCH has no way to know where the media is actually coming
from since FreeSWITCH is not in the media path.


From: Phil Quesinberry 
Sent: Monday, May 07, 2012 11:54 AM
To: 'freeswitch-users at lists.freeswitch.org'
Subject: Bypass media succeeds from extension to gateway but fails from
extension to extension

I'm not sure if this is a bug or just a NAT-related configurational problem.
If it's truly a bug, let me know and I'll be happy to file a Jira.

I'm trying to get bypass media to work with extension to extension calls.
Both endpoint extensions are behind NAT in two different locations.  This
looks like a possible bug because FS sends the internal IP address of one of
the endpoints to the other for media, but when making a call from the same
extension to an external gateway for PSTN termination, it sends the phone's
external IP address as it should, and the call succeeds.

Everything works fine, of course, when "proxy media" is used.

The SIP traffic for the failed call is here, look for the word "WRONG!" to
see the incorrect address being passed in the SDP:


Phil Quesinberry
Q Systems Engineering, Inc.
Electronic Controls and Embedded Systems Development
(410) 969-8002

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120510/12b9900e/attachment-0001.html 

Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list