<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Thanks you so much for a quick answer. Storing data to $dlg_var()
      really solves this problem.<br>
    </p>
    <br>
    <div class="moz-cite-prefix">22.08.2017 23:34, Alex Balashov пишет:<br>
    </div>
    <blockquote type="cite"
      cite="mid:3B2936CF-8CE8-47C1-99E3-42B195974864@evaristesys.com">
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      <div>Hi,</div>
      <div id="AppleMailSignature"><br>
      </div>
      <div id="AppleMailSignature">Swapping the From and To URIs headers
        when sending an in-dialog request (such as a BYE) from callee to
        caller is not a but, but the protocol-compliant way to do
        things. :-)</div>
      <div id="AppleMailSignature"><br>
      </div>
      <div id="AppleMailSignature">Lots of possibilities for saving
        original values if so desired. Dialog variables ($dlg_var(...))
        are probably the easiest. I prefer to persist this stuff in the
        database by writing an initial CDR row on the initial invite and
        only updating it thereafter.</div>
      <div id="AppleMailSignature"><br>
      </div>
    </blockquote>
    <br>
  </body>
</html>