[Spce-user] P-Preferred-identity

Rogier Banis rogier at ningaloo.nl
Mon Oct 7 05:44:42 EDT 2013


Andrew,

Thanks for your reply. I created the proxy.cfg.customtt.tt2 file as you suggested with the following content:

root at sbc:/etc/ngcp-config/templates/etc/kamailio/proxy# cat proxy.cfg.customtt.tt2
route(ROUTE_PREPARE_CALLER_CLI);
                if($var(ccli_user) != 0)
                {
                       $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");
                }

When i now do a ngcpcfg apply i get the following error:

Executing action for /etc/ngcp-config/templates/etc/kamailio/proxy/ngcpcfg.services
Not executing command for kamailio-proxy: invalid configuration file!
-e
 0(29377) NOTICE: <core> [sr_module.c:627]: load_module(): /usr/lib/x86_64-linux-gnu/kamailio/modules/app_lua.so: exports dlflags interface is deprecated and it will not be supported in newer versions; consider using mod_register() instead
 0(29377) : <core> [cfg.y:3558]: yyerror_at(): parse error in config file /etc/kamailio/proxy/proxy.cfg, line 1, column 6: syntax error
 0(29377) : <core> [cfg.y:3558]: yyerror_at(): parse error in config file /etc/kamailio/proxy/proxy.cfg, line 1, column 6: invalid  route  statement
 0(29377) : <core> [cfg.y:3555]: yyerror_at(): parse error in config file /etc/kamailio/proxy/proxy.cfg, line 1, column 7-30:
ERROR: bad config file (3 errors)


Can you guide me on this?

Thnx!!




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/24e8af77/attachment-0001.html>


More information about the Spce-user mailing list