Skip to content

Make b2bua reply to OPTIONS #50

Description

@hb9eue

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-

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions