PrivacyManager()
PrivacyManager([Versuche
[,Länge
[,Optionen
]]])
PrivacyManager()
nichts.Versuche
Versuche (Default: 3)
gewährt, um eine Telefonnummer mit mindestens Länge
Stellen
(Default: 10) einzugeben. Diese Default-Werte werden aus der Datei
privacy.conf
gelesen. Sie enthält die beiden folgenden
Einträge: maxretries
minlength
PrivacyManager()
explizit
Werte an.j
wird zur Priorität n+101 gesprungen,
wenn der Anrufer nicht innerhalb der erlaubten Versuche eine Nummer der
erforderlichen Länge eingibt.PRIVACYMGRSTATUS
wird entweder
auf SUCCESS
oder auf FAILED
gesetzt.exten => 123,1,Answer() exten => 123,n,PrivacyManager() exten => 123,n,GotoIf($["${PRIVACYMGRSTATUS}" = "FAILED"]?pm-fehler,1) exten => 123,n,Dial(Zap/1) exten => pm-fehler,1,Playback(tut-uns-leid) exten => pm-fehler,n,Playback(vm-goodbye)
————————| 1.2 |————————| 1.4 |————————| 1.6 |————————
-= Info about application 'PrivacyManager' =-
[Synopsis]
Require phone number to be entered, if no CallerID sent
[Description]
PrivacyManager([maxretries[|minlength[|options]]]): If no Caller*ID
is sent, PrivacyManager answers the channel and asks the caller to
enter their phone number. The caller is given 3 attempts to do so.
The application does nothing if Caller*ID was received on the channel.
Configuration file privacy.conf contains two variables:
maxretries default 3 -maximum number of attempts the caller is allowed
to input a callerid.
minlength default 10 -minimum allowable digits in the input callerid number.
If you don't want to use the config file and have an i/o operation with
every call, you can also specify maxretries and minlength as application
parameters. Doing so supercedes any values set in privacy.conf.
The option string may contain the following character:
'j' -- jump to n+101 priority after <maxretries> failed attempts to collect
the minlength number of digits.
The application sets the following channel variable upon completion:
PRIVACYMGRSTATUS The status of the privacy manager's attempt to collect
a phone number from the user. A text string that is either:
SUCCESS | FAILED
--- in Asterisk 1.4
+++ in Asterisk 1.6
@@ -4,20 +4,14 @@
Require phone number to be entered, if no CallerID sent
[Description]
- PrivacyManager([maxretries[|minlength[|options]]]): If no Caller*ID
+ PrivacyManager([maxretries][,minlength][,context]): If no Caller*ID
is sent, PrivacyManager answers the channel and asks the caller to
- enter their phone number. The caller is given 3 attempts to do so.
+ enter their phone number. The caller is given 'maxretries' attempts to do so.
The application does nothing if Caller*ID was received on the channel.
- Configuration file privacy.conf contains two variables:
maxretries default 3 -maximum number of attempts the caller is allowed
to input a callerid.
minlength default 10 -minimum allowable digits in the input callerid number.
- If you don't want to use the config file and have an i/o operation with
- every call, you can also specify maxretries and minlength as application
- parameters. Doing so supercedes any values set in privacy.conf.
- The option string may contain the following character:
- 'j' -- jump to n+101 priority after <maxretries> failed attempts to collect
- the minlength number of digits.
+ context context to check the given Caller*ID against patterns.
The application sets the following channel variable upon completion:
PRIVACYMGRSTATUS The status of the privacy manager's attempt to collect
a phone number from the user. A text string that is either:
Zapateller()
“