<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
When I use forward, it doesnt work!<br>
I don't know how to do
<p><font size="2" color="#17365d"><strong><font face="Eras Medium ITC">Fran&ccedil;ois
<br>
</font></strong></font></p>
<p><font size="2" color="#17365d"><strong><font face="Eras Medium ITC"><br>
</font></strong></font></p>
Le 20/05/2010 17:09, Klaus Darilion a &eacute;crit&nbsp;:
<blockquote cite="mid:4BF550AC.9080608@pernau.at" type="cite">I think
in tm mode this not possible. The CANCEL gets autogenerated by Kamailio
so you can not modify it in script.
  <br>
  <br>
sip-router trunk has now support for Reason header, but only generating
it automatically or copy it from received CANCEL.
  <br>
  <br>
A workaround would be to have the proxy running in stateless mode (no
t_relay() but use forward()[1]) - then you can manipulate the CANCEL
and then forward it.
  <br>
  <br>
regards
  <br>
Klaus
  <br>
  <br>
[1] <a class="moz-txt-link-freetext" href="http://sip-router.org/wiki/cookbooks/core-cookbook/devel#forward">http://sip-router.org/wiki/cookbooks/core-cookbook/devel#forward</a>
  <br>
  <br>
Am 20.05.2010 16:27, schrieb Alex Rendour:
  <br>
  <blockquote type="cite">Hi,
    <br>
Is it possible to add an header reason in a cancel?
    <br>
    <br>
We receive a CANCEL without header reason and we need to forward to
    <br>
another SIP proxy with the reason header?
    <br>
    <br>
We use this code in my conf:
    <br>
if(is_method("CANCEL"))
    <br>
{
    <br>
if(!is_present_hf("Reason:"))
    <br>
{
    <br>
xlog("L_ERR", "reason missing");
    <br>
append_hf("reason: Q.850; cause=31\r\n");
    <br>
xlog("L_ERR", "add raison");
    <br>
}
    <br>
    <br>
}
    <br>
    <br>
Thanks,
    <br>
    <br>
regards,
    <br>
    <br>
  </blockquote>
  <br>
_______________________________________________
  <br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
  <br>
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
  <br>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
  <br>
  <br>
</blockquote>
</body>
</html>