[asterisk-users] Set(CHANNEL(musicclass)=

Olle E. Johansson oej at edvina.net
Wed Sep 7 02:14:32 CDT 2011


6 sep 2011 kl. 22:30 skrev Leif Madsen:

> On 02/09/11 11:27 PM, Joseph wrote:
>> In asterisk 1.4 I had:
>> exten => s,n,Answer()
>> exten => s,n,SetMusicOnHold(default)
>> 
>> But in 1.6 1.8 I think don't need to use: SetMusicOnHold(default)
>> (beside it is deprecated) as it is default.
>> In 1.6 and UP I think it is: Set(CHANNEL(musicclass)= Can somebody
>> explain what do they mean by "CHANNEL"?
> 
> CHANNEL() is a dialplan function. You're setting parameters for the current channel by using that function. So instead of using a dialplan application like you were before, you use the CHANNEL() function.
> 
> exten => s,1,NoOp()
> same => n,Set(CHANNEL(musicclass)=default)
> 
>> I could use just:
>> exten => s,n,MusicOnHold()
>> 
>> There is a lot of documentation on www.voip-info.org but sometimes it is
>> not clear which asterisk version it applies to :-/
> 
> (Another good reason to be reading the documentation on https://wiki.asterisk.org/wiki instead :))
> 
...or update and help maintaining the voip-info documentation.

/O


More information about the asterisk-users mailing list