Re: [OpenSIPS-Users] media proxy - B2BUA(signaling only)

2010-01-21 Thread Julien Chavanton
Hi Richard, the solution I am using is working, but the header was useless, the 
only problem is that a second media_proxy session is still opened, but this is 
not an issue 
 
 
 #---> Force media proxy
if(search_body("c=IN IP4 1.1.1.1") && method == "INVITE"){
   xlog("L_NOTICE", "***MEDIA PROXY FOUND [on another call 
leg]\n***");
}
else{
$avp(s:media_relay) = "1.1.1.1";
use_media_proxy();
}




From: users-boun...@lists.opensips.org on behalf of Richard Revels
Sent: Thu 21/01/2010 2:25 PM
To: OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] media proxy - B2BUA(signaling only)



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

Iñaki, making new friends i see. : > 


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-boun...@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 portsBut 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-boun...@lists.opensips.org on behalf of Julien Chavanton
>> *Sent:* Tue 19/01/2010 8:55 PM
>> *To:* OpenSIPS users mailling list; Users@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-boun...@lists.opensips.org on behalf of Julien Chavanton
>> *Sent:* Tue 19/01/2010 6:43 PM
>> *To:* Users@lists.opensips.org
>> *Subject:* [OpenSIPS-Users] media proxy - B2BUA(signaling only)
>>
>

Re: [OpenSIPS-Users] media proxy - B2BUA(signaling only)

2010-01-21 Thread Richard Revels
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

Iñaki, making new friends i see. : > 
 

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-boun...@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 portsBut 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-boun...@lists.opensips.org on behalf of Julien Chavanton
>> *Sent:* Tue 19/01/2010 8:55 PM
>> *To:* OpenSIPS users mailling list; Users@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-boun...@lists.opensips.org on behalf of Julien Chavanton
>> *Sent:* Tue 19/01/2010 6:43 PM
>> *To:* Users@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@lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>> 
> 
> 
> --
> Bogdan-Andrei Iancu
> www.voice-system.ro
> 
> 
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> 
> 
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] media proxy - B2BUA(signaling only)

2010-01-20 Thread Julien Chavanton
 
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-boun...@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 portsBut 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-boun...@lists.opensips.org on behalf of Julien Chavanton
> *Sent:* Tue 19/01/2010 8:55 PM
> *To:* OpenSIPS users mailling list; Users@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-boun...@lists.opensips.org on behalf of Julien Chavanton
> *Sent:* Tue 19/01/2010 6:43 PM
> *To:* Users@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@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>  


--
Bogdan-Andrei Iancu
www.voice-system.ro


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


<>___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] media proxy - B2BUA(signaling only)

2010-01-20 Thread Bogdan-Andrei Iancu
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 portsBut 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-boun...@lists.opensips.org on behalf of Julien Chavanton
> *Sent:* Tue 19/01/2010 8:55 PM
> *To:* OpenSIPS users mailling list; Users@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-boun...@lists.opensips.org on behalf of Julien Chavanton
> *Sent:* Tue 19/01/2010 6:43 PM
> *To:* Users@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@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>   


-- 
Bogdan-Andrei Iancu
www.voice-system.ro


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] media proxy - B2BUA(signaling only)

2010-01-19 Thread Julien Chavanton
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-boun...@lists.opensips.org on behalf of Julien Chavanton
Sent: Tue 19/01/2010 8:55 PM
To: OpenSIPS users mailling list; Users@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-boun...@lists.opensips.org on behalf of Julien Chavanton
Sent: Tue 19/01/2010 6:43 PM
To: Users@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@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] media proxy - B2BUA(signaling only)

2010-01-19 Thread Julien Chavanton
 
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-boun...@lists.opensips.org on behalf of Julien Chavanton
Sent: Tue 19/01/2010 6:43 PM
To: Users@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@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] media proxy - B2BUA(signaling only)

2010-01-19 Thread Julien Chavanton
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@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users