multiSwitch – user manual
© TOPEX 2008 54
Events:
Timeout(timer_nr)
– run when the timer „
timer_nr
” expires;
Digit(digit)
– run when is received the specifie digit; the value digit=255 implies the event run
at any received digit
EndPlay()
– run when at the end of the ruled file
PrepaidCreditFinished()
– runs if the prepaid user has no credit
PrepaidCreditOK()
– runs if the prepaid user credit is > 0
PrepaidNotFound()
– runs if after verification CheckPrepaidPIN(), CheckPrepaidANI() no
result was return
OnDial()
– executed by the
Dial()
action
DBResult()
– executed when is received an answer from the database
DBNotFound()
– executed when is received “not found” message from data base
DBError()
– executed on error from data base
OnMaxTry()
– executed by the MaxTry() action
EndCall()
– executed when the current call is closed with # (special character and allows
ending a current call connected or not)
RadiusAccept()
RadiusReject()
RadiusError()
7.10.2 IVR configuration examples for prepaid
ş
i voice attendant
Voice Attendant
[first]
do=PlayFile(music,1)
event=Digit(255)>StopPlay();AddToDNIS();Dial(3);SetTimer(0,5000)
; this line is commented
event=Timeout(0)>Release(41)
event=OnDial>KillTimer(0)
Prepaid
[idle]
do=PlayFile(select_language,0)
event=EndPlay()>SetTimer(0,5000)
event=Digit(1)>StopPlay();SetLang(ro);PlayFile(enter_pin, 0);GoTo(wait_pin)
event=Digit(2)>StopPlay();SetLang(en);PlayFile(enter_pin, 0); GoTo(wait_pin)
event=Timeout(0)>PlayFile(temporary_failure,0);GoTo(release)
; this line is commented
[wait_pin]
event=EndPlay()>SetTimer(0,5000)
event=Digit(255)>AddToPIN();CheckPIN(4);SetTimer(0,5000)
event=Timeout(0)>PlayFile(temporary_failure,0);GoTo(release)
event=OnCheckPIN()>GoTo(wait_db);SetTimer(0,10000)
[wait_db]
event=Timeout(255)>PlayFile(pin_error,0);GoTo(release)
event=DBResult()>ParsePrepaid()
event=DBNotFound()>PlayFile(pin_error,0);GoTo(wait_pin);ChangePIN(32,);MaxTry(3)
event=DBError()>PlayFile(pin_error,0);GoTo(release)
event=CreditOK()>PlayCredit();GoTo(dialdigits)
event=CreditFinished()>PlayFile(pin_no_credit,0);GoTo(release)