Hi,<div><br></div><div><br></div><div>I'm trying to use limit logins to one extension using </div><div><span style="color:rgb(95,95,95);font-size:12px;background-color:rgb(255,255,255)"><br></span></div><div><span style="color:rgb(95,95,95);font-size:12px;background-color:rgb(255,255,255)"><b>max-registrations-per-extension = 2</b></span></div>
<div><span style="font-size:12px;background-color:rgb(255,255,255)"><br></span></div><div><span style="font-size:12px;background-color:rgb(255,255,255)"><br></span></div><div><span style="font-size:12px;background-color:rgb(255,255,255)">I've set this in </span><b style="font-size:12px">sofia profile internal.</b></div>
<div><b style="font-size:12px"><br></b></div><div><span style="font-size:12px">From what I see this is not working as expected.</span></div><div><span style="font-size:12px"><br></span></div><div><span style="font-size:12px">I've logged in one extensions from 3 different machines at the same time, and successfully established connections.</span></div>
<div><span style="font-size:12px">To test I used two computers with X-lite, and Sipdroit on my android phone.</span></div><div><span style="font-size:12px"><br></span></div><div><span style="font-size:12px">Additional I've used:</span></div>
<div><span style="font-size:12px"><br></span></div><div><span style="color:rgb(68,68,68);font-size:12px"><b>multiple-registrations = false</b></span></div><div><span style="color:rgb(68,68,68);font-size:12px"><b><br></b></span></div>
<div><span style="color:rgb(68,68,68);font-size:12px">Still far from expectations</span></div><div><span style="color:rgb(68,68,68);font-size:12px"><br></span></div><div><span style="color:rgb(68,68,68);font-size:12px">I've observed this on </span><font color="#444444"><span style="font-size:12px">FreeSWITCH (Version 1.2.6 git a424765 2013-01-04 15:45:59Z) running on ubuntu 12.04 x86_64</span></font></div>
<div><font color="#444444"><span style="font-size:12px"><br></span></font></div><div><font color="#444444"><span style="font-size:12px">I want to achieve situation when extension can be used only by one user at one time.</span></font></div>
<div><font color="#444444"><span style="font-size:12px"><br></span></font></div><div><font color="#444444"><span style="font-size:12px"><br></span></font></div><div><font color="#444444"><span style="font-size:12px">Bellow is my internal sofia profile:</span></font></div>
<div><font color="#444444"><span style="font-size:12px"><br></span></font></div><div><font color="#444444"><span style="font-size:12px"><div><profile name="internal"></div><div> <!-- <a href="http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files">http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files</a> --></div>
<div> <!--aliases are other names that will work as a valid profile name for this profile--></div><div> <aliases></div><div> <!--</div><div> <alias name="default"/></div>
<div> --></div><div> </aliases></div><div><br></div><div> <!-- Outbound Registrations --></div><div> <gateways></div><div> <X-PRE-PROCESS cmd="include" data="internal/*.xml"/></div>
<div> </gateways></div><div><br></div><div> <domains></div><div> <!-- indicator to parse the directory for domains with parse="true" to get gateways--></div><div> <!--<domain name="$${domain}" parse="true"/>--></div>
<div> <!-- indicator to parse the directory for domains with parse="true" to get gateways and alias every domain to this profile --></div><div> <!--<domain name="all" alias="true" parse="true"/>--></div>
<div> <domain name="all" alias="true" parse="false"/></div><div> </domains></div><div><br></div><div> <settings></div><div> <param name="debug" value="0"/></div>
<div> <param name="sip-trace" value="no"/></div><div> <param name="sip-capture" value="no"/></div><div> <param name="watchdog-enabled" value="no"/></div>
<div> <param name="watchdog-step-timeout" value="30000"/></div><div> <param name="watchdog-event-timeout" value="30000"/></div><div> <param name="log-auth-failures" value="true"/></div>
<div> <param name="forward-unsolicited-mwi-notify" value="false"/></div><div> <param name="context" value="public"/></div><div> <param name="rfc2833-pt" value="101"/></div>
<div> <param name="sip-port" value="$${internal_sip_port}"/></div><div> <param name="dialplan" value="XML"/></div><div> <param name="dtmf-duration" value="2000"/></div>
<div> <param name="inbound-codec-prefs" value="$${global_codec_prefs}"/></div><div> <param name="outbound-codec-prefs" value="$${global_codec_prefs}"/></div>
<div> <param name="rtp-timer-name" value="soft"/></div><div> <param name="rtp-ip" value="$${local_ip_v4}"/></div><div> <param name="sip-ip" value="$${local_ip_v4}"/></div>
<div> <param name="hold-music" value="$${hold_music}"/></div><div> <param name="apply-nat-acl" value="nat.auto"/></div><div> <param name="apply-inbound-acl" value="domains"/></div>
<div> <param name="local-network-acl" value="localnet.auto"/></div><div> <param name="record-path" value="$${recordings_dir}"/></div><div>
<param name="record-template" value="${caller_id_number}.${target_domain}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav"/></div>
<div> <param name="manage-presence" value="true"/></div><div> <param name="presence-hosts" value="$${domain},$${local_ip_v4}"/></div><div>
<param name="presence-privacy" value="$${presence_privacy}"/></div>
<div> <param name="inbound-codec-negotiation" value="generous"/></div><div> <param name="tls" value="$${internal_ssl_enable}"/></div><div>
<param name="tls-only" value="false"/></div>
<div> <param name="tls-bind-params" value="transport=tls"/></div><div> <param name="tls-sip-port" value="$${internal_tls_port}"/></div><div>
<param name="tls-cert-dir" value="$${internal_ssl_dir}"/></div><div> <param name="tls-passphrase" value=""/></div><div> <param name="tls-verify-date" value="true"/></div>
<div> <param name="tls-verify-policy" value="none"/></div><div> <param name="tls-verify-depth" value="2"/></div><div> <param name="tls-verify-in-subjects" value=""/></div>
<div> <param name="tls-version" value="$${sip_tls_version}"/></div><div> <param name="nonce-ttl" value="60"/></div><div> <param name="auth-calls" value="$${internal_auth_calls}"/></div>
<div> <param name="inbound-reg-force-matching-username" value="true"/></div><div> <param name="auth-all-packets" value="false"/></div><div>
<param name="ext-rtp-ip" value="$${external_rtp_ip}"/></div><div> <param name="ext-sip-ip" value="$${external_sip_ip}"/></div><div> <param name="rtp-timeout-sec" value="300"/></div>
<div> <param name="rtp-hold-timeout-sec" value="1800"/></div><div> <param name="force-register-domain" value="$${domain}"/></div><div> <param name="force-subscription-domain" value="$${domain}"/></div>
<div> <param name="force-register-db-domain" value="$${domain}"/></div><div> <param name="challenge-realm" value="auto_from"/></div><div> <param name="max-registrations-per-extension" value="2"/></div>
<div> <param name="multiple-registrations" value="false"/></div><div><br></div><div> </settings></div><div></profile></div><div><br></div><div><br></div><div>Will you be able to help me ?</div>
</span></font></div><div><br></div><div>-- <br>Regards</div><div><br>Tomasz
</div>