[Spce-user] BUG: P-Called-Party-ID not set properly by given alias-number
Klaus Peter v. Friedeburg
friedeburg at aco.de
Fri Oct 19 13:46:10 EDT 2012
Hi,
I think there is an bug in NGCP 2.6:
When given in csc_admin an alias_number to the subscriber a call come in to this alias number the P-Called-Party-ID header is not setting to the alias-number.
In solve this in kamailio-proxy script in
route[ROUTE_FIND_CALLEE]
after line
if($avp(s:callee_user) != $null && $avp(s:callee_domain) != $null)
{
I have inserted
$var(rU_temp) = $rU;
And in route[ROUTE_SET_CLI_CALLEE]
after line
xlog("L_INFO", "Setting P-Called-Party-ID '<sip:$rU@$avp(s:callee_domain)>' - [% logreq -%]\n");
I have commented the line
#append_hf("P-Called-Party-ID: <sip:$rU@$avp(s:callee_domain)>\r\n");
and insert the following:
if($var(rU_temp) != $null)
{
append_hf("P-Called-Party-ID: <sip:$var(rU_temp)@$avp(s:callee_domain)>\r\n");
}
else
{
append_hf("P-Called-Party-ID: <sip:$rU@$avp(s:callee_domain)>\r\n");
}
Mit freundlichen Grüßen
Klaus Peter v. Friedeburg
Klaus Peter v. Friedeburg | - Geschäftsleitung -
Tel.:+49 (0)561 98303-0 | Fax:+49 (0)561 98303-46 | friedeburg at aco.de
ACO Computerservice GmbH | Angersbachstraße 14 | 34127 Kassel, GERMANY
Tel.:+49 (0)561 98303-0 | Fax:+49 (0)561 98303-46 | info at aco.de | www.aco.de
Amtsgericht Kassel HRB 5388, USt-IdNr.: DE113061272 Geschäftsführer Klaus Peter v. Friedeburg
More information about the Spce-user
mailing list