Luis, forward() does not accept a variable for an argument. instead use like: $du = "sip:" + src_ip + ":5070"; I think it needs URI format without the user portion. see: http://www.opensips.org/Resources/DocsCoreVar17#toc34
There are a bunch of older functions that do not accept variables as arguments. Some of them like this have read/write variables that can be used instead. It would probably be good to farmiliarize yourself with all the vars on that page especially the read/write ones. Dave On Sun, Oct 2, 2011 at 7:17 PM, Luis Morales <luisalfredo_m...@hotmail.com>wrote: > Greetings, > > I'd like to use a variable with the function forward() to pass it the > destination, but I can't find a way to do it. I've look in the > documentation, but i don't know if I'm doing something wrong, or it just > can't be done. > > I'd like to something like this: > > $var(dest) = src_ip + ":5070"; > forward( $var(dest)); > > > Thanks, > Luis Morales. > > _______________________________________________ > Users mailing list > Users@lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > >
_______________________________________________ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users