<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix"><tt>Hi Jeff,<br>
        <br>
        Try :<br>
        <br>
        &nbsp;&nbsp;&nbsp; # first contact<br>
        &nbsp;&nbsp;&nbsp; $ru = <a class="moz-txt-link-rfc2396E" href="mailto:sip:firstcontact@foo.com">"sip:firstcontact@foo.com"</a>;<br>
        &nbsp;&nbsp;&nbsp; $ru_q = 500; # q for the first contact<br>
        &nbsp;&nbsp;&nbsp; # second contact<br>
        &nbsp;&nbsp;&nbsp; append_branch(<a class="moz-txt-link-rfc2396E" href="mailto:sip:secondcontact@foo.com">"sip:secondcontact@foo.com"</a>,1000);<br>
        &nbsp;&nbsp;&nbsp; ....<br>
        &nbsp;&nbsp;&nbsp; t_reply("302","Redirected");<br>
        <br>
        Let me know if it works - revisiting the links, I see the docs
        must be improved.<br>
        <br>
        Regards,<br>
      </tt>
      <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 20.02.2014 15:20, Jeff Pyle wrote:<br>
    </div>
    <blockquote
cite="mid:CACYJG3KUgX6wGvaU=qYaK1h3-M=+N--2RmDmPaWfWtBFQTJkOw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div class="gmail_extra">
          <div>
            <div dir="ltr">
              <div>Hi Bogdan,</div>
              <div><br>
              </div>
              <div>I'm not looking to process a received 302, but rather
                generate one of my own. &nbsp;I want to set the q values so
                that the other side will serially fork. &nbsp;Ovidiu's
                example [1] from earlier in the thread doesn't address
                this. &nbsp;Looking at the docs for append_branch() [2] or
                rewriteuri() [3] I don't see any mention either.</div>
              <div><br>
              </div>
              <div>&nbsp; [1]&nbsp;<a moz-do-not-send="true"
href="https://github.com/OpenSIPS/opensips/blob/master/examples/redirect.cfg">https://github.com/OpenSIPS/opensips/blob/master/examples/redirect.cfg</a></div>
              <div>&nbsp; [2]&nbsp;<a moz-do-not-send="true"
                  href="http://www.opensips.org/Documentation/Script-CoreFunctions#toc2">http://www.opensips.org/Documentation/Script-CoreFunctions#toc2</a></div>
              <div>&nbsp; [3]&nbsp;<a moz-do-not-send="true"
                  href="http://www.opensips.org/Documentation/Script-CoreFunctions#toc40">http://www.opensips.org/Documentation/Script-CoreFunctions#toc40</a><br>
                <br>
              </div>
            </div>
          </div>
          <div class="gmail_extra"><br>
          </div>
          - Jeff</div>
        <div class="gmail_extra"><br>
          <br>
          <div class="gmail_quote">On Wed, Feb 19, 2014 at 1:05 PM,
            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>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
              <div text="#000000" bgcolor="#FFFFFF">
                <div><tt>Jeff,<br>
                    <br>
                    In OpenSIPS, the get_redirects() (<a
                      moz-do-not-send="true"
href="http://www.opensips.org/html/docs/modules/1.10.x/uac_redirect.html#id250266"
                      target="_blank">http://www.opensips.org/html/docs/modules/1.10.x/uac_redirect.html#id250266</a>)
                    and the serialize_branches() (<a
                      moz-do-not-send="true"
href="http://www.opensips.org/Documentation/Script-CoreFunctions-1-10#toc44"
                      target="_blank">http://www.opensips.org/Documentation/Script-CoreFunctions-1-10#toc44</a>)
                    do follow the q values in the handled contacts.<br>
                    <br>
                    Regards,<br>
                  </tt>
                  <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 19.02.2014 18:08, Jeff Pyle
                      wrote:<br>
                    </div>
                  </div>
                </div>
                <div>
                  <div class="h5">
                    <blockquote type="cite">
                      <div dir="ltr">
                        <div class="gmail_extra">
                          <div>
                            <div dir="ltr">
                              <div>How does one manage q values for the
                                various branches? &nbsp;I'd like the endpoint
                                receiving the 302 to serially fork
                                through the various URIs (branches) I
                                include.</div>
                              <div><br>
                              </div>
                              <div><br>
                              </div>
                              <div>- Jeff</div>
                              <div><br>
                              </div>
                            </div>
                          </div>
                          <br>
                          <br>
                          <div class="gmail_quote">On Thu, Sep 19, 2013
                            at 11:26 AM, Ovidiu Sas <span dir="ltr">&lt;<a
                                moz-do-not-send="true"
                                href="mailto:osas@voipembedded.com"
                                target="_blank">osas@voipembedded.com</a>&gt;</span>
                            wrote:<br>
                            <blockquote class="gmail_quote"
                              style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
                              Take a look at the redirect example in the
                              source tree:<br>
                              <a moz-do-not-send="true"
href="https://github.com/OpenSIPS/opensips/blob/master/examples/redirect.cfg"
                                target="_blank">https://github.com/OpenSIPS/opensips/blob/master/examples/redirect.cfg</a><br>
                              <br>
                              Regards,<br>
                              Ovidiu Sas<br>
                              <div>
                                <div><br>
                                  On Thu, Sep 19, 2013 at 11:20 AM,
                                  bruno PHILIP &lt;<a
                                    moz-do-not-send="true"
                                    href="mailto:bruno_philip@hotmail.com"
                                    target="_blank">bruno_philip@hotmail.com</a>&gt;

                                  wrote:<br>
                                  &gt; Hi,<br>
                                  &gt;<br>
                                  &gt; I want to use opensips for LCR,
                                  and also, I don't want it to stay in
                                  SIP<br>
                                  &gt; path, so it will send a 302
                                  message with the targeted gateway.<br>
                                  &gt; I don't know how to write the
                                  routing script.<br>
                                  &gt; Someone can help<br>
                                  &gt;<br>
                                  &gt; Thanks<br>
                                  &gt;<br>
                                </div>
                              </div>
                              &gt;
                              _______________________________________________<br>
                              &gt; Users mailing list<br>
                              &gt; <a moz-do-not-send="true"
                                href="mailto:Users@lists.opensips.org"
                                target="_blank">Users@lists.opensips.org</a><br>
                              &gt; <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><br>
                              &gt;<br>
                              <span><font color="#888888"><br>
                                  <br>
                                  <br>
                                  --<br>
                                  VoIP Embedded, Inc.<br>
                                  <a moz-do-not-send="true"
                                    href="http://www.voipembedded.com"
                                    target="_blank">http://www.voipembedded.com</a><br>
                                  <br>
_______________________________________________<br>
                                  Users mailing list<br>
                                  <a moz-do-not-send="true"
                                    href="mailto:Users@lists.opensips.org"
                                    target="_blank">Users@lists.opensips.org</a><br>
                                  <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><br>
                                </font></span></blockquote>
                          </div>
                          <br>
                        </div>
                      </div>
                      <br>
                      <fieldset></fieldset>
                      <br>
                      <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>
                </div>
              </div>
            </blockquote>
          </div>
          <br>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>