IVR Script Help

Hi Everyone,

I have below IVR script for my new office. when i dial main number 1600, the recorded message playing and default voice mail is working fine.

but, when some one dial the user extension while message is playing, it is not ringing on user phone. the script is completely ignoring the digits dialed.

Please suggest where i am doing wrong at below script:

[macro-mainivr]
;Reception IVR
exten => s,1,Answer()
exten => s,2,wait(1)
exten => s,3,Background(‘MainGreeting’)
exten => s,4,WaitExten(3)
exten => s,n,Voicemail(1600)
exten => i,1,Playback(pbx-invalid)
exten => i,n,NoOp(Macro(ext,${EXTEN},${EXTEN}))

[macro-ext]
exten => s,1,Answer()
exten => s,2,SetMusicOnHold(default)
exten => s,n,Dial(SIP/${ARG1},15,t)
exten => s,n,Goto(s-${DIALSTATUS},1)
exten => s-NOANSWER,1,Voicemail(${ARG1},u)
enten => s-BUSY,1,Voicemail(${ARG1},b)
exten => _s-.,1,Goto(s-NOANSWER,1)

thanks
ldp

Is there a reason you are doing the ivr from within a macro? Doesn’t look like one is needed. The problem is likely from within the macro it is unable to see the user extensions therefore does not match.

Hi davevq,

Can you please suggest the changes…i am not good at these script, this was copied from this forum from other users…

thanks
ldp

I’m going to guess your extension 1600 does this

exten => 1600,1,Macro(mainivr)

Change that to this:

exten => 1600,1,Answer()
exten => 1600,n,wait(1)
exten => 1600,n(greet),Background(MainGreeting)
exten => 1600,n,WaitExten(3)
exten => 1600,n,Voicemail(1600)
exten => i,1,Playback(pbx-invalid)
exten => i,n,NoOp({EXTEN})
exten => i,n,Goto(1600,greet)

And as long as the extensions you want to dial are included in that context, you should be fine. Note: Do not include outbound calling in this context or you will open yourself up for toll fraud.

Hi davevq,

thanks for your help. the script is working fine. appreciated your help.

thanks again.

ldp.