[SR-Users] RFC 6140

Daniel-Constantin Mierla miconda at gmail.com
Tue Jun 2 15:40:03 CEST 2015


Hello,

dbaliases is probably easier to manage, otherwise both can be used for
such mapping.

Cheers,
Daniel


On 02/06/15 15:02, Al S wrote:
> 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 at gmail.com
> To: sr-users at 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 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 <mailto: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://twitter.com/#%21/miconda> - http://www.linkedin.com/in/miconda
>
> _______________________________________________ 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
Book: SIp Routing With Kamailio - http://www.asipto.com

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


More information about the sr-users mailing list