[sr-dev] [kamailio/kamailio] Misdirected packets with NAT and topos loaded (#1005)

dryvoip notifications at github.com
Wed Mar 1 07:22:21 CET 2017


Steps to reproduce:

1. Start with the kamailio.cfg that ships in kamailio-4.4.5_src.tar.gz
2. In my environment, I used MySQL and configured DBURL accordingly
3. I set up alias= and listen= lines as applicable, and configured rtpproxy.
4. I added these defines:
```
#!define WITH_MYSQL
#!define WITH_AUTH
#!define WITH_USRLOCDB
#!define WITH_BLOCK3XX
#!define WITH_NAT
```
5. Create a user in your auth database so that you can register a SIP device of some kind.
6. Start Kamailio
7. Configure a SIP device that's behind NAT to register to Kamailio
8. Place a call to itself

**Right now, everything works fine.  A call an be set up and works normally.**

9. Add these lines to kamailio.cfg
```
loadmodule "topos.so"
modparam("topos", "db_url", DBURL)
```

10. Restart Kamailio
11. Place that same test call again.

Now the call cannot be set up as the ACK is not get sent to the right place by Kamailio.

Comment out those two lines and it works again.

Repeatable 100%.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1005#issuecomment-283255720
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20170228/da6a43e4/attachment.html>


More information about the sr-dev mailing list