[OpenSIPS-Users] media proxy - B2BUA(signaling only)
Richard Revels
rrevels at bandwidth.com
Thu Jan 21 15:25:45 CET 2010
I'm having a problem that I think is the same as this discussion. When a call from a natted user comes in to my opensips proxy, my config does auth and then immediately fires up the nat ping and media proxy ( engage-mediaproxy() ) to provide far end nat traversal. Now I'm trying to add top hiding from b2bua and when the INVITE comes from b2bua back to opensips, the sdp has values from the original invite rather than the mediaproxy IP and port.
I suspect that engaging the media proxy on the way out of the proxy rather than on the inbound side will resolve this, although I haven't tried that yet. However, this doesn't seem like expected behavior from the b2bua so I thought I would chime in here.
Richard
<sidenote>Iñaki, making new friends i see. : > </sidenote>
On Jan 20, 2010, at 3:37 PM, Julien Chavanton wrote:
>
> Hi Bogdan,
> I have found this logic that is working (tested), I think it will not create problem as it is not possible for a new INVITE to already have the media-proxy IP if is not already passing trought the proxy once.
>
>
>
> #####---> Force media proxy
> if(is_present_hf("Media-Proxy")){
> xlog("L_NOTICE", "***MEDIA PROXY FOUND [on another call leg]\n***");
> }
> else{
> if(search_body("c=IN IP4 1.1.1.1") && method == "INVITE"){
> #####---> Tag the call, not to engage media proxy
> append_hf("Media-Proxy: engaged\r\n");
> }
> else{
> $avp(s:media_relay) = "1.1.1.1";
> use_media_proxy();
> }
> }
>
>
> ________________________________
>
> From: users-bounces at lists.opensips.org on behalf of Bogdan-Andrei Iancu
> Sent: Wed 20/01/2010 5:58 PM
> To: OpenSIPS users mailling list
> Subject: Re: [OpenSIPS-Users] media proxy - B2BUA(signaling only)
>
>
>
> Hi Julien,
>
> Just a wild guess - maybe the mediaproxy does not work as you may invoke
> it (request and reply) for different calls (for request on UA_A call and
> for reply on UA_B calls) - afaik, both mediaproxy and rtpproxy use the
> callid in order to bridge the request and reply SDP ports....But because
> of B2BUA, you actually have 2 calls.
>
> So, be sure you do both media setup steps on the same call (only on one
> side of the B2BUA).
>
> Regards,
> Bogdan
>
> Julien Chavanton wrote:
>> Humm, this does not work, as when the "200 OK" comes back from UA_B
>> there is a need to set media proxy and a second session is set on the
>> media proxy.
>> Any suggestion on how to handle this senario ?
>>
>>
>> ------------------------------------------------------------------------
>> *From:* users-bounces at lists.opensips.org on behalf of Julien Chavanton
>> *Sent:* Tue 19/01/2010 8:55 PM
>> *To:* OpenSIPS users mailling list; Users at lists.opensips.org
>> *Subject:* Re: [OpenSIPS-Users] media proxy - B2BUA(signaling only)
>>
>>
>> I found what was going on more in details, when the second call comes
>> in the RTP port is set as the correct one from the first call,
>> however, I issue another use_media_proxy() and a new port is set, I
>> guess I could ignore the use media proxy this time by validating if
>> the IP of the media proxy is already in SDP "m=audio x.x.x.x", I will
>> try this
>>
>> Opensip_A --invite--> B2B_UA
>> m=audio 52542 RTP/AVP 18 8 0
>>
>> B2B_UA --invite--> Opensip_A
>> m=audio 52542 RTP/AVP 18 8 0
>>
>> (use media proxy)
>>
>> Opensip_A --invite--> UA_B
>> m=audio 50506 RTP/AVP 18 8 0
>>
>>
>> ------------------------------------------------------------------------
>> *From:* users-bounces at lists.opensips.org on behalf of Julien Chavanton
>> *Sent:* Tue 19/01/2010 6:43 PM
>> *To:* Users at lists.opensips.org
>> *Subject:* [OpenSIPS-Users] media proxy - B2BUA(signaling only)
>>
>> Hi,
>>
>> I have this senario :
>>
>> UA_A --> Opensip_A --> SIP_B2BUA(signaling only) --> Opensip_A --> UA_B
>>
>> this result is 2 calls(different callid) on Opensip_A however UA_A and
>> UA_B are connecting the the MediaProxy on 2 differents calls and the
>> audio is not bridged between them.
>>
>> It there a way the make the media proxy aware about the fact that the
>> 2 calls should be bridged ?
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>
>
> --
> Bogdan-Andrei Iancu
> www.voice-system.ro
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
> <winmail.dat>_______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
More information about the Users
mailing list