[asterisk-commits] eliel: branch eliel/per_member_wrapuptime r188510 - /team/eliel/per_member_wr...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Apr 15 09:02:20 CDT 2009
Author: eliel
Date: Wed Apr 15 09:02:17 2009
New Revision: 188510
URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=188510
Log:
- Fix an issue while getting the "Static" option from the manager action.
- Check for errors when setting the wrapuptime, and acknowledge the action.
Modified:
team/eliel/per_member_wrapuptime/apps/app_queue.c
Modified: team/eliel/per_member_wrapuptime/apps/app_queue.c
URL: http://svn.digium.com/svn-view/asterisk/team/eliel/per_member_wrapuptime/apps/app_queue.c?view=diff&rev=188510&r1=188509&r2=188510
==============================================================================
--- team/eliel/per_member_wrapuptime/apps/app_queue.c (original)
+++ team/eliel/per_member_wrapuptime/apps/app_queue.c Wed Apr 15 09:02:17 2009
@@ -6801,7 +6801,7 @@
return -1;
}
- if (ast_strlen_zero(static_value)) {
+ if (!ast_strlen_zero(static_value)) {
/* also modify the member static value? */
default_wrapuptime = ast_true(static_value);
}
@@ -6812,7 +6812,11 @@
value = atoi(wrapuptime);
- set_member_wrapuptime(queue, interface, value, default_wrapuptime, is_absolute);
+ if (set_member_wrapuptime(queue, interface, value, default_wrapuptime, is_absolute) < 0) {
+ astman_send_error(s, m, "Error while modifying the member wrapuptime.");
+ }
+
+ astman_send_ack(s, m, "Member wrapuptime modified.");
return 0;
}
More information about the asterisk-commits
mailing list