[asterisk-users] change moh during a call?

Anthony Francis anthonyf at rockynet.com
Mon Jun 11 11:13:54 CDT 2007


Add a r option with that extension so that way when it is called it will 
ring and then when you put it on hold it will play your moh. You can 
also set the MOH in sip.conf, but you will still get the same behavior 
you have now.

Thomas Stein wrote:
> Hello.
>
> Is it possible to change the defined moh sound file within an extension?
>
> I have:
>
> exten => 18,1,Answer
> exten => 18,n,Wait(3)
> exten => 18,n,SetMusicOnHold(durchwahl)
> exten => 18,n,Dial(SIP/118,15,m)
> exten => 18,n,Hangup
>
> Now i have the situation someone calls and my phone is ringing while moh 
> (durchwahl) is playing. When i pickup the call and press the hold button 
> during the call moh (durchwahl) is playing as moh. Thats not what i want. Can 
> i define another file within this extension? 
>
> regards
> t.
>   



More information about the asterisk-users mailing list