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

Joseph syscon780 at gmail.com
Wed Nov 4 11:40:57 CST 2009


On 11/04/09 08:24, Danny Nicholas wrote:
>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?

[snip]

Here is a cli from a call coming from the PSTN line:

=============== call coming from PSTN Line ===============
syscon4*CLI>
     -- Executing [74791270 at internal:1] SetMusicOnHold("SIP/11-00774780", "default") in new stack
     -- Executing [74791270 at internal:2] Dial("SIP/11-00774780", "SIP/7804791270 at pstn-5665|60|tr") in new stack
     -- Called 7804791270 at pstn-5665
     -- SIP/pstn-5665-00757610 is ringing
     -- SIP/pstn-5665-00757610 answered SIP/11-00774780
     -- Executing [888 at incoming:1] GotoIfTime("SIP/479-1270-0075cf00", "*|*|1|jan?holiday|s|1") in new stack
     -- Executing [888 at incoming:2] GotoIfTime("SIP/479-1270-0075cf00", "*|*|2|jan?holiday|s|1") in new stack
     -- Executing [888 at incoming:3] GotoIfTime("SIP/479-1270-0075cf00", "*|*|18|may?holiday|s|1") in new stack
     -- Executing [888 at incoming:4] GotoIfTime("SIP/479-1270-0075cf00", "*|*|1|jul?holiday|s|1") in new stack
     -- Executing [888 at incoming:5] GotoIfTime("SIP/479-1270-0075cf00", "*|*|3|aug?holiday|s|1") in new stack
     -- Executing [888 at incoming:6] GotoIfTime("SIP/479-1270-0075cf00", "*|*|7|sep?holiday|s|1") in new stack
     -- Executing [888 at incoming:7] GotoIfTime("SIP/479-1270-0075cf00", "*|*|12|oct?holiday|s|1") in new stack
     -- Executing [888 at incoming:8] GotoIfTime("SIP/479-1270-0075cf00", "*|*|11|nov?holiday|s|1") in new stack
     -- Executing [888 at incoming:9] GotoIfTime("SIP/479-1270-0075cf00", "16:00-23:59|*|24|dec?holiday|s|1") in new stack
     -- Executing [888 at incoming:10] GotoIfTime("SIP/479-1270-0075cf00", "*|*|25|dec?holiday|s|1") in new stack
     -- Executing [888 at incoming:11] GotoIfTime("SIP/479-1270-0075cf00", "*|*|26|dec?holiday|s|1") in new stack
     -- Executing [888 at incoming:12] GotoIfTime("SIP/479-1270-0075cf00", "15:00-23:59|*|31|dec?holiday|s|1") in new stack
     -- Executing [888 at incoming:13] GotoIfTime("SIP/479-1270-0075cf00", "8:30-17:59|mon-fri|*|*?office-open|s|1") in new stack
     -- Goto (office-open,s,1)
     -- Executing [s at office-open:1] Wait("SIP/479-1270-0075cf00", "1") in new stack
     -- Executing [s at office-open:2] Answer("SIP/479-1270-0075cf00", "") in new stack
     -- Executing [s at office-open:3] SetMusicOnHold("SIP/479-1270-0075cf00", "default") in new stack
     -- Executing [s at office-open:4] BackGround("SIP/479-1270-0075cf00", "sys_concept_welcome|t") in new stack
     -- <SIP/479-1270-0075cf00> Playing 'sys_concept_welcome' (language 'en')

The part above might be irrelevant.

   == CDR updated on SIP/479-1270-0075cf00
     -- Executing [315 at office-open:1] Dial("SIP/479-1270-0075cf00", "SIP/218|25|m(penguin)w") in new stack
     -- Called 218
     -- Started music on hold, class 'penguin', on SIP/479-1270-0075cf00
     -- SIP/218-00770580 is ringing
   == Spawn extension (internal, 74791270, 2) exited non-zero on 'SIP/11-00774780'
     -- Stopped music on hold on SIP/479-1270-0075cf00
   == Spawn extension (office-open, 315, 1) exited non-zero on 'SIP/479-1270-0075cf00'
syscon4*CLI>

=============== end call coming from PSTN Line ===============

cli from internal call:

=============== internal call ===============

syscon4*CLI>
     -- Executing [315 at internal:1] Dial("SIP/11-00757610", "SIP/218|25|m(penguin)w") in new stack
     -- Called 218
     -- Started music on hold, class 'penguin', on SIP/11-00757610
     -- SIP/218-0075cf00 is ringing
     -- Stopped music on hold on SIP/11-00757610
   == Spawn extension (internal, 315, 1) exited non-zero on 'SIP/11-00757610'

=============== end internal call ===============
-- 
Joseph



More information about the asterisk-users mailing list