<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi Daniel.<div><br></div><div>Hope your well? Thanks for the prompt response.</div><div><br></div><div>The indexing works great.</div><div><br></div><div>I can now pull the location records of multiple devices registered, however I now need to modify only particular Request URI parameters when parallel forking to the devices.</div><div><br></div><div>Is this best done on a per branch basis I presume, as the changes I now make seem to modify for all?</div><div><br></div><div>Thanks</div><div><br></div><div>Jon<br><br><div><hr id="stopSpelling">Date: Fri, 9 May 2014 19:27:10 +0200<br>From: miconda@gmail.com<br>To: sr-users@lists.sip-router.org<br>Subject: Re: [SR-Users] reg_fetch_contacts for multiple devices registered<br><br>
  
    
  
  
    Hello,<br>
    <br>
    you can use indexes to access any of the location records, see:<br>
    <br>
<a class="ecxmoz-txt-link-freetext" href="http://kamailio.org/docs/modules/stable/modules/registrar.html#idp2019304" target="_blank">http://kamailio.org/docs/modules/stable/modules/registrar.html#idp2019304</a><br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="ecxmoz-cite-prefix">On 09/05/14 17:18, Jonathan Hunter
      wrote:<br>
    </div>
    <blockquote cite="mid:DUB127-W90ED22FF31397A79BE0631BD480@phx.gbl">
      <style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}

.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}

--></style>
      <div dir="ltr">
        <div><br>
          <br>
          <style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}

.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}


--></style>
          <div dir="ltr">Hi Guys,
            <div><br>
            </div>
            <div>I was wondering if anyone could help?</div>
            <div><br>
            </div>
            <div>I am currently using reg_fetch_contacts to manipulate
              signaling based on the user agent device being used,
              therefore I use the result of;</div>
            <div><br>
            </div>
            <div>
              <div>if(reg_fetch_contacts("location", "$ru", "callee"))</div>
              <div>{</div>
              <div><span style="font-size:12pt;"> 
                  xlog("callee=>user_agent
                  $ulc(callee=>user_agent)\n");</span></div>
              <div><span style="font-size:12pt;">}</span></div>
              <div><span style="font-size:12pt;"><br>
                </span></div>
              <div><span style="font-size:12pt;"><br>
                </span></div>
              <div><span style="font-size:12pt;">I then use  
                  $ulc(callee=>user_agent) to make routing decisions.</span></div>
            </div>
            <div><span style="font-size:12pt;"><br>
              </span></div>
            <div><span style="font-size:12pt;">This seems to only return
                the user-agent device being used for the first
                registration at that AOR, as I have two devices
                registered, a Cisco, and a jitsi client, and it only
                returns the user_agent of the jitsi client I registered
                first.</span></div>
            <div><span style="font-size:12pt;"><br>
              </span></div>
            <div><span style="font-size:12pt;">Is it possible to return
                the user agents of all the devices registered against an
                AOR so I can manage decisions accordingly?</span></div>
            <div><span style="font-size:12pt;"><br>
              </span></div>
            <div><span style="font-size:12pt;">Many thanks</span></div>
            <div><span style="font-size:12pt;"><br>
              </span></div>
            <div><span style="font-size:12pt;">Jon</span></div>
            <div><span style="font-size:12pt;"><br>
              </span></div>
            <div><span style="font-size:12pt;"><br>
              </span></div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="ecxmimeAttachmentHeader"></fieldset>
      <br>
      <pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="ecxmoz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="ecxmoz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="ecxmoz-signature">-- 
Daniel-Constantin Mierla - <a class="ecxmoz-txt-link-freetext" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
<a class="ecxmoz-txt-link-freetext" href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a class="ecxmoz-txt-link-freetext" href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a></pre>
  

<br>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</div></div>                                     </div></body>
</html>