<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Wesley,<br>
<br>
that will be the right way - if not really possible, I can try to
make you a backport only for this item.<br>
<br>
Regards,<br>
Bogdan<br>
<br>
On 04/13/2011 06:06 PM, Wesley Volcov wrote:
<blockquote
cite="mid:BANLkTinwsV8UfNmF2QP1go4bwuhMpff92w@mail.gmail.com"
type="cite">Hey Bogdan,<br>
<br>
But that is the function syntax in opensips 1.6.2. I think it was
changed in opensips 1.6.3 version..<br>
So.. Should I upgrade my opensips server?<br>
<br>
Cheers<br>
<br>
<div class="gmail_quote">On 13 April 2011 11:56, Bogdan-Andrei
Iancu <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:bogdan@opensips.org">bogdan@opensips.org</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000"> Hi Guys,<br>
<br>
yes, the prototype of the function was changed exactly
because of this kind of problems - you cannot use the script
function to return values via return code (this is used for
something else), so the returned value is passed now via an
output parameter.<br>
<br>
Regards,<br>
Bogdan
<div>
<div class="h5"><br>
<br>
On 04/08/2011 09:27 PM, Duane Larson wrote:
<blockquote type="cite">
<p>I believe you need to have something like
get_source_address("var(x)")</p>
<p>That is probably the issue. Bogdan mentions in a
previous mailing list issue that the prototype of
the function was changed.</p>
<p>Sent from Droid</p>
<div class="gmail_quote">On Apr 8, 2011 1:17 PM,
"Wesley Volcov" <<a moz-do-not-send="true"
href="mailto:wesleyvolcov@gmail.com"
target="_blank">wesleyvolcov@gmail.com</a>>
wrote:<br type="attribution">
> Hey Duane,<br>
> <br>
> I have others groups id in my address table,
that's why my source address<br>
> function have 0, to check all groupid.<br>
> But my is problem is the groupid that the
function get_source_group(); is<br>
> getting..<br>
> <br>
> Regards,<br>
> <br>
> On 8 April 2011 14:14, Duane Larson <<a
moz-do-not-send="true"
href="mailto:duane.larson@gmail.com"
target="_blank">duane.larson@gmail.com</a>>
wrote:<br>
> <br>
>> I your check source address function
shouldn't you have a 1 instead of a 0<br>
>> since that is what you have in your
permissions table.<br>
>><br>
>> Sent from Droid<br>
>> On Apr 8, 2011 12:03 PM, "Wesley Volcov"
<<a moz-do-not-send="true"
href="mailto:wesleyvolcov@gmail.com"
target="_blank">wesleyvolcov@gmail.com</a>>
wrote:<br>
>> > 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<br>
>> 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 moz-do-not-send="true"
href="mailto:wesleyvolcov@gmail.com"
target="_blank">wesleyvolcov@gmail.com</a><br>
>> > Messenger: <a moz-do-not-send="true"
href="mailto:volcov@live.com" target="_blank">volcov@live.com</a><br>
>> > Mobile: +55 11 9989-5348<br>
>> > Website: <a moz-do-not-send="true"
href="http://volcov.blogspot.com" target="_blank">http://volcov.blogspot.com</a><br>
>><br>
>>
_______________________________________________<br>
>> Users mailing list<br>
>> <a moz-do-not-send="true"
href="mailto:Users@lists.opensips.org"
target="_blank">Users@lists.opensips.org</a><br>
>> <a moz-do-not-send="true"
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>
> Wesley Volcov<br>
> Email: <a moz-do-not-send="true"
href="mailto:wesleyvolcov@gmail.com"
target="_blank">wesleyvolcov@gmail.com</a><br>
> Messenger: <a moz-do-not-send="true"
href="mailto:volcov@live.com" target="_blank">volcov@live.com</a><br>
> Mobile: +55 11 9989-5348<br>
> Website: <a moz-do-not-send="true"
href="http://volcov.blogspot.com" target="_blank">http://volcov.blogspot.com</a><br>
</div>
<pre><fieldset></fieldset>
_______________________________________________
Users mailing list
<a moz-do-not-send="true" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a moz-do-not-send="true" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
<br>
</div>
</div>
<font color="#888888">
<pre cols="72">--
Bogdan-Andrei Iancu
OpenSIPS eBootcamp - 2nd of May 2011
OpenSIPS solutions and "know-how"</pre>
</font></div>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
Wesley Volcov<br>
Email: <a moz-do-not-send="true"
href="mailto:wesleyvolcov@gmail.com">wesleyvolcov@gmail.com</a><br>
Messenger: <a moz-do-not-send="true"
href="mailto:volcov@live.com">volcov@live.com</a><br>
Mobile: +55 11 9989-5348<br>
Website: <a moz-do-not-send="true"
href="http://volcov.blogspot.com">http://volcov.blogspot.com</a><br>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Bogdan-Andrei Iancu
OpenSIPS eBootcamp - 2nd of May 2011
OpenSIPS solutions and "know-how"</pre>
</body>
</html>