[asterisk-users] Office timings only work asterisk after that voicemail
RAJNIKANT VANZA
rajnivanza at gmail.com
Wed Jun 22 02:44:40 CDT 2011
Hi Mahesh,
You can use below code for extensions.conf file for time based call flow as
per your requirement.
Please, comment your code in extensions.conf and then use below code. You
can also need recording one sound file "non-working-hrs.gsm" for non working
hours play file.
[default]
exten => 4578901,3,Dial(SIP/5001,30,tTo)
exten =>
4578901,4,GotoIfTime(9:00-19:00,sun-thu,*,*?4578901,5:NON-WORKING-HRS,s,1)
exten => 4578901,5,Dial(Zap/g0/0554721368,,tTo)
exten => 4578901,6,playback(vm-goodbye)
exten => 4578901,7,Hangup
[NON-WORKING-HRS]
exten => s,1,Playback(non-working-hrs)
exten => s,n,VoiceMail(u5001)
exten => s,n,playback(vm-goodbye)
exten => s,n,Hangup
I hope this is helpful you.
--
Best Regards,
Rajnikant Vanza
Call : +91-9737456583
Software Engineer
-------------------------------------------------------
Working On Linux,C/C++,Asterisk Technology
Gandhinagar - Gujarat
On Wed, Jun 22, 2011 at 11:10 AM, mahesh katta <maheshkatta at flexydial.com>wrote:
> Hi,
>
> I have small asterisk pbx. I was made a dialplan like whenever out side
> world is dialing to asterisk pbx DID's it was goes to dial his extension
> number. if this extension is not pick the call after 30 sec it will dial
> his(user) mobile number. i need to create dialplan only office timings(9:00
> am to 19:00, sun to Thu days) needs to dial his mobile number after that
> will play like "this is not office time" whatever. after office timing it
> should be go voicemail .
>
> [default]
> exten => 4578901,1,AGI(agi://127.0.0.1:4577/call_log)
> exten =>
> 4578901,2,MixMonitor(/var/spool/asterisk/astrec/${TIMESTAMP}-${CALLERIDNUM}-${EXTEN}-${UNIQUEID}.gsm|av(0)V(0))
> exten => 4578901,3,Dial(SIP/5001,30,tTo)
> exten => 4578901,4,Gotoiftime(09:00-19-00,sun-fri,*,*?default,4578901,5)
> exten => 4578901,5,Dial(Zap/g0/0554721368,,tTo)
> exten => 4578901,6,VoiceMail(u5001)
> exten => 4578901,7,playback(vm-goodbye)
> exten => 4578901,8,Hangup
> up to hundred did's have same dialplan
>
> currently I am using above dial plan i need to add my question in this
> dialplan . is there any way. please help'
>
> 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
>
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
> http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110622/e7f23e3c/attachment.htm>
More information about the asterisk-users
mailing list