<div dir="ltr"><div dir="ltr"><div dir="ltr">I am seeing this in the debug after the hash of the contact, I am getting an error pv_set_ruri: str value required to set R-URI.  <div><br></div><div><div>DBG:dispatcher:ds_hash_pvar: Hashing sip:??????????@<a href="http://10.10.10.10:23233">10.10.10.10:23233</a></div><div>DBG:dispatcher:ds_select_dst: hash [3896938376], candidate [-1], weight sum [30]</div><div>DBG:dispatcher:ds_select_dst: candidate is [2]</div><div>DBG:dispatcher:ds_select_dst: using destination [2]</div><div>DBG:dispatcher:ds_select_dst: selected [7-3/2] <sip:????????.com></div><div>ERROR:core:pv_set_ruri: str value required to set R-URI</div><div>ERROR:core:do_assign: setting PV failed</div><div>ERROR:core:do_assign: error at /etc/opensips/opensips.cfg:223</div><div><br></div><div>Line 223 - $ru = (ds_select_dst(3, 7, , "default", 1));</div></div><div><br></div><div>Not sure if you could help with what is causing this.</div><div><br></div><div>Thank you</div><div><br></div><div>Kevin</div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Nov 2, 2022 at 12:50 PM Kevin Kennedy <<a href="mailto:kennedy4260@gmail.com">kennedy4260@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">I did find setting this, works for contact <div>modparam("dispatcher", "hash_pvar", "$ct.fields(uri)")<br></div><div><br></div><div>But is there a way to break it up to only look at the tgrp and trunk-context if available and if not available look at the URI as a whole?</div><div><br></div><div>INVITE is still not looking at the hash and is still sending out based on FQDN resolution resolved in the R-URI.  Not sure how to resolve this to force it to match the hash.</div><div><br></div><div>Thank you.</div><div><br></div><div>Kevin</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Nov 2, 2022 at 11:00 AM Kevin Kennedy <<a href="mailto:kennedy4260@gmail.com" target="_blank">kennedy4260@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">I am not seeing an option, but Is it possible to hash on the Contact Header?  <div><br></div><div>Right now I have it hashing on From Header and I know that the From on the Register and the From on the INVITE match except for the tag. I added the "u" flag and it is still not working.  What it is doing is looking at the DNS record of the R-URI domain and routing on that.</div><div><br></div><div> $ru = (ds_select_dst(1, 1, "u", "default", 1));<br></div><div><br></div><div>How do I get it to not use the domain in the R-URI to route on.</div><div><br></div><div>Thank you.</div><div><br></div><div>Kevin</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Nov 1, 2022 at 12:51 AM Bogdan-Andrei Iancu <<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div>
    <font face="monospace">Hi,<br>
      <br>
      The REGISTERs of used X and the calls to user X will both have the
      X SIP URI into the TO URI, so hashing it will give the same value,
      so the same destination.<br>
      <br>
      Regards,<br>
    </font>
    <pre cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a href="https://www.opensips-solutions.com" target="_blank">https://www.opensips-solutions.com</a>
OpenSIPS Bootcamp 5-16 Dec 2022, online
  <a href="https://www.opensips.org/training/OpenSIPS_eBootcamp_2022/" target="_blank">https://www.opensips.org/training/OpenSIPS_eBootcamp_2022/</a></pre>
    <div>On 10/30/22 7:16 AM, Kevin Kennedy
      wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">
        <div dir="ltr">I have set the ds_select_dst used in the
          mid_registrar part of the script to hash the To URI
          <div><br>
          </div>
          <div>$ru = (ds_select_dst(1, <b>2</b>, , "default", 1));</div>
          <div><br>
          </div>
          <div>but I am not seeing exactly how to do this for the
            INVITE. If I use ds_select_dst for the INVITE, it
            just chooses a random destination, not performing a match on
            the Registration destination.</div>
          <div><br>
          </div>
          <div>Am I missing something with this?  
            <div><br>
            </div>
            <div>Is there a way to pull information out of the usrloc
              contact kv-store.  The information that is needed is in
              the hop field of the json string.</div>
          </div>
          <div><br>
          </div>
          <div>Thank you.</div>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Fri, Oct 28, 2022 at 4:03
          AM Bogdan-Andrei Iancu <<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>>
          wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div> <font face="monospace">Hi Kevin,<br>
              <br>
              You may try for REGISTERs to do hashing over TO uri and
              for INVITEs over TO or RURI - so they may get to the same
              box.<br>
              <br>
              Regards,<br>
            </font>
            <pre cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a href="https://www.opensips-solutions.com" target="_blank">https://www.opensips-solutions.com</a>
OpenSIPS Bootcamp 5-16 Dec 2022, online
  <a href="https://www.opensips.org/training/OpenSIPS_eBootcamp_2022/" target="_blank">https://www.opensips.org/training/OpenSIPS_eBootcamp_2022/</a></pre>
            <div>On 10/25/22 1:13 AM, Kevin Kennedy wrote:<br>
            </div>
            <blockquote type="cite">
              <div dir="ltr">Yes that is correct.  Trying to send the
                INVITE to the same dispatcher destination that the
                Registration is at.
                <div><br>
                </div>
                <div>I will check the Call-ID based dispatching
                  algorithm<br>
                  <div><br>
                  </div>
                  <div>Thank you.</div>
                  <div>Kevin</div>
                </div>
              </div>
              <br>
              <div class="gmail_quote">
                <div dir="ltr" class="gmail_attr">On Mon, Oct 24, 2022
                  at 8:50 AM Bogdan-Andrei Iancu <<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>>
                  wrote:<br>
                </div>
                <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
                  <div> <font face="monospace">Hi Kevin<br>
                      <br>
                      1) use the call-id based dispatching alg, so the
                      INVITE with credentials will get sent to the same
                      destination<br>
                      <br>
                      2) yes, mid-register (as register SIP mechanism)
                      is allows the UA to receive calls only, it is not
                      related to handling the outbound calls of the UA.
                      I understand you try to get a call from A to B to
                      be sent to the same dispatcher destination as the
                      registers of B, right ?<br>
                      <br>
                      Regards,<br>
                    </font>
                    <pre cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a href="https://www.opensips-solutions.com" target="_blank">https://www.opensips-solutions.com</a>
OpenSIPS Bootcamp 5-16 Dec 2022, online
  <a href="https://www.opensips.org/training/OpenSIPS_eBootcamp_2022/" target="_blank">https://www.opensips.org/training/OpenSIPS_eBootcamp_2022/</a></pre>
                    <div>On 10/21/22 10:28 PM, Kevin Kennedy wrote:<br>
                    </div>
                    <blockquote type="cite">
                      <div dir="ltr">I believe I have mid_registrar
                        somewhat working with dispatcher, but I seem to
                        have a coulple issues.
                        <div><br>
                        </div>
                        <div>1) When I receive the 401 request
                          the second authentication INVITE is sending to
                          another $ru host in the dispatcher instead of
                          the initial one it sent to.</div>
                        <div>2) How do I send an outbound INVITE
                          matching the registration cache  to the same
                          $ru that it is Registered to.</div>
                        <div>    mid_registrar_lookup uses the
                          AOR instead of contact so it is only
                          allowing the Incoming INVITEs to reach the
                          client.</div>
                        <div><br>
                        </div>
                        <div>Thank ou.<br>
                          <div><br>
                          </div>
                          <div>Thank you.</div>
                        </div>
                      </div>
                      <br>
                      <div class="gmail_quote">
                        <div dir="ltr" class="gmail_attr">On Fri, Aug
                          19, 2022 at 8:46 AM Alex <<a href="mailto:ayakimkin@gmail.com" target="_blank">ayakimkin@gmail.com</a>>
                          wrote:<br>
                        </div>
                        <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
                          <div dir="ltr">
                            <div>Hello,</div>
                            <div><br>
                            </div>
                            <div>setup mid registrar easy with this
                              instruction. <a href="https://www.opensips.org/Documentation/Tutorials-MidRegistrar" target="_blank">https://www.opensips.org/Documentation/Tutorials-MidRegistrar</a></div>
                            <div>There is link to config</div>
                            <div><br>
                            </div>
                            <div>But It relays every Registration
                              request every 60sec on my server. Please
                              let me know if you could set up like on
                              picture in instruction.</div>
                            <div><br>
                            </div>
                            <div><br>
                            </div>
                            <div><br>
                            </div>
                            <div><br>
                            </div>
                          </div>
                          <br>
                          <div class="gmail_quote">
                            <div dir="ltr" class="gmail_attr">чт, 18
                              авг. 2022 г. в 18:37, Kevin Kennedy <<a href="mailto:kennedy4260@gmail.com" target="_blank">kennedy4260@gmail.com</a>>:<br>
                            </div>
                            <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
                              <div dir="ltr">I am looking for a
                                configuration to be able to front end
                                multiple SBC's to load balance
                                Registrations and keep track of them to
                                send INVITE's to the corresponding SBC.
                                <div><br>
                                </div>
                                <div>I am thinking of using a
                                  combination of Dispatcher and
                                  midregister, but not sure how to set
                                  this up correctly.</div>
                                <div><br>
                                </div>
                                <div>Any thoughts?</div>
                                <div><br>
                                </div>
                                <div>Thank you.</div>
                                <div><br>
                                  Kevin</div>
                              </div>
_______________________________________________<br>
                              Users mailing list<br>
                              <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
                              <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
                            </blockquote>
                          </div>
                          <br clear="all">
                          <br>
                          -- <br>
                          <div dir="ltr">С уважением,<br>
                            Якимкин Алексей</div>
_______________________________________________<br>
                          Users mailing list<br>
                          <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
                          <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
                        </blockquote>
                      </div>
                      <br>
                      <fieldset></fieldset>
                      <pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a 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>
            </blockquote>
            <br>
          </div>
        </blockquote>
      </div>
    </blockquote>
    <br>
  </div>

</blockquote></div>
</blockquote></div>
</blockquote></div>