[svn-commits] file: trunk r107710 - /trunk/apps/app_page.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Tue Mar 11 15:36:14 CDT 2008
Author: file
Date: Tue Mar 11 15:36:14 2008
New Revision: 107710
URL: http://svn.digium.com/view/asterisk?view=rev&rev=107710
Log:
Dial a device even if it's state is unknown.
(closes issue #12184)
Reported by: bluecrow76
Patches:
asterisk-svn-app_page.c.devicestate_unknown.diff uploaded by bluecrow76 (license 270)
Modified:
trunk/apps/app_page.c
Modified: trunk/apps/app_page.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_page.c?view=diff&rev=107710&r1=107709&r2=107710
==============================================================================
--- trunk/apps/app_page.c (original)
+++ trunk/apps/app_page.c Tue Mar 11 15:36:14 2008
@@ -124,9 +124,14 @@
}
/* Ensure device is not in use if skip option is enabled */
- if (ast_test_flag(&flags, PAGE_SKIP) && (state = ast_device_state(tech)) != AST_DEVICE_NOT_INUSE) {
- ast_log(LOG_WARNING, "Destination '%s' has device state '%s'.\n", tech, devstate2str(state));
- continue;
+ if (ast_test_flag(&flags, PAGE_SKIP)) {
+ state = ast_device_state(tech);
+ if (state == AST_DEVICE_UNKNOWN) {
+ ast_log(LOG_WARNING, "Destination '%s' has device state '%s'. Paging anyway.\n", tech, devstate2str(state));
+ } else if (state != AST_DEVICE_NOT_INUSE) {
+ ast_log(LOG_WARNING, "Destination '%s' has device state '%s'.\n", tech, devstate2str(state));
+ continue;
+ }
}
*resource++ = '\0';
More information about the svn-commits
mailing list