<div dir="ltr">Hi Vlad,<div><br></div><div>Thank you for your recommendation, I can't use branch routes for my implementation as I'm making the decision at registration time - "User-Agent A" captures registrations from "User-Agent B", but not the other way around.</div><div><br></div><div>It looks like attr_avp should get populated when using is_registered so that will work well for me - I'm only expecting a single active registration per AoR so this should be a good fit.</div><div><br></div><div>Many thanks for your help, I'll let you know if I run into any issues!</div><div><br></div><div>Callum</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, 15 Oct 2022 at 09:54, Vlad Paiu <<a href="mailto:vladpaiu@opensips.org">vladpaiu@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>
    <p>Hello,</p>
    <p>At registration time you could save the User Agent in the
      attributes per registration [1] and at INVITE time you can check
      that in branch_route and make your decision there.</p>
    <p>[1]
<a href="https://opensips.org/html/docs/modules/3.2.x/registrar.html#param_attr_avp" target="_blank">https://opensips.org/html/docs/modules/3.2.x/registrar.html#param_attr_avp</a></p>
    <p><br>
    </p>
    Regards,<br>
    Vlad<br>
    <div>On 14.10.2022 17:02, Callum Guy wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">
        <div>Hi All,</div>
        <div><br>
        </div>
        <div>I'm working on a project that requires me to evaluate the
          user agent of a registered contact before making a decision on
          a current registration attempt.</div>
        <div><br>
        </div>
        <div>Is there a method to do this natively? If not, what is the
          best approach?</div>
        <div><br>
        </div>
        <div>I haven't found anything yet, the current options i'm
          evaluating are to:</div>
        <div><br>
        </div>
        1. Use mi_script module to allow me to pull the contact record
        via ul_show_contact<br>
        <div>2. Use rest_get to pull this data via a web service</div>
        <div><br>
        </div>
        <div>Neither is ideal for my requirements but both would do the
          job, I'm hoping someone in the community has a cleaner
          solution before I start!</div>
        <div><br>
        </div>
        <div>Best regards,</div>
        <div><br>
        </div>
        <div>Callum</div>
      </div>
      <br>
      <p dir="ltr" style="font-family:Arial,Helvetica,sans-serif;font-size:1.3em;line-height:1.38;margin-top:0pt;margin-bottom:0pt;text-align:justify"><font size="3" face="Verdana"><span style="font-size:8px;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"></span></font></p>
      <div style="font-family:Arial,Helvetica,sans-serif;font-size:1.3em"><img src="https://www.x-on.co.uk/email/footer/banner-10-2022.jpg"><br>
      </div>
      <div style="font-family:Arial,Helvetica,sans-serif;font-size:1.3em"><br>
      </div>
      <div><font style="font-family:Arial,Helvetica,sans-serif;font-size:1.3em" size="4"><b><sup><font face="Verdana">0333 332 0000  |  <a href="https://www.x-on.co.uk" target="_blank">x-on.co.uk</a>  |  <sub> </sub></font></sup></b></font><font style="font-family:Arial,Helvetica,sans-serif;font-size:1.3em" size="4"><b><sub><sup><font face="Verdana"><a href="https://www.linkedin.com/company/x-on" target="_blank"><img src="http://www.x-on.co.uk//images/icon/linkedin.png" width="24" height="24"></a>
                   <a href="https://www.facebook.com/XonTel" target="_blank"><img src="http://www.x-on.co.uk//images/icon/facebook.png" width="24" height="24"></a>
                   <a href="https://twitter.com/xonuk" target="_blank"><img src="http://www.x-on.co.uk//images/icon/twitter.png" width="24" height="24"></a></font></sup></sub> </b></font><b style="font-family:Arial,Helvetica,sans-serif;font-size:large"><sup><font face="Verdana">  |  <a href="https://www.x-on.co.uk/service/surgery-connect/coronavirus.htm" target="_blank">Coronavirus</a></font></sup></b><b style="font-size:16.9px"><sup><font face="Verdana">  |  <a href="https://practiceindex.co.uk/gp/x-on" target="_blank">Practice Index
                Reviews</a></font></sup></b>
        <p><font size="1" face="Verdana" color="#ff0000"><b>Our new
              office address: 22 Riduna Park, Melton IP12 1QT.</b></font></p>
        <p style="font-family:Arial,Helvetica,sans-serif"><span style="font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif"><font size="1"><i>THE COMMS COUNCIL UK AWARDS 2022 AND Best
                Comms Software are trade marks of the Comms Council UK,
                used under licence - <a href="https://commscouncil.uk/awards" target="_blank">https://commscouncil.uk/awards</a></i></font></span></p>
        <p style="font-family:Arial,Helvetica,sans-serif;font-size:1.3em"><span style="font-size:6pt;font-family:Verdana;color:black">X-on
            is a trading name of Storacall Technology Ltd a limited
            company registered in
            England and Wales.<br>
            Registered Office : Glebe Farm, Down Street, Dummer,
            Basingstoke, Hampshire, England RG25 2AD. Company
            Registration No. 2578478.<br>
            The information in this e-mail is confidential and for use
            by the addressee(s)
            only. If you are not the intended recipient, please notify
            X-on immediately on <span>+44(0)333 332 0000</span> and
            delete the<br>
            message from your computer. If you are not a named addressee
            you must not use,
            disclose, disseminate, distribute, copy, print or reply to
            this email. </span><span style="font-size:6pt;font-family:Verdana;color:black">Views
            or opinions expressed by an individual<br>
            within this email may not necessarily
            reflect the views of X-on or its associated companies.
            Although X-on routinely
            screens for viruses, addressees should scan this email and
            any attachments<br>
            for
            viruses. X-on makes no representation or warranty as to the
            absence of viruses
            in this email or any attachments.</span></p>
        <p style="font-family:Arial,Helvetica,sans-serif;font-size:1.3em"><span style="font-size:6pt;font-family:Verdana;color:black"></span><font size="2"><span style="font-size:6pt;font-family:Verdana;color:black"></span></font></p>
      </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>
  </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>
<p dir="ltr" style="font-family:Arial,Helvetica,sans-serif;font-size:1.3em;line-height:1.38;margin-top:0pt;margin-bottom:0pt;text-align:justify"><font size="3" face="Verdana"><span style="font-size:8px;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"></span></font></p><div style="font-family:Arial,Helvetica,sans-serif;font-size:1.3em"><img src="https://www.x-on.co.uk/email/footer/banner-10-2022.jpg"><br></div><div style="font-family:Arial,Helvetica,sans-serif;font-size:1.3em"><br></div><div><font size="4" style="font-family:Arial,Helvetica,sans-serif;font-size:1.3em"><b><sup><font face="Verdana">0333 332 0000  |  <a href="https://www.x-on.co.uk" target="_blank">x-on.co.uk</a>  |  <sub> </sub></font></sup></b></font><font size="4" style="font-family:Arial,Helvetica,sans-serif;font-size:1.3em"><b><sub><sup><font face="Verdana"><a href="https://www.linkedin.com/company/x-on" target="_blank"><img src="http://www.x-on.co.uk//images/icon/linkedin.png" width="24" height="24"></a>  <a href="https://www.facebook.com/XonTel" target="_blank"><img src="http://www.x-on.co.uk//images/icon/facebook.png" width="24" height="24"></a>  <a href="https://twitter.com/xonuk" target="_blank"><img src="http://www.x-on.co.uk//images/icon/twitter.png" width="24" height="24"></a></font></sup></sub> </b></font><b style="font-family:Arial,Helvetica,sans-serif;font-size:large"><sup><font face="Verdana">  |  <a href="https://www.x-on.co.uk/service/surgery-connect/coronavirus.htm" target="_blank">Coronavirus</a></font></sup></b><b style="font-size:16.9px"><sup><font face="Verdana">  |  <a href="https://practiceindex.co.uk/gp/x-on" target="_blank">Practice Index Reviews</a></font></sup></b><p><font face="Verdana" color="#ff0000" size="1"><b>Our new office address: 22 Riduna Park, Melton IP12 1QT.</b></font></p>





<p style="font-family:Arial,Helvetica,sans-serif"><span style="font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif"><font size="1"><i>THE COMMS COUNCIL UK AWARDS 2022 AND Best Comms Software are trade marks of the Comms Council UK, used under licence - <a href="https://commscouncil.uk/awards" target="_blank">https://commscouncil.uk/awards</a></i></font></span></p><p style="font-family:Arial,Helvetica,sans-serif;font-size:1.3em"><span style="font-size:6.0pt;font-family:Verdana;color:black">X-on
is a trading name of Storacall Technology Ltd a limited company registered in
England and Wales.<br>
Registered Office : Glebe Farm, Down Street, Dummer, Basingstoke, Hampshire, England RG25 2AD. Company Registration No. 2578478.<br>
The information in this e-mail is confidential and for use by the addressee(s)
only. If you are not the intended recipient, please notify X-on immediately on <span>+44(0)333 332 0000</span> and delete the<br>message from your computer. If you are not a named addressee you must not use,
disclose, disseminate, distribute, copy, print or reply to this email. </span><span style="font-size:6.0pt;font-family:Verdana;color:black">Views
or opinions expressed by an individual<br>within this email may not necessarily
reflect the views of X-on or its associated companies. Although X-on routinely
screens for viruses, addressees should scan this email and any attachments<br>for
viruses. X-on makes no representation or warranty as to the absence of viruses
in this email or any attachments.</span></p>





<p style="font-family:Arial,Helvetica,sans-serif;font-size:1.3em"><span style="font-size:6.0pt;font-family:Verdana;color:black"></span><font size="2"><span style="font-size:6.0pt;font-family:Verdana;color:black"></span></font></p></div>