<div>Can I use :</div>
<div> </div>
<div>$var(new_uri)="udp:"+"192:168:0:3"+":5060";</div>
<div>t_relay("$var(new_uri)") 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"><<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">Hi,<br><br>replace<br>
<div class="im"> if (src_ip == "$var(aster_ip)" && src_port== "$var(aster_port)") {<br><br></div>with<br> if ( $si == $var(aster_ip) && $sp== $var(aster_port) ) {<br><br>Regards,<br>
<font color="#888888">Bogdan<br></font>
<div>
<div></div>
<div class="h5"><br>CheeWii wrote:<br>> Hi,<br>> I have read the Script variables introduction,and I make a test 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 error<br>> in config file, line 216, column 34-35: syntax error<br>> Mar 25 16:01:26 trixbox1 opensips: CRITICAL:core:yyerror: parse error<br>
> in config file, line 216, column 34-35: number expected<br>> Mar 25 16:01:26 trixbox1 opensips: CRITICAL:core:yyerror: parse error<br>> in config file, line 216, column 34-35: bad command!)<br>> Mar 25 16:01:26 trixbox1 opensips: CRITICAL:core:yyerror: parse error<br>
> in config file, line 216, column 35-36: bad command!)<br>> Mar 25 16:01:26 trixbox1 opensips: CRITICAL:core:yyerror: parse error<br>> in config file, line 216, column 37-38: bad command!)<br>><br>><br>> What is wrong with it? thanks a lot!<br>
</div></div>> ------------------------------------------------------------------------<br>
<div class="im">><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></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>