Hey Bogdan, But that is the function syntax in opensips 1.6.2. I think it was changed in opensips 1.6.3 version.. So.. Should I upgrade my opensips server?
Cheers On 13 April 2011 11:56, Bogdan-Andrei Iancu <[email protected]> wrote: > Hi Guys, > > 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. > > Regards, > Bogdan > > > On 04/08/2011 09:27 PM, Duane Larson wrote: > > I believe you need to have something like get_source_address("var(x)") > > That is probably the issue. Bogdan mentions in a previous mailing list > issue that the prototype of the function was changed. > > Sent from Droid > On Apr 8, 2011 1:17 PM, "Wesley Volcov" <[email protected]> wrote: > > Hey Duane, > > > > I have others groups id in my address table, that's why my source address > > function have 0, to check all groupid. > > But my is problem is the groupid that the function get_source_group(); is > > getting.. > > > > Regards, > > > > On 8 April 2011 14:14, Duane Larson <[email protected]> wrote: > > > >> 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. > >> > >> Sent from Droid > >> On Apr 8, 2011 12:03 PM, "Wesley Volcov" <[email protected]> > wrote: > >> > Hello list, > >> > > >> > I'm using opensips 1.6.2. > >> > > >> > I have the follow configuration in my AUTH route: > >> > > >> > if (check_source_address("0","$avp(i:9)")) { > >> > $avp(i:10) = get_source_group(); > >> > xlog("L_INFO", "GroupID: $avp(i:10)"); > >> > } > >> > > >> > In my address table, i have: > >> > grp = 1 > >> > ip = 192.68.10.10 > >> > mask = 32 > >> > port = 0 > >> > proto = UDP > >> > > >> > When I send a call, from a gw authenticated via IP, it gets the follow > >> group > >> > ID: > >> > GroupID: 4294967295 > >> > > >> > And then, it can not found a route, because all the routes are > configured > >> > with groupid 1. But, I don't know how opensips is getting this > groupid.. > >> > Could someone helpe me? > >> > > >> > Thanks a lot! > >> > > >> > -- > >> > Wesley Volcov > >> > Email: [email protected] > >> > Messenger: [email protected] > >> > Mobile: +55 11 9989-5348 > >> > Website: http://volcov.blogspot.com > >> > >> _______________________________________________ > >> Users mailing list > >> [email protected] > >> http://lists.opensips.org/cgi-bin/mailman/listinfo/users > >> > >> > > > > > > -- > > Wesley Volcov > > Email: [email protected] > > Messenger: [email protected] > > Mobile: +55 11 9989-5348 > > Website: http://volcov.blogspot.com > > > _______________________________________________ > Users mailing > [email protected]http://lists.opensips.org/cgi-bin/mailman/listinfo/users > > > > -- > Bogdan-Andrei Iancu > OpenSIPS eBootcamp - 2nd of May 2011 > OpenSIPS solutions and "know-how" > > -- Wesley Volcov Email: [email protected] Messenger: [email protected] Mobile: +55 11 9989-5348 Website: http://volcov.blogspot.com
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
