Philipp Kempgen
2008-Nov-29 22:54 UTC
[asterisk-users] pp_each_user(), pp_each_extension()
---cut-------------------------------------------------
-= Info about function 'PP_EACH_USER' =-
[Syntax]
PP_EACH_USER(<string>|<exclude_mac>)
[Synopsis]
Generate a string for each phoneprov user
[Description]
Pass in a string, with phoneprov variables you want substituted in the format of
%%%%{VARNAME}, and you will get the string rendered for each user in phoneprov
excluding ones with MAC address <exclude_mac>. Probably not useful outside
of
res_phoneprov.
Example:
${PP_EACH_USER(<item><fn>%%%%{DISPLAY_NAME}</fn></item>|${MAC})
---cut-------------------------------------------------
The description is a bit vague.
"Generate" = return?
"for each" = concatenate?
---cut-------------------------------------------------
-= Info about function 'PP_EACH_EXTENSION' =-
[Syntax]
PP_EACH_EXTENSION(<mac>|<template>)
[Synopsis]
Execute specified template for each extension
[Description]
Output the specified template for each extension associated with the specified
MAC address.
---cut-------------------------------------------------
"Execute"/"output" a template? Huh?
Where does the output go?
To stdout? To a file?
Philipp Kempgen
--
http://www.das-asterisk-buch.de - http://www.the-asterisk-book.com
Amooma GmbH - Bachstr. 126 - 56566 Neuwied -> http://www.amooma.de
Gesch?ftsf?hrer: Stefan Wintermeyer, Handelsregister: Neuwied B14998
--
