<p>Steps to reproduce:</p>
<ol>
<li>Start with the kamailio.cfg that ships in kamailio-4.4.5_src.tar.gz</li>
<li>In my environment, I used MySQL and configured DBURL accordingly</li>
<li>I set up alias= and listen= lines as applicable, and configured rtpproxy.</li>
<li>I added these defines:</li>
</ol>
<pre><code>#!define WITH_MYSQL
#!define WITH_AUTH
#!define WITH_USRLOCDB
#!define WITH_BLOCK3XX
#!define WITH_NAT
</code></pre>
<ol start="5">
<li>Create a user in your auth database so that you can register a SIP device of some kind.</li>
<li>Start Kamailio</li>
<li>Configure a SIP device that's behind NAT to register to Kamailio</li>
<li>Place a call to itself</li>
</ol>
<p><strong>Right now, everything works fine.  A call an be set up and works normally.</strong></p>
<ol start="9">
<li>Add these lines to kamailio.cfg</li>
</ol>
<pre><code>loadmodule "topos.so"
modparam("topos", "db_url", DBURL)
</code></pre>
<ol start="10">
<li>Restart Kamailio</li>
<li>Place that same test call again.</li>
</ol>
<p>Now the call cannot be set up as the ACK is not get sent to the right place by Kamailio.</p>
<p>Comment out those two lines and it works again.</p>
<p>Repeatable 100%.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/1005#issuecomment-283255720">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZVbsJdL-amAnIrgMc9-6WruGTMnoks5rhQ6dgaJpZM4MG_mh">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZUO3lOJi0Py76Mxya1RU5mL_kxA2ks5rhQ6dgaJpZM4MG_mh.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/kamailio/kamailio/issues/1005#issuecomment-283255720"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"PERSON","message":"@dryvoip in #1005: Steps to reproduce:\r\n\r\n1. Start with the kamailio.cfg that ships in kamailio-4.4.5_src.tar.gz\r\n2. In my environment, I used MySQL and configured DBURL accordingly\r\n3. I set up alias= and listen= lines as applicable, and configured rtpproxy.\r\n4. I added these defines:\r\n```\r\n#!define WITH_MYSQL\r\n#!define WITH_AUTH\r\n#!define WITH_USRLOCDB\r\n#!define WITH_BLOCK3XX\r\n#!define WITH_NAT\r\n```\r\n5. Create a user in your auth database so that you can register a SIP device of some kind.\r\n6. Start Kamailio\r\n7. Configure a SIP device that's behind NAT to register to Kamailio\r\n8. Place a call to itself\r\n\r\n**Right now, everything works fine.  A call an be set up and works normally.**\r\n\r\n9. Add these lines to kamailio.cfg\r\n```\r\nloadmodule \"topos.so\"\r\nmodparam(\"topos\", \"db_url\", DBURL)\r\n```\r\n\r\n10. Restart Kamailio\r\n11. Place that same test call again.\r\n\r\nNow the call cannot be set up as the ACK is not get sent to the right place by Kamailio.\r\n\r\nComment out those two lines and it works again.\r\n\r\nRepeatable 100%."}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1005#issuecomment-283255720"}}}</script>