[SR-Users] Can the SBC (Kamailio 3.1.x and FreeSWITCH 1.0.6+) do Upper Registration?

Alex Balashov abalashov at evaristesys.com
Tue Dec 6 14:45:02 CET 2011


Yes, you can do this either by relaying the registrations + using 
Path, or by using the 'uacreg' table in the 'uac' module, depending on 
just how much you want to relay the registrations upstream 1-for-1.

On 12/06/2011 08:41 AM, edson.gomes.leme wrote:

> Hi;
>
> Thanks for the idea, but this module (PATH) is designed to be used at
> intermediate sip proxies. It provides functions for inserting a Path
> header including a parameter for passing forward the received-URI of a
> registration to the next hop.
>
> I need the following feature: Upper Registration - This feature
> forwards REGISTER requests sent from Client Phone to another server as
> configured at SBC. A client can send just one REGISTER request to SBC
> to register itself both at SBC and at other server (mysipswitch). This
> is, capability of relaying registrations to upper registrars. In other
> words: Capability to hijack-registrations towards upstream registrars.
>
> I'm using the following feature of tutorial “/Kamailio 3.1.x and
> Asterisk 1.6.2 using Asterisk Database/”:
> *Registration:*
> /Kamailio does authentication for registration. If successful, it
> notifies Asterisk with a new REGISTER that the phone is availabl e at
> its IP./
>
> This feature works with Upper Registration, but doesn�?t perform
> authentication for registration between the servers (Ex.: Kamailio and
> Asterisk).
>
> # Forward REGISTER to Asterisk
> route[REGFWD] {
> if(!is_method("REGISTER"))
> {
> return;
> }
> $var(rip) = $sel(cfg_get.asterisk.bindip);
> $uac_req(method)="REGISTER";
> $uac_req(ruri)="sip:" + $var(rip) + ":" + $sel(cfg_get.asterisk.bindport);
> $uac_req(furi)="sip:" + $au + "@" + $var(rip);
> $uac_req(turi)="sip:" + $au + "@" + $var(rip);
> $uac_req(hdrs)="Contact: <sip:" + $au + "@"
> + $sel(cfg_get.kamailio.bindip)
> + ":" + $sel(cfg_get.kamailio.bindport) + ">\r\n";
> if($sel(contact.expires) != $null)
> $uac_req(hdrs)= $uac_req(hdrs) + "Expires: " + $sel(contact.expires) +
> "\r\n";
> else
> $uac_req(hdrs)= $uac_req(hdrs) + "Expires: " + $hdr(Expires) + "\r\n";
> uac_req_send();
> }
> #!endif
> *How to configure authentication for registration between the servers
> (UAC Module)?
> See the above configuration!
>
> Best regards;
> Edson Gomes Leme
>
> *
>
> *
> *
>
> *_______________________________________________
> 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
> *


-- 
Alex Balashov - Principal
Evariste Systems LLC
260 Peachtree Street NW
Suite 2200
Atlanta, GA 30303
Tel: +1-678-954-0670
Fax: +1-404-961-1892
Web: http://www.evaristesys.com/



More information about the sr-users mailing list