Hi all,
I’m new and would like to implement a new DialPlan for my office.
Today, in case of problems, the first level technician is called and if he doesn’t respond after 3 tests I forward it to the second level technician, using the files call under Outgoing e OutoGoing_Done
I would like to expand the escalation function also with the use of the DTMF function.
Specifically, without using call files, I would like to implement a dial plan with these functions:
To a problem, I call the user with the number MSISDN1
If he doesn’t answer, I wait 120 seconds and recall MSISDN1 for three times.
If he doesn’t answer I try call the MSISDN2 number for twice.
In the event that MSISDN1 or MSISDN2 responds in the attempts, I read the pushed key (ex 9) and in the positive case I hang up.
I’m using this dial plan, but it doesn’t work and I don’t understand where I’m going wrong.
[ZXB]
exten => s,n,Goto(s,1)
exten => _x.,1,Dial(SIP/${RepSYS}@SIPtrunkCiscoxH,15,t)
same => n,NoOp( Dial Status: ${DIALSTATUS})
same => n,GotoIf($["${DIALSTATUS}"!="ANSWER"]?redial1
same => n,GotoIf($["${DIALSTATUS}"="ANSWER"]?response1
exten => _x.,2(redial1),Dial(SIP/${RepSYS}@SIPtrunkCiscoxH,15,t)
same => n,NoOp( Dial Status: ${DIALSTATUS})
same => n,GotoIf($["${DIALSTATUS}"!="ANSWER"]?redial2)
same => n,GotoIf($["${DIALSTATUS}"="ANSWER"]?response1
exten => _x.,3(redial2),Dial(SIP/${RepSYS}@SIPtrunkCiscoxH,15,t)
same => n,NoOp( Dial Status: ${DIALSTATUS})
same => n,GotoIf($["${DIALSTATUS}"!="ANSWER"]?redial3)
same => n,GotoIf($["${DIALSTATUS}"="ANSWER"]?response1
exten => _x.,4(redial3),Dial(SIP/${RepII}@SIPtrunkCiscoxH,15,t)
same => n,NoOp( Dial Status: ${DIALSTATUS})
same => n,GotoIf($["${DIALSTATUS}"!="ANSWER"]?redial4)
same => n,GotoIf($["${DIALSTATUS}"="ANSWER"]?response1
exten => _x.,5(redial4),Dial(SIP/${RepII}@SIPtrunkCiscoxH,15,t)
same => n,NoOp( Dial Status: ${DIALSTATUS})
same => n,GotoIf($["${DIALSTATUS}"!="ANSWER"]?redial5)
same => n,GotoIf($["${DIALSTATUS}"="ANSWER"]?response1
exten => _x.,6(redial5),Dial(SIP/${RepIII}@SIPtrunkCiscoxH,15,t)
same => n,NoOp( Dial Status: ${DIALSTATUS})
same => n,GotoIf($["${DIALSTATUS}"!="ANSWER"]?redial6)
same => n,GotoIf($["${DIALSTATUS}"="ANSWER"]?response1
exten => _x.,7(redial6),Dial(SIP/${RepIII}@SIPtrunkCiscoxH,15,t)
same => n,NoOp( Dial Status: ${DIALSTATUS})
same => n,GotoIf($["${DIALSTATUS}"!="ANSWER"]?redial6)
same => n,GotoIf($["${DIALSTATUS}"="ANSWER"]?response1
exten => _x.,8(response1),Background(you-press-number)
exten => _x.,9,Read(NUMBER,9)
same => n,GotoIf($[${NUMBER}==9]?Hangup)
exten => _x.,10(Hangup),Hangup
Help me!!!