<div>Hi Mahesh,<br></div><div><br></div><div>You can use below code for extensions.conf file for time based call flow as per your requirement.</div><div><br></div><div>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.</div>
<div><br></div><div>[default]<br>exten => 4578901,3,Dial(SIP/5001,30,tTo)<br>exten => 4578901,4,GotoIfTime(9:00-19:00,sun-thu,*,*?4578901,5:NON-WORKING-HRS,s,1)<br>exten => 4578901,5,Dial(Zap/g0/0554721368,,tTo)<br>
exten => 4578901,6,playback(vm-goodbye)<br>exten => 4578901,7,Hangup<br><br>[NON-WORKING-HRS]<br>exten => s,1,Playback(non-working-hrs)<br>exten => s,n,VoiceMail(u5001)<br>exten => s,n,playback(vm-goodbye)<br>
exten => s,n,Hangup<br><br></div><div>I hope this is helpful you.</div><div><br></div><div><br>-- <br>Best Regards,<br><br>Rajnikant Vanza<br>Call : +91-9737456583<br>Software Engineer<br>-------------------------------------------------------<br>
Working On Linux,C/C++,Asterisk Technology<br>Gandhinagar - Gujarat</div><div><br></div><div class="gmail_quote">On Wed, Jun 22, 2011 at 11:10 AM, mahesh katta <span dir="ltr"><<a href="mailto:maheshkatta@flexydial.com">maheshkatta@flexydial.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<br><br>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 . <br>
<br>[default]<br>exten => 4578901,1,AGI(agi://<a href="http://127.0.0.1:4577/call_log" target="_blank">127.0.0.1:4577/call_log</a>)<br>exten => 4578901,2,MixMonitor(/var/spool/asterisk/astrec/${TIMESTAMP}-${CALLERIDNUM}-${EXTEN}-${UNIQUEID}.gsm|av(0)V(0))<br>
exten => 4578901,3,Dial(SIP/5001,30,tTo)<br>exten => 4578901,4,Gotoiftime(09:00-19-00,sun-fri,*,*?default,4578901,5)<br>exten => 4578901,5,Dial(Zap/g0/0554721368,,tTo)<br>exten => 4578901,6,VoiceMail(u5001)<br>
exten => 4578901,7,playback(vm-goodbye)<br>exten => 4578901,8,Hangup<br>up to hundred did's have same dialplan<br><br>currently I am using above dial plan i need to add my question in this dialplan . is there any way. please help' <br clear="all">
<font face="Verdana, sans-serif"><font size="2"><font color="#000000"><br>Best
Regards, <br><br>Mahesh Katta</font><br><font color="#ff9900"><b>BUZZ</b></font><font color="#000000"><b>WORKS</b></font><font color="#000000">
Business Services Private Limited<br></font><font color="#999999">BANGALORE
</font><font color="#000000">| </font><font color="#999999">CHENNAI </font><font color="#808080">|
</font><font color="#999999">HYDERABAD </font><font color="#000000">|
</font><font color="#ff9900">MUMBAI| </font><font color="#999999">DELHI<br></font><font color="#000000">201, Crystal Tower, 75 Gundavali Cross Lane, Andheri Kurla Road, Andheri (E) Mumbai 400069</font><font color="#666666"><br>
</font><font color="#ff9900">GSM</font><font color="#000000">
+91.97029.70779 | </font><font color="#ff9900">Phone </font><font color="#000000">+91.22.4229.2634
| </font><font color="#ff9900">Fax </font><font color="#000000">+91.22.4229.2634<br></font><font color="#ff9900">Web</font><font color="#000000">
<a href="http://www.buzzworks.com/" target="_blank">http://www.buzzworks.com<br></a></font></font></font><br>
<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br><br clear="all"><br>