Exactly at which line? if you have debug>6 you will get a detailed info about the error.
bogdan
Toni Heinonen wrote:
Hello,
I have troubles with SER routing. It's complaining about a syntax error on these lines:
if (uri=~"teleware.fi") { if (method=="REGISTER") { save("location"); break; }; if (!lookup("location")) { sl_send_reply("404", "Not Found"); break; }; } else if (uri=~"^tel:") { forward("1.2.3.4", "5060"); } else if (uri=~"^sip:[0-9]") { forward("1.2.3.4", "5060"); } else if (uri=~"^sip:+[0-9]") { forward("1.2.3.4", "5060"); };
The problem is on one of the else if -lines. Are the nested ifs causing trouble?
Is the config otherwise OK, the scenario is this: For requests to our domain, forward to (registered) users, for calls to PSTNs, forward to 1.2.3.4 and for calls to other SIP addresses, forward to correct SIP proxies.