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">&lt;<a href="mailto:osas@voipembedded.com">osas@voipembedded.com</a>&gt;</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&#39;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 &lt;<a href="mailto:duane.larson@gmail.com">duane.larson@gmail.com</a>&gt; wrote:<br>
&gt; This is what I see<br>
&gt;<br>
&gt; Proxy01:/var/log# opensipsctl fifo address_dump<br>
&gt;   15 &lt;173.XXX.XXX.XXX,3, 5060, 0, NULL, NULL&gt;<br>
&gt;   20 &lt;216.82.224.202,2, 5060, 0, NULL, NULL&gt;<br>
&gt;   34 &lt;64.2.142.15,4, 5060, 0, NULL, NULL&gt;<br>
&gt;   50 &lt;216.82.225.202,2, 5060, 0, NULL, NULL&gt;<br>
&gt;   63 &lt;173.XXX.XXX.XXX,10, 5060, 0, NULL, NULL&gt;<br>
&gt;   85 &lt;173.XXX.XXX.XXX,10, 5060, 0, NULL, NULL&gt;<br>
&gt; Proxy01:/var/log#<br>
&gt; Proxy01:/var/log#<br>
&gt; Proxy01:/var/log#<br>
&gt; Proxy01:/var/log#<br>
&gt; Proxy01:/var/log# opensipsctl fifo subnet_dump<br>
&gt;<br>
&gt;<br>
&gt; So the subnet_dump is empty.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Thu, Feb 2, 2012 at 10:48 AM, Ovidiu Sas &lt;<a href="mailto:osas@voipembedded.com">osas@voipembedded.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Check the in memory cache:<br>
&gt;&gt; <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>
&gt;&gt; See &quot;address_dump&quot; and &quot;subnet_dump&quot;.<br>
&gt;&gt;<br>
&gt;&gt; At start up, opensips will cache everything in memory.<br>
&gt;&gt;<br>
&gt;&gt; Regards,<br>
&gt;&gt; Ovidiu Sas<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; VoIP Embedded, Inc.<br>
&gt;&gt; <a href="http://www.voipembedded.com" target="_blank">http://www.voipembedded.com</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Thu, Feb 2, 2012 at 11:38 AM,  &lt;<a href="mailto:duane.larson@gmail.com">duane.larson@gmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt; I just upgraded my b2bua opensips server to the latest trunk version and<br>
&gt;&gt; &gt; now<br>
&gt;&gt; &gt; my if statements using &quot;check_source_address&quot; from the permissions<br>
&gt;&gt; &gt; module<br>
&gt;&gt; &gt; isn&#39;t working. I have the following set up<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; loadmodule &quot;permissions.so&quot;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; modparam(&quot;permissions&quot;,&quot;db_url&quot;,&quot;mysql://adfasdf:dfasdfasd@108.XXX.XXX.XXX/opensips&quot;)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; if (check_source_address(&quot;2&quot;) || check_source_address(&quot;3&quot;) ||<br>
&gt;&gt; &gt; check_source_address(&quot;4&quot;)) {<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; The INVITE comes from my SIP Proxy and worked before the upgrade without<br>
&gt;&gt; &gt; issue<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Feb 1 22:41:01 proxy01 /usr/local/sbin/opensips[30163]:<br>
&gt;&gt; &gt; DBG:permissions:check_src_addr_3: Looking for : &lt;2, 173.XXX.XXX.XXX,<br>
&gt;&gt; &gt; 5060,<br>
&gt;&gt; &gt; 1&gt; in tables<br>
&gt;&gt; &gt; Feb 1 22:41:01 proxy01 /usr/local/sbin/opensips[30163]:<br>
&gt;&gt; &gt; DBG:permissions:hash_match: specified group does not exist in hash table<br>
&gt;&gt; &gt; Feb 1 22:41:01 proxy01 /usr/local/sbin/opensips[30163]:<br>
&gt;&gt; &gt; DBG:permissions:match_subnet_table: subnet table is empty<br>
&gt;&gt; &gt; Feb 1 22:41:01 proxy01 /usr/local/sbin/opensips[30163]:<br>
&gt;&gt; &gt; DBG:permissions:check_src_addr_3: Looking for : &lt;3, 173.XXX.XXX.XXX,<br>
&gt;&gt; &gt; 5060,<br>
&gt;&gt; &gt; 1&gt; in tables<br>
&gt;&gt; &gt; Feb 1 22:41:01 proxy01 /usr/local/sbin/opensips[30163]:<br>
&gt;&gt; &gt; DBG:permissions:hash_match: specified group does not exist in hash table<br>
&gt;&gt; &gt; Feb 1 22:41:01 proxy01 /usr/local/sbin/opensips[30163]:<br>
&gt;&gt; &gt; DBG:permissions:match_subnet_table: subnet table is empty<br>
&gt;&gt; &gt; Feb 1 22:41:01 proxy01 /usr/local/sbin/opensips[30163]:<br>
&gt;&gt; &gt; DBG:permissions:check_src_addr_3: Looking for : &lt;4, 173.XXX.XXX.XXX,<br>
&gt;&gt; &gt; 5060,<br>
&gt;&gt; &gt; 1&gt; in tables<br>
&gt;&gt; &gt; Feb 1 22:41:01 proxy01 /usr/local/sbin/opensips[30163]:<br>
&gt;&gt; &gt; DBG:permissions:hash_match: specified group does not exist in hash table<br>
&gt;&gt; &gt; Feb 1 22:41:01 proxy01 /usr/local/sbin/opensips[30163]:<br>
&gt;&gt; &gt; DBG:permissions:match_subnet_table: subnet table is empty<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; This is what I have in the database<br>
&gt;&gt; &gt; Proxy01:/var/log# opensipsctl db show address<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; +-----+-----+----------------+------+------+-------+---------+--------------+<br>
&gt;&gt; &gt; | id | grp | ip | mask | port | proto | pattern | context_info |<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; +-----+-----+----------------+------+------+-------+---------+--------------+<br>
&gt;&gt; &gt; | 3 | 2 | 216.XXX.XXX.202 | 32 | 5060 | any | NULL | NULL |<br>
&gt;&gt; &gt; | 258 | 4 | 64.XXX.XXX.15 | 32 | 5060 | any | NULL | NULL |<br>
&gt;&gt; &gt; | 1 | 10 | 173.XXX.XXX.XXX | 32 | 5060 | any | NULL | NULL |<br>
&gt;&gt; &gt; | 2 | 10 | 173.XXX.XXX.XXX | 32 | 5060 | any | NULL | NULL |<br>
&gt;&gt; &gt; | 257 | 3 | 173.XXX.XXX.XXX | 32 | 5060 | any | NULL | NULL |<br>
&gt;&gt; &gt; | 4 | 2 | 216.XXX.XXX.202 | 32 | 5060 | any | NULL | NULL |<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; +-----+-----+----------------+------+------+-------+---------+--------------+<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; I am not sure if OpenSIPS is really querying the mysql database because<br>
&gt;&gt; &gt; I<br>
&gt;&gt; &gt; don&#39;t really see any connections from the server when a call is made.<br>
&gt;&gt; &gt; How<br>
&gt;&gt; &gt; could this be possible? When I start OpenSIPS I see that it talks to the<br>
&gt;&gt; &gt; database.<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; Users mailing list<br>
&gt;&gt; &gt; <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
&gt;&gt; &gt; <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Users mailing list<br>
&gt;&gt; <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
&gt;&gt; <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; --<br>
&gt; *--*--*--*--*--*<br>
&gt; Duane<br>
&gt; *--*--*--*--*--*<br>
&gt; --<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
&gt; <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
&gt;<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>