[OpenSIPS-Users] Permissions Module bug in 1.6.3 ?

logan voipmaster at me.com
Fri Oct 8 23:15:34 CEST 2010


I'm seeing something odd with the address table loading in 1.6.3

The scenario is that I'm writing values directly into the address table then running a script periodically that runs an opensipsctl fifo address_reload command.

When I do a dump I see something like this:

  35 <1.1.11,32, 0, 0, ^sip:.*$, NULL>
  22 <1.1.1.2,32, 0, 0, ^sip:.*$, NULL>
  81 <1.1.1.3,32, 0, 0, ^sip:.*$, NULL>
  81 <1.1.1.4,32, 0, 0, ^sip:.*$, NULL>
  56 <1.1.1.5,32, 0, 0, ^sip:.*$, NULL>

I'm not sure what that first column is but it's not the record ID in the DB and the two IPs that have the same number, in this case "81" fail the following check in the config with the following error output

Snippet:  

        get_source_group("$var(group)");

                if ($var(group) == "32")
                {

Error:

sip01 /usr/local/sbin/opensips[12418]: DBG:permissions:get_source_group: Looking for <872avbc, 5060> in address table
Oct  8 16:37:33 sip01 /usr/local/sbin/opensips[12418]: DBG:permissions:get_source_group: Found <-1>
Oct  8 16:37:33 sip01 /usr/local/sbin/opensips[12418]: DBG:permissions:get_source_group: Looking for <872avbc, 5060> in subnet table
Oct  8 16:37:33 sip01 /usr/local/sbin/opensips[12418]: DBG:permissions:get_source_group: Found <-1>

I've changed the hex values to mask the IPs but what gets returned translates to the inverse of the IP sending the call EX: 2.1.1.1

If I remove one of the addresses with the same ID and reload everything works, if I add it back and reload, it gets issued the same number "81" then breaks

Thanks in advance for your help.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20101008/4fa641fb/attachment-0001.htm 


More information about the Users mailing list