[Spce-user] P-Preferred-identity
Rogier Banis
rogier at ningaloo.nl
Mon Oct 7 05:57:21 EDT 2013
When i patch it with the patch command i get this error:
root at sbc:/etc/ngcp-config# patch -p1 </tmp/patch
patching file templates/etc/kamailio/proxy/proxy.cfg.customtt.tt2
Hunk #1 FAILED at 4458.
1 out of 1 hunk FAILED -- saving rejects to file templates/etc/kamailio/proxy/proxy.cfg.customtt.tt2.rej
Using this patch file:
root at sbc:/etc/ngcp-config# cat /tmp/patch
--- 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");
}
Op 7 okt. 2013, om 10:57 heeft Andrew Pogrebennyk <apogrebennyk at sipwise.com> het volgende geschreven:
> 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
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20131007/9f96ee27/attachment-0001.html>
More information about the Spce-user
mailing list