<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Hi Stefan,<br>
      <br>
      So you want to check <tt>if the BYE <tt>does actually belong <tt>to
            an ongoing dialog/call, right ? if so, you should use the
            dialog m<tt>odule:<br>
              <tt>   
                <a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/2.3.x/dialog.html">http://www.opensips.org/html/docs/modules/2.3.x/dialog.html</a><br>
                <br>
                <tt>Create the<tt> dialog at <tt>initial INVITE time
                      and for <tt>sequential requests (like BYE) <tt>use
                          the match_dialog() <tt>for the c<tt>heck.<br>
                              <br>
                              <tt>And yes, sea<tt>ts are still available
                                  for the summit, you can <tt>register
                                    anytime here:<br>
                                    <tt>   
                                      <a class="moz-txt-link-freetext" href="http://www.opensips.org/events/Summit-2018Amsterdam/">http://www.opensips.org/events/Summit-2018Amsterdam/</a></tt><br>
                                  </tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt></tt><br>
      <tt>Regards,</tt><br>
    </tt>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a>
OpenSIPS Summit 2018
  <a class="moz-txt-link-freetext" href="http://www.opensips.org/events/Summit-2018Amsterdam">http://www.opensips.org/events/Summit-2018Amsterdam</a>
</pre>
    <div class="moz-cite-prefix">On 01/26/2018 05:54 PM, Stefan Carlsson
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:e3fab26b9b424e88aec11768e2d88126@svab-exchange.vaxeltjanst.local">
      <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:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@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:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:"\@SimSun";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
tt
        {mso-style-priority:99;
        font-family:"Courier New";}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;
        color:black;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
p.emailquote, li.emailquote, div.emailquote
        {mso-style-name:emailquote;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:1.0pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;
        color:black;}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle22
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:1413577944;
        mso-list-type:hybrid;
        mso-list-template-ids:-300228218 -956930264 69009411 69009413 69009409 69009411 69009413 69009409 69009411 69009413;}
@list l0:level1
        {mso-level-start-at:0;
        mso-level-number-format:bullet;
        mso-level-text:-;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:"Calibri",sans-serif;
        mso-fareast-font-family:Calibri;}
@list l0:level2
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:"Courier New";}
@list l0:level3
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Wingdings;}
@list l0:level4
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Symbol;}
@list l0:level5
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:"Courier New";}
@list l0:level6
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Wingdings;}
@list l0:level7
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Symbol;}
@list l0:level8
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:"Courier New";}
@list l0:level9
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Wingdings;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></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"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
            lang="EN-US">I’ve thought  that I could check the validity
            of the received BYE.        (you have to bear with me as I
            am a newbie  (i’m ISDN guy) …..  </span><span
style="font-size:11.0pt;font-family:Wingdings;color:#1F497D;mso-fareast-language:EN-US"
            lang="EN-US">J</span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
            lang="EN-US"> )<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
            lang="EN-US">I removed the t_check_trans() and did the
            unforce_rtp_poxy()  before the t_relay() just catching the
            t_relay() reponse, now it seems to work again.<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
            lang="EN-US">(One interesting fact, is that this row has
            been there since release 2.1 , and it worked
          </span><span
style="font-size:11.0pt;font-family:Wingdings;color:#1F497D;mso-fareast-language:EN-US"
            lang="EN-US">J</span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
            lang="EN-US"> )<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
            lang="EN-US">So the question.<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
            lang="EN-US">How can I check that the received BYE is
            referring to specific previous INVITE –-> ACK. ? , or
            shall I just trust the TM.<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
            lang="EN-US">Take care…<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
            lang="EN-US">(btw, are there any seats left on the Amsterdam
            Summit)<o:p></o:p></span></p>
        <div>
          <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"
              lang="EN-US"><o:p> </o:p></span></p>
          <p class="MsoNormal"><span
              style="font-size:10.0pt;font-family:"Arial",sans-serif">Kind
              Regards / Vänligen …<o:p></o:p></span></p>
          <p class="MsoNormal"><span
              style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
          <p class="MsoNormal"><span
              style="font-size:10.0pt;font-family:"Arial",sans-serif">Stefan
              Carlsson<o:p></o:p></span></p>
          <p class="MsoNormal"><span
              style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
          <p class="MsoNormal"><span
              style="font-size:10.0pt;font-family:"Arial",sans-serif">---------------------------------------------------------------------------</span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><br>
            </span><b><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1F497D">Svensk
                Växeltjänst AB</span></b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p></o:p></span></p>
          <p class="MsoNormal"><span
style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#1F497D"
              lang="EN-US">Stefan Carlsson
              <br>
              Systemdesign Tele/Data<br>
              Tele dir. +46 (0)504 697601 Tele off +46 (0)504 697600<br>
              Mob. +46 (0)708 267 213<br>
            </span><span
style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#1F497D"><a
                href="mailto:stefan.carlsson@vaxeltjanst.se"
                moz-do-not-send="true"><span lang="EN-US">stefan.carlsson@vaxeltjanst.se</span></a>
              <a href="http://www.vaxeltjanst.se/"
                moz-do-not-send="true"><span lang="EN-US">www.vaxeltjanst.se</span></a>
              <o:p></o:p></span></p>
        </div>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
        <div>
          <div style="border:none;border-top:solid #E1E1E1
            1.0pt;padding:3.0pt 0in 0in 0in">
            <p class="MsoNormal"><b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext"
                  lang="EN-US">From:</span></b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext"
                lang="EN-US"> Bogdan-Andrei Iancu
                [<a class="moz-txt-link-freetext" href="mailto:bogdan@opensips.org">mailto:bogdan@opensips.org</a>]
                <br>
                <b>Sent:</b> Friday, January 26, 2018 16:21<br>
                <b>To:</b> Stefan Carlsson
                <a class="moz-txt-link-rfc2396E" href="mailto:stefan.carlsson@vaxeltjanst.se"><stefan.carlsson@vaxeltjanst.se></a>;
                <a class="moz-txt-link-abbreviated" href="mailto:users@lists.opensips.org">users@lists.opensips.org</a><br>
                <b>Subject:</b> Re: [OpenSIPS-Users] Strange behavior in
                BYE transaction<o:p></o:p></span></p>
          </div>
        </div>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">Are you sure you are not mixing a 
          TRANSACTION (a singel request with all its replies) with a
          DIALOG (all transactions forming a call, like INVITE+BYE) ??<br>
          <br>
          Regards,<br>
          <br>
          <o:p></o:p></p>
        <pre>Bogdan-Andrei Iancu<o:p></o:p></pre>
        <pre><o:p> </o:p></pre>
        <pre>OpenSIPS Founder and Developer<o:p></o:p></pre>
        <pre>  <a href="http://www.opensips-solutions.com" moz-do-not-send="true">http://www.opensips-solutions.com</a><o:p></o:p></pre>
        <pre>OpenSIPS Summit 2018<o:p></o:p></pre>
        <pre>  <a href="http://www.opensips.org/events/Summit-2018Amsterdam" moz-do-not-send="true">http://www.opensips.org/events/Summit-2018Amsterdam</a><o:p></o:p></pre>
        <div>
          <p class="MsoNormal">On 01/26/2018 05:07 PM, Stefan Carlsson
            wrote:<o:p></o:p></p>
        </div>
        <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
          <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
              lang="EN-US">Hi Bogdan , thank you for your fast reply.</span><o:p></o:p></p>
          <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
              lang="EN-US"> </span><o:p></o:p></p>
          <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
              lang="EN-US">The problem is that t_check_trans() doesn’t
              find the transaction in the response of the received BYE.
            </span><o:p></o:p></p>
          <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
              lang="EN-US">so I cannot unforce the rtp_proxy and do the
              t_relay() (eg. send OK 200 back .)</span><o:p></o:p></p>
          <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
              lang="EN-US"> </span><o:p></o:p></p>
          <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
              lang="EN-US">See below code snap.</span><o:p></o:p></p>
          <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
              lang="EN-US"> </span><o:p></o:p></p>
          <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
              lang="EN-US">*** 
            </span><o:p></o:p></p>
          <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
              lang="EN-US"> </span><o:p></o:p></p>
          <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#2F5597"
              lang="EN-US">     if(t_check_trans() ) {    
                                       
            </span><o:p></o:p></p>
          <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#2F5597"
              lang="EN-US"> </span><o:p></o:p></p>
          <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#2F5597"
              lang="EN-US">        xlog("We have an
              transaction");       
            </span><o:p></o:p></p>
          <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#2F5597"
              lang="EN-US">                unforce_rtp_proxy();
            </span><o:p></o:p></p>
          <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#2F5597"
              lang="EN-US">                t_relay();</span><o:p></o:p></p>
          <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#2F5597"
              lang="EN-US">        }</span><o:p></o:p></p>
          <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#2F5597"
              lang="EN-US">        else</span><o:p></o:p></p>
          <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#2F5597"
              lang="EN-US">        {</span><o:p></o:p></p>
          <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#2F5597"
              lang="EN-US">           xlog("We DONT have an
              transaction");</span><o:p></o:p></p>
          <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#2F5597"
              lang="EN-US">           sl_reply_error();           
                                                       <<<<
              Here we got (of course):        SIP/2.0 500 Server error
              occurred (1/SL)</span><o:p></o:p></p>
          <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#2F5597"
              lang="EN-US">       
            </span><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#2F5597">}</span><o:p></o:p></p>
          <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
              lang="EN-US"> </span><o:p></o:p></p>
          <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
              lang="EN-US">**** debug snap</span><o:p></o:p></p>
          <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
              lang="EN-US"> </span><o:p></o:p></p>
          <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
              lang="EN-US">Jan 26 13:25:33 siprouter
              /usr/sbin/opensips[5140]: DBG:core:get_hdr_field: cseq
              <CSeq>: <2> <BYE></span><o:p></o:p></p>
          <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
              lang="EN-US">Jan 26 13:25:33 siprouter
              /usr/sbin/opensips[5140]: DBG:tm:t_lookup_request: start
              searching: hash=28500, isACK=0</span><o:p></o:p></p>
          <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
              lang="EN-US">Jan 26 13:25:33 siprouter
              /usr/sbin/opensips[5140]: DBG:tm:matching_3261: RFC3261
              transaction matching failed</span><o:p></o:p></p>
          <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
              lang="EN-US">Jan 26 13:25:33 siprouter
              /usr/sbin/opensips[5140]: DBG:tm:t_lookup_request: no
              transaction found</span><o:p></o:p></p>
          <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
              lang="EN-US">Jan 26 13:25:33 siprouter
              /usr/sbin/opensips[5140]: We DONT have an transaction</span><o:p></o:p></p>
          <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
              lang="EN-US">Jan 26 13:25:33 siprouter
              /usr/sbin/opensips[5140]: DBG:sl:sl_reply_error: error
              text is Server error occurred (1/SL)</span><o:p></o:p></p>
          <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
              lang="EN-US">Jan 26 13:25:33 siprouter
              /usr/sbin/opensips[5140]: DBG:core:parse_headers:
              flags=ffffffffffffffff</span><o:p></o:p></p>
          <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
              lang="EN-US"> </span><o:p></o:p></p>
          <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
              lang="EN-US">Btw. Where is the hash=28500  constructed</span><o:p></o:p></p>
          <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
              lang="EN-US"> </span><o:p></o:p></p>
          <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
              lang="EN-US">// Regards …</span><o:p></o:p></p>
          <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
              lang="EN-US"> </span><o:p></o:p></p>
          <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
              lang="EN-US">Stefan</span><o:p></o:p></p>
          <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"> </span><o:p></o:p></p>
          <div>
            <div style="border:none;border-top:solid #E1E1E1
              1.0pt;padding:3.0pt 0in 0in 0in">
              <p class="MsoNormal"><b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext"
                    lang="EN-US">From:</span></b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext"
                  lang="EN-US"> Bogdan-Andrei Iancu [<a
                    href="mailto:bogdan@opensips.org"
                    moz-do-not-send="true">mailto:bogdan@opensips.org</a>]
                  <br>
                  <b>Sent:</b> Friday, January 26, 2018 15:50<br>
                  <b>To:</b> Stefan Carlsson <a
                    href="mailto:stefan.carlsson@vaxeltjanst.se"
                    moz-do-not-send="true"><stefan.carlsson@vaxeltjanst.se></a><br>
                  <b>Subject:</b> Re: [OpenSIPS-Users] Strange behavior
                  in BYE transaction</span><o:p></o:p></p>
            </div>
          </div>
          <p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
          <p class="MsoNormal"><tt><span style="font-size:10.0pt">Hi
                Stefan,</span></tt><span
              style="font-size:10.0pt;font-family:"Courier
              New""><br>
              <br>
              <tt>I do not understand your problem ? Your OpenSIPS
                receives a BYE requests....ok, what is going wrong at
                this point ?</tt><br>
              <br>
              <tt>Regards,</tt><br>
              <br>
              <br>
            </span><o:p></o:p></p>
          <pre>Bogdan-Andrei Iancu<o:p></o:p></pre>
          <pre> <o:p></o:p></pre>
          <pre>OpenSIPS Founder and Developer<o:p></o:p></pre>
          <pre>  <a href="http://www.opensips-solutions.com" moz-do-not-send="true">http://www.opensips-solutions.com</a><o:p></o:p></pre>
          <pre>OpenSIPS Summit 2018<o:p></o:p></pre>
          <pre>  <a href="http://www.opensips.org/events/Summit-2018Amsterdam" moz-do-not-send="true">http://www.opensips.org/events/Summit-2018Amsterdam</a><o:p></o:p></pre>
          <div>
            <p class="MsoNormal">On 01/26/2018 10:54 AM, Stefan Carlsson
              wrote:<o:p></o:p></p>
          </div>
          <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
            <div>
              <p class="MsoNormal"><span
                  style="font-size:10.0pt;font-family:"Arial",sans-serif">Hi
                  !</span><o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"><span
                  style="font-size:11.0pt;font-family:"Calibri",sans-serif"> </span><o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"><span
                  style="font-size:10.0pt;font-family:"Arial",sans-serif">(using
                  Opensips 2.2.6)</span><o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"><span
                  style="font-size:11.0pt;font-family:"Calibri",sans-serif"> </span><o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"><span
                  style="font-size:10.0pt;font-family:"Arial",sans-serif">We
                  have (suddenly) got some issues in the BYE
                  transaction.</span><o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"><span
                  style="font-size:11.0pt;font-family:"Calibri",sans-serif"> </span><o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"><span
                  style="font-size:10.0pt;font-family:"Arial",sans-serif">The
                  Call-ID, ftags, is consistent from previous dialogs
                  and are received in the BYE request from the operator
                  except the Cseq as we got a new one in the BYE.</span><o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"><span
                  style="font-size:11.0pt;font-family:"Calibri",sans-serif"> </span><o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"><span
                  style="font-size:10.0pt;font-family:"Arial",sans-serif">(But
                  the branch tag looks as this: 
                  branch=z9hG4bK-524287-1---c2beba62517a3e4eminsusi)</span><o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"><span
                  style="font-size:11.0pt;font-family:"Calibri",sans-serif"> </span><o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"><span
                  style="font-size:10.0pt;font-family:"Arial",sans-serif">Do
                  we have a problem with hyphens in the branch tag ? 
                </span><o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"><span
                  style="font-size:11.0pt;font-family:"Calibri",sans-serif"> </span><o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"><span
                  style="font-size:11.0pt;font-family:"Calibri",sans-serif"> </span><o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"><span
                  style="font-size:10.0pt;font-family:"Arial",sans-serif">How
                  does the Opensips tm create and keep the BYE
                  transaction is the branch tag or …. ?</span><o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"><span
                  style="font-size:11.0pt;font-family:"Calibri",sans-serif"> </span><o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"><span
                  style="font-size:10.0pt;font-family:"Arial",sans-serif">***</span><o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"><span
                  style="font-size:11.0pt;font-family:"Calibri",sans-serif"> </span><o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"><span
                  style="font-size:10.0pt;font-family:"Arial",sans-serif">The
                  attached codesnap show the relay of the BYE handling.</span><o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"><span
                  style="font-size:10.0pt;font-family:"Arial",sans-serif"> </span><o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"><span
                  style="font-size:10.0pt;font-family:"Arial",sans-serif">***  
                </span><o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"><span
                  style="font-size:10.0pt;font-family:"Arial",sans-serif"> </span><o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"><span
                  style="font-size:11.0pt;font-family:"Calibri",sans-serif">       
                </span><o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"><span
                  style="font-size:10.0pt;font-family:"Arial",sans-serif">    
                  if(t_check_trans() ) {    
                </span><o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"><span
                  style="font-size:10.0pt;font-family:"Arial",sans-serif"> </span><o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"><span
                  style="font-size:10.0pt;font-family:"Arial",sans-serif">       
                  xlog("We have an transaction");       
                </span><o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"><span
                  style="font-size:10.0pt;font-family:"Arial",sans-serif">               
                  unforce_rtp_proxy();
                </span><o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"><span
                  style="font-size:10.0pt;font-family:"Arial",sans-serif">               
                  t_relay();</span><o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"><span
                  style="font-size:10.0pt;font-family:"Arial",sans-serif">       
                  }</span><o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"><span
                  style="font-size:10.0pt;font-family:"Arial",sans-serif">       
                  else</span><o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"><span
                  style="font-size:10.0pt;font-family:"Arial",sans-serif">       
                  {</span><o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"><span
                  style="font-size:10.0pt;font-family:"Arial",sans-serif">       
                     xlog("We DONT have an transaction");</span><o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"><span
                  style="font-size:10.0pt;font-family:"Arial",sans-serif">       
                     sl_reply_error();            <<<< Here
                  we got:        SIP/2.0 500 Server error occurred
                  (1/SL)</span><o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"><span
                  style="font-size:11.0pt;font-family:"Calibri",sans-serif">       
                </span><span
                  style="font-size:10.0pt;font-family:"Arial",sans-serif">}</span><o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"><span
                  style="font-size:11.0pt;font-family:"Calibri",sans-serif"> </span><o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"><span
                  style="font-size:11.0pt;font-family:"Calibri",sans-serif"> </span><o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"><span
                  style="font-size:11.0pt;font-family:"Calibri",sans-serif"> </span><o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"><span
                  style="font-size:11.0pt;font-family:"Calibri",sans-serif"> </span><o:p></o:p></p>
            </div>
            <p class="MsoNormal"><br>
              <br>
              <br>
              <br>
              <o:p></o:p></p>
            <pre>_______________________________________________<o:p></o:p></pre>
            <pre>Users mailing list<o:p></o:p></pre>
            <pre><a href="mailto:Users@lists.opensips.org" moz-do-not-send="true">Users@lists.opensips.org</a><o:p></o:p></pre>
            <pre><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" moz-do-not-send="true">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><o:p></o:p></pre>
          </blockquote>
          <p class="MsoNormal"> <o:p></o:p></p>
        </blockquote>
        <p class="MsoNormal"><o:p> </o:p></p>
      </div>
    </blockquote>
    <br>
  </body>
</html>