THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
A new Flyspray task has been opened. Details are below.
User who did this - Alex Hermann (axlh)
Attached to Project - sip-router
Summary - core keyword 'method'broken in onreply_route
Task Type - Bug Report
Category - Core
Status - Assigned
Assigned To - Andrei Pelinescu-Onciul
Operating System - All
Severity - Low
Priority - Normal
Reported Version - Development
Due in Version - Undecided
Due Date - Undecided
Details - The core keyword 'method' is broken in onreply_route.
There is no limitation on route type mentioned in the docs. In failure_route it works
correctly.
See example below:
route {
xlog("Request method: $rm");
if (is_method("INVITE")) {
xlog("is_method(\"INVITE\") == 1");
}
if (method == "INVITE") {
xlog("method == \"INVITE\" == 1");
}
t_on_reply(DEFAULT);
t_relay();
}
onreply_route[DEFAULT] {
xlog("Reply method: $rm");
if (is_method("INVITE")) {
xlog("is_method(\"INVITE\") == 1");
}
if (method == "INVITE") {
xlog("method == \"INVITE\" == 1");
}
}
Result:
Oct 6 13:26:07 devprx01 proxy3[24356]: ERROR: Request method: INVITE
Oct 6 13:26:07 devprx01 proxy3[24356]: ERROR: is_method("INVITE") == 1
Oct 6 13:26:07 devprx01 proxy3[24356]: ERROR: method == "INVITE" == 1
Oct 6 13:26:08 devprx01 proxy3[24358]: ERROR: Reply method: INVITE
Oct 6 13:26:08 devprx01 proxy3[24358]: ERROR: is_method("INVITE") == 1
<missing log line because of failed method test>
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=164
You are receiving this message because you have requested it from the Flyspray bugtracking
system. If you did not expect this message or don't want to receive mails in future,
you can change your notification settings at the URL shown above.