<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    Hello,<br>
    <br>
    On 10/28/10 6:53 PM, Efelin Novak wrote:
    <blockquote
      cite="mid:AANLkTikQ7uCMkAnki1kdA6yTGahHZ+1E3U2bqX+AOC_0@mail.gmail.com"
      type="cite">Unfortunately I was wrong about variables ($var). They
      are same across whole kamailio process. Neither $avp is good for
      me as they are transaction aware. I need to store variable in the
      current dialog. I was looking into dialog module, but no luck. I
      wasn't able to make dialog variables $dlg and $dlg-ctx work. Are
      they appropriate in this situation? Can you please give here some
      examples how to use them in configuration file? <br>
    </blockquote>
    <br>
    do you pass the 302 to caller? If so, then not even the dialog helps
    you, because the caller will start a new call, previous one is ended
    once 302 is sent out by the server.<br>
    <br>
    There is htable module that can be used to store data in shared
    memory -- for a dialog, you can use callid plus some id as key
    (e.g., $sht(a=&gt;$ci::billing) ). But for this case does not help.<br>
    <br>
    If you handle 302 on the server, then you can use $avp(...), because
    the transaction is kept until there is a final reply from the
    redirected address.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <blockquote
      cite="mid:AANLkTikQ7uCMkAnki1kdA6yTGahHZ+1E3U2bqX+AOC_0@mail.gmail.com"
      type="cite">
      <div>
        <br>
      </div>
      <div>Regards,</div>
      <div><br>
      </div>
      <div>Efelin<br>
        <div class="gmail_quote">2010/10/28 Efelin Novak <span
            dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:efelin.novak@gmail.com">efelin.novak@gmail.com</a>&gt;</span><br>
          <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
            0.8ex; border-left: 1px solid rgb(204, 204, 204);
            padding-left: 1ex;">
            O, actually I have just found out that variables
            are&nbsp;stored&nbsp;across&nbsp;whole call. Thank you for your answers.
            <div><br>
            </div>
            <div>Regards,</div>
            <div>Efelin<br>
              <br>
              <div class="gmail_quote">
                <div class="im">2010/10/28 Juha Heinanen <span
                    dir="ltr">&lt;<a moz-do-not-send="true"
                      href="mailto:jh@tutpro.com" target="_blank">jh@tutpro.com</a>&gt;</span><br>
                </div>
                <blockquote class="gmail_quote" style="margin: 0pt 0pt
                  0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204);
                  padding-left: 1ex;">
                  <div>Efelin Novak writes:
                    <div>
                      <div class="h5"><br>
                        <br>
                        &gt; The request uri after redirect will be
                        UserC@another_domain. I have to store<br>
                        &gt; the original request_uri(UserB@my_domain)
                        and after redirect, insert it to<br>
                        &gt; Billing Party header in radius message.<br>
                        <br>
                      </div>
                    </div>
                  </div>
                  <div>
                    <div class="h5">yes, i had a typo in my answer.
                      &nbsp;you, of course, need to use request uri<br>
                      before redirect as your billing uri. &nbsp;i wonder why
                      you asked, when you<br>
                      knew the answer yourself.<br>
                      <font color="#888888"><br>
                        -- juha<br>
                      </font></div>
                  </div>
                </blockquote>
              </div>
              <br>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
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://www.asipto.com">http://www.asipto.com</a></pre>
  </body>
</html>