diff options
author | Michael Geddes <openwrt@frog.wheelycreek.net> | 2009-03-31 05:13:38 +0000 |
---|---|---|
committer | Michael Geddes <openwrt@frog.wheelycreek.net> | 2009-03-31 05:13:38 +0000 |
commit | baab33794bb53375a7eddac72dace20b34db7862 (patch) | |
tree | 04807190ea2d7118f26f081e8638c12c065e489b /contrib/package/asterisk-xip/files/uci/voicemailconf | |
parent | 1a8cae287428a011377e68cd4ac01e6a9cf1a82a (diff) |
Add mailformat - which format to use for email
Diffstat (limited to 'contrib/package/asterisk-xip/files/uci/voicemailconf')
-rwxr-xr-x | contrib/package/asterisk-xip/files/uci/voicemailconf | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/contrib/package/asterisk-xip/files/uci/voicemailconf b/contrib/package/asterisk-xip/files/uci/voicemailconf index f022e6fc0..fbdfd7b87 100755 --- a/contrib/package/asterisk-xip/files/uci/voicemailconf +++ b/contrib/package/asterisk-xip/files/uci/voicemailconf @@ -28,7 +28,7 @@ init_voicemailconf() { return 0 } -voicegeneral_list="format serveremail attach skipms maxsilence silencethreshold maxlogins emaildateformat sendvoicemail maxmsg maxmessage minmessage maxgreet" +voicegeneral_list="format emailformat serveremail attach skipms maxsilence silencethreshold maxlogins emaildateformat sendvoicemail maxmsg maxmessage minmessage maxgreet" voicegeneral_ext_list="" valid_voicemail(){ @@ -96,6 +96,14 @@ create_voicemailconf() { else [ -z "${voice_format}" ] && voice_format="wav49|gsm|wav" + # Make emailformat first in the list + if [ ! -z "${voice_emailformat}" ] ; then + local newfmt=${voice_emailformat} + for i in ${voice_format//|/ } ; do + [ "$i" == "${voice_emailformat}" ] || newfmt="${newfmt}|${i}" + done + voice_format="${newfmt}" + fi echo "${asteriskuci_gen}[general]" > $file for i in ${voicegeneral_list} ; do eval value=\${voice_$i} |