http://www.kamailio.org/wiki/cookbooks/3.3.x/pseudovariables#error_class
When are the $err.info et al useful?
I can't seem to trigger any value into them, regardless of damage I cause my poor Kamailio.
/O
Hello,
On 9/6/12 1:59 PM, Olle E. Johansson wrote:
http://www.kamailio.org/wiki/cookbooks/3.3.x/pseudovariables#error_class
When are the $err.info et al useful?
I can't seem to trigger any value into them, regardless of damage I cause my poor Kamailio.
newer versions are self-healing :-)
Actually those PVs were set by the parsed in older versions (<1.5) when triggering the error_route. But that mechanism was replaced by the sanity module, which can be better controlled from config file. I guess the plan was to set these variables inside sanity module, to give more details about what was wrong with parsing -- but didn't happen so far, probably they return just null.
Cheers, Daniel
7 sep 2012 kl. 10:40 skrev Daniel-Constantin Mierla miconda@gmail.com:
Hello,
On 9/6/12 1:59 PM, Olle E. Johansson wrote:
http://www.kamailio.org/wiki/cookbooks/3.3.x/pseudovariables#error_class
When are the $err.info et al useful?
I can't seem to trigger any value into them, regardless of damage I cause my poor Kamailio.
newer versions are self-healing :-)
Actually those PVs were set by the parsed in older versions (<1.5) when triggering the error_route. But that mechanism was replaced by the sanity module, which can be better controlled from config file. I guess the plan was to set these variables inside sanity module, to give more details about what was wrong with parsing -- but didn't happen so far, probably they return just null.
OK.
So if I get an error and use sl_reply_error - how can I log the error code sent? Is it possible to reach it?
/O
On 09/07/2012 07:28 AM, Olle E. Johansson wrote:
So if I get an error and use sl_reply_error - how can I log the error code sent? Is it possible to reach it?
The fact that it's SL would seem to preclude that. However, in most cases, can't you figure out the error from the return value of whatever you called prior to sl_reply_error(), and whose negative result triggered the conditional logic to call sl_reply_error()?
7 sep 2012 kl. 13:45 skrev Alex Balashov abalashov@evaristesys.com:
On 09/07/2012 07:28 AM, Olle E. Johansson wrote:
So if I get an error and use sl_reply_error - how can I log the error code sent? Is it possible to reach it?
The fact that it's SL would seem to preclude that. However, in most cases, can't you figure out the error from the return value of whatever you called prior to sl_reply_error(), and whose negative result triggered the conditional logic to call sl_reply_error()?
sl_reply_error use an error code that I vaguely remembered was available as a pseudovariable, but that seems to be gone. So unless I have to guess by following my logic - is there a more exact way. I mean, if t_relay fails - who is suggesting an error code?
/O