[SR-Users] RFC 6140

Daniel-Constantin Mierla miconda at gmail.com
Tue Jun 2 12:12:47 CEST 2015


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 at kamailio.example.com>
>    From: <sip:pbx at kamailio.example.com>;tag=a23589
>    Call-ID: 843817637684230 at 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 at 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150602/405d4c16/attachment.html>


More information about the sr-users mailing list