<p>Hey Guys,</p>

<p>I am testing the t_set_no_e2e_cancel_reason in latest stable Kamailio (and also in 4.2.x) but it does not seem to work. Trying to disable it via e2e_cancel_reason=0 works as expected.</p>

<p>The target would be disabling in the script copying the reason from original CANCEL to hop-by-hop one like:</p>

<pre><code>if($hdr(Reason)=="SIP;cause=487;text=ORIGINATOR_CANCEL") t_set_no_e2e_cancel_reason(1);
</code></pre>

<p>My version:</p>

<pre><code># kamailio -V
version: kamailio 4.3.1 (x86_64/linux) 
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, F_MALLOC, DBG_F_MALLOC, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: unknown 
compiled with gcc 4.7.2
</code></pre>

<p>I am at your disposal for any further troubleshooting steps.</p>

<p>Ta,<br>
DanB</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/kamailio/kamailio/issues/261">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZXORErKbKv1yFVEqC0YKG3ijgSENks5ogPx8gaJpZM4FeeF3.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
  <div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
    <link itemprop="url" href="https://github.com/kamailio/kamailio/issues/261"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>