b2bua
b2bua copied to clipboard
Make b2bua reply to OPTIONS
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-