fix privacymanager example so it shows how to use the
authorMichiel van Baak <michiel@vanbaak.info>
Sun, 21 Sep 2008 09:53:01 +0000 (09:53 +0000)
committerMichiel van Baak <michiel@vanbaak.info>
Sun, 21 Sep 2008 09:53:01 +0000 (09:53 +0000)
PRIVACYMRGSTATUS variable

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@143843 65c4cc65-6c06-0410-ace0-fbb531ad65f3

doc/tex/privacy.tex

index 5b678ae..a4ae7b9 100644 (file)
@@ -82,13 +82,15 @@ exten => s,2,SetVar,repeatcount=0
 exten => s,3,Zapateller,nocallerid
 exten => s,4,PrivacyManager
      ;; do this if they don't enter a number to Privacy Manager
+exten => s,5,GotoIf($[ "${PRIVACYMGRSTATUS}" = "FAILED" ]?s,105)
+exten => s,6,GotoIf($[ "${CALLERID(num)}"  = "7773334444" & "${CALLERID(name)}" : "Privacy Manager" ]?callerid-liar,s,1:s,7)
+exten => s,7,Dial(SIP/yourphone)
 exten => s,105,Background(tt-allbusy)
 exten => s,106,Background(tt-somethingwrong)
 exten => s,107,Background(tt-monkeysintro)
 exten => s,108,Background(tt-monkeys)
 exten => s,109,Background(tt-weasels)
 exten => s,110,Hangup
-exten => s,5,GotoIf($[ "${CALLERID(num)}"  = "7773334444" & "${CALLERID(name)}" : "Privacy Manager" ]?callerid-liar,s,1:s,7)
 \end{verbatim}
 \end{astlisting}