[asterisk-users] MusicOnHold works Externally, but not internally

Garth van Sittert garth at bitco.co.za
Tue Nov 3 15:18:04 CST 2009


Do you not have to answer the channel before the MOH can happen?




Joseph wrote:
> No, the same happens when I use SIP phone, no music on internal call.
>
> --
> Joseph
>
>
> On 11/03/09 13:10, Danny Nicholas wrote:
>   
>> I suspect that IAX is the culprit...
>>
>> -----Original Message-----
>> From: asterisk-users-bounces at lists.digium.com
>> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Joseph
>> Sent: Tuesday, November 03, 2009 12:25 PM
>> To: Asterisk Users Mailing List - Non-Commercial Discussion
>> Subject: Re: [asterisk-users] MusicOnHold works Externally, but not
>> internally
>>
>> Yes, your sample works!
>> So why this below isn't working:
>>
>> exten => 315,1,SetMusicOnHold(default)
>> exten => 315,2,Dial(SIP/315,25,mw)
>>
>> It works only when I dial IN from PSTN line, dial locally directly 315 -
>> there is no music.
>>
>> --
>> Joseph
>>
>> On 11/03/09 11:45, Danny Nicholas wrote:
>>     
>>> Try this:
>>> exten => 315,1,Answer
>>> exten => 315,2,SetMusicOnHold(default)
>>> exten => 315,n,WaitMusicOnHold(20)
>>> exten => 315,n,Background(vm-goodbye)
>>> exten => 315,n,Hangup
>>>
>>> -----Original Message-----
>>> From: asterisk-users-bounces at lists.digium.com
>>> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Joseph
>>> Sent: Tuesday, November 03, 2009 11:28 AM
>>> To: asterisk-users at lists.digium.com
>>> Subject: [asterisk-users] MusicOnHold works Externally, but not internally
>>>
>>>  MusicOnHold works only when I dial IN from PSTN line (Externally), when I
>>> dial local extension there is no music..
>>>
>>> exten => 315,1,Dial(${family},25,m(penguin)w)
>>>
>>> There are no error messages:
>>>
>>> - Accepting DIAL from 10.0.0.108, formats = 0x4
>>> - Executing [315 at internal:1] Dial("IAX2/iaxy-322-14962",
>>> "SIP/218|25|m(penguin)w") in new stack
>>> - Called 218
>>> - Started music on hold, class 'penguin', on IAX2/iaxy-322-14962
>>> - SIP/218-00770c40 is ringing
>>>       
>> _______________________________________________
>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>>
>> asterisk-users mailing list
>> To UNSUBSCRIBE or update options visit:
>>   http://lists.digium.com/mailman/listinfo/asterisk-users
>>     
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>   



More information about the asterisk-users mailing list