<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    have you created the transaction for INVITE request?<br>
    <br>
    There is also a function t_cancel_callid() that could help better
    than t_reply_callid().<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 15/06/15 19:29, Joao Alves wrote:<br>
    </div>
    <blockquote
cite="mid:BE9CCC3E59E41A43B74480AD128661E80114A7C4A6@ILRAADAGBE3.corp.amdocs.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <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]-->
      <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
            style="font-size:7.5pt;font-family:"Verdana",sans-serif"
            lang="EN-GB"><o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:7.5pt;font-family:"Verdana",sans-serif"
            lang="EN-GB"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:7.5pt;font-family:"Verdana",sans-serif"
            lang="EN-GB">+351 214094660 (desk)</span><span
            style="font-size:12.0pt;font-family:"Times New
            Roman",serif" lang="EN-GB"><o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:7.5pt;font-family:"Verdana",sans-serif"
            lang="EN-GB">+351 912783702 (mobile)<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:12.0pt;font-family:"Times New
            Roman",serif" lang="EN-GB"><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 <a class="moz-txt-link-freetext" href="http://www.amdocs.com/email_disclaimer.asp">http://www.amdocs.com/email_disclaimer.asp</a>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<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>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Book: SIP Routing With Kamailio - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a></pre>
  </body>
</html>