->
Am 15.06.2010 12:53, schrieb Andrei Pelinescu-Onciul:
On Jun 14, 2010 at 13:29, Steven C.
Blair<blairs(a)isc.upenn.edu> wrote:
I'm migrating from an older version of SER to sip-router. A syntax check of my
config file produces a few errors. The most confusing is :
0(27980) WARNING:<core> [cfg.y:3364]: warning in config file
/home/blairs/ser-penn.cfg, line 1270, column 22-23: non constant rvalue in ip comparison
Line 1270 is the following if statement:
if (to_ip==$g.gw_ip&& !isflagset(FLAG_PSTN_ALLOWED)
&& !isflagset(FLAG_TOTAG)
&& method != "ACK"&& method !=
"CANCEL")
I do not see anything mentioned in config_migration.txt which explains this warning. Does
anyone have any thoughts on how to correct this error?
You could safely ignore it. It was there just as a suggestion that comparing
ips with non constant expressions ($g.gw_ip in this case) is not the
fastest thing to do. I'll remove it.
Andrei, how will the comparison be done? IP-based or string-based.
e.g. if the string 01.01.01.01 is compared against 1.1.1.1, will it be
identical?
What about IPv6 addresses?
thanks
klaus