Hi,

Thank you for the response. What table in Kamailio database can be used to map AORs to unique contact?
location table or dbaliases table?

Thanks,
Al




Date: Tue, 2 Jun 2015 12:12:47 +0200
From: miconda@gmail.com
To: sr-users@lists.sip-router.org
Subject: Re: [SR-Users] RFC 6140

Hello,

implementation of the rfc is not embedded in the module, but functionality can be achieved with few config options.

A variant would be:

if(!lookup("location")) {
   # phone not registered with own extension, try to see if it is a bulk registration
   $var(rU) = $rU;   # backup dialed number
   $rU = "pbx";
   if(!lookup("location")) {
        # not found
        send_reply("404", "Not found");
        exit;
   }
   $rU = $var(rU); # restore dialed number
}

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.

Also, the bnc parameter is not removed, it is easy to do via some subst operation after lookup location.

Cheers,
Daniel

On 01/06/15 21:58, Al S wrote:
Hi,

I was wondering if Kamailio support RFC 6140 to register Addresses of Record (AORs) in bulk map to a unique set of contacts.

   REGISTER sip:kamailio.example.com SIP/2.0
   Via: SIP/2.0/UDP 198.51.100.3:5060;branch=z9hG4bKnashds7
   Max-Forwards: 70
   To: <sip:pbx@kamailio.example.com>
   From: <sip:pbx@kamailio.example.com>;tag=a23589
   Call-ID: 843817637684230@998sdasdh09
   CSeq: 1826 REGISTER
   Proxy-Require: gin
   Require: gin
   Supported: path
   Contact: <sip:198.51.100.3:5060;bnc>
   Expires: 7200
   Content-Length: 0

        

Thanks,
Al


_______________________________________________
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

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda

_______________________________________________ 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