<div>Can I use :</div>
<div> </div>
<div>$var(new_uri)=&quot;udp:&quot;+&quot;192:168:0:3&quot;+&quot;:5060&quot;;</div>
<div>t_relay(&quot;$var(new_uri)&quot;) or  t_relay($var(new_uri))</div>
<div> </div>
<div>Maybe there is something wrong in use t_relay()~~<br><br></div>
<div class="gmail_quote">2010/3/25 Bogdan-Andrei Iancu <span dir="ltr">&lt;<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>&gt;</span><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi,<br><br>replace<br>
<div class="im">   if (src_ip == &quot;$var(aster_ip)&quot; &amp;&amp; src_port== &quot;$var(aster_port)&quot;) {<br><br></div>with<br>   if ( $si == $var(aster_ip) &amp;&amp; $sp== $var(aster_port) ) {<br><br>Regards,<br>
<font color="#888888">Bogdan<br></font>
<div>
<div></div>
<div class="h5"><br>CheeWii wrote:<br>&gt; Hi,<br>&gt; I have read the Script variables introduction,and I make a test in my<br>&gt; opensips.cfg. But the opensips cannot start up.<br>&gt;<br>&gt; I have added:<br>&gt; $var(aster_ip)=&quot;192.168.0.176&quot;;<br>
&gt; $var(aster_port)=&quot;5060&quot;;<br>&gt; if (src_ip == &quot;$var(aster_ip)&quot; &amp;&amp; src_port== &quot;$var(aster_port)&quot;) {<br>&gt; xlog(&quot;L_NOTICE&quot;,&quot;Incoming Request is from $src_ip \n&quot;);<br>
&gt; }<br>&gt;<br>&gt; The error log is showed as follows :<br>&gt; Mar 25 16:01:26 trixbox1 opensips: CRITICAL:core:yyerror: parse error<br>&gt; in config file, line 216, column 34-35: syntax error<br>&gt; Mar 25 16:01:26 trixbox1 opensips: CRITICAL:core:yyerror: parse error<br>
&gt; in config file, line 216, column 34-35: number expected<br>&gt; Mar 25 16:01:26 trixbox1 opensips: CRITICAL:core:yyerror: parse error<br>&gt; in config file, line 216, column 34-35: bad command!)<br>&gt; Mar 25 16:01:26 trixbox1 opensips: CRITICAL:core:yyerror: parse error<br>
&gt; in config file, line 216, column 35-36: bad command!)<br>&gt; Mar 25 16:01:26 trixbox1 opensips: CRITICAL:core:yyerror: parse error<br>&gt; in config file, line 216, column 37-38: bad command!)<br>&gt;<br>&gt;<br>&gt; What is wrong with it? thanks a lot!<br>
</div></div>&gt; ------------------------------------------------------------------------<br>
<div class="im">&gt;<br>&gt; _______________________________________________<br>&gt; Users mailing list<br>&gt; <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>&gt; <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
&gt;<br><br><br></div>
<div class="im">--<br>Bogdan-Andrei Iancu<br><a href="http://www.voice-system.ro/" target="_blank">www.voice-system.ro</a><br><br><br>_______________________________________________<br></div>
<div>
<div></div>
<div class="h5">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>
</div></div></blockquote></div><br>