[SR-Users] RTPproxy and kamailio

Pavel Segeč Pavel.Segec at fri.uniza.sk
Tue Apr 24 18:54:29 CEST 2012


Hi,

 

Be precise, in a case if you like receive a call from public internet, a stun server have to be placed somewhere (on a server) with public IP address (physically it should be the same server where kamailio is running). 192.168.10.1 is kind of private IP address. Configuration of stun server (legacy one) available for debian requires two public IP addresses and two preconfigured ports. 

 

# Defaults for stun initscript

# sourced by /etc/init.d/stun

# installed at /etc/default/stun by the maintainer scripts

 

#

# This is a POSIX shell fragment

#

 

#uncommment the next line to allow the init.d script to start the stun daemon

START_DAEMON=true

 

# Additional options that are passed to the Daemon.

DAEMON_OPTS=""

 

PRIMARY_IP="158.193.152.1"

SECONDARY_IP="158.193.152.2"

PRIMARY_PORT=3478

SECONDARY_PORT=3479

 

# whom the daemons should run as

DAEMON_USER=nobody

 

Configuration of SIP Server is not required, but the configuration of SIP clients is. 

STUN help a SIP UA to know a public IP address assigned by the process of NAT-ing, which is then offered through SIP signalling inside ot the SDP message. Stun does not work for all flavours of NAT devices, for example for symmetric one, therefore TURN specification was specified (till now there is only one open source package available – reStund, configured as described in http://nil.uniza.sk/sip/installing-and-configuring-restund-stunturn-server ), or you may use a solution of media relaying, for example using RTPproxy, but this requires configuration of Kamailio server, but it is straightforward as it is preconfigured but commented out. Described here:

 

http://nil.uniza.sk/sip/nat-fw/configuring-nat-traversal-using-kamailio-31-and-rtpproxy-server

for 3.2 http://nil.uniza.sk/sip/kamailio/rtp-proxy-kamailio-32-configuration-debian-squeeze

 

palo73

 

 

> -----Original Message-----

> From: sr-users-bounces at lists.sip-router.org [mailto:sr-users-

> bounces at lists.sip-router.org] On Behalf Of Ryan Gholam

> Sent: Tuesday, April 24, 2012 10:32 AM

> To: SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users

> Mailing List

> Subject: Re: [SR-Users] RTPproxy and kamailio

> 

> So let me get this straight , so if i have a client behind a NAT , the client

> should be able to connect to the stun server ( which has the real ip for

> example : 192.168.10.1  )  , and by default i should be able to make the stun

> server connect to the kamailio (which also have a real ip for example :

> 192.168.10.2 ) .

> 

> 

> Thank you

> 

> 

> 

> 

> On 4/24/12, Pavel Segeč < <mailto:Pavel.Segec at fri.uniza.sk> Pavel.Segec at fri.uniza.sk> wrote:

> > HI,

> >

> > stun is working completely out of kamailio, it deal only witch SIP clients.

> > Older fashioned stun server is included for example inside of regular

> > linux repository, for example for debian

> >

> > palo73

> >

> >> -----Original Message-----

> >> From:  <mailto:sr-users-bounces at lists.sip-router.org> sr-users-bounces at lists.sip-router.org [mailto:sr-users-

> >>  <mailto:bounces at lists.sip-router.org> bounces at lists.sip-router.org] On Behalf Of Ryan Gholam

> >> Sent: Tuesday, April 24, 2012 9:02 AM

> >> To: SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) -

> >> Users Mailing List

> >> Subject: Re: [SR-Users] RTPproxy and kamailio

> >>

> >> Thank you it worked well enough , but do you have an idea if there

> >> any configuration for Stun server ? , or i just install stun server

> >> and link it up to kamailio  ?

> >>

> >> On 4/23/12, Jan Klepal < <mailto:jan at klepal.cz> jan at klepal.cz> wrote:

> >> > Hello Ryan,

> >> >

> >> > kamailio default config is already prepared for rtpproxy. Do

> >> > exactly what is noted in kamailio.cfg :-)

> >> >

> >> > - download and install rtpproxy from  <http://www.rtpproxy.org> http://www.rtpproxy.org

> >> > - start rtpproxy: rtpproxy -l your.public.ip.address -s

> >> > udp:127.0.0.1:7722

> >> > - start kamailio: kamailio -A WITH_NAT

> >> >

> >> > Function which controls rtpproxy is rtpproxy_manage(), documented

> >> here:

> >> >  <http://kamailio.org/docs/modules/3.2.x/modules/rtpproxy.html> http://kamailio.org/docs/modules/3.2.x/modules/rtpproxy.html

> >> >

> >> > Check flags you can pass to rtpproxy_manage(), especially o and c.

> >> >

> >> > Cheers,

> >> > Jan

> >> >

> >> > On Monday 23 of April 2012 11:35:15 Ryan Gholam wrote:

> >> >> I would appreciate if someone can guide me through the setup to

> >> >> configure Rtpproxy with kamailio , and what changes should be made

> >> >> in the kamailio.cfg file .

> >> >

> >> >

> >> > _______________________________________________

> >> > SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing

> >> > list  <mailto:sr-users at lists.sip-router.org> sr-users at lists.sip-router.org

> >> >  <http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

> >> >

> >>

> >> _______________________________________________

> >> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing

> >> list  <mailto:sr-users at lists.sip-router.org> sr-users at lists.sip-router.org  <http://lists.sip-router.org/cgi-> http://lists.sip-router.org/cgi-

> >> bin/mailman/listinfo/sr-users

> >

> >

> > _______________________________________________

> > SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing

> > list  <mailto:sr-users at lists.sip-router.org> sr-users at lists.sip-router.org

> >  <http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

> >

> 

> _______________________________________________

> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list  <mailto:sr-users at lists.sip-router.org> sr-

 <mailto:sr-users at lists.sip-router.org> > users at lists.sip-router.org  <http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users> http://lists.sip-router.org/cgi-

 <http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users> > bin/mailman/listinfo/sr-users

> 

> 

> __________ Informacia od ESET NOD32 Antivirus, verzia databazy 7082 (20120424)

> __________

> 

> Tuto spravu preveril ESET NOD32 Antivirus.

> 

>  <http://www.eset.sk> http://www.eset.sk

> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20120424/bdf312c9/attachment-0001.htm>


More information about the sr-users mailing list