[asterisk-users] Asterisk 1.6 and Music on Hold

Sherwood McGowan sherwood.mcgowan at gmail.com
Wed Nov 24 05:44:40 CST 2010


On Wed, Nov 24, 2010 at 5:35 AM, Olivier CALVANO <o.calvano at gmail.com> wrote:
> 2010/11/24 Sherwood McGowan <sherwood.mcgowan at gmail.com>:
>> On Wed, Nov 24, 2010 at 4:30 AM, Olivier CALVANO <o.calvano at gmail.com> wrote:
>>> Hi
>>>
>>> i have a small problems on Asterisk 1.6 with the MusiconOld :
>>>
>>> musiconhold.conf:
>>>
>>> [Sound_1]
>>> mode=quietmp3
>>> directory=/var/lib/asterisk/moh/Sound_1
>>>
>>> in extensions.conf:
>>>
>>> exten => 0532xx,1,Answer
>>> exten => 0532xx,2,MusicOnHold(Sound_1)
>>> exten => 0532xx,3,Dial(SIP/ACCOUNT001,180,t)
>>> exten => 0532xx,4,Hangup
>>>
>>>
>>>
>>>
>>> When i call to the number, i have the Music "Sound_1" but the SIP Phone
>>> don't ring ...
>>>
>>> Where is my error ?
>>>
>>>
>>> and second question, can i said at asterisk that when he receive the call,
>>> he play the music from first second ? and repeat at the end of the music.
>>>
>>> Thanks for your help
>>>
>>> --
>>> _____________________________________________________________________
>>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>>> New to Asterisk? Join us for a live introductory webinar every Thurs:
>>>               http://www.asterisk.org/hello
>>>
>>> asterisk-users mailing list
>>> To UNSUBSCRIBE or update options visit:
>>>   http://lists.digium.com/mailman/listinfo/asterisk-users
>>>
>>
>> First, if you don't use the Music on hold command prior to the dial,
>> do you hear ringing? It seems to me that what's going on here is that
>> you're overriding the progress notification that results from the
>> device responding to the invite with "TRYING" or "RINGING" by running
>> MOH. If the ringing doesn't occur even when you remove the MOH
>> command, your device is probably not signaling properly and you'll
>> need to use the "r" option in your Dial command.
>
>
>
> Hi
>
> Thanks for your help, yes, if i don't put the music on hold command, the phone
> ringing. I have change for put the "r" but no effect
>
> bye
> olivier
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>               http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>

Olivier,
Your MusicOnHold(Sound_1) command is overriding the progress
indications that Asterisk would normally provide. Do you intend to
play music on hold, or are you just wishing to set the class for that
call? If the latter, use Set(CHANNEL(musicclass)=Sound_1). That would
NOT play the Music on hold, thereby allowing Asterisk to provide the
progress indications. If you mean to play the music, you're going to
have to understand that you won't be able to hear indications (Please
read http://www.voip-info.org/wiki/view/Asterisk+cmd+Dial) such as
ringing.

Does that clear it up? Basically, you cna't have Music On Hold AND
Ringing for a channel going at the same time, they're mutually
exclusive



More information about the asterisk-users mailing list