Kamailio as a pass-through proxy

In the scope of the xlab1 project, a Kamailio server is built to work as a pass-through SIP proxy: it forwards all SIP messages, including REGISTER, and also passes all RTP traffic through Rtpproxy. This allows to use only a minimal set of public IP addresses, while having unlimited room for back-end servers.

I placed relevant files on Github for public use:


, , ,

  1. #1 by Kevin Farrell-Pelletier on March 8, 2016 - 7:48 pm


    Is there any way to get in contact with you? I am attempting a similar setup and would appreciate any sort of guidance or help as I am stuck at the moment.

    Thank you for your time.


  2. #3 by El Ray on October 7, 2016 - 10:17 pm

    Can this be used for the following NAT traversal scenario?

    sip client on internet — sip proxy server on internet (kamailio sipfe?) — dynamicDNS/dynamic IP:NAT — asterisk server

    where the asterisk server is also connected to an ITSP sip trunk.

    • #4 by txlab on October 7, 2016 - 10:53 pm

      I think it’s possible, but you need to check if your Asterisk supports the Path headers. For quite a long time, they were not supported, and there were add-on patches for it. Probably it made into the main distro. FreeSWITCH supports Path headers out of the box.

    • #5 by txlab on October 7, 2016 - 10:54 pm

      But I would install FreeSWITCH as a gateway instead of kamailio.

  3. #6 by El Ray on October 20, 2016 - 1:45 am

    Thanks…will look into FreeSWITCH.

  4. #7 by Matt on December 15, 2016 - 5:14 am

    Hello, I just had a question and thought maybe you could answer it. I run 3CX servers on the internet, no NAT. They run a public IP address. The users have their phones setup to connect to the phone system using STUN, behind a router. Sometimes due to their network setup, their phones become unregistered. Either I can restart the phone system or they can restart their phone and it will work fine for a while. When everything is connected, it works great, I just need to stop the phones from dropping registration from NAT issues. Should I run a separate gateway, SBC, proxy or registration server to keep the phones from dropping? I would want to run it on the internet, not the customer premise. If so, what vendor? FreeSWITCH, Kamailio or another? Thank you for all your help!

  5. #8 by Managed Services Provider on March 3, 2018 - 7:14 am

    With havin so much content do you ever run into any issues of plagorism or copyright violation? My blog has
    a lot of unique content I’ve either authored myself or outsourced but it looks like a lot of it is popping it up
    all over the web without my authorization. Do you know any ways to help reduce content from being stolen? I’d genuinely appreciate it.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: