Yeah,it is ok! Thank you:)<br><br>
<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">t_relay() does not accept variables as parameters. To get the same<br>behaviour, use $du (destination uri):<br>
<br>   $du = $var(new_uri);<br>   t_relay();<br><br>Regards,<br>Bogdan<br>
<div class="im"><br>CheeWii wrote:<br>&gt; Can I use :<br>&gt;<br>&gt; $var(new_uri)=&quot;udp:&quot;+&quot;192:168:0:3&quot;+&quot;:5060&quot;;<br>&gt; t_relay(&quot;$var(new_uri)&quot;) or  t_relay($var(new_uri))<br>&gt;<br>
&gt; Maybe there is something wrong in use t_relay()~~<br>&gt;<br>&gt; 2010/3/25 Bogdan-Andrei Iancu &lt;<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a><br></div>&gt; &lt;mailto:<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>&gt;&gt;<br>

<div>
<div></div>
<div class="h5">&gt;<br>&gt;     Hi,<br>&gt;<br>&gt;     replace<br>&gt;        if (src_ip == &quot;$var(aster_ip)&quot; &amp;&amp; src_port== &quot;$var(aster_port)&quot;) {<br>&gt;<br>&gt;     with<br>&gt;        if ( $si == $var(aster_ip) &amp;&amp; $sp== $var(aster_port) ) {<br>
&gt;<br>&gt;     Regards,<br>&gt;     Bogdan<br>&gt;<br>&gt;     CheeWii wrote:<br>&gt;     &gt; Hi,<br>&gt;     &gt; I have read the Script variables introduction,and I make a test<br>&gt;     in my<br>&gt;     &gt; opensips.cfg. But the opensips cannot start up.<br>
&gt;     &gt;<br>&gt;     &gt; I have added:<br>&gt;     &gt; $var(aster_ip)=&quot;192.168.0.176&quot;;<br>&gt;     &gt; $var(aster_port)=&quot;5060&quot;;<br>&gt;     &gt; if (src_ip == &quot;$var(aster_ip)&quot; &amp;&amp; src_port== &quot;$var(aster_port)&quot;) {<br>
&gt;     &gt; xlog(&quot;L_NOTICE&quot;,&quot;Incoming Request is from $src_ip \n&quot;);<br>&gt;     &gt; }<br>&gt;     &gt;<br>&gt;     &gt; The error log is showed as follows :<br>&gt;     &gt; Mar 25 16:01:26 trixbox1 opensips: CRITICAL:core:yyerror: parse<br>
&gt;     error<br>&gt;     &gt; in config file, line 216, column 34-35: syntax error<br>&gt;     &gt; Mar 25 16:01:26 trixbox1 opensips: CRITICAL:core:yyerror: parse<br>&gt;     error<br>&gt;     &gt; in config file, line 216, column 34-35: number expected<br>
&gt;     &gt; Mar 25 16:01:26 trixbox1 opensips: CRITICAL:core:yyerror: parse<br>&gt;     error<br>&gt;     &gt; in config file, line 216, column 34-35: bad command!)<br>&gt;     &gt; Mar 25 16:01:26 trixbox1 opensips: CRITICAL:core:yyerror: parse<br>
&gt;     error<br>&gt;     &gt; in config file, line 216, column 35-36: bad command!)<br>&gt;     &gt; Mar 25 16:01:26 trixbox1 opensips: CRITICAL:core:yyerror: parse<br>&gt;     error<br>&gt;     &gt; in config file, line 216, column 37-38: bad command!)<br>
&gt;     &gt;<br>&gt;     &gt;<br>&gt;     &gt; What is wrong with it? thanks a lot!<br>&gt;     &gt;<br>&gt;     ------------------------------------------------------------------------<br>&gt;     &gt;<br>&gt;     &gt; _______________________________________________<br>
&gt;     &gt; Users mailing list<br></div></div>&gt;     &gt; <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a> &lt;mailto:<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>&gt;<br>

<div class="im">&gt;     &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;     &gt;<br>&gt;<br>&gt;<br>&gt;     --<br>
&gt;     Bogdan-Andrei Iancu<br></div>&gt;     <a href="http://www.voice-system.ro/" target="_blank">www.voice-system.ro</a> &lt;<a href="http://www.voice-system.ro/" target="_blank">http://www.voice-system.ro/</a>&gt;<br>
&gt;<br>&gt;<br>&gt;     _______________________________________________<br>&gt;     Users mailing list<br>&gt;     <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a> &lt;mailto:<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>&gt;<br>

<div>
<div></div>
<div class="h5">&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>&gt;<br>&gt; ------------------------------------------------------------------------<br>
&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>--<br>Bogdan-Andrei Iancu<br><a href="http://www.voice-system.ro/" target="_blank">www.voice-system.ro</a><br><br><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></div></div></blockquote></div><br>ye