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@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hi,
On 12/06/2011 02:41 PM, edson.gomes.leme wrote:
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.
You can do this out-of-the-box with the latest SPCE, which uses Kamailio and Sems to achieve this. See "SBC Functionality" in http://www.sipwise.com/news/announcements/spce-v2_4-release/
If you don't want to use the whole bundle, you can still check how it's done there (dig into sbc and db_reg_agent modules in Sems configuration).
Andreas