Hi
How can i block outgoing calls after working hours
Thanks,
Vijay
Hi
How can i block outgoing calls after working hours
Thanks,
Vijay
Sample dial plan found
[time-rules]
exten => _XXXX.,1,GotoIfTime(8:30-18:45|sun-thu||?from-internal,${EXTEN},1)
exten => _XXXX.,n,Playback(prepaid-auth-fail)
My current dial plan
exten => _880010.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _880010.,2,Dial(dahdi/g0/0${EXTEN:-10},60,tTo)
exten => _880010.,3,Hangup
Can any body guide me to implement timing in my outgoing dial plan
Thanks
Vijay Muddu
Use GotoIfTime() before Dial()
If you are stuck on how to use it, here there is a guide.
Hi Ambi,
Thanks for your response
I am confused on the dial plan can you please correct by below dial plan
working hours are from 10.am to 8.30 pm
My current dial plan
exten => _880010.,1,GotoIfTime(10:00-20:30,mon-sat,,?open,s,1)
exten => _880010.,2,AGI(agi://127.0.0.1:4577/call_log)
exten => _880010.,3,Dial(dahdi/g0/0${EXTEN:-10},60,tTo)
exten => _880010.,4,Hangup
Thanks,
Vijay
Use labels.
GotoIfTime(,,,?[labeliftrue][:labeliffalse])
a working example
exten => _880010.,1,GotoIfTime(10:00-20:30,mon-sat,,?allow:disallow)
same=>n(allow),AGI(agi://127.0.0.1:4577/call_log)
same=>n,Dial(dahdi/g0/0${EXTEN:-10},60,tTo)
same=>n,Hangup()
same=>n(disallow),Playback(im-sorry)
same=>n,hangup()