Review Board 1.7.16


app_directory, support option 'p(n)' as documented with CLI online help, branches 1.6.1 to trunk.

Review Request #481 - Created Feb. 1, 2010 and submitted

Alec Davis
trunk
16751
Reviewers
asterisk-dev
Asterisk
finish off preliminary work done for initial pause before presenting directory name to caller.

Currently, 'core show application DIRECTORY' from 1.6.1 through to trunk indicates the 'p(n)' option is available, where in fact there is no code to act on it, other than to populate opts[OPT_ARG_PAUSE].
1.6.1 production server.
'p' on it own doesn't introduce delay, as expected.
'p(1000)' introduces 1 second delay after intial 3 letters are entered, then presents names individually.
'mp(1000)' introduces 1 second delay after intial 3 letters are entered, then presents names as a list.
'p(6000)' enforces a maximum of a 3 second delay.

Changes between revision 3 and 4

1 2 3 4
1 2 3 4

  1. trunk/apps/app_directory.c: Loading...
trunk/apps/app_directory.c
Diff Revision 3 Diff Revision 4
[20] 332 lines
[+20] [+] static int select_item_seq(struct ast_channel *chan, struct directory_item **items, int count, const char *dialcontext, struct ast_flags *flags, char *opts[])
333
			if (res < 0)
333
			if (res < 0)
334
				return -1;
334
				return -1;
335

    
   
335

   
336
			res = 0;
336
			res = 0;
337
		}
337
		}

    
   
338
		res = 0;
338
	}
339
	}
339

    
   
340

   
340
	/* Nothing was selected */
341
	/* Nothing was selected */
341
	return 0;
342
	return 0;
342
}
343
}
[+20] [20] 538 lines
  1. trunk/apps/app_directory.c: Loading...

https://reviewboard.asterisk.org/ runs on a server provided by Digium, Inc. and uses bandwidth donated to the open source Asterisk community by API Digital Communications in Huntsville, AL USA.
Please report problems with this site to asteriskteam@digium.com.