Thanks. My question is exactly the same - what are my possible option to differentiate between two users belonging to same CIDR? In that respect, my example is exactly what I intended to show, isn't it?




On Thu, Feb 13, 2014 at 6:25 PM, Brian West <brian@freeswitch.org> wrote:
Unless your examples are wrong the CIDR is the same on both, How do you tell the two users apart if they both are using the same CIDR?
--
Brian West
brian@freeswitch.org
FreeSWITCH Solutions, LLC
PO BOX 2531
Brookfield, WI 53008-2531
Twitter: @FreeSWITCH , @briankwest
http://www.freeswitchbook.com
http://www.freeswitchcookbook.com

T: +1.918.420.9001  |  F: +1.918.420.9002  |  M: +1.918.424.WEST
iNUM: +883 5100 1420 9001
ISN: 410*543
Skype:briankwest
PGP Key: http://www.bkw.org/key.txt (AB93356707C76CED)













On Feb 13, 2014, at 12:03 PM, Biswas, Dipak <dipak.biswas@mezocliq.com> wrote:

> Hi All,
>
> I guess this issue has been discussed before but I could not find a suitable solution.
>
> I've this one user with the CIDR declared in directory/default/1000.xml
>
> <include>
>   <user id="1000" cidr="12.34.56.78/32,20.0.0.0/8"> <!--ID is the sip username. CIDR is optional -- if specified, these IPs with automatically auth to this user-->
>       <params>
>       <param name="password" value="1234"/>
>       <param name="vm-password" value="1000"/>
>     </params>
>     <variables>
>       <variable name="accountcode" value="1000"/>
>       <variable name="user_context" value="default"/>
>       <variable name="effective_caller_id_name" value="Extension 1000"/>
>       <variable name="effective_caller_id_number" value="1000"/>
>     </variables>
>   </user>
>
> Another user 2000 is defined but no CIDR is added there.
>   <user id="2000" cidr="12.34.56.78/32,20.0.0.0/8">
>         <params>
>       <param name="password" value="1234"/>
>       <param name="vm-password" value="2000"/>
>     </params>
>     <variables>
>       <variable name="accountcode" value="2000"/>
>       <variable name="user_context" value="default"/>
>       <variable name="effective_caller_id_name" value="Extension 2000"/>
>       <variable name="effective_caller_id_number" value="2000"/>
>     </variables>
>   </user>
>
> Now, when user 2


_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




--
Thanks,
Dipak