[OpenSIPS-Users] Forward() question
dave.dorasinger at gmail.com
Mon Oct 3 05:49:06 CEST 2011
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.
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
It would probably be good to farmiliarize yourself with all the vars on that
page especially the read/write ones.
On Sun, Oct 2, 2011 at 7:17 PM, Luis Morales
<luisalfredo_ml31 at hotmail.com>wrote:
> 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));
> Luis Morales.
> Users mailing list
> Users at lists.opensips.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Users