[asterisk-users] MusicOnHold works Externally, but not internally
Danny Nicholas
danny at debsinc.com
Wed Nov 4 08:24:24 CST 2009
That's what I thought. You are on system A and trying to call an extension
on system B? When you call in from the PSTN, you are in a bridged
environment and moh is playing as a function on the bridged channel. When
you do the "internal" call, no bridge exists. Can you post the CLI output
from the 315 call again and CLI from a PSTN call with MOH?
-----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 5:00 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] MusicOnHold works Externally, but not
internally
No, it doesn't help.
exten => 315,1,Answer
exten => 315,2,SetMusicOnHold(default)
exten => 315,3,Dial(SIP/315,25,mw)
That is what I had originally, answering first doesn't make a difference.
There is no music when dialing internally on any extension but the music
plays
(instead of ring tone) when I call IN from PSTN line; this is strange ;-/
--
Joseph
On 11/03/09 16:21, Danny Nicholas wrote:
>In theory, no; but I'd be curious to see if this snippet "fixes" the OP's
>problem:
>>> exten => 315,1,Answer
>>> exten => 315,2,SetMusicOnHold(default)
>>> exten => 315,3,Dial(SIP/315,25,mw)
>
>-----Original Message-----
>From: asterisk-users-bounces at lists.digium.com
>[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Garth van
>Sittert
>Sent: Tuesday, November 03, 2009 3:18 PM
>To: Asterisk Users Mailing List - Non-Commercial Discussion
>Subject: Re: [asterisk-users] MusicOnHold works Externally,but not
>internally
>
>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
>>>>
--
Joseph
_______________________________________________
-- 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