[SR-Users] Add Reason Header to kamailio generated CANCEL

Henning Westerholt hw at skalatan.de
Fri Jan 31 21:37:48 CET 2020


Hello,

have you tried to use this parameter:

http://kamailio.org/docs/modules/stable/modules/tm.html#local_cancel_reason

Cheers,

Henning

--
Henning Westerholt – https://skalatan.de/blog/
Kamailio services – https://gilawa.com<https://gilawa.com/>

From: sr-users <sr-users-bounces at lists.kamailio.org> On Behalf Of Alfonso Pinto
Sent: Wednesday, January 29, 2020 8:04 PM
To: Kamailio (SER) - Users Mailing List <sr-users at lists.kamailio.org>
Subject: [SR-Users] Add Reason Header to kamailio generated CANCEL

Hi everyone,

I've got a specific case: when the inv_fr times out, I need to add a Reason header to the CANCEL generated by kamailio. I've tried to see if I could do it in the onsend_route, but that one is not triggered for the generated CANCEL. I also checked event_route[tm:local-request], but that one isn't triggered either for the generated CANCEL.

Is there any way to do it? Or maybe to have any pointer about where to look in the code so I may try to trigger event_route[tm:local-request] for these generated CANCELs?

Regards,
Alfonso
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20200131/3851805f/attachment.html>


More information about the sr-users mailing list