[Spce-user] P-Preferred-identity
Andrew Pogrebennyk
apogrebennyk at sipwise.com
Mon Oct 7 06:01:53 EDT 2013
Hello,
hmm, error in line 1 means there is something terribly wrong anywhere in
the config file.. Could you please archive the whole directory and send
it privately to me, e.g.:
tar czvf kamailio-config.tar.gz /etc/kamailio/proxy
/etc/ngcp-config/templates/etc/kamailio/proxy
?
On 10/07/2013 11:44 AM, Rogier Banis wrote:
> 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!!
More information about the Spce-user
mailing list