b2bua icon indicating copy to clipboard operation
b2bua copied to clipboard

Make b2bua reply to OPTIONS

Open hb9eue opened this issue 8 months ago • 0 comments

Hi

Kamailio checks if a dispatcher is reachable and alive by sending OPTIONS

At the moment, b2bua replies with 501 not implemented which causes kamailio to consider the dispatcher being down.

I just changed one line to make this work:

        if req.getMethod() in ('NOTIFY', 'PING', 'OPTIONS'):
            # Whynot?
            return (req.genResponse(200, 'OK'), None, None)

I'm not sure if PING is a valid SIP method. Maybe this should be OPTIONS?

Also I suspect, this would just reply with 200 OK to notify. But CPE needs to get NOTIFY messages for MWI as example.

-Benoît-

hb9eue avatar Jun 07 '24 12:06 hb9eue