[asterisk-users] Agi script for working hours PBX

mahesh katta maheshkatta at flexydial.com
Mon Jun 27 04:30:39 CDT 2011


Hi ,

can you any buddy provide agi script in perl or php for,
only working hours incomming calls forward to his cellno., and after working
hours should be play one playback msg then forward voicemail to his
extension.
working hours(sun - thu, 9:00 to 19:00)

ex: dialplan
exten => 4578901,2,AGI(agi://127.0.0.1:4577/call_log)
exten =>
4578901,3,MixMonitor(/var/spool/asterisk/astrec/${TIMESTAMP}-${CALLERIDNUM}-${EXTEN}-${UNIQUEID}.gsm|av(0)V(0))
exten => 4578901,4,Dial(SIP/5001,30,tTo)
exten => 4578901,5,Set(CALLERID(all)=044578901)
exten => 4578901,6,Dial(Zap/g0/0554721368,,tTo)
exten => 4578901,7,Hangup

Best Regards,

Mahesh Katta
*BUZZ**WORKS* Business Services Private Limited
BANGALORE | CHENNAI | HYDERABAD | MUMBAI| DELHI
201, Crystal Tower, 75 Gundavali Cross Lane, Andheri Kurla Road, Andheri (E)
Mumbai 400069
GSM +91.97029.70779 | Phone +91.22.4229.2634 | Fax +91.22.4229.2634
Web http://www.buzzworks.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110627/08a93e82/attachment.htm>


More information about the asterisk-users mailing list