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