<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Here is the link to the patch:<br>
    <br>
<a class="moz-txt-link-freetext" href="http://git.sip-router.org/cgi-bin/gitweb.cgi?p=sip-router;a=blobdiff;f=modules/tm/t_msgbuilder.c;h=b5ff3094af2594e62a050ccc56768ad9237eb633;hp=aa0144c8443760c9e81ee121ef907be812fa9da8;hb=4e4b1339bfd3a832f5feeb1d2a2380c7455ec82b;hpb=744a8d317b894a1360e3441a9e69ac9190a1745b">http://git.sip-router.org/cgi-bin/gitweb.cgi?p=sip-router;a=blobdiff;f=modules/tm/t_msgbuilder.c;h=b5ff3094af2594e62a050ccc56768ad9237eb633;hp=aa0144c8443760c9e81ee121ef907be812fa9da8;hb=4e4b1339bfd3a832f5feeb1d2a2380c7455ec82b;hpb=744a8d317b894a1360e3441a9e69ac9190a1745b</a><br>
    <br>
    You have to add the lines starting with '+' in t_msgbuilder.c --
    there are six.<br>
    <br>
    Not sure it really works replacing the entire file, it is safe to
    apply the patch.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 4/25/13 3:17 PM, Uri Shacked wrote:<br>
    </div>
    <blockquote
cite="mid:CAMMbDhSHyS2+ZSvsjdWtBgDVPg8cfJ1GT9Tf6+9JACKu34HGoQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>I have no internet access from my kamailio servers.</div>
        <div>where can i download it and install?</div>
        <div>or just download the t_msgbuilder.c and reinstall 3.3.2 ?</div>
      </div>
      <div class="gmail_extra">
        <br>
        <br>
        <div class="gmail_quote">On Thu, Apr 25, 2013 at 3:55 PM,
          Daniel-Constantin Mierla <span dir="ltr"><<a
              moz-do-not-send="true" href="mailto:miconda@gmail.com"
              target="_blank">miconda@gmail.com</a>></span> wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000"> Hello,<br>
              <br>
              I committed a patch to add angle brackets around From/To
              URI for local generated requests. Here is the link to
              commit:<br>
              <br>
              -
              <a moz-do-not-send="true"
href="http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=4e4b1339bfd3a832f5feeb1d2a2380c7455ec82b"
                target="_blank">http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=4e4b1339bfd3a832f5feeb1d2a2380c7455ec82b</a><br>
              <br>
              No time to test it, so give it a try. If you are using 4.0
              (even 3.3) should work by just cherry-picking. Let me know
              if works fine.<br>
              <br>
              Depending on feedback will be part of 4.0.1 (out in few
              hours), or let to be backported for 4.0.2.<br>
              <br>
              Cheers,<br>
              Daniel
              <div>
                <div class="h5"><br>
                  <br>
                  <div>On 4/25/13 2:23 PM, Uri Shacked wrote:<br>
                  </div>
                  <blockquote type="cite">
                    <div dir="ltr">
                      <div>Hi,</div>
                      <div>As i wrote, when the BYE is "normal" not
                        generated form dlg_timeout. srv2 that forwards
                        it, does it OK.</div>
                      <div>The TO/From headers in my scenario are the
                        same as the initial request in both servers
                        (there are 2 legs for each call (incoming and
                        outgoing), on each leg i use the same initial
                        headers.Ii hope i was more clear now.</div>
                      <div>Thanks,</div>
                      <div>Uri</div>
                    </div>
                    <div class="gmail_extra"><br>
                      <br>
                      <div class="gmail_quote">On Thu, Apr 25, 2013 at
                        2:50 PM, Klaus Darilion <span dir="ltr"><<a
                            moz-do-not-send="true"
                            href="mailto:klaus.mailinglists@pernau.at"
                            target="_blank">klaus.mailinglists@pernau.at</a>></span>
                        wrote:<br>
                        <blockquote style="margin:0px 0px 0px
0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"
                          class="gmail_quote">IMO the timeout-triggered
                          BYE should have identical From/To headers as
                          the initial request - otherwise it may cause
                          issues with clients that are strict, or rely
                          on identical headers (like in your setup).<br>
                          <br>
                          regards<br>
                          Klaus
                          <div><br>
                            <br>
                            On <a moz-do-not-send="true"
                              href="tel:25.04.2013%2013" target="_blank"
                              value="+12504201313">25.04.2013 13</a>:30,
                            Uri Shacked wrote:<br>
                          </div>
                          <blockquote style="margin:0px 0px 0px
0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"
                            class="gmail_quote">
                            <div> Hi,<br>
                              <br>
                              Following this issue, and the issue "BYE
                              dialog timeout bad syntax" from<br>
                              Julia.<br>
                              <br>
                              I have 2 kamailio servers. srv1 creates a
                              dlg_timeout BYE and sends it<br>
                              to srv2 that forwards the BYE to the next
                              sip server (some other server...).<br>
                              <br>
                              I can definitely see that the BYE that is
                              being forward is malformed.<br>
                              The TO header info is not complete (the
                              port section for example).<br>
                              <br>
                              When a "normal" bye is received from srv1
                              (not dlg_timeout) all works fine.<br>
                              <br>
                              One thing that i do in this scenario, on
                              srv2 i use uac_replace() on the<br>
                              TO header. So, it is OK that the final
                              destination is different (i do<br>
                              translations).<br>
                              <br>
                              I attached the BYE from both servers.<br>
                              <br>
                              Any ideas?<br>
                              <br>
                              Thanks,<br>
                              <br>
                              Uri<br>
                              <br>
                              You probably meant the To and From
                              headers, I'm guessing. Yeah, as long<br>
                              as there is no display name component,
                              URIs in headers like that don't<br>
                              have to go in <>s. The way Kamailio
                              sends it is grammatically valid, per<br>
                              RFC 3261. The user agents are at fault for
                              not understanding it<br>
                              correctly. Alex Balashov <abalashov at
                              <a moz-do-not-send="true"
                                href="http://evaristesys.com"
                                target="_blank">evaristesys.com</a><br>
                            </div>
                            <<a moz-do-not-send="true"
                              href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"
                              target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>>>

                            wrote:<br>
                             >/"BYE headers"? Which headers?
                            />//>/Uri Shacked <ushacked at<br>
                            <a moz-do-not-send="true"
                              href="http://gmail.com" target="_blank">gmail.com</a><br>
                            <<a moz-do-not-send="true"
                              href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"
                              target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>>>

                            wrote:<br>
                            />//>>/Hi, />>//>>/I
                            think there is a bug with the BYE that is
                            sent to<br>
                            the caller and />>/callee
                            />>/when dialog timeout happends.
                            />>//>>/The<br>
                            BYE headers are sent with no "<" or
                            ">". />>/So, some sip singaling<br>
                            points decline the BYE.
                            />>//>>/BR, />>/Uri<br>
/>>//>>//>>/------------------------------------------------------------------------<br>
                            />>//>>/_______________________________________________

                            />>/SIP Express<br>
                            Router (SER) and Kamailio (OpenSER) -
                            sr-users mailing />/list<br>
                            />>/sr-users at <a
                              moz-do-not-send="true"
                              href="http://lists.sip-router.org"
                              target="_blank">lists.sip-router.org</a><br>
                            <<a moz-do-not-send="true"
                              href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"
                              target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>><br>
                            />>/<a moz-do-not-send="true"
                              href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"
                              target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
                            />//>/-- />/Sent from my mobile,
                            and thus lacking in the refinement one<br>
                            might />/expect from a fully-fledged
                            keyboard. />//>/Alex Balashov -<br>
                            Principal />/Evariste Systems LLC
                            />/235 E Ponce de Leon Ave />/Suite<br>
                            106 />/Decatur, GA 30030 />/United
                            States />/Tel: <a moz-do-not-send="true"
                              href="tel:%2B1-678-954-0670"
                              target="_blank" value="+16789540670">+1-678-954-0670</a><br>
                            />/Web: <a moz-do-not-send="true"
                              href="http://www.evaristesys.com/"
                              target="_blank">http://www.evaristesys.com/</a>,
                            <a moz-do-not-send="true"
                              href="http://www.alexbalashov.com/"
                              target="_blank">http://www.alexbalashov.com/</a><br>
                            />//>/_______________________________________________

                            />/SIP Express<br>
                            Router (SER) and Kamailio (OpenSER) -
                            sr-users mailing list />/sr-users<br>
                            at <a moz-do-not-send="true"
                              href="http://lists.sip-router.org"
                              target="_blank">lists.sip-router.org</a><br>
                            <<a moz-do-not-send="true"
                              href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"
                              target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>><br>
                            />/<a moz-do-not-send="true"
                              href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"
                              target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
                            / --
                            <div><br>
                              Sent from my Nexus 10, with all the
                              figments of autocorrect that might<br>
                              imply. Alex Balashov - Principal Evariste
                              Systems LLC 235 E Ponce de<br>
                              Leon Ave Suite 106 Decatur, GA 30030
                              United States Tel: <a
                                moz-do-not-send="true"
                                href="tel:%2B1-678-954-0670"
                                target="_blank" value="+16789540670">+1-678-954-0670</a><br>
                              Web: <a moz-do-not-send="true"
                                href="http://www.evaristesys.com/"
                                target="_blank">http://www.evaristesys.com/</a>,
                              <a moz-do-not-send="true"
                                href="http://www.alexbalashov.com/"
                                target="_blank">http://www.alexbalashov.com/</a><br>
                              -------------- next part -------------- An
                              HTML attachment was<br>
                              scrubbed... URL:<br>
                              <<a moz-do-not-send="true"
href="http://lists.sip-router.org/pipermail/sr-users/attachments/20130422/0c752722/attachment.html"
                                target="_blank">http://lists.sip-router.org/pipermail/sr-users/attachments/20130422/0c752722/attachment.html</a>><br>
                              <br>
                              <br>
                              <br>
                            </div>
                            <div>
                              _______________________________________________<br>
                              SIP Express Router (SER) and Kamailio
                              (OpenSER) - sr-users mailing list<br>
                            </div>
                            <a moz-do-not-send="true"
                              href="mailto:sr-users@lists.sip-router.org"
                              target="_blank">sr-users@lists.sip-router.org</a><br>
                            <a moz-do-not-send="true"
                              href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"
                              target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
                            <br>
                          </blockquote>
                        </blockquote>
                      </div>
                      <br>
                    </div>
                    <br>
                    <fieldset></fieldset>
                    <br>
                    <pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a moz-do-not-send="true" href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
                  </blockquote>
                  <br>
                </div>
              </div>
              <span class="HOEnZb"><font color="#888888">
                  <pre cols="72">-- 
Daniel-Constantin Mierla - <a moz-do-not-send="true" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
<a moz-do-not-send="true" href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a></pre>
                </font></span></div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<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></pre>
  </body>
</html>