[asterisk-users] music on hold

asterisk at opensourcesolution.in asterisk at opensourcesolution.in
Thu Nov 19 21:31:29 CST 2009



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 


More information about the asterisk-users mailing list