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