Sahil Gupta
2014-11-11 18:15:24 UTC
Hi,
I'm trying to add P-Asserted-ID by default on one of our OpenSIPS
deployments.
In my config file I have:
$var(from)='sip:+'+$var(cid)+'@54.76.30.63';
$var(from)='sip:+'+$var(cid)+'@54.76.30.63';
route[PAID]{
if (is_present_hf("Remote-Party-ID")) {
remove_hf("Remote-Party-ID");
}
if (is_present_hf("P-Asserted-Identity")) {
remove_hf("P-Asserted-Identity");
}
if (is_present_hf("Privacy")) {
remove_hf("Privacy");
}
append_hf("P-Asserted-Identity: <+$var(from)>\r\n");
}
However, unless the CID is set with a + it doesn't seem to automatically
prefix the "+" sign.
I'm trying to add P-Asserted-ID by default on one of our OpenSIPS
deployments.
In my config file I have:
$var(from)='sip:+'+$var(cid)+'@54.76.30.63';
$var(from)='sip:+'+$var(cid)+'@54.76.30.63';
route[PAID]{
if (is_present_hf("Remote-Party-ID")) {
remove_hf("Remote-Party-ID");
}
if (is_present_hf("P-Asserted-Identity")) {
remove_hf("P-Asserted-Identity");
}
if (is_present_hf("Privacy")) {
remove_hf("Privacy");
}
append_hf("P-Asserted-Identity: <+$var(from)>\r\n");
}
However, unless the CID is set with a + it doesn't seem to automatically
prefix the "+" sign.
--
Thanks,
Sahil
Thanks,
Sahil