[asterisk-users] music on hold
asterisk at opensourcesolution.in
asterisk at opensourcesolution.in
Sun Nov 22 09:30:54 CST 2009
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 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
>>
>
> _______________________________________________
> -- 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
More information about the asterisk-users
mailing list