[Freeswitch-users] Auth by ACL/CIDR doesn't find the right user from directory

Brian West brian at freeswitch.org
Fri Feb 14 02:25:06 MSK 2014


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 at 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 at 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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
Url : http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140213/c008eb2b/attachment.bin 


Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list