[svn-commits] mmichelson: trunk r164428 - /trunk/apps/app_page.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Dec 15 14:07:04 CST 2008


Author: mmichelson
Date: Mon Dec 15 14:07:03 2008
New Revision: 164428

URL: http://svn.digium.com/view/asterisk?view=rev&rev=164428
Log:
Add an 'i' option to app_page. This option works the same as
the 'i' options for app_dial and app_queue, in that they will ignore
any attempts by phones to forward the call.

(closes issue #13977)
Reported by: putnopvut
Patches:
      page_ignore_forwards.patch uploaded by putnopvut (license 60)
Tested by: putnopvut, acunningham


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=164428&r1=164427&r2=164428
==============================================================================
--- trunk/apps/app_page.c (original)
+++ trunk/apps/app_page.c Mon Dec 15 14:07:03 2008
@@ -68,6 +68,9 @@
 					<option name="d">
 						<para>Full duplex audio</para>
 					</option>
+					<option name="i">
+						<para>Ignore attempts to forward the call</para>
+					</option>
 					<option name="q">
 						<para>Quiet, do not play beep to caller</para>
 					</option>
@@ -103,6 +106,7 @@
 	PAGE_QUIET = (1 << 1),
 	PAGE_RECORD = (1 << 2),
 	PAGE_SKIP = (1 << 3),
+	PAGE_IGNORE_FORWARDS = (1 << 4),
 } page_opt_flags;
 
 AST_APP_OPTIONS(page_opts, {
@@ -110,6 +114,7 @@
 	AST_APP_OPTION('q', PAGE_QUIET),
 	AST_APP_OPTION('r', PAGE_RECORD),
 	AST_APP_OPTION('s', PAGE_SKIP),
+	AST_APP_OPTION('i', PAGE_IGNORE_FORWARDS),
 });
 
 #define MAX_DIALS 128
@@ -209,6 +214,10 @@
 			ast_dial_set_global_timeout(dial, timeout * 1000);
 		}
 
+		if (ast_test_flag(&flags, PAGE_IGNORE_FORWARDS)) {
+			ast_dial_option_global_enable(dial, AST_DIAL_OPTION_DISABLE_CALL_FORWARDING, NULL);
+		}
+
 		/* Run this dial in async mode */
 		ast_dial_run(dial, chan, 1);
 




More information about the svn-commits mailing list