Dear All:
Would you please check these lines if any bad config. When I add these lines, I always got two errors. Thanks!
if ( search ( "From:.*sip:0944021[0-9][0-9][0-9]@" ) && !( search ( "Call-ID:.*@prepaid.example.com" ) ) && ( method=="INVITE" || method=="CANCEL" || method=="BYE" || method=="ACK" || method=="MESSAGE" )) { log(1,"Prepaid-User"); rewritehost("prepaid.example.com"); forward(prepaid.example.com,5065); break; };
Best Regards laksman
Hi,
if you use debug=9 and log_stderr=yes in config file, you will get more information about the syntax errors - like precise line and position.
Best Regards, Marian Dumitru
尤良昌 wrote:
Dear All:
Would you please check these lines if any bad config. When I add these lines, I always got two errors. Thanks!
if ( search ( "From:.*sip:0944021[0-9][0-9][0-9]@" ) && !( search ( "Call-ID:.*@prepaid.example.com" ) ) && ( method=="INVITE" || method=="CANCEL" || method=="BYE" || method=="ACK" || method=="MESSAGE" )) { log(1,"Prepaid-User"); rewritehost("prepaid.example.com"); forward(prepaid.example.com,5065); break; };
Best Regards laksman
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers