<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    implementation of the rfc is not embedded in the module, but
    functionality can be achieved with few config options.<br>
    <br>
    A variant would be:<br>
    <br>
    if(!lookup("location")) {<br>
       # phone not registered with own extension, try to see if it is a
    bulk registration<br>
       $var(rU) = $rU;   # backup dialed number<br>
       $rU = "pbx";<br>
       if(!lookup("location")) {<br>
            # not found<br>
            send_reply("404", "Not found");<br>
            exit;<br>
       }<br>
       $rU = $var(rU); # restore dialed number<br>
    }<br>
    <br>
    The thing that might change is the username in To header of
    register, in your example was "pbx". Perhaps you can enforce that to
    those devices doing bulk registration or as soon as you get the
    REGISTER, check the bnc parameter in Contact URI and normalize the
    registration username to a specific value.<br>
    <br>
    Also, the bnc parameter is not removed, it is easy to do via some
    subst operation after lookup location.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 01/06/15 21:58, Al S wrote:<br>
    </div>
    <blockquote cite="mid:BAY167-W1082ED10E7FF73EF10C4F72D4B60@phx.gbl"
      type="cite">
      <style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
      <div dir="ltr"><font color="#000000" face="Arial, sans-serif"
          size="3">Hi,</font>
        <div><font color="#000000" face="Arial, sans-serif" size="3"><br>
          </font></div>
        <div><font face="Arial, sans-serif" size="3"><font
              color="#000000">I was wondering if Kamailio support RFC
              6140 to register </font>Addresses of Record (AORs) in
            bulk map to a unique set of contacts.</font></div>
        <div><font face="Arial, sans-serif" size="3"><br>
          </font></div>
        <div>
          <pre class="newpage" style="font-size: 1em; margin-top: 0px; margin-bottom: 0px; page-break-before: always;">   REGISTER <a class="moz-txt-link-freetext" href="sip:kamailio.example.com">sip:kamailio.example.com</a> SIP/2.0
   Via: SIP/2.0/UDP 198.51.100.3:5060;branch=z9hG4bKnashds7
   Max-Forwards: 70
   To: <a class="moz-txt-link-rfc2396E" href="sip:pbx@kamailio.example.com"><sip:pbx@kamailio.example.com></a>
   From: <a class="moz-txt-link-rfc2396E" href="sip:pbx@kamailio.example.com"><sip:pbx@kamailio.example.com></a>;tag=a23589
   Call-ID: 843817637684230@998sdasdh09
   CSeq: 1826 REGISTER
   Proxy-Require: <span style="background-color: rgb(255, 255, 0);">gin</span>
   Require: <span style="background-color: rgb(255, 255, 0);">gin</span>
   Supported: <span style="background-color: rgb(255, 255, 0);">path</span>
   Contact: <<a class="moz-txt-link-freetext" href="sip:198.51.100.3:5060">sip:198.51.100.3:5060</a>;<span style="background-color: rgb(255, 255, 0);">bnc</span>>
   Expires: 7200
   Content-Length: 0</pre>
          <pre class="newpage" style="font-size: 1em; margin-top: 0px; margin-bottom: 0px; page-break-before: always;">
</pre>
        </div>
        <div><font face="Arial, sans-serif" size="3"><br>
          </font></div>
        <div><font face="Arial, sans-serif" size="3">Thanks,</font></div>
        <div><font face="Arial, sans-serif" size="3">Al</font></div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
</pre>
  </body>
</html>