<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix"><tt>I see the </tt><tt>Diversion hdr
        is present in a 3xx reply -&gt; are you using the $di in failure
        route or so ?</tt><tt><br>
      </tt><tt><br>
      </tt><tt>Regards,</tt><br>
      <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></pre>
      On 04.04.2014 12:59, Mike Claudi Pedersen wrote:<br>
    </div>
    <blockquote
cite="mid:CADats6EouaFH1hoa8Ov52rbb+=hrupdB-isiihf5m-7WF=ue6A@mail.gmail.com"
      type="cite">
      <div dir="ltr">i cant seem to see why. even in debug mode...
        <div>i have the siptrace attached</div>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">2014-04-04 11:54 GMT+02:00
          Bogdan-Andrei Iancu <span dir="ltr">&lt;<a
              moz-do-not-send="true" href="mailto:bogdan@opensips.org"
              target="_blank">bogdan@opensips.org</a>&gt;</span>:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000">
              <div><tt>Hello Mike,</tt><br>
                <br>
                Please post the SIP request you receive (make an ngrep
                capture), so we can check it.<br>
                <br>
                BTW, try to run in full debug mode (debug=4) and check
                for the logs when the INVITE is handled - maybe you get
                some hints on why you get the vars NULL.<br>
                <br>
                Regards,<br>
                Bogdan<br>
                <pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
                <div>
                  <div class="h5"> On 04.04.2014 10:58, Mike Claudi
                    Pedersen wrote:<br>
                  </div>
                </div>
              </div>
              <blockquote type="cite">
                <div>
                  <div class="h5">
                    <div dir="ltr">When calls are forwarded they have a
                      diversion header, containing information about the
                      forwarded route. why cant i get this information i
                      keep getting 0 or NULL values my code is something
                      like this to display the diversion header.
                      <div dir="ltr"> </div>
                      <div><br>
                      </div>
                      <div>
                        <div>&nbsp; &nbsp;</div>
                        <div>&nbsp; &nbsp; &nbsp; &nbsp; $var(RDNIS)=$di;</div>
                        <div>&nbsp; &nbsp; &nbsp; &nbsp; $var(PRIV)=$dip;</div>
                        <div><br>
                        </div>
                        <div>&nbsp; &nbsp; &nbsp; &nbsp; if (method=="INVITE")</div>
                        <div>&nbsp; &nbsp; &nbsp; &nbsp; {</div>
                        <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xlog("L_DBG","\n RDNIS =
                          $var(RDNIS) \n");</div>
                        <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xlog("L_DBG","\n PRIVACY =
                          $var(PRIV) n");</div>
                        <div><br>
                        </div>
                        <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (lookup("location"))</div>
                        <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</div>
                        <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; t_relay();</div>
                        <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exit;</div>
                        <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; };</div>
                      </div>
                      <div><br>
                      </div>
                    </div>
                    <br>
                    <fieldset></fieldset>
                    <br>
                  </div>
                </div>
                <pre>_______________________________________________
Users mailing list
<a moz-do-not-send="true" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a moz-do-not-send="true" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
              </blockquote>
              <br>
            </div>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        <div dir="ltr">Med venlig hilsen<br>
          ipnordic A/S<br>
          <div><br>
          </div>
          <div>Mike Claudi Pedersen</div>
          <div>Tekniker</div>
          <div>
            <div><br>
            </div>
            Telefon:&nbsp;<span
style="color:rgb(61,58,54);font-family:aller_lightregular,Arial,Helvetica,sans-serif">79301033</span><br>
            <a moz-do-not-send="true" href="http://www.ipnordic.dk/"
              style="color:rgb(17,85,204)" target="_blank">www.ipnordic.dk</a></div>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>