<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Menlo;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’m creating a configuration is for a SIP <> HTTP gateway (performing protocol conversion) and thus all SIP messages and responses needs to be generated from the kamailio config file.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’m failing to create the case where the calling user abandons the session, and thus, following the reception of a CANCEL a 200 “OK” needs to be sent to this transaction and later the 487 “Request Terminated” to the SIP INVITE original
 session.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">On the traces I see:<o:p></o:p></p>
<p class="MsoNormal">SIP INVITE (Cseq 1 INVITE) --><o:p></o:p></p>
<p class="MsoNormal">100 Trying (Cseq 1 INVITE) <--<o:p></o:p></p>
<p class="MsoNormal">180 Ringing (Cseq 1 INVITE) <--<o:p></o:p></p>
<p class="MsoNormal">SIP CANCEL (Cseq 1 CANCEL) --><o:p></o:p></p>
<p class="MsoNormal">200 Ok (CSeq 1 CANCEL) <--<o:p></o:p></p>
<p class="MsoNormal">487 Request Terminated (CSeq 1 CANCEL) <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Have then tried several options, trying to force the CSeq 1 INVITE but without success.
<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:36.0pt">t_reply_callid("$ci", "$cs", "487", " Request Terminated ");<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:36.0pt">t_reply_callid("$ci", "$rm", "487", "Request Terminated");<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:36.0pt">t_reply_callid("$ci", "1", "487", "Request Terminated");<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">For instance, for the last I get the following log.<o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:Menlo"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:Menlo"> 6(60226) exec: *** cfgtrace:request_route=[REQINIT] c=[/etc/kamailio/kamailio.cfg] l=705 a=28 n=t_reply_callid<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:Menlo"> 6(60226) DEBUG: tm [t_lookup.c:1715]: t_lookup_callid(): created comparable call_id header field: >Call-ID: 76589ZTJmNTAwZDhlOTZiM2I3MjhhYzllNjgyOWVjZGZmMzk<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:Menlo"><<o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:Menlo"> 6(60226) DEBUG: tm [t_lookup.c:1719]: t_lookup_callid(): created comparable cseq header field: >CSeq: 1 INVITE<<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:Menlo"> 6(60226) DEBUG: tm [t_lookup.c:1722]: t_lookup_callid(): just locked hash index 18668, looking for transactions there:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:Menlo"> 6(60226) DEBUG: tm [t_lookup.c:1749]: t_lookup_callid(): DEBUG: t_lookup_callid: transaction not found.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:Menlo"> 6(60226) DEBUG: tmx [tmx_mod.c:500]: t_reply_callid(): Lookup failed - no transaction<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:36.0pt"><o:p> </o:p></p>
<p class="MsoNormal">Could you assist here?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
<p class="MsoNormal">Joao<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b><span style="font-size:9.0pt;font-family:"Verdana",sans-serif">Joao Alves</span></b><b><span style="font-size:9.0pt;font-family:"Verdana",sans-serif"><o:p></o:p></span></b></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Verdana",sans-serif;color:black">Solution Architect, Unified Communications</span><span lang="EN-GB" style="font-size:7.5pt;font-family:"Verdana",sans-serif"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:7.5pt;font-family:"Verdana",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:7.5pt;font-family:"Verdana",sans-serif">+351 214094660 (desk)</span><span lang="EN-GB" style="font-size:12.0pt;font-family:"Times New Roman",serif"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:7.5pt;font-family:"Verdana",sans-serif">+351 912783702 (mobile)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:12.0pt;font-family:"Times New Roman",serif"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:18.0pt;text-indent:-18.0pt"><b><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#747665">AMDOCS |</span></b><b><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:black">
</span></b><b><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#EF8200">EMBRACE CHALLENGE</span></b><b><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:black">
</span></b><b><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#AAB300">EXPERIENCE SUCCESS</span></b><span style="font-size:9.0pt;font-family:"Verdana",sans-serif"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement,
you may review at http://www.amdocs.com/email_disclaimer.asp
</body>
</html>