[OpenSIPS-Users] Permissions Module bug in 1.6.3 ?
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Mon Oct 11 15:17:15 CEST 2010
Hi Logan,
The first number is the hash ID (of the internal hash table) of the hash
where the address is cached. Pure internal info, completely useless for
external purposes.
Regards,
Bogdan
logan wrote:
> 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.1.1,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.
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
--
Bogdan-Andrei Iancu
OpenSIPS Bootcamp
15 - 19 November 2010, Edison, New Jersey, USA
www.voice-system.ro
More information about the Users
mailing list