[asterisk-users] change moh during a call?

Thomas Stein thomas.stein at knowledgetools.de
Tue Jun 12 03:05:28 CDT 2007


On Tuesday 12 June 2007, Thomas Stein wrote:

> It's possible to change moh behaviour after the dial command.
>
> 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,SetMusicOnHold(default)

Oops. Wrong. What works is:

exten => 18,1,Answer
exten => 18,n,Wait(3)
exten => 18,n,SetMusicOnHold(durchwahl)
exten => 18,n,Dial(Local/200 at thomas-durchwahl/n,15,m)
exten => 18,n,Goto(thomas,s,1)
exten => 18,n,Hangup

[thomas-durchwahl]
exten => 200,1,SetMusicOnHold(default)
exten => 200,n,Dial(SIP/118,15,m)

regards
t.
-- 
knowledgeTools®  ... managing complexity.
--------------------------------------------------
knowledgeTools International GmbH 
Wallstraße 15 / 15 a 
10179 Berlin 

Fon: +49 30 726 169 20
Fax: +49 30 726 169 249 

thomas.stein at knowledgetools.de 
www.knowledgetools.de 

Sitz  Berlin, AG Berlin-Charlottenburg, HRB 86378 
Geschäftsführer: Oliver Seyboldt, Reinhard Kunz
--------------------------------------------------

This eMail communication (and any attachment/s) may contain confidential or 
privileged information and is intended only for the individual(s) or entity 
named above and to others who have been specifically authorized to receive 
it. If you are not the intended recipient, please do not read, copy, use or 
disclose the contents of this communication to others. Please notify the 
sender that you have received this e-mail in error by reply e-mail, and 
delete the e-mail subsequently. Thank you.


More information about the asterisk-users mailing list