<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><span>hi Peter,</span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><span>this feature(</span>max-registrations-per-extension)<span style="font-size: 12pt; ">&nbsp;is embeded in the sofia_reg.c as follow :</span></div><div><span><div>&nbsp;</div><div>............</div><div>if (max_registrations_perext &gt; 0 &amp;&amp; (sip &amp;&amp; sip-&gt;sip_contact &amp;&amp; (sip-&gt;sip_contact-&gt;m_expires == NULL || atol(sip-&gt;sip_contact-&gt;m_expires) &gt; 0))) {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; /* if expires is null still process */</div><div>&nbsp; &nbsp; &nbsp;
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; /* expires == 0 means the phone is going to unregiser, so don't count against max */</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; uint32_t count = 0;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; call_id = sip-&gt;sip_call_id-&gt;i_id;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; switch_assert(call_id);</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sql = switch_mprintf("select count(sip_user) from sip_registrations where sip_user='%q' AND call_id &lt;&gt; '%q'", username, call_id);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; switch_assert(sql != NULL);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sofia_glue_execute_sql_callback(profile, NULL, sql, sofia_reg_regcount_callback, &amp;count);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
 free(sql);</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (count + 1&gt; max_registrations_perext) {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ret = AUTH_FORBIDDEN;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (sofia_test_pflag(profile, PFLAG_LOG_AUTH_FAIL)) {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "SIP auth failure (REGISTER) due to reaching max allowed registrations. &nbsp;Count: %d\n", count);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; goto end;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div></span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><span>.............</span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div>  <div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "> <div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Peter Olsson &lt;peter.olsson@visionutveckling.se&gt;<br> <b><span
 style="font-weight: bold;">To:</span></b> FreeSWITCH Users Help &lt;freeswitch-users@lists.freeswitch.org&gt; <br> <b><span style="font-weight: bold;">Sent:</span></b> Monday, July 2, 2012 9:35 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [Freeswitch-users] how to solve the error Rejected by acl "domains". Falling back to Digest auth?<br> </font> </div> <br>
It seems the phone tries to register, even though it is already registered according to FS.<br><br>So if you really want to use this method, I think you must do further debugging on the phone...<br><br>As mentioned before on this list, I don't think this is a good approach, and since noone had even heard about this variable before, I'm guessing it's not widely used. However, in this particular example, FS is just doing exactly what it has been told to do, only to allow a registration if it doesn't exist already.<br><br>/Peter<br><br>2 jul 2012 kl. 18:53 skrev "Samira Mh" &lt;<a ymailto="mailto:saami_mh@ymail.com" href="mailto:saami_mh@ymail.com">saami_mh@ymail.com</a>&lt;mailto:<a ymailto="mailto:saami_mh@ymail.com" href="mailto:saami_mh@ymail.com">saami_mh@ymail.com</a>&gt;&gt;:<br><br>hi guys,<br>please let me know paste myconfigurations as follow:<br>1-<br>vim /usr/local/freeswitch/conf/directory/default/v_212263612400.xml<br>&lt;include&gt;<br>&nbsp;
 &lt;user id="212263612400"&gt;<br>&nbsp; &nbsp; &lt;params&gt;<br>&nbsp; &nbsp; &nbsp; &lt;param name="password" value="samira"/&gt;<br>&nbsp; &nbsp; &nbsp; &lt;param name="vm-password" value="user-choose"/&gt;<br>&nbsp; &nbsp; &nbsp; &lt;param name="vm-enabled" value="true"/&gt;<br>&nbsp; &nbsp; &nbsp; &lt;param name="max-registrations-per-extension"&nbsp; value="1"/&gt;<br><br>&nbsp; &nbsp; &lt;/params&gt;<br>&nbsp; &nbsp; &lt;variables&gt;<br>&nbsp; &nbsp; &nbsp; &lt;variable name="toll_allow" value=""/&gt;<br>&nbsp; &nbsp; &nbsp; &lt;variable name="accountcode" value=""/&gt;<br>&nbsp; &nbsp; &nbsp; &lt;variable name="user_context" value="default"/&gt;<br>&nbsp; &nbsp; &nbsp; &lt;variable name="directory-visible" value="true"/&gt;<br>&nbsp; &nbsp; &nbsp; &lt;variable name="directory-exten-visible" value="true"/&gt;<br>&nbsp; &nbsp; &nbsp; &lt;variable name="limit_max" value="5"/&gt;<br>&nbsp; &nbsp; &nbsp; &lt;variable name="sip-force-contact"
 value="NDLB-connectile-dysfunction"/&gt;<br>&nbsp; &nbsp; &nbsp; &lt;variable name="nibble_account" value="20014334"/&gt;<br>&nbsp; &nbsp; &lt;/variables&gt;<br>&nbsp; &lt;/user&gt;<br>&lt;/include&gt;<br><br>2-vim /usr/local/freeswitch/conf/autoload_configs/acl.conf.xml<br>&lt;configuration name="acl.conf" description="Network Lists"&gt;<br> &lt;network-lists&gt;<br><br>&nbsp; &nbsp;  &lt;list name="domains" default="deny"&gt;<br>&nbsp; &nbsp; &nbsp;  &lt;node type="allow" domain="$${domain}"/&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &lt;/list&gt;<br><br>&nbsp; &lt;/network-lists&gt;<br>&lt;/configuration&gt;<br><br>*max-registrations-per-extension&nbsp;  =1<br>when issue the following&nbsp; command the user is registered so another user with the extension '2122636124' couldn't register simultaneously :<br>sofia status profile internal&nbsp; reg<br><br>Now what is problem?<br>every time i want to dial some extensions that is configured in my dialplan the
 following erroe occure:<br>2012-07-02 21:02:12.050074 [WARNING] sofia_reg.c:1471 SIP auth challenge (REGISTER) on sofia profile 'internal_private' for [212263612400@192.168.10.70&lt;mailto:212263612400@192.168.10.70&gt;] from ip 192.168.18.120<br>2012-07-02 21:02:14.710049 [DEBUG] sofia.c:7904 IP 192.168.18.120 Rejected by acl "domains". Falling back to Digest auth.<br>2012-07-02 21:02:14.710049 [WARNING] sofia_reg.c:1471 SIP auth challenge (INVITE) on sofia profile 'internal_private' for [00989191949637@192.168.10.70&lt;mailto:00989191949637@192.168.10.70&gt;] from ip 192.168.18.120<br>2012-07-02 21:02:14.710049 [DEBUG] sofia.c:7904 IP 192.168.18.120 Rejected by acl "domains". Falling back to Digest auth.<br>2012-07-02 21:02:14.710049 [WARNING] sofia_reg.c:2607 SIP auth failure (REGISTER) due to reaching max allowed registrations.&nbsp; Count: 1<br>2012-07-02 21:02:14.710049 [WARNING] sofia_reg.c:1416 SIP auth failure (INVITE) on sofia profile
 'internal_private' for [00989191949637@192.168.10.70&lt;mailto:00989191949637@192.168.10.70&gt;] from ip 192.168.18.120<br><br>so if i remove the line&nbsp;  &lt;param name="max-registrations-per-extension"&nbsp; value="1"/&gt;&nbsp; from /usr/local/freeswitch/conf/directory/default/v_212263612400.xml or from within /usr/local/freeswitch/conf/sip_profiles/internal.xml(it is posible to defined either<br>internal.xml&nbsp; or /usr/local/freeswitch/conf/directory/default/v_212263612400.xml) the problem solved --with the same settings on vim /usr/local/freeswitch/conf/autoload_configs/acl.conf.xml-- but&nbsp; simultaneously&nbsp; registeration per extension couldn't worked properly ,,,<br><br>plz help,<br>what is problem on my settings?<br><br><br>!DSPAM:4ff1cecc32766478410542!<br>_________________________________________________________________________<br>Professional FreeSWITCH Consulting Services:<br><a ymailto="mailto:consulting@freeswitch.org"
 href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>&lt;mailto:<a ymailto="mailto:consulting@freeswitch.org" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>&gt;<br>http://www.freeswitchsolutions.com<br><br>FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br><a href="http://www.cudatel.com/" target="_blank">http://www.cudatel.com</a><br><br>Official FreeSWITCH Sites<br><a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br><a href="http://wiki.freeswitch.org/" target="_blank">http://wiki.freeswitch.org</a><br><a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com</a><br><br>Join Us At ClueCon - Aug 7-9, 2012<br><br>FreeSWITCH-users mailing list<br><a ymailto="mailto:FreeSWITCH-users@lists.freeswitch.org" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>&lt;mailto:<a
 ymailto="mailto:FreeSWITCH-users@lists.freeswitch.org" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>&gt;<br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br><br><br>!DSPAM:4ff1cecc32766478410542!<br><br>_________________________________________________________________________<br>Professional FreeSWITCH Consulting Services:<br><a ymailto="mailto:consulting@freeswitch.org" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br><a href="http://www.freeswitchsolutions.com/"
 target="_blank">http://www.freeswitchsolutions.com</a><br><br>FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br><a href="http://www.cudatel.com/" target="_blank">http://www.cudatel.com</a><br><br>Official FreeSWITCH Sites<br><a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br><a href="http://wiki.freeswitch.org/" target="_blank">http://wiki.freeswitch.org</a><br><a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com</a><br><br>Join Us At ClueCon - Aug 7-9, 2012<br><br>FreeSWITCH-users mailing list<br><a ymailto="mailto:FreeSWITCH-users@lists.freeswitch.org" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
 target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br><br><br> </div> </div>  </div></body></html>