Re: [sr-dev] [kamailio/kamailio] substr transformation error does not include config line number (#1019)

2017-03-14 Thread Juha Heinanen
Daniel-Constantin Mierla writes:

> I pushed a patch to attempt to print the line for string transformation 
> errors, as they are commonly used. However, this can be also accomplished for 
> all error logs by setting config parameters:
> 
> ```
> log_prefix_mode=1
> log_prefix="(cfg line: $cfg(line) "

OK, good to know, since also uri2dst2() errors don't show config line
number.

-- Juha

___
sr-dev mailing list
sr-dev@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] [kamailio/kamailio] substr transformation error does not include config line number (#1019)

2017-03-13 Thread Daniel-Constantin Mierla
Closed #1019.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1019#event-997601441___
sr-dev mailing list
sr-dev@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] [kamailio/kamailio] substr transformation error does not include config line number (#1019)

2017-03-13 Thread Daniel-Constantin Mierla
I pushed a patch to attempt to print the line for string transformation errors, 
as they are commonly used. However, this can be also accomplished for all error 
logs by setting config parameters:

```
log_prefix_mode=1
log_prefix="(cfg line: $cfg(line) "
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1019#issuecomment-286169783___
sr-dev mailing list
sr-dev@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev


[sr-dev] [kamailio/kamailio] substr transformation error does not include config line number (#1019)

2017-03-05 Thread juha-h
I noticed that when there is an error in substr transformation, config file 
line number is not included in the error message:

Mar  4 22:40:24 lohi /usr/bin/sip-proxy[7801]: ERROR: pv [pv_trans.c:572]: 
tr_eval_string(): substr out of range


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1019___
sr-dev mailing list
sr-dev@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev