[Freeswitch-users] Help with MOH

Brian West brian at freeswitch.org
Wed Sep 25 18:03:48 MSD 2013


You still have to tell the channel to do something once its parked.

http://wiki.freeswitch.org/wiki/Mod_event_socket#execute

/b

On Sep 24, 2013, at 2:41 PM, JP <jaykris at gmail.com> wrote:

> Thanks for the responses. Here is my problem in more detail...
> 
> 1. From the fs_cli I execute the following to setup the first leg
> 	bgapi originate {park_after_bridge=true}sofia/internal/14081112222 at somewhere.com;fs_path=sip:192.88.20.266 &park()
> 
> 2. I then transfer this parked leg to a dialplan extension using uuid_transfer.
> <include>
>     <extension name="route_call">
>       <condition field="destination_number" expression="^route_call$">
>             <action application="bridge" data="{park_after_bridge=true}sofia/internal/14083334444somewhere.com;fs_path=sip:192.88.20.266"/>
>        </condition>
>     </extension>
> </include>
> 
> 3. Now I have the two legs in bridged condition. So far so good.
> 
> 4. Now I transfer the second leg using uuid_transfer to another extension.
> <include>
>     <extension name="Hold_Call">
>       <condition field="destination_number" expression="^Hold_Call$">
>         <action application="playback" data="local_stream://moh" />
>       </condition>
>     </extension>
> </include>
> 
> 5. The problem I am facing now is that I see both the legs are unbridged, but I don hear any moh on the second leg. Here is what I am seeing in fs logs
> 
> 2013-09-24 12:28:57.369021 [DEBUG] switch_ivr.c:1761 (sofia/internal/14083334444 at somewhere.com) State Change CS_EXCHANGE_MEDIA -> CS_ROUTING
> 2013-09-24 12:28:57.369021 [DEBUG] switch_core_session.c:1275 Send signal sofia/internal/14083334444 at somewhere.com [BREAK]
> 2013-09-24 12:28:57.369021 [DEBUG] switch_core_session.c:823 Send signal sofia/internal/14083334444 at somewhere.com [BREAK]
> 2013-09-24 12:28:57.369021 [NOTICE] switch_ivr.c:1767 Transfer sofia/internal/14083334444 at somewhere.com to XML[Hold_Call at public]
> 2013-09-24 12:28:57.389006 [DEBUG] switch_ivr_bridge.c:501 sofia/internal/14083334444 at somewhere.com ending bridge by request from write function
> 2013-09-24 12:28:57.389006 [DEBUG] switch_ivr_bridge.c:588 BRIDGE THREAD DONE [sofia/internal/14081112222 at somewhere.com]
> 2013-09-24 12:28:57.389006 [DEBUG] switch_ivr_bridge.c:613 Send signal sofia/internal/14083334444 at somewhere.com [BREAK]
> 2013-09-24 12:28:57.389006 [DEBUG] switch_core_session.c:823 Send signal sofia/internal/14083334444 at somewhere.com [BREAK]
> 2013-09-24 12:28:57.389006 [DEBUG] switch_core_session.c:823 Send signal sofia/internal/14081112222 at somewhere.com [BREAK]
> 2013-09-24 12:28:57.389006 [DEBUG] switch_ivr.c:2803 (sofia/internal/14081112222 at somewhere.com) State Change CS_EXECUTE -> CS_PARK
> 2013-09-24 12:28:57.389006 [DEBUG] switch_core_session.c:1275 Send signal sofia/internal/14081112222 at somewhere.com [BREAK]
> 2013-09-24 12:28:57.389006 [DEBUG] switch_core_state_machine.c:477 (sofia/internal/14081112222 at somewhere.com) State EXECUTE going to sleep
> 2013-09-24 12:28:57.389006 [DEBUG] switch_core_state_machine.c:415 (sofia/internal/14081112222 at somewhere.com) Running State Change CS_PARK
> 2013-09-24 12:28:57.389006 [DEBUG] switch_core_state_machine.c:486 (sofia/internal/14081112222 at somewhere.com) State PARK
> 2013-09-24 12:28:57.389006 [DEBUG] switch_core_state_machine.c:283 sofia/internal/14081112222 at somewhere.com Standard PARK
> 2013-09-24 12:28:57.408000 [DEBUG] switch_ivr_bridge.c:588 BRIDGE THREAD DONE [sofia/internal/14083334444 at somewhere.com]
> 2013-09-24 12:28:57.408000 [DEBUG] switch_ivr_bridge.c:613 Send signal sofia/internal/14081112222 at somewhere.com [BREAK]
> 2013-09-24 12:28:57.408000 [DEBUG] switch_ivr.c:2803 (sofia/internal/14083334444 at somewhere.com) State Change CS_ROUTING -> CS_PARK
> 2013-09-24 12:28:57.408000 [DEBUG] switch_core_session.c:1275 Send signal sofia/internal/14083334444 at somewhere.com [BREAK]
> 2013-09-24 12:28:57.408000 [DEBUG] switch_core_state_machine.c:480 (sofia/internal/14083334444 at somewhere.com) State EXCHANGE_MEDIA going to sleep
> 2013-09-24 12:28:57.408000 [DEBUG] switch_core_state_machine.c:415 (sofia/internal/14083334444 at somewhere.com) Running State Change CS_PARK
> 2013-09-24 12:28:57.408000 [DEBUG] switch_core_state_machine.c:486 (sofia/internal/14083334444 at somewhere.com) State PARK
> 2013-09-24 12:28:57.408000 [DEBUG] switch_core_state_machine.c:283 sofia/internal/14083334444 at somewhere.com Standard PARK
> 
> I am missing something obvious. Please help.
> 
> Thanks
> JP
> 
> 
> On Tue, Sep 24, 2013 at 8:24 AM, Brian West <brian at freeswitch.org> wrote:
> Or park it then tell it to play a file.
> 
> /b
> 
> On Sep 23, 2013, at 1:25 PM, Michael Collins <msc at freeswitch.org> wrote:
> 
> > Park by itself does not play any media. You'll need to transfer the B leg to an extension that does the MOH playback.
> > -MC
> >
> 
> 
> 
> --
> Brian West
> brian at freeswitch.org
> FreeSWITCH Solutions, LLC
> PO BOX PO BOX 2531
> Brookfield, WI 53008-2531
> Twitter: @FreeSWITCH_Wire , @briankwest
> http://www.freeswitchbook.com
> http://www.freeswitchcookbook.com
> 
> T: +1.918.420.9001  |  F: +1.918.420.9002  |  M: +1.918.424.WEST
> iNUM: +883 5100 1420 9001
> ISN: 410*543
> Skype:briankwest
> PGP Key: http://www.bkw.org/key.txt (AB93356707C76CED)
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
> 
> 
> 
> 
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
> 
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
> 
> 
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
> 
> 
> 
> 
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
> 
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
Url : http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130925/f9750e93/attachment.bin 


Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list