Hey Duane,<br><br>I have others groups id in my address table, that's why my source address function have 0, to check all groupid.<br>But my is problem is the groupid that the function get_source_group(); is getting.. <br>
<br>Regards,<br><br><div class="gmail_quote">On 8 April 2011 14:14, Duane Larson <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;">
<p>I your check source address function shouldn't you have a 1 instead of a 0 since that is what you have in your permissions table.</p>
<p>Sent from Droid</p><div><div></div><div class="h5">
<div class="gmail_quote">On Apr 8, 2011 12:03 PM, "Wesley Volcov" <<a href="mailto:wesleyvolcov@gmail.com" target="_blank">wesleyvolcov@gmail.com</a>> wrote:<br type="attribution">> Hello list,<br>> <br>
> I'm using opensips 1.6.2.<br>
> <br>> I have the follow configuration in my AUTH route:<br>> <br>> if (check_source_address("0","$avp(i:9)")) {<br>> $avp(i:10) = get_source_group();<br>> xlog("L_INFO", "GroupID: $avp(i:10)");<br>
> }<br>> <br>> In my address table, i have:<br>> grp = 1<br>> ip = 192.68.10.10<br>> mask = 32<br>> port = 0<br>> proto = UDP<br>> <br>> When I send a call, from a gw authenticated via IP, it gets the follow group<br>
> ID:<br>> GroupID: 4294967295<br>> <br>> And then, it can not found a route, because all the routes are configured<br>> with groupid 1. But, I don't know how opensips is getting this groupid..<br>> Could someone helpe me?<br>
> <br>> Thanks a lot!<br>> <br>> -- <br>> Wesley Volcov<br>> Email: <a href="mailto:wesleyvolcov@gmail.com" target="_blank">wesleyvolcov@gmail.com</a><br>> Messenger: <a href="mailto:volcov@live.com" target="_blank">volcov@live.com</a><br>
> Mobile: +55 11 9989-5348<br>> Website: <a href="http://volcov.blogspot.com" target="_blank">http://volcov.blogspot.com</a><br></div>
</div></div><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></blockquote></div><br><br clear="all"><br>-- <br>Wesley Volcov<br>Email: <a href="mailto:wesleyvolcov@gmail.com">wesleyvolcov@gmail.com</a><br>Messenger: <a href="mailto:volcov@live.com">volcov@live.com</a><br>Mobile: +55 11 9989-5348<br>
Website: <a href="http://volcov.blogspot.com">http://volcov.blogspot.com</a><br>