[Freeswitch-users] Media Not Heard When Bridging 2 Calls with same Gateway
Jim Burke
jim at evolutiontel.net
Sun Aug 23 21:14:15 PDT 2009
If I understand your issue correctly, it sounds to me like FS is not
set to anchor the RTP media stream. Experience suggests that most
SBC's do not like trying to loopback RTP traffic to themselves.
Check to see what IP address's are getting used in the
c=xxx.xxx.xxx.xxx for the INVITE and 200OK messages. If you see the
SBC IP address in messages on both sides of the FS box this will be
your issue.
You could try setting bypass_media=false in your dialplan.
On Sat, Aug 22, 2009 at 4:41 PM, Matthew Fong<mattdfong at gmail.com> wrote:
> So there seems to be some sort of error when bridging directly like
> originate
> {ignore_early_media=true}sofia/gateway/XXXX.com/91415992XXXX &bridge(sofia/gateway/XXXX.com/91415465XXXX)
> BUT
> if I get FS to send media to leg A, and then bridge to leg B by using a lua
> script like
> session:streamFile("/usr/local/freeswitch/sounds/en/us/callie/hh/hh-welcome.wav");
> session:execute("bridge", "sofia/gateway/epik.com/91415XXXXXXX");
> then the legs bridge together OK. This happens when trying to bridge two
> channels via the same Broadsoft SBC. Does this sound like a bug that should
> be submitted to JIRA?
> --matt
> http://www.hellohunter.com
>
> On Thu, Aug 20, 2009 at 10:21 AM, Matthew Fong <mattdfong at gmail.com> wrote:
>>
>> originate
>> {ignore_early_media=true}sofia/gateway/epik.com/914159927717 &bridge(sofia/gateway/epik.com/914154650027)
>>
>> is the string I was using from the console.
>>
>> On Thu, Aug 20, 2009 at 6:00 AM, Mathieu Rene <mrene_lists at avgs.ca> wrote:
>>>
>>> Hi
>>> How are you bridging the calls in FS (which api call or C function are
>>> you using)?
>>> Mathieu Rene
>>> Avant-Garde Solutions Inc
>>> Office: + 1 (514) 664-1044 x100
>>> Cell: +1 (514) 664-1044 x200
>>> mrene at avgs.ca
>>>
>>>
>>>
>>> On 20-Aug-09, at 3:29 AM, Matthew Fong wrote:
>>>
>>> I'm trying to get FreeSWITCH to bridge two channels together through the
>>> same external gateway, but I'm having issues hearing audio. Both legs if
>>> setup independently and forwarded to 5000 (test ivr) work fine for both
>>> inbound and outbound media, but when I try to bridge them together,
>>> everything seems fine in FreeSWITCH, but neither party can hear the other
>>> speak. I'm thinking the external gateway might be having some issues because
>>> I've been able to bridge 2 channels together through the same gateway on
>>> different providers, but thought I'd also try to seek some help here.
>>> FreeSWITCH should be handling the media for both channels, so I can't figure
>>> out why if Leg A and Leg B work independently, but not if they are bridged
>>> together. Is there a setting somewhere in FS that I'm missing?
>>> Below is a ngrep of the SIP interactions if it's useful. Thanks for the
>>> help.
>>> --matt
>>>
>>> interface: eth0 (172.24.200.0/255.255.255.0)
>>> filter: (ip or ip6) and ( port 5060 )
>>> U 2009/08/20 07:11:34.038686 216.81.56.198:5080 -> 38.98.58.148:5060
>>> INVITE sip:914159927717 at 38.98.58.148 SIP/2.0.
>>> Via: SIP/2.0/UDP 216.81.56.198:5080;rport;branch=z9hG4bK2gvHUU5aXjXZg.
>>> Max-Forwards: 70.
>>> From: "FreeSWITCH" <sip:0000000000 at 216.81.56.198>;tag=ZtFvjeFQmXvpp.
>>> To: <sip:914159927717 at 38.98.58.148>.
>>> Call-ID: 88c12fa5-07fb-122d-cc93-00e0813368fe.
>>> CSeq: 119257811 INVITE.
>>> Contact: <sip:gw+epik.com at 216.81.56.198:5080;transport=udp>.
>>> User-Agent: FreeSWITCH-mod_sofia/1.0.trunk-14417.
>>> Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE,
>>> NOTIFY, REFER, UPDATE, REGISTER, INFO.
>>> Supported: timer, precondition, path, replaces.
>>> Allow-Events: talk, refer.
>>> Content-Type: application/sdp.
>>> Content-Disposition: session.
>>> Content-Length: 293.
>>> Remote-Party-ID: "FreeSWITCH"
>>> <sip:0000000000 at 216.81.56.198>;party=calling;screen=yes;privacy=off.
>>> .
>>> v=0.
>>> o=FreeSWITCH 1250727594 1250727595 IN IP4 216.81.56.198.
>>> s=FreeSWITCH.
>>> c=IN IP4 216.81.56.198.
>>> t=0 0.
>>> m=audio 24700 RTP/AVP 0 8 3 101 13.
>>> a=rtpmap:0 PCMU/8000.
>>> a=rtpmap:8 PCMA/8000.
>>> a=rtpmap:3 GSM/8000.
>>> a=rtpmap:101 telephone-event/8000.
>>> a=fmtp:101 0-16.
>>> a=rtpmap:13 CN/8000.
>>> a=ptime:20.
>>>
>>> U 2009/08/20 07:11:34.128331 38.98.58.148:5060 -> 216.81.56.198:5080
>>> SIP/2.0 100 Trying.
>>> From: "FreeSWITCH" <sip:0000000000 at 216.81.56.198>;tag=ZtFvjeFQmXvpp.
>>> To: <sip:914159927717 at 38.98.58.148>;tag=F725.2C49.
>>> Call-ID: 88c12fa5-07fb-122d-cc93-00e0813368fe.
>>> CSeq: 119257811 INVITE.
>>> Via: SIP/2.0/UDP 216.81.56.198:5080;rport;branch=z9hG4bK2gvHUU5aXjXZg.
>>> Contact: <sip:914159927717 at 38.98.58.148:5060>.
>>> Content-Length: 0.
>>> .
>>>
>>> U 2009/08/20 07:11:34.338105 38.98.58.148:5060 -> 216.81.56.198:5080
>>> SIP/2.0 183 Session Progress.
>>> From: "FreeSWITCH" <sip:0000000000 at 216.81.56.198>;tag=ZtFvjeFQmXvpp.
>>> To: <sip:914159927717 at 38.98.58.148>;tag=F725.2C49.
>>> Call-ID: 88c12fa5-07fb-122d-cc93-00e0813368fe.
>>> CSeq: 119257811 INVITE.
>>> Via: SIP/2.0/UDP 216.81.56.198:5080;rport;branch=z9hG4bK2gvHUU5aXjXZg.
>>> Contact: <sip:914159927717 at 38.98.58.148:5060>.
>>> Allow:
>>> INVITE,BYE,INFO,PRACK,CANCEL,ACK,OPTIONS,SUBSCRIBE,NOTIFY,REGISTER,REFER,UPDATE.
>>> Content-Type: application/sdp.
>>> Content-Length: 227.
>>> .
>>> v=0.
>>> o=BroadSoft 23178 23178 IN IP4 10.10.10.11.
>>> s=M6 Call.
>>> c=IN IP4 38.98.58.148.
>>> t=0 0.
>>> m=audio 42554 RTP/AVP 0 101.
>>> a=rtpmap:101 telephone-event/8000.
>>> a=fmtp:101 0-15.
>>> a=ptime:20.
>>> a=sendrecv.
>>> a=rtcp:6461 IN IP4 10.10.24.50.
>>>
>>> U 2009/08/20 07:11:42.239312 38.98.58.148:5060 -> 216.81.56.198:5080
>>> SIP/2.0 200 OK.
>>> From: "FreeSWITCH" <sip:0000000000 at 216.81.56.198>;tag=ZtFvjeFQmXvpp.
>>> To: <sip:914159927717 at 38.98.58.148>;tag=F725.2C49.
>>> Call-ID: 88c12fa5-07fb-122d-cc93-00e0813368fe.
>>> CSeq: 119257811 INVITE.
>>> Via: SIP/2.0/UDP 216.81.56.198:5080;rport;branch=z9hG4bK2gvHUU5aXjXZg.
>>> Contact: <sip:914159927717 at 38.98.58.148:5060>.
>>> Session-Expires: 1800;refresher=uas.
>>> Allow:
>>> INVITE,BYE,INFO,PRACK,CANCEL,ACK,OPTIONS,SUBSCRIBE,NOTIFY,REGISTER,REFER,UPDATE.
>>> Supported: timer.
>>> Content-Type: application/sdp.
>>> Content-Length: 227.
>>> .
>>> v=0.
>>> o=BroadSoft 23178 23178 IN IP4 10.10.10.11.
>>> s=M6 Call.
>>> c=IN IP4 38.98.58.148.
>>> t=0 0.
>>> m=audio 42554 RTP/AVP 0 101.
>>> a=rtpmap:101 telephone-event/8000.
>>> a=fmtp:101 0-15.
>>> a=ptime:20.
>>> a=sendrecv.
>>> a=rtcp:6461 IN IP4 10.10.24.50.
>>>
>>> U 2009/08/20 07:11:42.240828 216.81.56.198:5080 -> 38.98.58.148:5060
>>> ACK sip:914159927717 at 38.98.58.148:5060 SIP/2.0.
>>> Via: SIP/2.0/UDP 216.81.56.198:5080;rport;branch=z9hG4bK3SNaXppetUKjc.
>>> Max-Forwards: 70.
>>> From: "FreeSWITCH" <sip:0000000000 at 216.81.56.198>;tag=ZtFvjeFQmXvpp.
>>> To: <sip:914159927717 at 38.98.58.148>;tag=F725.2C49.
>>> Call-ID: 88c12fa5-07fb-122d-cc93-00e0813368fe.
>>> CSeq: 119257811 ACK.
>>> Contact: <sip:gw+epik.com at 216.81.56.198:5080;transport=udp>.
>>> Content-Length: 0.
>>> .
>>>
>>> U 2009/08/20 07:11:42.245678 216.81.56.198:5080 -> 38.98.58.148:5060
>>> INVITE sip:914154650027 at 38.98.58.148 SIP/2.0.
>>> Via: SIP/2.0/UDP 216.81.56.198:5080;rport;branch=z9hG4bK42e3yH7HQ494Q.
>>> Max-Forwards: 70.
>>> From: "FreeSWITCH" <sip:0000000000 at 216.81.56.198>;tag=038mm9ZtH6j9H.
>>> To: <sip:914154650027 at 38.98.58.148>.
>>> Call-ID: 8da57c9a-07fb-122d-cc93-00e0813368fe.
>>> CSeq: 119257815 INVITE.
>>> Contact: <sip:gw+epik.com at 216.81.56.198:5080;transport=udp>.
>>> User-Agent: FreeSWITCH-mod_sofia/1.0.trunk-14417.
>>> Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE,
>>> NOTIFY, REFER, UPDATE, REGISTER, INFO.
>>> Supported: timer, precondition, path, replaces.
>>> Allow-Events: talk, refer.
>>> Content-Type: application/sdp.
>>> Content-Disposition: session.
>>> Content-Length: 293.
>>> Remote-Party-ID: "FreeSWITCH"
>>> <sip:0000000000 at 216.81.56.198>;party=calling;screen=yes;privacy=off.
>>> .
>>> v=0.
>>> o=FreeSWITCH 1250727504 1250727505 IN IP4 216.81.56.198.
>>> s=FreeSWITCH.
>>> c=IN IP4 216.81.56.198.
>>> t=0 0.
>>> m=audio 24798 RTP/AVP 0 8 3 101 13.
>>> a=rtpmap:0 PCMU/8000.
>>> a=rtpmap:8 PCMA/8000.
>>> a=rtpmap:3 GSM/8000.
>>> a=rtpmap:101 telephone-event/8000.
>>> a=fmtp:101 0-16.
>>> a=rtpmap:13 CN/8000.
>>> a=ptime:20.
>>>
>>> U 2009/08/20 07:11:42.333184 38.98.58.148:5060 -> 216.81.56.198:5080
>>> SIP/2.0 100 Trying.
>>> From: "FreeSWITCH" <sip:0000000000 at 216.81.56.198>;tag=038mm9ZtH6j9H.
>>> To: <sip:914154650027 at 38.98.58.148>;tag=F72E.2D4E.
>>> Call-ID: 8da57c9a-07fb-122d-cc93-00e0813368fe.
>>> CSeq: 119257815 INVITE.
>>> Via: SIP/2.0/UDP 216.81.56.198:5080;rport;branch=z9hG4bK42e3yH7HQ494Q.
>>> Contact: <sip:914154650027 at 38.98.58.148:5060>.
>>> Content-Length: 0.
>>> .
>>>
>>> U 2009/08/20 07:11:42.514501 38.98.58.148:5060 -> 216.81.56.198:5080
>>> SIP/2.0 183 Session Progress.
>>> From: "FreeSWITCH" <sip:0000000000 at 216.81.56.198>;tag=038mm9ZtH6j9H.
>>> To: <sip:914154650027 at 38.98.58.148>;tag=F72E.2D4E.
>>> Call-ID: 8da57c9a-07fb-122d-cc93-00e0813368fe.
>>> CSeq: 119257815 INVITE.
>>> Via: SIP/2.0/UDP 216.81.56.198:5080;rport;branch=z9hG4bK42e3yH7HQ494Q.
>>> Contact: <sip:914154650027 at 38.98.58.148:5060>.
>>> Allow:
>>> INVITE,BYE,INFO,PRACK,CANCEL,ACK,OPTIONS,SUBSCRIBE,NOTIFY,REGISTER,REFER,UPDATE.
>>> Content-Type: application/sdp.
>>> Content-Length: 225.
>>> .
>>> v=0.
>>> o=BroadSoft 2035 2035 IN IP4 10.10.10.11.
>>> s=M6 Call.
>>> c=IN IP4 38.98.58.148.
>>> t=0 0.
>>> m=audio 46520 RTP/AVP 0 101.
>>> a=rtpmap:101 telephone-event/8000.
>>> a=fmtp:101 0-15.
>>> a=ptime:20.
>>> a=sendrecv.
>>> a=rtcp:6451 IN IP4 10.10.24.50.
>>>
>>> U 2009/08/20 07:11:46.190607 38.98.58.148:5060 -> 216.81.56.198:5080
>>> SIP/2.0 200 OK.
>>> From: "FreeSWITCH" <sip:0000000000 at 216.81.56.198>;tag=038mm9ZtH6j9H.
>>> To: <sip:914154650027 at 38.98.58.148>;tag=F72E.2D4E.
>>> Call-ID: 8da57c9a-07fb-122d-cc93-00e0813368fe.
>>> CSeq: 119257815 INVITE.
>>> Via: SIP/2.0/UDP 216.81.56.198:5080;rport;branch=z9hG4bK42e3yH7HQ494Q.
>>> Contact: <sip:914154650027 at 38.98.58.148:5060>.
>>> Session-Expires: 1800;refresher=uas.
>>> Allow:
>>> INVITE,BYE,INFO,PRACK,CANCEL,ACK,OPTIONS,SUBSCRIBE,NOTIFY,REGISTER,REFER,UPDATE.
>>> Supported: timer.
>>> Content-Type: application/sdp.
>>> Content-Length: 225.
>>> .
>>> v=0.
>>> o=BroadSoft 2035 2035 IN IP4 10.10.10.11.
>>> s=M6 Call.
>>> c=IN IP4 38.98.58.148.
>>> t=0 0.
>>> m=audio 46520 RTP/AVP 0 101.
>>> a=rtpmap:101 telephone-event/8000.
>>> a=fmtp:101 0-15.
>>> a=ptime:20.
>>> a=sendrecv.
>>> a=rtcp:6451 IN IP4 10.10.24.50.
>>>
>>> U 2009/08/20 07:11:46.191161 216.81.56.198:5080 -> 38.98.58.148:5060
>>> ACK sip:914154650027 at 38.98.58.148:5060 SIP/2.0.
>>> Via: SIP/2.0/UDP 216.81.56.198:5080;rport;branch=z9hG4bK5B8U0crNmD0QK.
>>> Max-Forwards: 70.
>>> From: "FreeSWITCH" <sip:0000000000 at 216.81.56.198>;tag=038mm9ZtH6j9H.
>>> To: <sip:914154650027 at 38.98.58.148>;tag=F72E.2D4E.
>>> Call-ID: 8da57c9a-07fb-122d-cc93-00e0813368fe.
>>> CSeq: 119257815 ACK.
>>> Contact: <sip:gw+epik.com at 216.81.56.198:5080;transport=udp>.
>>> Content-Length: 0.
>>> .
>>>
>>> U 2009/08/20 07:11:55.139274 38.98.58.148:5060 -> 216.81.56.198:5080
>>> BYE sip:gw+epik.com at 216.81.56.198:5080 SIP/2.0.
>>> From: <sip:914159927717 at 38.98.58.148>;tag=F725.2C49.
>>> To: "FreeSWITCH" <sip:0000000000 at 216.81.56.198>;tag=ZtFvjeFQmXvpp.
>>> Call-ID: 88c12fa5-07fb-122d-cc93-00e0813368fe.
>>> CSeq: 4817 BYE.
>>> Max-Forwards: 70.
>>> Via: SIP/2.0/UDP
>>> 38.98.58.148:5060;branch=z9hG4bK4A8C.F725.2C494819.943A6226.00000BC3.
>>> Via: SIP/2.0/UDP 10.10.10.11:5060;branch=z9hG4bK4A8C.F725.2C494819.
>>> Contact: <sip:914159927717 at 38.98.58.148:5060>.
>>> Allow:
>>> INVITE,BYE,INFO,PRACK,CANCEL,ACK,OPTIONS,SUBSCRIBE,NOTIFY,REGISTER,REFER,UPDATE.
>>> Content-Length: 0.
>>> .
>>>
>>> U 2009/08/20 07:11:55.140390 216.81.56.198:5080 -> 38.98.58.148:5060
>>> SIP/2.0 200 OK.
>>> Via: SIP/2.0/UDP
>>> 38.98.58.148:5060;branch=z9hG4bK4A8C.F725.2C494819.943A6226.00000BC3.
>>> Via: SIP/2.0/UDP 10.10.10.11:5060;branch=z9hG4bK4A8C.F725.2C494819.
>>> From: <sip:914159927717 at 38.98.58.148>;tag=F725.2C49.
>>> To: "FreeSWITCH" <sip:0000000000 at 216.81.56.198>;tag=ZtFvjeFQmXvpp.
>>> Call-ID: 88c12fa5-07fb-122d-cc93-00e0813368fe.
>>> CSeq: 4817 BYE.
>>> User-Agent: FreeSWITCH-mod_sofia/1.0.trunk-14417.
>>> Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE,
>>> NOTIFY, REFER, UPDATE, REGISTER, INFO.
>>> Supported: timer, precondition, path, replaces.
>>> Content-Length: 0.
>>> .
>>>
>>> U 2009/08/20 07:11:55.145438 216.81.56.198:5080 -> 38.98.58.148:5060
>>> BYE sip:914154650027 at 38.98.58.148:5060 SIP/2.0.
>>> Via: SIP/2.0/UDP 216.81.56.198:5080;rport;branch=z9hG4bK6m1m278rHppaF.
>>> Max-Forwards: 70.
>>> From: "FreeSWITCH" <sip:0000000000 at 216.81.56.198>;tag=038mm9ZtH6j9H.
>>> To: <sip:914154650027 at 38.98.58.148>;tag=F72E.2D4E.
>>> Call-ID: 8da57c9a-07fb-122d-cc93-00e0813368fe.
>>> CSeq: 119257816 BYE.
>>> Contact: <sip:gw+epik.com at 216.81.56.198:5080;transport=udp>.
>>> User-Agent: FreeSWITCH-mod_sofia/1.0.trunk-14417.
>>> Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE,
>>> NOTIFY, REFER, UPDATE, REGISTER, INFO.
>>> Supported: timer, precondition, path, replaces.
>>> Reason: Q.850;cause=16;text="NORMAL_CLEARING".
>>> Content-Length: 0.
>>> .
>>>
>>> U 2009/08/20 07:11:55.232064 38.98.58.148:5060 -> 216.81.56.198:5080
>>> SIP/2.0 200 OK.
>>> From: "FreeSWITCH" <sip:0000000000 at 216.81.56.198>;tag=038mm9ZtH6j9H.
>>> To: <sip:914154650027 at 38.98.58.148>;tag=F72E.2D4E.
>>> Call-ID: 8da57c9a-07fb-122d-cc93-00e0813368fe.
>>> CSeq: 119257816 BYE.
>>> Via: SIP/2.0/UDP 216.81.56.198:5080;rport;branch=z9hG4bK6m1m278rHppaF.
>>> Contact: <sip:914154650027 at 38.98.58.148:5060>.
>>> Allow:
>>> INVITE,BYE,INFO,PRACK,CANCEL,ACK,OPTIONS,SUBSCRIBE,NOTIFY,REGISTER,REFER,UPDATE.
>>> Content-Length: 0.
>>> .
>>> _______________________________________________
>>> 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
>>>
>>>
>>> _______________________________________________
>>> 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
>>>
>>
>
>
> _______________________________________________
> 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
>
>
--
Jim Burke
Director Evolutiontel.
http://www.evolutiontel.net
More information about the FreeSWITCH-users
mailing list