<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <tt>Hi Tito,<br>
      <br>
      The registrar module (responsible for extracting the contacts from
      SIP msg and storing into USRLOC) takes the q value from the
      Contact header (as SIP RFC requires). <br>
      Currently there is no way to change the q value (from script
      level) before saving into USRLOC.<br>
      <br>
      But what you can do is to change the q values after the lookup (when
      loaded into msg from USRLOC).<br>
      <br>
      Take a look at branch variable $branch(q) :<br>
          <a class="moz-txt-link-freetext" href="http://www.opensips.org/Documentation/Script-CoreVar-2-1#toc22">http://www.opensips.org/Documentation/Script-CoreVar-2-1#toc22</a><br>
      and $ru_q (q value for RURI) :<br>
          <a class="moz-txt-link-freetext" href="http://www.opensips.org/Documentation/Script-CoreVar-2-1#toc77">http://www.opensips.org/Documentation/Script-CoreVar-2-1#toc77</a><br>
      <br>
      and you may change the q values and do a serialize_branches()
      after that.<br>
      <br>
      Best 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>
    <div class="moz-cite-prefix">On 01.07.2015 19:57, Tito Cumpen wrote:<br>
    </div>
    <blockquote
cite="mid:CANZPVB7vC9zViS8K85Omb9AMUw_NbVK6tS-8eG0JjBEWvCgbvQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">Group,
        <div>
          <div class="" tabindex="-1"
            style="outline:none;font-size:medium">
            <div class=""
style="margin-bottom:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-radius:0px;width:1104.23608398438px;float:none!important">
              <div class=""
style="padding-top:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-bottom-color:rgb(216,216,216);border-top-color:rgb(216,216,216);border-radius:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
                <div id=":15n">
                  <div class=""
                    style="padding-bottom:20px;padding-left:8px">
                    <div class="" style="margin-left:44px">
                      <div id=":15p" class=""
style="font-size:12.8000001907349px;margin-bottom:0px;margin-left:0px;padding-bottom:5px">
                        <div id=":15o" class="" style="overflow:hidden">
                          <div dir="ltr"><br>
                            <br>
                          </div>
                          <div dir="ltr">Is it possible to set the q
                            value upon registration? I need to set ws
                            destinations to a lower q value as rtpengine
                            has a limitation on sending different media
                            params on a per branch basis in parallel. Or
                            should I loop into the branches with a
                            certain attribute and order them before
                            serializing them? </div>
                          <div><span
                              style="font-size:12.8000001907349px"><br>
                            </span></div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>