Moving RTP relay to another FS BOX?
Hi all, i have an infrastructure with a single FS server that does RTP conditional RTP relay. My server is in Europe but now i have VoIP clients that need to use the server from South America and India. Obviously two peers coming from "South america" need to bounce all their traffic trough Europe increasing the delay. I would like to install one FS server on each continent and implement a dynamic geo-ip based logic to have two clients use the RTP relay near to them. All VoIP clients connect to a single FS server. How it's possible to install a 2nd FS (or RTPRelay or whatever) so that if the two clients are coming from a different geographical area, redirect their RTP relay to the FS near to them? I am missing how to do it with FS, i just need 1 central server for SIP signaling and multiple FS acting as RTP relay with a custom server side components that looks are the SIP client IP address and address the VoIP clients's RTP flows to a 2nd FS box, near to them. How to address VoIP client's RTP flow to another FS server? Fabio
Try bridging the call from the central SIP FS server to the regional FS server, with bypass_media=true on the central server and =false on the regional ones. C1=client 1, C2=client2, FS1=central, FS2=regional The SIP flow will be: C1 -> FS1 -> FS2 -> C2 The RTP flow will be C1 -> FS2 -> C2 It will be up to your logic on FS1 to select the correct FS2 server of course. -Steve On 30 December 2010 08:45, Fabio Pietrosanti (naif) <lists@infosecurity.ch> wrote:
Hi all,
i have an infrastructure with a single FS server that does RTP conditional RTP relay.
My server is in Europe but now i have VoIP clients that need to use the server from South America and India.
Obviously two peers coming from "South america" need to bounce all their traffic trough Europe increasing the delay.
I would like to install one FS server on each continent and implement a dynamic geo-ip based logic to have two clients use the RTP relay near to them.
All VoIP clients connect to a single FS server.
How it's possible to install a 2nd FS (or RTPRelay or whatever) so that if the two clients are coming from a different geographical area, redirect their RTP relay to the FS near to them?
I am missing how to do it with FS, i just need 1 central server for SIP signaling and multiple FS acting as RTP relay with a custom server side components that looks are the SIP client IP address and address the VoIP clients's RTP flows to a 2nd FS box, near to them.
How to address VoIP client's RTP flow to another FS server?
Fabio
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Hi Steven, if i understand correctly in your scenario "C2" is SIP registered to FS2. While i would like to have C1 and C2 both SIP registered to FS1, but if they match certain parameters (that's application logic), i want their RTP flow to goes proxed trough FS2. FS1 is in Europe. FS2 is in India. C1 and C1 are in India. C1 and C1 are connected to FS1 in Europe for SIP. I would like to have the flow as follow: SIP Flow: C1 -> FS1 -> C2 RTP flow: C1 -> FS2 -> C2 Obviously FS1 need in some way to be able to "instruct" C1 and C2 to go trough FS2, and FS2 to handle RTP relay.
From my basic feeling i would need to move to a Kamailio+RTPProxy solutions, but if FS could have the flexibility to implement such solution it would be *much better* as i am already FS based.
Also if some custom development is required, i would be happy to sponsor some bounty about it. Fabio On 30/12/10 11.43, Steven Ayre wrote:
Try bridging the call from the central SIP FS server to the regional FS server, with bypass_media=true on the central server and =false on the regional ones.
C1=client 1, C2=client2, FS1=central, FS2=regional
The SIP flow will be: C1 -> FS1 -> FS2 -> C2 The RTP flow will be C1 -> FS2 -> C2
It will be up to your logic on FS1 to select the correct FS2 server of course.
-Steve
On 30 December 2010 08:45, Fabio Pietrosanti (naif) <lists@infosecurity.ch> wrote:
Hi all,
i have an infrastructure with a single FS server that does RTP conditional RTP relay.
My server is in Europe but now i have VoIP clients that need to use the server from South America and India.
Obviously two peers coming from "South america" need to bounce all their traffic trough Europe increasing the delay.
I would like to install one FS server on each continent and implement a dynamic geo-ip based logic to have two clients use the RTP relay near to them.
All VoIP clients connect to a single FS server.
How it's possible to install a 2nd FS (or RTPRelay or whatever) so that if the two clients are coming from a different geographical area, redirect their RTP relay to the FS near to them?
I am missing how to do it with FS, i just need 1 central server for SIP signaling and multiple FS acting as RTP relay with a custom server side components that looks are the SIP client IP address and address the VoIP clients's RTP flows to a 2nd FS box, near to them.
How to address VoIP client's RTP flow to another FS server?
Fabio
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Hi all, to solve my problem of moving deterministically (based on source ip) the RTP flow to another box i was wondering whether it's possible to connect FS + MediaProxy . The typical infrastructure requirement i have (1 SIP server + multiple RTP relay) is typically done with: - 1 OpenSIPS/Kamailio + Multiple MediaProxy Well, i am wondering whether it could be done with: - 1 FreeSWITCH + Multiple Mediaproxy I read there about the mediaproxy-ng http://mediaproxy-ng.org/wiki/InstallationGuide and it has a protocol dispatcher. Does anyone have an idea on how to be able to have FS dispatching calls for RTP proxy to multiple mediaproxy? Fabio On 30/12/10 12.00, Fabio Pietrosanti (naif) wrote:
Hi Steven,
if i understand correctly in your scenario "C2" is SIP registered to FS2.
While i would like to have C1 and C2 both SIP registered to FS1, but if they match certain parameters (that's application logic), i want their RTP flow to goes proxed trough FS2.
FS1 is in Europe. FS2 is in India. C1 and C2 are in India.
C1 and C2 are connected to FS1 in Europe for SIP.
I would like to have the flow as follow: SIP Flow: C1 -> FS1 -> C2 RTP flow: C1 -> FS2 -> C2
Obviously FS1 need in some way to be able to "instruct" C1 and C2 to go trough FS2, and FS2 to handle RTP relay.
From my basic feeling i would need to move to a Kamailio+RTPProxy solutions, but if FS could have the flexibility to implement such solution it would be *much better* as i am already FS based.
Also if some custom development is required, i would be happy to sponsor some bounty about it.
Fabio
You would need to implement the Mediaproxy module for FreeSWITCH. David Ponzone Direction Technique email: david.ponzone@ipeva.fr tel: 01 74 03 18 97 gsm: 06 66 98 76 34 Service Client IPeva tel: 0811 46 26 26 www.ipeva.fr - www.ipeva-studio.com Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. IPeva décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur. Le 03/01/2011 à 11:59, Fabio Pietrosanti (naif) a écrit :
Hi all,
to solve my problem of moving deterministically (based on source ip) the RTP flow to another box i was wondering whether it's possible to connect FS + MediaProxy .
The typical infrastructure requirement i have (1 SIP server + multiple RTP relay) is typically done with: - 1 OpenSIPS/Kamailio + Multiple MediaProxy
Well, i am wondering whether it could be done with: - 1 FreeSWITCH + Multiple Mediaproxy
I read there about the mediaproxy-ng http://mediaproxy-ng.org/wiki/InstallationGuide and it has a protocol dispatcher.
Does anyone have an idea on how to be able to have FS dispatching calls for RTP proxy to multiple mediaproxy?
Fabio
On 30/12/10 12.00, Fabio Pietrosanti (naif) wrote:
Hi Steven,
if i understand correctly in your scenario "C2" is SIP registered to FS2.
While i would like to have C1 and C2 both SIP registered to FS1, but if they match certain parameters (that's application logic), i want their RTP flow to goes proxed trough FS2.
FS1 is in Europe. FS2 is in India. C1 and C2 are in India.
C1 and C2 are connected to FS1 in Europe for SIP.
I would like to have the flow as follow: SIP Flow: C1 -> FS1 -> C2 RTP flow: C1 -> FS2 -> C2
Obviously FS1 need in some way to be able to "instruct" C1 and C2 to go trough FS2, and FS2 to handle RTP relay.
From my basic feeling i would need to move to a Kamailio+RTPProxy solutions, but if FS could have the flexibility to implement such solution it would be *much better* as i am already FS based.
Also if some custom development is required, i would be happy to sponsor some bounty about it.
Fabio
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
I find no documentation on OpenSIPS to Media-Dispatcher communication protocol. All i just see is from logical point of view is that: - OpenSIPS talk to MediaDispatcher trough a UnixSocket - then Media-Dispatcher send a request to Media-Relay via TLS - Media-Relay answer to Media Dispatcher the allocated IP/UDP ports for RTP relay - Media Dispatcher provide the IP/UDP port allocated to OpenSIPS - OpenSIPS mangle SDP attribute to tell the SIP clients where to send RTP Now, i am not finding details on OpenSIPS<->MediaDispatcher protocol, but maybe it's something incredibly easy so that few lines of python could make it working. Any idea? Fabio On 03/01/11 12.12, David Ponzone wrote:
You would need to implement the Mediaproxy module for FreeSWITCH.
David Ponzone Direction Technique email: david.ponzone@ipeva.fr <mailto:david.ponzone@ipeva.fr> tel: 01 74 03 18 97 gsm: 06 66 98 76 34
Service Client IPeva tel: 0811 46 26 26 www.ipeva.fr <BLOCKED::http://www.ipeva.fr/> - www.ipeva-studio.com <BLOCKED::http://www.ipeva-studio.com/>
/Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. /*/IPeva/*/ décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur./ / /
Le 03/01/2011 à 11:59, Fabio Pietrosanti (naif) a écrit :
Hi all,
to solve my problem of moving deterministically (based on source ip) the RTP flow to another box i was wondering whether it's possible to connect FS + MediaProxy .
The typical infrastructure requirement i have (1 SIP server + multiple RTP relay) is typically done with: - 1 OpenSIPS/Kamailio + Multiple MediaProxy
Well, i am wondering whether it could be done with: - 1 FreeSWITCH + Multiple Mediaproxy
I read there about the mediaproxy-ng http://mediaproxy-ng.org/wiki/InstallationGuide and it has a protocol dispatcher.
Does anyone have an idea on how to be able to have FS dispatching calls for RTP proxy to multiple mediaproxy?
Fabio
On 30/12/10 12.00, Fabio Pietrosanti (naif) wrote:
Hi Steven,
if i understand correctly in your scenario "C2" is SIP registered to FS2.
While i would like to have C1 and C2 both SIP registered to FS1, but if they match certain parameters (that's application logic), i want their RTP flow to goes proxed trough FS2.
FS1 is in Europe. FS2 is in India. C1 and C2 are in India.
C1 and C2 are connected to FS1 in Europe for SIP.
I would like to have the flow as follow: SIP Flow: C1 -> FS1 -> C2 RTP flow: C1 -> FS2 -> C2
Obviously FS1 need in some way to be able to "instruct" C1 and C2 to go trough FS2, and FS2 to handle RTP relay.
From my basic feeling i would need to move to a Kamailio+RTPProxy solutions, but if FS could have the flexibility to implement such solution it would be *much better* as i am already FS based.
Also if some custom development is required, i would be happy to sponsor some bounty about it.
Fabio
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
If you read the mediaproxy wiki a little bit better you should see that mediaproxy is made for opensips, not freeswitch. -----Oorspronkelijk bericht----- Van: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] Namens Fabio Pietrosanti (naif) Verzonden: maandag 3 januari 2011 12:00 Aan: freeswitch-users@lists.freeswitch.org Onderwerp: Re: [Freeswitch-users] Moving RTP relay to another FS BOX? (FS+MediaProxy?) Hi all, to solve my problem of moving deterministically (based on source ip) the RTP flow to another box i was wondering whether it's possible to connect FS + MediaProxy . The typical infrastructure requirement i have (1 SIP server + multiple RTP relay) is typically done with: - 1 OpenSIPS/Kamailio + Multiple MediaProxy Well, i am wondering whether it could be done with: - 1 FreeSWITCH + Multiple Mediaproxy I read there about the mediaproxy-ng http://mediaproxy-ng.org/wiki/InstallationGuide and it has a protocol dispatcher. Does anyone have an idea on how to be able to have FS dispatching calls for RTP proxy to multiple mediaproxy? Fabio On 30/12/10 12.00, Fabio Pietrosanti (naif) wrote:
Hi Steven,
if i understand correctly in your scenario "C2" is SIP registered to FS2.
While i would like to have C1 and C2 both SIP registered to FS1, but if they match certain parameters (that's application logic), i want their RTP flow to goes proxed trough FS2.
FS1 is in Europe. FS2 is in India. C1 and C2 are in India.
C1 and C2 are connected to FS1 in Europe for SIP.
I would like to have the flow as follow: SIP Flow: C1 -> FS1 -> C2 RTP flow: C1 -> FS2 -> C2
Obviously FS1 need in some way to be able to "instruct" C1 and C2 to go trough FS2, and FS2 to handle RTP relay.
From my basic feeling i would need to move to a Kamailio+RTPProxy solutions, but if FS could have the flexibility to implement such solution it would be *much better* as i am already FS based.
Also if some custom development is required, i would be happy to sponsor some bounty about it.
Fabio
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Another possible proposal to move RTP relay processing to another FreeSWITCH could be as follow, please tell me if it sounds reasonable (it sounds like a very dirty hack). Consider that i just need to do RTP relay between 2 users (no transcoding, no advanced features) on boxes differents from the FS acting as SIP registration server. FS-UK is in Europe. FS-IN is in India. C1 and C2 are in India. C1 and C2 are connected to FS-UK in Europe for SIP. I would like to have the flow as follow: SIP Flow: C1 -> FS-UK -> C2 RTP flow: C1 -> FS-IN -> C2 A possible approach is to use the REDIRECT feature of FS. FS-UK has bypass_media=true & proxy_media=false FS-IN has bypass_media=false & proxy_media=true STEP1) C1 call C2 and FS-UK send a REDIRECT C2@FS-IN C1 FS-UK INVITE -------------------------------> <------------------------------ 100 Trying <------------------------------ 302 Moved Temporary C2@FS2 ACK -------------------------------> <action application="redirect" data="sip:C2@FS-IN"/> STEP 2) C1 call C2 on C2@FS-IN in India because of the redirect C1 FS-IN INVITE C2@FS-IN---------------------------------------------------------------------------------> <------------------------------ 100 Trying STEP 3) FS-IN make a call back to C2@FS-UK back to FS-UK Now FS-IN make a bridge for C2 back on FS-UK (where C2 is SIP registered): <action application="bridge" data="C2@FS-UK"/> FS-IN FS-UK INVITE -------------------------------> <------------------------------ 100 Trying STEP 4) FS-UK (which has bypass_media) let the C2 ring and answer the call and provide the IP address of the leg on FS-IN FS-UK C2 INVITE -------------------------------> <------------------------------ xxx ring, answer, etc 200 OK -------------------------------> For RTP it provide the IP address of FS-IN that has proxy_media=true STEP 5) Now C1 and C2 are sending their RTP flow to FS-IN in india due to it's proxy_media SDP rewriting I don't know if it was clear. To summarize:
From SIP point of view C1 -> FS-UK (redirect) -> FS-IN (bridge back to FS-UK) -> FS-UK -> C2
From RTP point of view C1 -> FS-IN (proxy_media) -> C2
I just want to move certain users to their near media relay and install one FS box for each continent so that my users will use the media-relay near to them. Does it seems feasible? Fabio On 30/12/10 12.00, Fabio Pietrosanti (naif) wrote:
Hi Steven,
if i understand correctly in your scenario "C2" is SIP registered to FS2.
While i would like to have C1 and C2 both SIP registered to FS1, but if they match certain parameters (that's application logic), i want their RTP flow to goes proxed trough FS2.
FS1 is in Europe. FS2 is in India. C1 and C2 are in India.
C1 and C2 are connected to FS1 in Europe for SIP.
I would like to have the flow as follow: SIP Flow: C1 -> FS1 -> C2 RTP flow: C1 -> FS2 -> C2
Obviously FS1 need in some way to be able to "instruct" C1 and C2 to go trough FS2, and FS2 to handle RTP relay.
From my basic feeling i would need to move to a Kamailio+RTPProxy solutions, but if FS could have the flexibility to implement such solution it would be *much better* as i am already FS based.
Also if some custom development is required, i would be happy to sponsor some bounty about it.
Fabio
participants (4)
-
David Ponzone
-
Erik Dekkers
-
Fabio Pietrosanti (naif)
-
Steven Ayre