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 available at its IP.

This fea ture 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 bet ween the servers (UAC Module)?
See the above configuration!

Best regards;
Edson Gomes Leme