Skip to content

Is there a way to set headers in the CANCELs emitted by the simringer #7

@elbow

Description

@elbow

Hi @davehorton ,

We use simringer.

When one of the forks answers, I'd like to be able to add a "Reason" header to all the cancels sent on the other legs, viz 'Reason: SIP;cause=200;text="Call completed elsewhere"'.

This is so the client devices can adjust how they show the "missed" invite. Kamailio includes such a header, at least in our configuration.

My skim through the code here shows calls to req.cancel() and I don't see any place for something to set the headers for the cancel sent.

In related news if I receive a CANCEL from the upstream (caller) side, then I want to proxy the Reason: header from the incoming cancel to my outgoing cancels. Not sure if there's a way to do that - I added 'reason' to my proxyRequestHeaders which I will try now but its just a guess as to what to do.

Thanks,
Steve

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions