<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
David,<div><br></div><div>Thanks for your reply. Sorry I didn't reply sooner. I will read about the vars you told me. Thanks for your help.<br><br><div>Luis.</div></div><br><br><div><hr id="stopSpelling">From: dave.dorasinger@gmail.com<br>Date: Sun, 2 Oct 2011 20:49:06 -0700<br>To: users@lists.opensips.org<br>Subject: Re: [OpenSIPS-Users] Forward() question<br><br>Luis,<br><br>forward() does not accept a variable for an argument.<br>instead use like:<br> $du = "sip:" + src_ip + ":5070";<br>I think it needs URI format without the user portion.<br>see: <a href="http://www.opensips.org/Resources/DocsCoreVar17#toc34" target="_blank">http://www.opensips.org/Resources/DocsCoreVar17#toc34</a><br>
<br>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.<br>It would probably be good to farmiliarize yourself with all the vars on that page especially the read/write ones.<br>
<br>Dave<br><br><div class="ecxgmail_quote">On Sun, Oct 2, 2011 at 7:17 PM, Luis Morales <span dir="ltr"><<a href="mailto:luisalfredo_ml31@hotmail.com">luisalfredo_ml31@hotmail.com</a>></span> wrote:<br><blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex">
<div><div dir="ltr">
Greetings,<div><br></div><div>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. </div>
<div><br></div><div>I'd like to something like this:</div><div><br></div><div>$var(dest) = src_ip + ":5070";</div><div>forward( $var(dest));</div><div><br></div><div><br>Thanks, <br><font color="#888888"><div>
Luis Morales.</div></font></div>                                            </div></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br><br>
<br>_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users</div>                                            </div></body>
</html>