Yeah. It is the first one in the list (Number 15 in the dump). Like I said this worked before I upgraded.<br><br><div class="gmail_quote">On Thu, Feb 2, 2012 at 10:56 AM, Ovidiu Sas <span dir="ltr"><<a href="mailto:osas@voipembedded.com">osas@voipembedded.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The subnet is empty because you don't have any subnets (the mask is<br>
set to 32 and therefore you have full IP matching). Is the message<br>
source IP in the address_dump?<br>
<div class="im HOEnZb"><br>
Regards,<br>
Ovidiu Sas<br>
<br>
--<br>
VoIP Embedded, Inc.<br>
<a href="http://www.voipembedded.com" target="_blank">http://www.voipembedded.com</a><br>
<br>
</div><div class="HOEnZb"><div class="h5">On Thu, Feb 2, 2012 at 11:52 AM, Duane Larson <<a href="mailto:duane.larson@gmail.com">duane.larson@gmail.com</a>> wrote:<br>
> This is what I see<br>
><br>
> Proxy01:/var/log# opensipsctl fifo address_dump<br>
> 15 <173.XXX.XXX.XXX,3, 5060, 0, NULL, NULL><br>
> 20 <216.82.224.202,2, 5060, 0, NULL, NULL><br>
> 34 <64.2.142.15,4, 5060, 0, NULL, NULL><br>
> 50 <216.82.225.202,2, 5060, 0, NULL, NULL><br>
> 63 <173.XXX.XXX.XXX,10, 5060, 0, NULL, NULL><br>
> 85 <173.XXX.XXX.XXX,10, 5060, 0, NULL, NULL><br>
> Proxy01:/var/log#<br>
> Proxy01:/var/log#<br>
> Proxy01:/var/log#<br>
> Proxy01:/var/log#<br>
> Proxy01:/var/log# opensipsctl fifo subnet_dump<br>
><br>
><br>
> So the subnet_dump is empty.<br>
><br>
><br>
><br>
><br>
> On Thu, Feb 2, 2012 at 10:48 AM, Ovidiu Sas <<a href="mailto:osas@voipembedded.com">osas@voipembedded.com</a>> wrote:<br>
>><br>
>> Check the in memory cache:<br>
>> <a href="http://www.opensips.org/html/docs/modules/devel/permissions.html#id293903" target="_blank">http://www.opensips.org/html/docs/modules/devel/permissions.html#id293903</a><br>
>> See "address_dump" and "subnet_dump".<br>
>><br>
>> At start up, opensips will cache everything in memory.<br>
>><br>
>> Regards,<br>
>> Ovidiu Sas<br>
>><br>
>> --<br>
>> VoIP Embedded, Inc.<br>
>> <a href="http://www.voipembedded.com" target="_blank">http://www.voipembedded.com</a><br>
>><br>
>><br>
>> On Thu, Feb 2, 2012 at 11:38 AM, <<a href="mailto:duane.larson@gmail.com">duane.larson@gmail.com</a>> wrote:<br>
>> > I just upgraded my b2bua opensips server to the latest trunk version and<br>
>> > now<br>
>> > my if statements using "check_source_address" from the permissions<br>
>> > module<br>
>> > isn't working. I have the following set up<br>
>> ><br>
>> > loadmodule "permissions.so"<br>
>> ><br>
>> > modparam("permissions","db_url","mysql://adfasdf:dfasdfasd@108.XXX.XXX.XXX/opensips")<br>
>> ><br>
>> ><br>
>> > if (check_source_address("2") || check_source_address("3") ||<br>
>> > check_source_address("4")) {<br>
>> ><br>
>> > The INVITE comes from my SIP Proxy and worked before the upgrade without<br>
>> > issue<br>
>> ><br>
>> ><br>
>> ><br>
>> > Feb 1 22:41:01 proxy01 /usr/local/sbin/opensips[30163]:<br>
>> > DBG:permissions:check_src_addr_3: Looking for : <2, 173.XXX.XXX.XXX,<br>
>> > 5060,<br>
>> > 1> in tables<br>
>> > Feb 1 22:41:01 proxy01 /usr/local/sbin/opensips[30163]:<br>
>> > DBG:permissions:hash_match: specified group does not exist in hash table<br>
>> > Feb 1 22:41:01 proxy01 /usr/local/sbin/opensips[30163]:<br>
>> > DBG:permissions:match_subnet_table: subnet table is empty<br>
>> > Feb 1 22:41:01 proxy01 /usr/local/sbin/opensips[30163]:<br>
>> > DBG:permissions:check_src_addr_3: Looking for : <3, 173.XXX.XXX.XXX,<br>
>> > 5060,<br>
>> > 1> in tables<br>
>> > Feb 1 22:41:01 proxy01 /usr/local/sbin/opensips[30163]:<br>
>> > DBG:permissions:hash_match: specified group does not exist in hash table<br>
>> > Feb 1 22:41:01 proxy01 /usr/local/sbin/opensips[30163]:<br>
>> > DBG:permissions:match_subnet_table: subnet table is empty<br>
>> > Feb 1 22:41:01 proxy01 /usr/local/sbin/opensips[30163]:<br>
>> > DBG:permissions:check_src_addr_3: Looking for : <4, 173.XXX.XXX.XXX,<br>
>> > 5060,<br>
>> > 1> in tables<br>
>> > Feb 1 22:41:01 proxy01 /usr/local/sbin/opensips[30163]:<br>
>> > DBG:permissions:hash_match: specified group does not exist in hash table<br>
>> > Feb 1 22:41:01 proxy01 /usr/local/sbin/opensips[30163]:<br>
>> > DBG:permissions:match_subnet_table: subnet table is empty<br>
>> ><br>
>> ><br>
>> ><br>
>> ><br>
>> > This is what I have in the database<br>
>> > Proxy01:/var/log# opensipsctl db show address<br>
>> ><br>
>> > +-----+-----+----------------+------+------+-------+---------+--------------+<br>
>> > | id | grp | ip | mask | port | proto | pattern | context_info |<br>
>> ><br>
>> > +-----+-----+----------------+------+------+-------+---------+--------------+<br>
>> > | 3 | 2 | 216.XXX.XXX.202 | 32 | 5060 | any | NULL | NULL |<br>
>> > | 258 | 4 | 64.XXX.XXX.15 | 32 | 5060 | any | NULL | NULL |<br>
>> > | 1 | 10 | 173.XXX.XXX.XXX | 32 | 5060 | any | NULL | NULL |<br>
>> > | 2 | 10 | 173.XXX.XXX.XXX | 32 | 5060 | any | NULL | NULL |<br>
>> > | 257 | 3 | 173.XXX.XXX.XXX | 32 | 5060 | any | NULL | NULL |<br>
>> > | 4 | 2 | 216.XXX.XXX.202 | 32 | 5060 | any | NULL | NULL |<br>
>> ><br>
>> > +-----+-----+----------------+------+------+-------+---------+--------------+<br>
>> ><br>
>> ><br>
>> ><br>
>> > I am not sure if OpenSIPS is really querying the mysql database because<br>
>> > I<br>
>> > don't really see any connections from the server when a call is made.<br>
>> > How<br>
>> > could this be possible? When I start OpenSIPS I see that it talks to the<br>
>> > database.<br>
>> > _______________________________________________<br>
>> > Users mailing list<br>
>> > <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
>> > <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
>> ><br>
>><br>
>> _______________________________________________<br>
>> Users mailing list<br>
>> <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
>> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
><br>
><br>
><br>
><br>
> --<br>
> --<br>
> *--*--*--*--*--*<br>
> Duane<br>
> *--*--*--*--*--*<br>
> --<br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
><br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>--<br>*--*--*--*--*--*<br>Duane<br>*--*--*--*--*--*<br>--<br>