<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Storing the values in dialog module can be useful, you need to
    enable it:<br>
    <br>
    -
<a class="moz-txt-link-freetext" href="http://kamailio.org/docs/modules/stable/modules/uac.html#uac.p.restore_dlg">http://kamailio.org/docs/modules/stable/modules/uac.html#uac.p.restore_dlg</a><br>
    <br>
    But I am not sure if that is making dialog to use them automatically
    for BYE requests.<br>
    <br>
    What you can try is to enable event_route[tm:local-request] to catch
    local generated BYEs and update the headers there (either from
    dialog variables or from other source if you can determine that).<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 02/10/14 09:00, Julia Boudniatsky
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAASaakbhdsnSwQ7uxiTs2FzG5PiQ+rMy+Ez3=91pkbrm21hjOg@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div style="font-family:arial,sans-serif;font-size:13px">We use
          dialog module in our configuration.</div>
        <div style="font-family:arial,sans-serif;font-size:13px">uac_replace_from/to
           is called after dlg_manage().</div>
        <div style="font-family:arial,sans-serif;font-size:13px"><br>
        </div>
        <div style="font-family:arial,sans-serif;font-size:13px">From
          UAC documentation: "<span
style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:12px;text-align:justify">If
            you create a dialog ( with dlg_manage() ) before calling
            uac_replace_from(), this avp will not be needed. The values
            of the uris will be stored as dialog variables."</span></div>
        <div style="font-family:arial,sans-serif;font-size:13px"><span
style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:12px;text-align:justify"><br>
          </span></div>
        <div style="font-family:arial,sans-serif;font-size:13px"><span
style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:12px;text-align:justify">And
            we have problem only with locally generated BYE, all other
            local requests (ACK, CANCEL) works fine.</span></div>
        <div style="font-family:arial,sans-serif;font-size:13px"><span
style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:12px;text-align:justify"><br>
          </span></div>
        <div style="font-family:arial,sans-serif;font-size:13px"><span
style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:12px;text-align:justify">Thank
            you,</span></div>
        <div style="font-family:arial,sans-serif;font-size:13px"><span
style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:12px;text-align:justify"><br>
          </span></div>
        <div style="text-align:justify"><font face="Helvetica, Arial"
            color="#000000"><span style="font-size:12px">Julia</span></font></div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Wed, Oct 1, 2014 at 4:28 PM, Julia
          Boudniatsky <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:juliabo@gmail.com" target="_blank">juliabo@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 dir="ltr">
              <div>Hello,</div>
              <div>We use dialog module in our configuration.</div>
              <div>uac_replace_from/to  is called after dlg_manage().</div>
              <div>restore_mode is auto.</div>
              <div><br>
              </div>
              <div>URIs are modified automatically in all subsequent
                local requests, exclude BYE generated in dlg timeout.</div>
              <div>In this case original URIs are sent to both caller
                and calee sides.</div>
              <div>If call going through only one kamailio server, all
                works fine.</div>
              <div>Problem starts with a chain of servers with from/to
                manipulation.</div>
              <div>When timeout occurs in one kamailio server, calee
                kamailio server receives BYE with original (not
                modified) URIs and URI restore gets wrong parsing
                result.</div>
              <div>Call clears in caller side and stay connected in
                caller.</div>
              <div><br>
              </div>
              <div>Whether there is any solution?</div>
              <div><br>
              </div>
              <div>BR ,</div>
              <div><br>
              </div>
              <div>Julia.</div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
      <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></pre>
  </body>
</html>