<div dir="ltr">Hi John,<div><br></div><div>I modified the configuration script by adding "&&" and it throws a parse error, bad config file error when trying to restart Opensips.</div><div>The script in my configuration is the Residential script I generated.<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Dec 7, 2022 at 1:08 PM John Quick <<a href="mailto:john.quick@smartvox.co.uk" target="_blank">john.quick@smartvox.co.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I think there may be a simpler explanation - the logic looks incorrect in<br>
this line:<br>
if ( !(is_method("REGISTER")  || is_from_gw() ) ) {<br>
<br>
That will result in a "false" result if the request came from a known<br>
gateway. I'm not certain what the test is meant to do, but shouldn't it be<br>
more like this:<br>
if ( !is_method("REGISTER")  && is_from_gw()  ) {<br>
<br>
John Quick<br>
Smartvox Limited<br>
Web: <a href="http://www.smartvox.co.uk" rel="noreferrer" target="_blank">www.smartvox.co.uk</a><br>
<br>
<br>
</blockquote></div>