[asterisk-users] Musiconhold instead ringing

Karsten Wemheuer kwem at gmx.de
Sat Sep 8 07:48:18 CDT 2007


Hi,

Am Samstag, den 08.09.2007, 09:44 +0000 schrieb wassim darwish:
> ----------------------------------------> From: amessina at messinet.com>
>  To: asterisk-users at lists.digium.com> Date: Fri, 7 Sep 2007 19:10:04
>  -0500> Subject: Re: [asterisk-users] Musiconhold instead ringing>> On
>  Friday 07 September 2007 07:02:01 pm wassim darwish wrote:>> Hi:>>
>  When i get an incoming call, i want asterisk to make the caller hear>>
>  music"musiconhold" instead of ringing,Can any body help me with
>  this?>> my guess is you'd have to Answer() the call first, then play
>  moh while> Dial()'ing the exten.>> --> Anthony - http://messinet.com -
>  http://messinet.com/~amessina/gallery> 8F89 5E72 8DF0 BCF0 10BE 9967
>  92DC 35DC B001 4A4E
> 
> Hi:
> Can you represent it in extensions Dialplan ?

Untested, but something like this should work

exten => _X.,1,Answer
extem => _X.,2,Dial(SIP/${EXTEN}|50|m(musiconhold-class)

You have to fix this to match Your existing dialplan (Extensions,
SIP-Accounts...).

It won't work without the answer-statement.

HTH,
Karsten





More information about the asterisk-users mailing list