hi friends, as i am a beginner in voip, i had made a very simple dial plan i had made two extentions n both are able to ring each other through soft phone (X-Lite) below is my dialplan ################################################################################################################################### /ETC/EXTENSIONS.CONF [others] [my-phones] exten => 2000,1,Dial(SIP/2000,10) exten => 2000,2,Answer exten => 2000,3,MusicOnHold() exten => 2001,1,Dial(SIP/2001,20) exten => 2001,2,Voicemail(2001,u) exten => 2999,1,VoiceMailMain(${CALLERID(num)},s) ################################################################################################################################## i had done r/d of voice mail in which i got succes, now when i call exten 2000 and it on hold there is no music on hold. plz guide me what mistakes i am doing. thx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20091114/207c5a82/attachment.htm
asterisk at opensourcesolution.in wrote:> i had done r/d of voice mail in which i got succes, now when i call > exten 2000 and it on hold there is no music on hold. plz guide me what > mistakes i am doing.Have you made the necessary adjustments to /etc/asterisk/musiconhold.conf to define music contexts, where the input files come from, etc? MoH doesn't get generated magically. -- Alex Balashov - Principal Evariste Systems Web : http://www.evaristesys.com/ Tel : (+1) (678) 954-0670 Direct : (+1) (678) 954-0671
Pawan, I am getting the sense that you do not understand how to use a mailing list, so I will take the time to uh, "guide" you before answering your question as best as I can. u r welcome The purpose of making a posting to a mailing list is not to find a single person that replies to you on the list and then bother them individually at their personal address. Instead, you should reply back to the list (the default "Reply-To" address) and continue the discussion there; this is known as creating a discussion "thread." There are two main reasons for doing this: 1) Many people have their mail clients set up to deal with mailing list traffic in particular ways, and consider your personal inquiries spam; 2) When discussion is kept on the list as opposed to taken off of it, everyone who is subscribed benefits from the information exchanged, can add new contributions. More importantly, someone else new to Asterisk who is in your position later on - but perhaps slightly more resourceful than you are - can search the list archives on Google and benefit from this discussion. As far as your question, it seems to me that you did everything right. -- Alex asterisk at opensourcesolution.in wrote:> hi these r the steps to rn music on if i doing some mistake than plz > guide me. > > > > *1-Install SOX (Sound Exchange Quality)* > > *yum install sox* > > * > * > > *2 install a music (plz give the link to download)* > > * > * > > *3 convert the song in asterisk format, convert it through sox* > > * > * > > *4 file saved in mohwav* > > * > * > > *5 now give the path in /etc/asterisk/musiconhold* > > > > thx >-- Alex Balashov - Principal Evariste Systems Web : http://www.evaristesys.com/ Tel : (+1) (678) 954-0670 Direct : (+1) (678) 954-0671
hello friends i want very simple thing in my dial plan. 1.When ever calls come at exten 2000 and if it is not answered with in 60 secs it should hangup. 2.when ever call comes at exten 2000 and if it is answered within 60 secs and if person who receives the call, puts the call on hold than music on hold should begins. 3.if music on hold is placed for more than 60 secs call should hangup. my extention.conf is like this vi /etc/asterisk/extentions.conf exten => 2000,1,Answer() exten => 2000,n,Dial(SIP/2000,60) exten => 2000,n,Dial(SIP/2000,60,m) exten => 2000,n,Hangup the output of this is that when call is coming at exten 2000 call is answered and another call comes n first call is on hold after 60 secs music on hold starts but if i receive call before 60 secs even than MOH starts even i dont put call on hold. thx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20091120/7cebe8a1/attachment.htm
On Thu, Nov 19, 2009 at 10:31 PM, <asterisk at opensourcesolution.in> wrote:> hello friends i want very simple thing in my dial plan. > > 1.When ever calls come at exten 2000 and if it is not answered with in 60 > secs it should hangup.Set absolute timeout to 60 seconds.> > 2.when ever call comes at exten 2000 and if it is answered within 60 secs > and if person who receives the call, puts the call on hold than music on > hold should begins.Setup music on hold: http://www.voip-info.org/wiki/view/Asterisk+config+musiconhold.conf> > 3.if music on hold is placed for more than 60 secs call should hangup.As far as I know, that is impossible to do with current code, since asterisk sees an answered call the same way a call thats place on hold, therefore asterisk has no way to distinguish between being on hold or actively talking on the phone.> > my extention.conf is like this > > vi /etc/asterisk/extentions.conf > > exten => 2000,1,Answer() > exten => 2000,n,Dial(SIP/2000,60) > exten => 2000,n,Dial(SIP/2000,60,m) > exten => 2000,n,Hangup > > the output of this is that when call is coming at exten 2000 call is > answered and another call comes n first call is on hold after 60 secs music > on hold starts but if i receive call before 60 secs even than MOH starts > even i dont put call on hold. > > thx > > > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
thx a lot friend. On Sat, 21 Nov 2009 20:08:45 -0500, C F <shmaltz at gmail.com> wrote:> On Thu, Nov 19, 2009 at 10:31 PM, <asterisk at opensourcesolution.in>wrote:>> hello friends i want very simple thing in my dial plan. >> >> 1.When ever calls come at exten 2000 and if it is not answered with in60>> secs it should hangup. > > Set absolute timeout to 60 seconds. > > >> >> 2.when ever call comes at exten 2000 and if it is answered within 60secs>> and if person who receives the call, puts the call on hold than music on >> hold should begins. > > Setup music on hold: > http://www.voip-info.org/wiki/view/Asterisk+config+musiconhold.conf > > >> >> 3.if music on hold is placed for more than 60 secs call should hangup. > > As far as I know, that is impossible to do with current code, since > asterisk sees an answered call the same way a call thats place on > hold, therefore asterisk has no way to distinguish between being on > hold or actively talking on the phone. > >> >> my extention.conf is like this >> >> vi /etc/asterisk/extentions.conf >> >> exten => 2000,1,Answer() >> exten => 2000,n,Dial(SIP/2000,60) >> exten => 2000,n,Dial(SIP/2000,60,m) >> exten => 2000,n,Hangup >> >> the output of this is that when call is coming at exten 2000 call is >> answered and another call comes n first call is on hold after 60 secs >> music >> on hold starts but if i receive call before 60 secs even than MOH starts >> even i dont put call on hold. >> >> thx >> >> >> >> _______________________________________________ >> -- Bandwidth and Colocation Provided by http://www.api-digital.com -- >> >> asterisk-users mailing list >> To UNSUBSCRIBE or update options visit: >> http://lists.digium.com/mailman/listinfo/asterisk-users >> > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users