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