[Spce-user] P-Preferred-identity
Andrew Pogrebennyk
apogrebennyk at sipwise.com
Mon Oct 7 04:57:46 EDT 2013
Hello,
in 3.0 you can se PPI to peer_auth_user at peer_auth_realm (just set
outbound_ppi_user to Peer authentication name). We do not support form
NPN at peer_auth_realm, but this should be quite easy to patch. Set the
preference to Peer authentication name as described above, and create
proxy.cfg.customtt.tt2 file with following change (not tested):
--- a/templates/etc/kamailio/proxy/proxy.cfg.customtt.tt2
+++ b/templates/etc/kamailio/proxy/proxy.cfg.customtt.tt2
@@ -4458,7 +4458,7 @@ route[ROUTE_SET_CALLER_CLI]
route(ROUTE_PREPARE_CALLER_CLI);
if($var(ccli_user) != 0)
{
- $var(caller_uri) = "sip:" + $var(ccli_user) +
"@" + $var(ccli_domain);
+ $var(caller_uri) = "sip:" +
$var(caller_cli_netprov) + "@" + $var(ccli_domain);
xlog("L_NOTICE", "Setting PPI to
'<$var(caller_uri)>' - [% logreq -%]\n");
append_hf("P-Preferred-Identity:
<$var(caller_uri)>\r\n");
}
HTH.
Andrew
On 10/07/2013 10:45 AM, Rogier Banis wrote:
> Hello list,
>
> Our trunking provider needs, to display the correct CLI on outbound
> calls, the PPI header to be in the following format:
> P-Preferred-Identity: <sip:+31101111111 at peer_auth_realm>
> Where pere_auth_realm is the domain i use to register at the trunking
> provider.
>
> Is there a way to format the PPI header in that way with CE?
>
> I think i've tried all the options in the GUI there are but no luck.
> When i use the Network-Provided-Number the CLI part of the PPI header is
> OK only the receiving domain is stated in the PPI header and not my
> domain i use to register.
>
> Hope someone has a clue in who to solve this.
>
> Thank you very much all.
>
>
>
>
>
> _______________________________________________
> Spce-user mailing list
> Spce-user at lists.sipwise.com
> http://lists.sipwise.com/listinfo/spce-user
>
More information about the Spce-user
mailing list