Script for different channel language in IVR

Applicable Device

Device Model: S series

Firmware Version: Not required

 

Description

Change system prompt for one channel

Example:

The main IVR menu is English

Use the DTMF keypress event to go into another IVR with the German voice prompt

When the call is forwarded or goes to a Queue, the PBX will play the German system prompt.

 

Code

[ivr_6501]

exten = 6501,1,NoOp(6501)

exten = 6501,n,Set(TIMEOUT(digit)=3)

exten = 6501,n,Background(record/ls_builtin_default)

exten = 6501,n,UserEvent(PlayPromptEnd,Ivrid: ${EXTEN})

exten = 6501,n,WaitExten(3)

exten = 6501,n,Background(record/ls_builtin_default)

exten = 6501,n,UserEvent(PlayPromptEnd,Ivrid: ${EXTEN})

exten = 6501,n,WaitExten(3)

exten = 6501,n,Background(record/ls_builtin_default)

exten = 6501,n,UserEvent(PlayPromptEnd,Ivrid: ${EXTEN})

exten = 6501,n,WaitExten(3)

exten = 6501,n,ExecIf($[${Ivr2outbound} = yes]?Set(CDR(Ivr2outbound)=yes))

exten = 6501,n,ExecIf($[${Ivr2outbound} = yes]?Set(CDR(INGORELOCAL1CDR)=yes))

exten = 6501,n,Goto(t,1)

exten = 3,1,ExecIf($[${Ivr2outbound} = yes]?Set(CDR(Ivr2outbound)=yes))

exten = 3,2,ExecIf($[${Ivr2outbound} = yes]?Set(CDR(INGORELOCAL1CDR)=yes))

exten = 3,3,ExecIf($[${CHANDISABLERECORD} = yes]?Noop(skip setting disablerecord again):Set(CHANDISABLERECORD=no))

exten = 3,4,Set(CHANNEL(language)=de)

exten = 3,5,Goto(queues,6700,1)

exten = unknown,1,NoOp(No Action)

exten = fax,1,Goto(inrouter_${INROUTERNAME}_fax_detect,fax,1)

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.