Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make b2bua reply to OPTIONS #50

Open
hb9eue opened this issue Jun 7, 2024 · 0 comments
Open

Make b2bua reply to OPTIONS #50

hb9eue opened this issue Jun 7, 2024 · 0 comments

Comments

@hb9eue
Copy link

hb9eue commented Jun 7, 2024

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-

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant