[OpenSIPS-Users] Forward() question

Dave Singer dave.dorasinger at gmail.com
Mon Oct 3 05:49:06 CEST 2011


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_ml31 at 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 at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20111002/e85a1bd1/attachment.htm>


More information about the Users mailing list