<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.E-MailFormatvorlage19
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.E-MailFormatvorlage20
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=DE-AT link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'>Subscriber Created via WEB GUI:<o:p></o:p></span></p><p class=MsoNormal><i><span lang=EN-US style='mso-fareast-language:EN-US'><o:p> </o:p></span></i></p><p class=MsoNormal><i><span lang=EN-US style='mso-fareast-language:EN-US'>MariaDB [(none)]> select * from kamailio.usr_preferences where username="4314xxxxx";<o:p></o:p></span></i></p><p class=MsoNormal><i><span lang=EN-US style='mso-fareast-language:EN-US'>+-------+--------------------------------------+------------+-------------------+-----------------------------+------+------------+---------------------+<o:p></o:p></span></i></p><p class=MsoNormal><i><span lang=EN-US style='mso-fareast-language:EN-US'>| id | uuid | username | domain | attribute | type | value | last_modified |<o:p></o:p></span></i></p><p class=MsoNormal><i><span lang=EN-US style='mso-fareast-language:EN-US'>+-------+--------------------------------------+------------+-------------------+-----------------------------+------+------------+---------------------+<o:p></o:p></span></i></p><p class=MsoNormal><i><span lang=EN-US style='mso-fareast-language:EN-US'>| 18378 | 8d015d18-810d-4fc3-8de8-817fb679c732 | 4314704347 | sip.telematica.at | ac | 0 | 1 | 1900-01-01 00:00:01 |<o:p></o:p></span></i></p><p class=MsoNormal><i><span lang=EN-US style='mso-fareast-language:EN-US'>| 18379 | 8d015d18-810d-4fc3-8de8-817fb679c732 | 4314704347 | sip.telematica.at | account_id | 1 | 766 | 1900-01-01 00:00:01 |<o:p></o:p></span></i></p><p class=MsoNormal><i><span lang=EN-US style='mso-fareast-language:EN-US'>| 18377 | 8d015d18-810d-4fc3-8de8-817fb679c732 | 4314704347 | sip.telematica.at | allowed_clis | 0 | 4314xxxxx| 1900-01-01 00:00:01 |<o:p></o:p></span></i></p><p class=MsoNormal><i><span lang=EN-US style='mso-fareast-language:EN-US'>| 18391 | 8d015d18-810d-4fc3-8de8-817fb679c732 | 4314704347 | sip.telematica.at | allowed_clis | 0 | 4314xxxxx| 1900-01-01 00:00:01 |<o:p></o:p></span></i></p><p class=MsoNormal><i><span lang=EN-US style='mso-fareast-language:EN-US'>| 18380 | 8d015d18-810d-4fc3-8de8-817fb679c732 | 4314704347 | sip.telematica.at | cc | 0 | 43 | 1900-01-01 00:00:01 |<o:p></o:p></span></i></p><p class=MsoNormal><i><span lang=EN-US style='mso-fareast-language:EN-US'>| 18376 | 8d015d18-810d-4fc3-8de8-817fb679c732 | 4314704347 | sip.telematica.at | cli | 0 | 4314xxxxx | 1900-01-01 00:00:01 |<o:p></o:p></span></i></p><p class=MsoNormal><i><span lang=EN-US style='mso-fareast-language:EN-US'>| 18375 | 8d015d18-810d-4fc3-8de8-817fb679c732 | 4314704347 | sip.telematica.at | cloud_pbx_hunt_policy | 0 | serial | 1900-01-01 00:00:01 |<o:p></o:p></span></i></p><p class=MsoNormal><i><span lang=EN-US style='mso-fareast-language:EN-US'>| 18383 | 8d015d18-810d-4fc3-8de8-817fb679c732 | 4314704347 | sip.telematica.at | concurrent_max | 1 | 4 | 1900-01-01 00:00:01 |<o:p></o:p></span></i></p><p class=MsoNormal><i><span lang=EN-US style='mso-fareast-language:EN-US'>| 18382 | 8d015d18-810d-4fc3-8de8-817fb679c732 | 4314704347 | sip.telematica.at | ext_contract_id | 0 | 2711 | 1900-01-01 00:00:01 |<o:p></o:p></span></i></p><p class=MsoNormal><i><span lang=EN-US style='mso-fareast-language:EN-US'>| 18381 | 8d015d18-810d-4fc3-8de8-817fb679c732 | 4314704347 | sip.telematica.at | ext_subscriber_id | 0 | 2711 | 1900-01-01 00:00:01 |<o:p></o:p></span></i></p><p class=MsoNormal><i><span lang=EN-US style='mso-fareast-language:EN-US'>| 18390 | 8d015d18-810d-4fc3-8de8-817fb679c732 | 4314704347 | sip.telematica.at | force_inbound_calls_to_peer | 0 | force | 1900-01-01 00:00:01 |<o:p></o:p></span></i></p><p class=MsoNormal><i><span lang=EN-US style='mso-fareast-language:EN-US'>| 18384 | 8d015d18-810d-4fc3-8de8-817fb679c732 | 4314704347 | sip.telematica.at | rewrite_callee_in_dpid | 1 | 10 | 1900-01-01 00:00:01 |<o:p></o:p></span></i></p><p class=MsoNormal><i><span lang=EN-US style='mso-fareast-language:EN-US'>| 18388 | 8d015d18-810d-4fc3-8de8-817fb679c732 | 4314704347 | sip.telematica.at | rewrite_callee_lnp_dpid | 1 | 55 | 1900-01-01 00:00:01 |<o:p></o:p></span></i></p><p class=MsoNormal><i><span lang=EN-US style='mso-fareast-language:EN-US'>| 18386 | 8d015d18-810d-4fc3-8de8-817fb679c732 | 4314704347 | sip.telematica.at | rewrite_callee_out_dpid | 1 | 12 | 1900-01-01 00:00:01 |<o:p></o:p></span></i></p><p class=MsoNormal><i><span lang=EN-US style='mso-fareast-language:EN-US'>| 18385 | 8d015d18-810d-4fc3-8de8-817fb679c732 | 4314704347 | sip.telematica.at | rewrite_caller_in_dpid | 1 | 9 | 1900-01-01 00:00:01 |<o:p></o:p></span></i></p><p class=MsoNormal><i><span lang=EN-US style='mso-fareast-language:EN-US'>| 18389 | 8d015d18-810d-4fc3-8de8-817fb679c732 | 4314704347 | sip.telematica.at | rewrite_caller_lnp_dpid | 1 | 47 | 1900-01-01 00:00:01 |<o:p></o:p></span></i></p><p class=MsoNormal><i><span lang=EN-US style='mso-fareast-language:EN-US'>| 18387 | 8d015d18-810d-4fc3-8de8-817fb679c732 | 4314704347 | sip.telematica.at | rewrite_caller_out_dpid | 1 | 11 | 1900-01-01 00:00:01 |<o:p></o:p></span></i></p><p class=MsoNormal><i><span lang=EN-US style='mso-fareast-language:EN-US'>+-------+--------------------------------------+------------+-------------------+-----------------------------+------+------------+---------------------+<o:p></o:p></span></i></p><p class=MsoNormal><i><span lang=EN-US style='mso-fareast-language:EN-US'>17 rows in set (0.01 sec)<o:p></o:p></span></i></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'>Subscriber created via API:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><i><span lang=EN-US style='font-size:9.0pt;mso-fareast-language:EN-US'>MariaDB [(none)]> select * from kamailio.usr_preferences where username="43720560060";<o:p></o:p></span></i></p><p class=MsoNormal><i><span lang=EN-US style='font-size:9.0pt;mso-fareast-language:EN-US'>+-------+--------------------------------------+-------------+-------------------+----------------------------+------+-------------+---------------------+<o:p></o:p></span></i></p><p class=MsoNormal><i><span lang=EN-US style='font-size:9.0pt;mso-fareast-language:EN-US'>| id | uuid | username | domain | attribute | type | value | last_modified |<o:p></o:p></span></i></p><p class=MsoNormal><i><span lang=EN-US style='font-size:9.0pt;mso-fareast-language:EN-US'>+-------+--------------------------------------+-------------+-------------------+----------------------------+------+-------------+---------------------+<o:p></o:p></span></i></p><p class=MsoNormal><i><span lang=EN-US style='font-size:9.0pt;mso-fareast-language:EN-US'>| 18873 | 16e48cc5-e84d-44d4-b822-ee31693aa69a | 43720560060 | sip.telematica.at | ac | 0 | 720 | 1900-01-01 00:00:01 |<o:p></o:p></span></i></p><p class=MsoNormal><i><span lang=EN-US style='font-size:9.0pt;mso-fareast-language:EN-US'>| 18874 | 16e48cc5-e84d-44d4-b822-ee31693aa69a | 43720560060 | sip.telematica.at | account_id | 1 | 786 | 1900-01-01 00:00:01 |<o:p></o:p></span></i></p><p class=MsoNormal><i><span lang=EN-US style='font-size:9.0pt;mso-fareast-language:EN-US'>| 18898 | 16e48cc5-e84d-44d4-b822-ee31693aa69a | 43720560060 | sip.telematica.at | allowed_clis | 0 | 43720560060 | 1900-01-01 00:00:01 |<o:p></o:p></span></i></p><p class=MsoNormal><i><span lang=EN-US style='font-size:9.0pt;mso-fareast-language:EN-US'>| 18878 | 16e48cc5-e84d-44d4-b822-ee31693aa69a | 43720560060 | sip.telematica.at | allowed_ips_grp | 1 | 334 | 1900-01-01 00:00:01 |<o:p></o:p></span></i></p><p class=MsoNormal><i><span lang=EN-US style='font-size:9.0pt;mso-fareast-language:EN-US'>| 18875 | 16e48cc5-e84d-44d4-b822-ee31693aa69a | 43720560060 | sip.telematica.at | cc | 0 | 43 | 1900-01-01 00:00:01 |<o:p></o:p></span></i></p><p class=MsoNormal><i><span lang=EN-US style='font-size:9.0pt;mso-fareast-language:EN-US'>| 18871 | 16e48cc5-e84d-44d4-b822-ee31693aa69a | 43720560060 | sip.telematica.at | cli | 0 | 43720560060 | 1900-01-01 00:00:01 |<o:p></o:p></span></i></p><p class=MsoNormal><i><span lang=EN-US style='font-size:9.0pt;mso-fareast-language:EN-US'>| 18870 | 16e48cc5-e84d-44d4-b822-ee31693aa69a | 43720560060 | sip.telematica.at | cloud_pbx_hunt_policy | 0 | serial | 1900-01-01 00:00:01 |<o:p></o:p></span></i></p><p class=MsoNormal><i><span lang=EN-US style='font-size:9.0pt;mso-fareast-language:EN-US'>| 18879 | 16e48cc5-e84d-44d4-b822-ee31693aa69a | 43720560060 | sip.telematica.at | concurrent_max_per_account | 1 | 4 | 1900-01-01 00:00:01 |<o:p></o:p></span></i></p><p class=MsoNormal><i><span lang=EN-US style='font-size:9.0pt;mso-fareast-language:EN-US'>| 18880 | 16e48cc5-e84d-44d4-b822-ee31693aa69a | 43720560060 | sip.telematica.at | e164_to_ruri | 1 | 0 | 1900-01-01 00:00:01 |<o:p></o:p></span></i></p><p class=MsoNormal><i><span lang=EN-US style='font-size:9.0pt;mso-fareast-language:EN-US'>| 18876 | 16e48cc5-e84d-44d4-b822-ee31693aa69a | 43720560060 | sip.telematica.at | emergency_suffix | 0 | invalidAC_ | 1900-01-01 00:00:01 |<o:p></o:p></span></i></p><p class=MsoNormal><i><span lang=EN-US style='font-size:9.0pt;mso-fareast-language:EN-US'>| 18881 | 16e48cc5-e84d-44d4-b822-ee31693aa69a | 43720560060 | sip.telematica.at | man_allowed_ips_grp | 1 | 335 | 1900-01-01 00:00:01 |<o:p></o:p></span></i></p><p class=MsoNormal><i><span style='font-size:9.0pt;mso-fareast-language:EN-US'>+-------+--------------------------------------+-------------+-------------------+----------------------------+------+-------------+---------------------+<o:p></o:p></span></i></p><p class=MsoNormal><i><span style='font-size:9.0pt;mso-fareast-language:EN-US'>11 rows in set (0.00 sec)<o:p></o:p></span></i></p><p class=MsoNormal><i><span style='font-size:9.0pt;mso-fareast-language:EN-US'><o:p> </o:p></span></i></p><p class=MsoNormal><i><span style='font-size:9.0pt;mso-fareast-language:EN-US'><o:p> </o:p></span></i></p><p class=MsoNormal><i><span style='font-size:9.0pt;mso-fareast-language:EN-US'><o:p> </o:p></span></i></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=DE>Von:</span></b><span lang=DE> Spce-user <spce-user-bounces@lists.sipwise.com> <b>Im Auftrag von </b>Daniel Grotti<br><b>Gesendet:</b> Montag, 13. Mai 2019 13:56<br><b>An:</b> spce-user@lists.sipwise.com<br><b>Betreff:</b> Re: [Spce-user] No ipauth id found, block registration if subscriber created via API<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Hi Mathias,<br>can you do the following check:<br><br>1. create subscriber via GUI with allowed_ips empty, then check:<br><br>mysql> select * from kamailio.usr_preferecens where <br>username="<SUBSCRIBER_USERNAME>"<br><br><br>2. create subscriber via API with allowed_ips not set, then check:<br><br>mysql> select * from kamailio.usr_preferecens where <br>username="<SUBSCRIBER_USERNAME>"<br><br><br>Is there any differences?<br>In point 2 you maybe have allowed_ips set to value="" ?<br><br><br>Another question, what version are you using?<br><br><br><br>Daniel Grotti<br><br>Head of Customer Support Sipwise GmbH<br>e: <a href="mailto:dgrotti@sipwise.com">dgrotti@sipwise.com</a> Europaring F15<br>t: +43(0)130120332 A-2345 Brunn Am Gebirge<br>w: <a href="http://www.sipwise.com">www.sipwise.com</a> FN: 305595f FG: LG Wiener Neustadt<br><br>On 5/13/19 1:46 PM, Hohl Matthias wrote:<br>> Hello,<br>> <br>> We created a new tool for creating subscribers via the SPCE API, but we <br>> found out, that created subscribers don’t use the “domain default” <br>> allowed_ips setting.<br>> <br>> We definitely create the subscribers without this value. So if we check <br>> the subscriber preferences via web gui the “allowed_ips setting is also <br>> blank, also via API GET we don’t get any value for “allowed_ips” back… <br>> so it normally should use the domain default settings.<br>> <br>> If we create a subscriber via web interface directly and leave this <br>> allowed_ips empty, if works like a charme with the “domain defaults <br>> allowed_ips” settings. So this problem is just there, if we create a <br>> subscriber via API and leave “allowed_ips” empty.<br>> <br>> Subscriber settings:<br>> <br>> If we check the API via GET it preferences looks like this:<br>> <br>> / //},//<br>> // //"ac" : "720",//<br>> // //"allowed_clis" : [//<br>> // //"43720560060"//<br>> // //],//<br>> // //"cc" : "43",//<br>> // //"cli" : "43720560060",//<br>> // //"concurrent_max_per_account" : 4,//<br>> // //"e164_to_ruri" : false,//<br>> // //"emergency_suffix" : "invalidAC_",//<br>> // //"id" : 933,//<br>> // //"subscriber_id" : 933//<br>> }///<br>> <br>> But if we try to register we get this log entries:<br>> <br>> /May 13 13:27:39 spce proxy[2114]: NOTICE: <script>: New request on <br>> proxy - M=REGISTER R=sip:x.telematica.at <br>> F=sip:43720560060@x.telematica.at T=sip:43720560060@x.telematica.at <br>> IP=176.123.xxx.xxx:5060 (127.0.0.1:5060) <br>> <a href="mailto:ID=25da2ba63f1576e66b506a9918105d2a@127.0.0.1">ID=25da2ba63f1576e66b506a9918105d2a@127.0.0.1</a> UA='PBX v1.7 R6' <br>> DESTIP=127.0.0.1:5062/<br>> <br>> /May 13 13:27:39 spce proxy[2114]: NOTICE: <script>: Sending reply S=100 <br>> Trying fs='127.0.0.1:5062' du='127.0.0.1:5060' - R=sip:x.telematica.at <br>> <a href="mailto:ID=25da2ba63f1576e66b506a9918105d2a@127.0.0.1">ID=25da2ba63f1576e66b506a9918105d2a@127.0.0.1</a> UA='PBX v1.7 R6'/<br>> <br>> /May 13 13:27:39 spce proxy[2114]: WARNING: <script>: No ipauth id <br>> found, block registration - R=sip:x.telematica.at <br>> <a href="mailto:ID=25da2ba63f1576e66b506a9918105d2a@127.0.0.1">ID=25da2ba63f1576e66b506a9918105d2a@127.0.0.1</a> UA='PBX v1.7 R6'/<br>> <br>> If we sent 0.0.0.0 or the registration IP via API for “allowed_ips” or <br>> set the “ignore_allowed_ips” setting to true, then we can register.<br>> <br>> So the problem is, that if this settings are not set via API, the <br>> subscriber didn’t use the domain default allowed ip list, where we <br>> defined our ip ranges.<br>> <br>> Do you have any idea, how to fix that?<br>> <br>> Mit freundlichen Grüßen,<br>> <br>> Matthias Hohl<br>> <br>> <br>> _______________________________________________<br>> Spce-user mailing list<br>> <a href="mailto:Spce-user@lists.sipwise.com">Spce-user@lists.sipwise.com</a><br>> <a href="https://lists.sipwise.com/listinfo/spce-user">https://lists.sipwise.com/listinfo/spce-user</a><br>> <br>_______________________________________________<br>Spce-user mailing list<br><a href="mailto:Spce-user@lists.sipwise.com">Spce-user@lists.sipwise.com</a><br><a href="https://lists.sipwise.com/listinfo/spce-user">https://lists.sipwise.com/listinfo/spce-user</a><o:p></o:p></p></div></body></html>