[SR-Users] append_hf to CANCEL

2013-11-20 Thread Grant Bagdasarian
Hello, I'm executing the following code for both the BYE and CANCEL in request_route: if (is_method("BYE|CANCEL")) { #finished $var(finished) = $TS; append_hf("X-Finished: $var(finished)\r\n"); } For some reason, the X-Finished header is ap

Re: [SR-Users] append_hf to CANCEL

2013-11-20 Thread Alex Balashov
On 11/20/2013 09:05 AM, Grant Bagdasarian wrote: Does append_hf not work for CANCEL requests? Correct: CANCEL is a "hop-by-hop" request where the proxy is a distinct hop, i.e. UAC sends a CANCEL to the proxy, and the proxy sends a separate CANCEL of its own on the branch that it initiated.

Re: [SR-Users] append_hf to CANCEL

2013-11-20 Thread Grant Bagdasarian
Sent: Wednesday, November 20, 2013 3:09 PM To: sr-users@lists.sip-router.org Subject: Re: [SR-Users] append_hf to CANCEL On 11/20/2013 09:05 AM, Grant Bagdasarian wrote: > Does append_hf not work for CANCEL requests? Correct: CANCEL is a "hop-by-hop" request where the proxy is a disti

Re: [SR-Users] append_hf to CANCEL

2013-11-20 Thread Alex Balashov
ginal Message- From: sr-users-boun...@lists.sip-router.org [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Alex Balashov Sent: Wednesday, November 20, 2013 3:09 PM To: sr-users@lists.sip-router.org Subject: Re: [SR-Users] append_hf to CANCEL On 11/20/2013 09:05 AM, Grant Bagdasarian

Re: [SR-Users] append_hf to CANCEL

2013-11-20 Thread Grant Bagdasarian
ashov Sent: Wednesday, November 20, 2013 3:21 PM To: sr-users@lists.sip-router.org Subject: Re: [SR-Users] append_hf to CANCEL If there is, I don't know it. Out of curiosity, why would you want to do that? On 11/20/2013 09:19 AM, Grant Bagdasarian wrote: > I see, so there is no way to ap

Re: [SR-Users] append_hf to CANCEL

2013-11-20 Thread Alex Balashov
On 11/20/2013 09:26 AM, Grant Bagdasarian wrote: I want to know when the CANCEL was received by Kamailio, and update the datetime column of the row created by the initial INVITE. It's a custom thing. What stops you from doing this now? Or do you mean you need to do it on the upstream (and pr

Re: [SR-Users] append_hf to CANCEL

2013-11-20 Thread Grant Bagdasarian
my problem. -Original Message- From: sr-users-boun...@lists.sip-router.org [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Alex Balashov Sent: Wednesday, November 20, 2013 3:28 PM To: sr-users@lists.sip-router.org Subject: Re: [SR-Users] append_hf to CANCEL On 11/20/2013 09:26

Re: [SR-Users] append_hf to CANCEL

2013-11-20 Thread Daniel-Constantin Mierla
riginal Message- From: sr-users-boun...@lists.sip-router.org [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Alex Balashov Sent: Wednesday, November 20, 2013 3:28 PM To: sr-users@lists.sip-router.org Subject: Re: [SR-Users] append_hf to CANCEL On 11/20/2013 09:26 AM, Grant Bagdasa

Re: [SR-Users] append_hf to CANCEL

2013-11-20 Thread Klaus Darilion
-Users] append_hf to CANCEL On 11/20/2013 09:05 AM, Grant Bagdasarian wrote: Does append_hf not work for CANCEL requests? Correct: CANCEL is a "hop-by-hop" request where the proxy is a distinct hop, i.e. UAC sends a CANCEL to the proxy, and the proxy sends a separate CANCEL of its o

Re: [SR-Users] append_hf to CANCEL

2013-11-21 Thread Grant Bagdasarian
4:20 PM To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] append_hf to CANCEL Hello, there is a tm module that allows setting extra parameters for local ACK and CANCEL: - http://kamailio.org/docs/modules/stable/modules/tm.html#ac_extra_hdrs But I think it doesn't su