Hi John,

I modified the configuration script by adding "&&" and it throws a parse
error, bad config file error when trying to restart Opensips.
The script in my configuration is the Residential script I generated.


On Wed, Dec 7, 2022 at 1:08 PM John Quick <john.qu...@smartvox.co.uk> wrote:

> I think there may be a simpler explanation - the logic looks incorrect in
> this line:
> if ( !(is_method("REGISTER")  || is_from_gw() ) ) {
>
> That will result in a "false" result if the request came from a known
> gateway. I'm not certain what the test is meant to do, but shouldn't it be
> more like this:
> if ( !is_method("REGISTER")  && is_from_gw()  ) {
>
> John Quick
> Smartvox Limited
> Web: www.smartvox.co.uk
>
>
>
_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to