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

Biswas, Dipak dipak.biswas at mezocliq.com
Thu Feb 13 21:03:36 MSK 2014


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 2000 dials out to another extension, ACL is still
authenticating the user as 1000. How can I associate 2000 and it's
associated params and variables to this call instead of 1000's?

-- 
Thanks,
Dipak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140213/aef8b16e/attachment.html 


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