I know I can test the SIP return code with an "if", but how do I log it, or, alternatively, pass it to a exec_dset() script? I tried something like
log(1, "Failure Route, status is $status\n");
And I get a "bad logargument" when I start openser. Clues?
Juan
Hi Juan,
see the following pseudo-variable ($T_reply_code): http://www.openser.org/docs/modules/1.2.x/tm.html#AEN546
regards, bogdan
Juan Carlos Castro y Castro wrote:
I know I can test the SIP return code with an "if", but how do I log it, or, alternatively, pass it to a exec_dset() script? I tried something like
log(1, "Failure Route, status is $status\n");
And I get a "bad logargument" when I start openser. Clues?
Juan
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Bogdan-Andrei Iancu wrote:
Hi Juan,
see the following pseudo-variable ($T_reply_code): http://www.openser.org/docs/modules/1.2.x/tm.html#AEN546
Hi All!
What about $rr and $rs Bogdan? I try to use it in failure_route but this variables doesn't contains values in some time. Does I need to use $T_reply_code in failure_route to get properly failure status (timeout for example)?
regards, bogdan
Juan Carlos Castro y Castro wrote:
I know I can test the SIP return code with an "if", but how do I log it, or, alternatively, pass it to a exec_dset() script? I tried something like
Hi Victor,
$rr and $rs access the current processed reply, so they are useful only in reply route. In failure route you process a request (actually re-process the original request), so you cannot use them.
on the other had, the $T_reply_code PV takes info directly from the TM engine (and not from reply message) and it is able to give info about the picked reply code (during parallel forking).
regards, bogdan
Victor Gamov wrote:
Bogdan-Andrei Iancu wrote:
Hi Juan,
see the following pseudo-variable ($T_reply_code): http://www.openser.org/docs/modules/1.2.x/tm.html#AEN546
Hi All!
What about $rr and $rs Bogdan? I try to use it in failure_route but this variables doesn't contains values in some time. Does I need to use $T_reply_code in failure_route to get properly failure status (timeout for example)?
regards, bogdan
Juan Carlos Castro y Castro wrote:
I know I can test the SIP return code with an "if", but how do I log it, or, alternatively, pass it to a exec_dset() script? I tried something like
Bogdan-Andrei Iancu wrote:
Hi Victor,
$rr and $rs access the current processed reply, so they are useful only in reply route. In failure route you process a request (actually re-process the original request), so you cannot use them.
on the other had, the $T_reply_code PV takes info directly from the TM engine (and not from reply message) and it is able to give info about the picked reply code (during parallel forking).
I see. Thanks Bogdan!
Can you add this PV description into http://www.openser.org/dokuwiki/doku.php/pseudovariables:1.2.x
Thanks again!
ok - done.
Regards, Bogdan
Victor Gamov wrote:
Bogdan-Andrei Iancu wrote:
Hi Victor,
$rr and $rs access the current processed reply, so they are useful only in reply route. In failure route you process a request (actually re-process the original request), so you cannot use them.
on the other had, the $T_reply_code PV takes info directly from the TM engine (and not from reply message) and it is able to give info about the picked reply code (during parallel forking).
I see. Thanks Bogdan!
Can you add this PV description into http://www.openser.org/dokuwiki/doku.php/pseudovariables:1.2.x
Thanks again!
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Bogdan-Andrei Iancu wrote:
Hi Victor,
$rr and $rs access the current processed reply, so they are useful only in reply route. In failure route you process a request (actually re-process the original request), so you cannot use them.
on the other had, the $T_reply_code PV takes info directly from the TM engine (and not from reply message) and it is able to give info about the picked reply code (during parallel forking).
I see. Thanks Bogdan!
Can you add this PV description into http://www.openser.org/dokuwiki/doku.php/pseudovariables:1.2.x
Thanks again!