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