ivr-example

Skip to end of metadata
Go to start of metadata
[in]
exten => _808680,1,NOOP(Incoming CALL from ${CALLERID(num)} to ${EXTEN})
exten => _808680,n,goto(in680,808680,1)
exten => _808680,n,Hangup

exten => _808580,1,NOOP(Incoming CALL from ${CALLERID(num)} to ${EXTEN})
exten => _808580,n,goto(in580,808580,1)
exten => _808580,n,Hangup



[in680]
exten => _808680,1,NOOP(Incoming CALL from ${CALLERID(num)} to ${EXTEN})
;exten => _808680,n,MixMonitor(in/${STRFTIME(${EPOCH},,%F)}/${STRFTIME(${EPOCH},,%R)} ${CALLERID(num)} to ${EXTEN}.gsm)
exten => _808680,n,Background(ivr/Intro)
exten => _808680,n,WaitExten(3)
exten => _808680,n,Hangup

exten => 1,1,Goto(rom2,1,1)
exten => 2,1,Goto(rus2,2,1)
exten => 3,1,Goto(eng2,3,1)
exten => _XXX,1,DIAL(SIP/${EXTEN})

exten => i,1,GOto(in,808680,1)
exten => i,n,Hangup                                                                                             

exten => t,1,GOto(in,808680,1)
exten => t,n,Hangup                                                                                             

;exten => h,1,GOto(in,808680,1)
;exten => h,n,Hangup                                                                                             


[in580]
exten => _808580,1,NOOP(Incoming CALL from ${CALLERID(num)} to ${EXTEN})
;exten => _808580,n,MixMonitor(in/${STRFTIME(${EPOCH},,%F)}/${STRFTIME(${EPOCH},,%R)} ${CALLERID(num)} to ${EXTEN}.gsm)
;exten => _808580,n,Set(TIMEOUT(digit)=5)
;exten => _808580,n,Set(TIMEOUT(response)=10)
;exten => _808580,n,Set(TRIES=0) 
exten => _808580,n,Background(ivr/Intro)
exten => _808580,n,WaitExten(3)
exten => _808580,n,Goto(in580,808580,1)
exten => _808580,n,Hangup


exten => 1,1,Goto(rom,1,1)
exten => 2,1,Goto(rus,2,1)
exten => 3,1,Goto(eng,3,1)
exten => _XXX,1,DIAL(SIP/${EXTEN})



exten => i,1,GOto(in,808580,1)
exten => i,n,Hangup                                                                                             

exten => t,1,GOto(in,808580,1)
exten => t,n,Hangup                                                                                             

;exten => h,1,GOto(in,808580,1)
;exten => h,n,Hangup                                                                                             







[rom]
exten => 1,1,Background(ivr/rom)
exten => 1,n,WaitExten(3)

exten => _XXX,1,DIAL(SIP/${EXTEN})

exten => i,1,NOOP(Incoming CALL from ${CALLERID(num)} to ${EXTEN})
exten => i,n,Dial(SIP/111&SIP/121&SIP/131,60,rt)
exten => i,n,Hangup                             


exten => t,1,NOOP(Incoming CALL from ${CALLERID(num)} to ${EXTEN})
exten => t,n,Dial(SIP/111&SIP/121&SIP/131,60,rt)
exten => t,n,Hangup                             


[rom2]
exten => 1,1,Background(ivr/rom)
exten => 1,n,WaitExten(3)
exten => 1,n,Dial(SIP/401&SIP/402&SIP/403&SIP/404,60,rt)
exten => _XXX,1,DIAL(SIP/${EXTEN})


exten => i,1,NOOP(Incoming CALL from ${CALLERID(num)} to ${EXTEN})
exten => i,n,Dial(SIP/401&SIP/402&SIP/403&SIP/404,60,rt)
exten => i,n,Hangup                             


exten => t,1,NOOP(Incoming CALL from ${CALLERID(num)} to ${EXTEN})
exten => t,n,Dial(SIP/111&SIP/121&SIP/131,60,rt)
exten => t,n,Hangup                             


[rus]
exten => 2,1,Background(ivr/rus)
exten => 2,n,WaitExten(3)
exten => _XXX,1,DIAL(SIP/${EXTEN})

exten => i,1,NOOP(Incoming CALL from ${CALLERID(num)} to ${EXTEN})
exten => i,n,Dial(SIP/111&SIP/121&SIP/131,60,rt)
exten => i,n,Hangup                             


exten => t,1,NOOP(Incoming CALL from ${CALLERID(num)} to ${EXTEN})
exten => t,n,Dial(SIP/111&SIP/121&SIP/131,60,rt)
exten => t,n,Hangup                             


[rus2]
exten => 2,1,Background(ivr/rus)
exten => 2,n,Dial(SIP/401&SIP/402&SIP/403&SIP/404,60,rt)
exten => 2,n,WaitExten(3)

exten => _XXX,1,DIAL(SIP/${EXTEN})

exten => i,1,NOOP(Incoming CALL from ${CALLERID(num)} to ${EXTEN})
exten => i,n,Dial(SIP/401&SIP/402&SIP/403&SIP/404,60,rt)
exten => i,n,Hangup                             


exten => t,1,NOOP(Incoming CALL from ${CALLERID(num)} to ${EXTEN})
exten => t,n,Dial(SIP/111&SIP/121&SIP/131,60,rt)
exten => t,n,Hangup                             



[eng]
exten => 3,1,Background(ivr/eng)
exten => 3,n,WaitExten(3)

exten => _XXX,1,DIAL(SIP/${EXTEN})

exten => i,1,NOOP(Incoming CALL from ${CALLERID(num)} to ${EXTEN})
exten => i,n,Dial(SIP/111&SIP/121&SIP/131,60,rt)
exten => i,n,Hangup                             


exten => t,1,NOOP(Incoming CALL from ${CALLERID(num)} to ${EXTEN})
exten => t,n,Dial(SIP/111&SIP/121&SIP/131,60,rt)
exten => t,n,Hangup                             

[eng2]
exten => 3,1,Background(ivr/eng)
exten => 3,n,WaitExten(3)
exten => 3,n,Dial(SIP/401&SIP/402&SIP/403&SIP/404,60,rt)
exten => _XXX,1,DIAL(SIP/${EXTEN})

exten => i,1,NOOP(Incoming CALL from ${CALLERID(num)} to ${EXTEN})
exten => i,n,Dial(SIP/401&SIP/402&SIP/403&SIP/404,60,rt)
exten => i,n,Hangup                             


exten => t,1,NOOP(Incoming CALL from ${CALLERID(num)} to ${EXTEN})
exten => t,n,Dial(SIP/111&SIP/121&SIP/131,60,rt)
exten => t,n,Hangup                             






Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.