<div dir="ltr">Hi Andrew,<div><br></div><div><div>+----+-----------+------+-------+----------+--------------+</div><div>| id | ip | port | path | sip_port | description |</div><div>+----+-----------+------+-------+----------+--------------+</div><div>| 1 | 127.0.0.1 | 8000 | /RPC2 | 5062 | Kamailio |</div><div>| 2 | 127.0.0.1 | 8090 | / | NULL | Sems |</div><div>| 3 | 127.0.0.1 | 5062 | / | NULL | Kamailio-SR |</div><div>| 4 | 127.0.0.1 | 5060 | / | NULL | Loadbalancer |</div><div>| 5 | 127.0.0.1 | 5582 | / | NULL | Prosody |</div><div>+----+-----------+------+-------+----------+--------------+</div></div><div><br></div><div>I tested a couple of things:</div><div><br></div><div>1. Trigger the xml request manually after creating a domain from the API -> this works</div><div>2. Altering the codes as in the pull request (<a href="https://github.com/sipwise/ngcp-panel/pull/1">https://github.com/sipwise/ngcp-panel/pull/1</a> ) -> this works</div><div><br></div><div>Also if you look how a domain is created through the webinterface (<a href="https://github.com/sipwise/ngcp-panel/blob/master/lib/NGCP/Panel/Controller/Domain.pm#L99-L147">https://github.com/sipwise/ngcp-panel/blob/master/lib/NGCP/Panel/Controller/Domain.pm#L99-L147</a>)</div><div>I think we see that domain is created and committed to the database (line 100-137) and after that the xml request is triggered (line 147)</div><div><br></div><div>If you take a look at how it is done in the API this looks different (<a href="https://github.com/sipwise/ngcp-panel/blob/master/lib/NGCP/Panel/Controller/API/Domains.pm#L156-L226">https://github.com/sipwise/ngcp-panel/blob/master/lib/NGCP/Panel/Controller/API/Domains.pm#L156-L226</a>). In this case the transaction is only committed (line 226) after the xml request is made (line 212). </div><div><br></div><div>So that is why I proposed the changes in the pull request (<a href="https://github.com/sipwise/ngcp-panel/pull/1">https://github.com/sipwise/ngcp-panel/pull/1</a>)</div><div><br></div><div>Dennis</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><font size="2" face="arial, helvetica, sans-serif">Best from Amsterdam,</font></div><div><font size="2" face="arial, helvetica, sans-serif"><br></font></div><div><font size="2" face="arial, helvetica, sans-serif">Dennis van der Vliet | Senior Engineer</font></div><div><font size="2" face="arial, helvetica, sans-serif"><br></font></div><div><font size="2" face="arial, helvetica, sans-serif">M: +31 6 53 47 44 96</font></div><div><font size="2" face="arial, helvetica, sans-serif">E: <a href="mailto:dennis@messagebird.com" target="_blank">dennis@messagebird.com</a></font></div><div><div style="font-size:12.8000001907349px"><font size="2" face="arial, helvetica, sans-serif">MessageBird</font></div></div><div><font size="2" face="arial, helvetica, sans-serif"><a href="https://nl.linkedin.com/in/dennisvandervliet" target="_blank">LinkedIn</a> | <a href="https://twitter.com/dennisvdvliet" target="_blank">Twitter</a></font></div><div><br></div><div><div style="margin:0px"><br></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On 16 April 2015 at 09:53, Andrew Pogrebennyk <span dir="ltr"><<a href="mailto:apogrebennyk@sipwise.com" target="_blank">apogrebennyk@sipwise.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>Hi Dennis,<br>
what do you have in your provisioning.xmlhosts table?<span class=""><br>
<br>
Andrew<br>
<br>
On 04/13/2015 05:53 PM, Dennis van der Vliet wrote:<br>
</span></div><div><div class="h5">
<blockquote type="cite">
<div dir="ltr">
<div>
<p style="margin:1.2em 0px!important">Hi,</p>
<p style="margin:1.2em 0px!important">When trying to create a
subscriber through the API we encounter the following issue.
After creating the user and entering the credentials on a
phone, registration is not possible.</p>
<p style="margin:1.2em 0px!important">Further inspection of
the log files (kamailio-proxy.log) gives us the following
info:</p>
<pre style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;font-size:1em;line-height:1.2em;margin:1.2em 0px"><code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);border-radius:3px;display:inline;background-color:rgb(248,248,248);white-space:pre-wrap;overflow:auto;border-radius:3px;border:1px solid rgb(204,204,204);padding:0.5em 0.7em;display:block!important">Apr 13 15:43:54 voip02-ams3-do proxy[4389]: NOTICE: <script>: New request on proxy - M=REGISTER R=sip:<a href="http://sub.domain.co" target="_blank">sub.domain.co</a> F=<a href="mailto:sip%3Ausername_3217@sub.domain.co" target="_blank">sip:username_3217@sub.domain.co</a> T=<a href="mailto:sip%3Ausername_3217@sub.domain.co" target="_blank">sip:username_3217@sub.domain.co</a> IP={IP_ADDRESS} (<a href="http://127.0.0.1:5060" target="_blank">127.0.0.1:5060</a>) ID=b75aa40b-c9aa67f3@{IP_ADDRESS}
Apr 13 15:43:54 voip02-ams3-do proxy[4389]: WARNING: <script>: Domain not served here - R=sip:<a href="http://sub.domain.co" target="_blank">sub.domain.co</a> ID=b75aa40b-c9aa67f3@{IP_ADDRESS}
</code></pre>
<p style="margin:1.2em 0px!important">The issue is fixed once
we restart kamailio-proxy manually.</p>
<p style="margin:1.2em 0px!important">Is some kind of “flush”
triggered after creating a subscriber through the
webinterface that is not triggered when you do the same
through the API?</p>
<p style="margin:1.2em 0px!important">Best from Amsterdam,</p>
<p style="margin:1.2em 0px!important">Dennis van der Vliet |
Senior Engineer</p>
<p style="margin:1.2em 0px!important">M: +31 6 53 47 44 96<br>
E: <a href="mailto:dennis@messagebird.com" target="_blank">dennis@messagebird.com</a><br>
MessageBird</p>
<p style="margin:1.2em 0px!important">LinkedIn | Twitter</p>
<div title="MDH:SGksPGRpdj48YnI+PC9kaXY+PGRpdj5XaGVuIHRyeWluZyB0byBjcmVhdGUgYSBzdWJzY3JpYmVyIHRocm91Z2ggdGhlIEFQSSB3ZSBlbmNvdW50ZXIgdGhlIGZvbGxvd2luZyBpc3N1ZS4gQWZ0ZXIg
Y3JlYXRpbmcgdGhlIHVzZXIgYW5kIGVudGVyaW5nIHRoZSBjcmVkZ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aXJkLmNvbSIgdGFyZ2V0PSJfYmxhbmsiPmRlbm5pc0BtZXNzYWdlYmlyZC5jb208L2E+PC9mb250
PjwvZGl2PjxkaXY+PGRpdiBzdHlsZT0iZm9udC1zaXplOiAxMi44MDAwMDAxOTA3MzQ5cHg7Ij48
Zm9udCBzaXplPSIyIiBmYWNlPSJhcmlhbCwgaGVsdmV0aWNhLCBzYW5zLXNlcmlmIj5NZXNzYWdl
QmlyZDwvZm9udD48L2Rpdj48L2Rpdj48ZGl2Pjxmb250IHNpemU9IjIiIGZhY2U9ImFyaWFsLCBo
ZWx2ZXRpY2EsIHNhbnMtc2VyaWYiPjxhIGhyZWY9Imh0dHBzOi8vbmwubGlua2VkaW4uY29tL2lu
L2Rlbm5pc3ZhbmRlcnZsaWV0IiB0YXJnZXQ9Il9ibGFuayI+TGlua2VkSW48L2E+IHwgPGEgaHJl
Zj0iaHR0cHM6Ly90d2l0dGVyLmNvbS9kZW5uaXN2ZHZsaWV0IiB0YXJnZXQ9Il9ibGFuayI+VHdp
dHRlcjwvYT48L2ZvbnQ+PC9kaXY+PGRpdj48YnI+PC9kaXY+PGRpdj48ZGl2IHN0eWxlPSJtYXJn
aW46IDBweDsiPjxicj48L2Rpdj48L2Rpdj48L2Rpdj48L2Rpdj48L2Rpdj48L2Rpdj48L2Rpdj48
L2Rpdj48L2Rpdj48L2Rpdj4KPC9kaXY+" style="min-height:0;width:0;max-height:0;max-width:0;overflow:hidden;font-size:0em;padding:0;margin:0"></div>
</div>
</div>
<br>
</blockquote>
<br>
</div></div></div>
</blockquote></div><br></div>