[svn-commits] oej: branch oej/minivoicemail r58702 -
/team/oej/minivoicemail/configs/
svn-commits at lists.digium.com
svn-commits at lists.digium.com
Sat Mar 10 07:52:07 MST 2007
Author: oej
Date: Sat Mar 10 08:52:06 2007
New Revision: 58702
URL: http://svn.digium.com/view/asterisk?view=rev&rev=58702
Log:
Update configuration example
- Needs testing
Modified:
team/oej/minivoicemail/configs/extensions_minivm.conf.sample
Modified: team/oej/minivoicemail/configs/extensions_minivm.conf.sample
URL: http://svn.digium.com/view/asterisk/team/oej/minivoicemail/configs/extensions_minivm.conf.sample?view=diff&rev=58702&r1=58701&r2=58702
==============================================================================
--- team/oej/minivoicemail/configs/extensions_minivm.conf.sample (original)
+++ team/oej/minivoicemail/configs/extensions_minivm.conf.sample Sat Mar 10 08:52:06 2007
@@ -6,16 +6,11 @@
; This is an example on how to use the Mini-Voicemail system to build
; voicemail systems.
;
-; Content:
-; - 1. Simple record and forward to e-mail system
-; - 2. A bit more complicated record and forward to e-mail and pager system (multi-language)
-; - 3. (futureware: A voicemail system with a menu to access voicemail :-) )
-;
-;
;.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
; A macro to test the MINIVMACCOUNT dialplan function
-; Currently, accountcode and pincode is not used in the application
-; They where added to be used in dialplan scripting
+; Currently, accountcode and pincode is not used in the application
+; They where added to be used in dialplan scripting
+;
;
[macro-minivmfunctest]
exten => s,1,set(account=${ARGV1})
@@ -39,25 +34,26 @@
; Check the output in the console with verbose set
exten => minivmtest,1,answer
exten => minivmtest,n,wait(0.5)
-exten => minivmtest,n,set(ACCOUNT=do-not-spam-me at edvina.net)
+exten => minivmtest,n,set(ACCOUNT=do-not-spam-me at example.com)
exten => minivmtest,n,macro(minivmfunctest, ${ACCOUNT})
exten => minivmtest,n,playback(beep)
exten => minivmtest,n,hangup
+;.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
; "minivm" tests a full scenario
; Remember that users may hangup
+; This works both for users with accounts in minivm.conf and by just giving an e-mail address
+; without configuring an account
exten => minivm,1,answer
-exten => minivm,n,set(account=oej at edvina.net)
+exten => minivm,n,wait(0.5) ; Wait for Voip channels to settle
+exten => minivm,n,set(account=oej at example.com)
exten => minivm,n,noop(------------------------------------------- Minivm Greet -------------)
exten => minivm,n,minivmgreet(${account})
exten => minivm,n,verbose(1,-- MINIVM_GREET_STATUS = ${MINIVM_GREET_STATUS} )
exten => minivm,n,noop(------------------------------------------- Minivm Record -------------)
-exten => minivm,n,minivmRecord(${account})
+exten => minivm,n,minivmRecord(${account},b)
+exten => minivm,n,verbose(1,-- MINIVM_RECORD_STATUS = ${MINIVM_RECORD_STATUS} )
exten => minivm,n,noop(------------------------------------------- Minivm Notify -------------)
-; Check MINIVMRECORDSTATUS here
-exten => minivm,n,verbose(1,-- MINIVM_RECORD_STATUS = ${MINIVM_RECORD_STATUS} )
-; Add check if there's a duration set. If MVM_DURATION is not set, there's no recording
-;
exten => minivm,n,minivmNotify(${account})
exten => minivm,n,verbose(1,-- MINIVM_NOTIFY_STATUS = ${MINIVM_NOTIFY_STATUS} )
; Now, clean up after sending voicemail
@@ -66,7 +62,8 @@
exten => minivm,n,verbose(1,-- MINIVM_DELETE_STATUS = ${MINIVM_DELETE_STATUS} )
exten => minivm,n,hangup
-exten => minivmcleanup,1,minivmNotify(${account})
+exten => minivmcleanup,1,noop(------------------------------------------- Minivm Notify -------------)
+exten => minivmcleanup,n,minivmNotify(${account})
exten => minivmcleanup,n,verbose(1,-- MINIVM_NOTIFY_STATUS = ${MINIVM_NOTIFY_STATUS} )
; Now, clean up after sending voicemail
exten => minivmcleanup,n,noop(------------------------------------------- Minivm Delete -------------)
@@ -75,6 +72,48 @@
; If the user hangs up during the recording, we need to clean up
; And send notifications
-exten => h,1,noop(------------------------------- HANGUP during voicemail recording -------------)
+exten => h,1,gotoif($[x${MINIVM_DELETE_STATUS} != x] ?h,stop)
+exten => h,n,noop(------------------------------------------- HANGUP during voicemail recording -------------)
exten => h,n,goto(minivmcleanup,1)
+exten => h,n(stop),noop(---Minivm DONE----)
+;.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
+; Extension to record a greeting message
+; Call this like:
+; macro(recordgreetings,alice at atlanta.example.com)
+;
+[macro-recordgreetings]
+exten => s,1,answer
+exten => s,n,wait(0.5)
+exten => s,n,set(account=${ARGV1])
+; This file give extra options not available here, needs to be edited
+; Change of password does not work
+exten => s,n(menu),background(vm-options)
+exten => 1,1,setvar(option=u)
+exten => 1,n,macro(minivmrec,${account},${option})
+exten => 1,n,goto(menu)
+exten => 2,1,setvar(option=b)
+exten => 2,n,macro(minivmrec,${account},${option})
+exten => 2,n,goto(menu)
+exten => 3,1,setvar(option=n)
+exten => 3,n,macro(minivmrec,${account},${option})
+exten => 3,n,goto(menu)
+exten => 4,1,setvar(option=t)
+exten => 4,n,macro(minivmrec,${account},${option})
+exten => 4,n,goto(menu)
+exten => *,1,playback(vm-thankyou)
+exten => *,n,wait(1)
+exten => *,n,hangup
+
+exten => i,1,playback(invalid)
+exten => i,n,goto(menu)
+
+[macro-minivmrec]
+exten => s,1,gotoif(${MINIVMACCOUNT(${account}:hasaccount)}?record)
+; Account is not configured in minivm.conf or realtime
+; Phony message, add something useful here
+exten => s,n,playback(privacy-incorrect)
+exten => s,n,macroreturn
+exten => record,1,minivmappmess(${ARGV1},${ARGV2})
+exten => record,n,noop(Recording status: ${MINIVM_APPMESS_STATUS})
+exten => record,n,macroreturn
More information about the svn-commits
mailing list