[Freeswitch-users] Multiple registration issue

Steven Ayre steveayre at gmail.com
Mon Feb 18 00:29:03 MSK 2013


Registration and call authentication are unrelated, although usually
configured together.

Registration is solely for you to register the IP:port where your user is
available to *receive *calls.

You can call into FreeSWITCH without being registered. Calls (INVITE) are
authenticated separately - you'll see INVITE, 401 Unauthorised, 2nd INVITE.

-Steve




On 17 February 2013 20:56, Tomasz Szuster <tomasz.szuster at gmail.com> wrote:

> Thx for explanation.
>
> But how this can be possible that I can call at the same time from 3
> different softphones registered into one extension, even if I've set
> max-registrations-per-extension and multiple-gistrations ?
>
> Tom
>
>
> On Sun, Feb 17, 2013 at 9:36 PM, Steven Ayre <steveayre at gmail.com> wrote:
>
>> Registrations don't get logged out, they get renewed/expire or replaced.
>>
>> Your 3rd machine will replace the first registration.
>>
>> -Steve
>>
>>
>>
>>  On 17 February 2013 20:18, Tomasz Szuster <tomasz.szuster at gmail.com>wrote:
>>
>>>  Hi,
>>>
>>>
>>> I'm trying to use limit logins to one extension using
>>>
>>> *max-registrations-per-extension = 2*
>>>
>>>
>>> I've set this in *sofia profile internal.*
>>> *
>>> *
>>> From what I see this is not working as expected.
>>>
>>> I've logged in one extensions from 3 different machines at the same
>>> time, and successfully established connections.
>>> To test I used two computers with X-lite, and Sipdroit on my android
>>> phone.
>>>
>>> Additional I've used:
>>>
>>> *multiple-registrations =  false*
>>> *
>>> *
>>> Still far from expectations
>>>
>>> I've observed this on FreeSWITCH (Version 1.2.6 git a424765 2013-01-04
>>> 15:45:59Z) running on ubuntu 12.04 x86_64
>>>
>>> I want to achieve situation when extension can be used only by one user
>>> at one time.
>>>
>>>
>>> Bellow is my internal sofia profile:
>>>
>>> <profile name="internal">
>>>         <!-- http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files-->
>>>         <!--aliases are other names that will work as a valid profile
>>> name for this profile-->
>>>         <aliases>
>>>                 <!--
>>>                 <alias name="default"/>
>>>                 -->
>>>         </aliases>
>>>
>>>         <!-- Outbound Registrations -->
>>>         <gateways>
>>>                 <X-PRE-PROCESS cmd="include" data="internal/*.xml"/>
>>>         </gateways>
>>>
>>>         <domains>
>>>                 <!-- indicator to parse the directory for domains with
>>> parse="true" to get gateways-->
>>>                 <!--<domain name="$${domain}" parse="true"/>-->
>>>                 <!-- indicator to parse the directory for domains with
>>> parse="true" to get gateways and alias every domain to this profile -->
>>>                 <!--<domain name="all" alias="true" parse="true"/>-->
>>>                 <domain name="all" alias="true" parse="false"/>
>>>         </domains>
>>>
>>>         <settings>
>>>                 <param name="debug" value="0"/>
>>>                 <param name="sip-trace" value="no"/>
>>>                 <param name="sip-capture" value="no"/>
>>>                 <param name="watchdog-enabled" value="no"/>
>>>                 <param name="watchdog-step-timeout" value="30000"/>
>>>                 <param name="watchdog-event-timeout" value="30000"/>
>>>                 <param name="log-auth-failures" value="true"/>
>>>                 <param name="forward-unsolicited-mwi-notify"
>>> value="false"/>
>>>                 <param name="context" value="public"/>
>>>                 <param name="rfc2833-pt" value="101"/>
>>>                 <param name="sip-port" value="$${internal_sip_port}"/>
>>>                 <param name="dialplan" value="XML"/>
>>>                 <param name="dtmf-duration" value="2000"/>
>>>                 <param name="inbound-codec-prefs"
>>> value="$${global_codec_prefs}"/>
>>>                 <param name="outbound-codec-prefs"
>>> value="$${global_codec_prefs}"/>
>>>                 <param name="rtp-timer-name" value="soft"/>
>>>                 <param name="rtp-ip" value="$${local_ip_v4}"/>
>>>                 <param name="sip-ip" value="$${local_ip_v4}"/>
>>>                 <param name="hold-music" value="$${hold_music}"/>
>>>                 <param name="apply-nat-acl" value="nat.auto"/>
>>>                 <param name="apply-inbound-acl" value="domains"/>
>>>                 <param name="local-network-acl" value="localnet.auto"/>
>>>                 <param name="record-path" value="$${recordings_dir}"/>
>>>                 <param name="record-template"
>>> value="${caller_id_number}.${target_domain}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav"/>
>>>                 <param name="manage-presence" value="true"/>
>>>                 <param name="presence-hosts"
>>> value="$${domain},$${local_ip_v4}"/>
>>>                 <param name="presence-privacy"
>>> value="$${presence_privacy}"/>
>>>                 <param name="inbound-codec-negotiation"
>>> value="generous"/>
>>>                 <param name="tls" value="$${internal_ssl_enable}"/>
>>>                 <param name="tls-only" value="false"/>
>>>                 <param name="tls-bind-params" value="transport=tls"/>
>>>                 <param name="tls-sip-port"
>>> value="$${internal_tls_port}"/>
>>>                 <param name="tls-cert-dir" value="$${internal_ssl_dir}"/>
>>>                 <param name="tls-passphrase" value=""/>
>>>                 <param name="tls-verify-date" value="true"/>
>>>                 <param name="tls-verify-policy" value="none"/>
>>>                 <param name="tls-verify-depth" value="2"/>
>>>                 <param name="tls-verify-in-subjects" value=""/>
>>>                 <param name="tls-version" value="$${sip_tls_version}"/>
>>>                 <param name="nonce-ttl" value="60"/>
>>>                 <param name="auth-calls"
>>> value="$${internal_auth_calls}"/>
>>>                 <param name="inbound-reg-force-matching-username"
>>> value="true"/>
>>>                 <param name="auth-all-packets" value="false"/>
>>>                 <param name="ext-rtp-ip" value="$${external_rtp_ip}"/>
>>>                 <param name="ext-sip-ip" value="$${external_sip_ip}"/>
>>>                 <param name="rtp-timeout-sec" value="300"/>
>>>                 <param name="rtp-hold-timeout-sec" value="1800"/>
>>>                 <param name="force-register-domain" value="$${domain}"/>
>>>                 <param name="force-subscription-domain"
>>> value="$${domain}"/>
>>>                 <param name="force-register-db-domain"
>>> value="$${domain}"/>
>>>                 <param name="challenge-realm" value="auto_from"/>
>>>                 <param name="max-registrations-per-extension" value="2"/>
>>>                 <param name="multiple-registrations" value="false"/>
>>>
>>>         </settings>
>>> </profile>
>>>
>>>
>>> Will you be able to help me ?
>>>
>>> --
>>> Regards
>>>
>>> Tomasz
>>>
>>> _________________________________________________________________________
>>> Professional FreeSWITCH Consulting Services:
>>> consulting at freeswitch.org
>>> http://www.freeswitchsolutions.com
>>>
>>> 
>>> 
>>>
>>> Official FreeSWITCH Sites
>>> http://www.freeswitch.org
>>> http://wiki.freeswitch.org
>>> http://www.cluecon.com
>>>
>>> FreeSWITCH-users mailing list
>>> FreeSWITCH-users at lists.freeswitch.org
>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>> http://www.freeswitch.org
>>>
>>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> 
>> 
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>>
>
>
> --
> Pozdrawiam
> Tomasz
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130217/447a300e/attachment-0001.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list