-
Notifications
You must be signed in to change notification settings - Fork 7
Description
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