<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'><font color="#000000" face="Tahoma, sans-serif" size="3">Hi,</font><div><font color="#000000" face="Tahoma, sans-serif" size="3"><br></font></div><div><font color="#000000" face="Tahoma, sans-serif" size="3">Thank you for the response. What table in Kamailio database can be used to map AORs to unique contact?</font></div><div><font face="Tahoma, sans-serif" size="3">location table or dbaliases table?</font></div><div><font face="Tahoma, sans-serif" size="3"><br></font></div><div><font face="Tahoma, sans-serif" size="3">Thanks,</font></div><div><font face="Tahoma, sans-serif" size="3">Al</font></div><div><font face="Verdana,sans-serif" color="#000000"><br id="FontBreak"></font><br><br><div><hr id="stopSpelling">Date: Tue, 2 Jun 2015 12:12:47 +0200<br>From: miconda@gmail.com<br>To: sr-users@lists.sip-router.org<br>Subject: Re: [SR-Users] RFC 6140<br><br>
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="ecxmoz-cite-prefix">On 01/06/15 21:58, Al S wrote:<br>
</div>
<blockquote cite="mid:BAY167-W1082ED10E7FF73EF10C4F72D4B60@phx.gbl">
<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}
.ExternalClass body.ecxhmmessage {
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="ecxnewpage" style="font-size:1em;page-break-before:always;"> REGISTER <a class="ecxmoz-txt-link-freetext" target="_blank">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="ecxmoz-txt-link-rfc2396E" target="_blank"><sip:pbx@kamailio.example.com></a>
From: <a class="ecxmoz-txt-link-rfc2396E" target="_blank"><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="ecxmoz-txt-link-freetext" target="_blank">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="ecxnewpage" style="font-size:1em;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="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://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>