GithubHelp home page GithubHelp logo

SIP NAT configuration about kazoo-docker HOT 11 CLOSED

jamhed avatar jamhed commented on July 18, 2024
SIP NAT configuration

from kazoo-docker.

Comments (11)

jamhed avatar jamhed commented on July 18, 2024

Well, it seems it requires some tweaking to make it work as intended. Thanks for the report, I'll take a peek and let you know.

from kazoo-docker.

fholzhauser avatar fholzhauser commented on July 18, 2024

Thanks. I'll try to figure out those tweaks as well and keep you posted. Probably you'll beat me to it though as I'm not mastering Kamailio (yet).

from kazoo-docker.

jamhed avatar jamhed commented on July 18, 2024

@fholzhauser, please update to latest: remove all kazoo images from docker host, and run run.sh again, I've added something.

from kazoo-docker.

jamhed avatar jamhed commented on July 18, 2024

See https://github.com/jamhed/kazoo-docker#networking as brief explanation.

from kazoo-docker.

fholzhauser avatar fholzhauser commented on July 18, 2024

Thanks for the update.

I have noticed that now kamailio only starts with the run script. When trying to start it with the start script it fails with :

0(1) : <core> [core/cfg.y:3407]: yyerror_at(): parse error in config file /usr/local/kamailio/etc/kamailio/local.cfg, line 121, column 59-67: syntax error
0(1) : <core> [core/cfg.y:3407]: yyerror_at(): parse error in config file /usr/local/kamailio/etc/kamailio/local.cfg, line 121, column 59-67: 

Probably it has something to do with the EXT_IP environment not being present during normal start.

Regarding the calls, I still have disconnections after 30 sec, but it might be some other issue. I'll dig into it and see whether it is related or not.

In the mean time I experimented with simply replacing the IP:Port (with subst) in the contact headers going out in the relevant routing paths (). It actually works, but probably you had a good reason not to go that way, so I'll stick to your solution.

from kazoo-docker.

jamhed avatar jamhed commented on July 18, 2024

Regarding the calls, I still have disconnections after 30 sec

This is definitely related with sip messages not being passed either to phone, or to Kazoo's freeswitch.

What is your setup? This works on Scaleway: Docker host with no external ip.

from kazoo-docker.

jamhed avatar jamhed commented on July 18, 2024

I experimented with simply replacing the IP:Port

By the way, how do you do that? AFAIK it's not that easy in Kazoo.

from kazoo-docker.

jamhed avatar jamhed commented on July 18, 2024

I have noticed that now kamailio only starts with the run script.

You probably need to re-install docker image (e.g. remove old one with docker rmi).

from kazoo-docker.

fholzhauser avatar fholzhauser commented on July 18, 2024

Sorry for the late reply.
With the latest images, calls work fine, thanks. FYI : previously I changed the contact header in the messages sent out using subst in the relevant routing rules in default.cfg of kamailio. Since the new config of yours works, I don't do that anymore.

Regarding the start problem I guess it is caused by the EXT_IP environment being present at subsequent starts of the kamailio container after run. What fixed it for me is to change the sed line in config-local.sh to replace the whole line (not only the "listen=UDP_SIP" text) when adding the advertise bit to local.cfg.

from kazoo-docker.

jamhed avatar jamhed commented on July 18, 2024

Yep, fixed last one. I suppose we can close this now.

from kazoo-docker.

fholzhauser avatar fholzhauser commented on July 18, 2024

Indeed, thanks for the fix !

from kazoo-docker.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.