I am trying to play MOH on a leg after bridge. Here are the steps 1. I "originate" a call( Call-A ). 2. I then "bridge" it to another call (Call-B). I have set "park_after_bridge=true". 3. After a while, I "transfer" the Call-B to a dialplan extension where I just "playback" moh as follows... <action application="playback" data="local_stream://moh" /> The problem is that I don't hear the moh on leg B even though I observe that the calls are un-bridged. It looks like both the calls remain in park state. Any help appreciated. Thanks JP
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 On Fri, Sep 20, 2013 at 4:52 PM, JP <jaykris@gmail.com> wrote:
I am trying to play MOH on a leg after bridge. Here are the steps
1. I "originate" a call( Call-A ). 2. I then "bridge" it to another call (Call-B). I have set "park_after_bridge=true". 3. After a while, I "transfer" the Call-B to a dialplan extension where I just "playback" moh as follows... <action application="playback" data="local_stream://moh" />
The problem is that I don't hear the moh on leg B even though I observe that the calls are un-bridged. It looks like both the calls remain in park state. Any help appreciated.
Thanks JP
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
Or park it then tell it to play a file. /b On Sep 23, 2013, at 1:25 PM, Michael Collins <msc@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@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)
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@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@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@somewhere.com [BREAK] 2013-09-24 12:28:57.369021 [DEBUG] switch_core_session.c:823 Send signal sofia/internal/14083334444@somewhere.com [BREAK] 2013-09-24 12:28:57.369021 [NOTICE] switch_ivr.c:1767 Transfer sofia/internal/14083334444@somewhere.com to XML[Hold_Call@public] 2013-09-24 12:28:57.389006 [DEBUG] switch_ivr_bridge.c:501 sofia/internal/ 14083334444@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@somewhere.com] 2013-09-24 12:28:57.389006 [DEBUG] switch_ivr_bridge.c:613 Send signal sofia/internal/14083334444@somewhere.com [BREAK] 2013-09-24 12:28:57.389006 [DEBUG] switch_core_session.c:823 Send signal sofia/internal/14083334444@somewhere.com [BREAK] 2013-09-24 12:28:57.389006 [DEBUG] switch_core_session.c:823 Send signal sofia/internal/14081112222@somewhere.com [BREAK] 2013-09-24 12:28:57.389006 [DEBUG] switch_ivr.c:2803 (sofia/internal/ 14081112222@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@somewhere.com [BREAK] 2013-09-24 12:28:57.389006 [DEBUG] switch_core_state_machine.c:477 (sofia/internal/14081112222@somewhere.com) State EXECUTE going to sleep 2013-09-24 12:28:57.389006 [DEBUG] switch_core_state_machine.c:415 (sofia/internal/14081112222@somewhere.com) Running State Change CS_PARK 2013-09-24 12:28:57.389006 [DEBUG] switch_core_state_machine.c:486 (sofia/internal/14081112222@somewhere.com) State PARK 2013-09-24 12:28:57.389006 [DEBUG] switch_core_state_machine.c:283 sofia/internal/14081112222@somewhere.com Standard PARK 2013-09-24 12:28:57.408000 [DEBUG] switch_ivr_bridge.c:588 BRIDGE THREAD DONE [sofia/internal/14083334444@somewhere.com] 2013-09-24 12:28:57.408000 [DEBUG] switch_ivr_bridge.c:613 Send signal sofia/internal/14081112222@somewhere.com [BREAK] 2013-09-24 12:28:57.408000 [DEBUG] switch_ivr.c:2803 (sofia/internal/ 14083334444@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@somewhere.com [BREAK] 2013-09-24 12:28:57.408000 [DEBUG] switch_core_state_machine.c:480 (sofia/internal/14083334444@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@somewhere.com) Running State Change CS_PARK 2013-09-24 12:28:57.408000 [DEBUG] switch_core_state_machine.c:486 (sofia/internal/14083334444@somewhere.com) State PARK 2013-09-24 12:28:57.408000 [DEBUG] switch_core_state_machine.c:283 sofia/internal/14083334444@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@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@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@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@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Fixed the issue by removing the "park_after_bridge=true" in the step 2. Now I can hear moh :) Thanks to all for taking the time to read and respond. -JP On Tue, Sep 24, 2013 at 12:41 PM, JP <jaykris@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@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@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@somewhere.com [BREAK] 2013-09-24 12:28:57.369021 [DEBUG] switch_core_session.c:823 Send signal sofia/internal/14083334444@somewhere.com [BREAK] 2013-09-24 12:28:57.369021 [NOTICE] switch_ivr.c:1767 Transfer sofia/internal/14083334444@somewhere.com to XML[Hold_Call@public] 2013-09-24 12:28:57.389006 [DEBUG] switch_ivr_bridge.c:501 sofia/internal/ 14083334444@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@somewhere.com] 2013-09-24 12:28:57.389006 [DEBUG] switch_ivr_bridge.c:613 Send signal sofia/internal/14083334444@somewhere.com [BREAK] 2013-09-24 12:28:57.389006 [DEBUG] switch_core_session.c:823 Send signal sofia/internal/14083334444@somewhere.com [BREAK] 2013-09-24 12:28:57.389006 [DEBUG] switch_core_session.c:823 Send signal sofia/internal/14081112222@somewhere.com [BREAK] 2013-09-24 12:28:57.389006 [DEBUG] switch_ivr.c:2803 (sofia/internal/ 14081112222@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@somewhere.com [BREAK] 2013-09-24 12:28:57.389006 [DEBUG] switch_core_state_machine.c:477 (sofia/internal/14081112222@somewhere.com) State EXECUTE going to sleep 2013-09-24 12:28:57.389006 [DEBUG] switch_core_state_machine.c:415 (sofia/internal/14081112222@somewhere.com) Running State Change CS_PARK 2013-09-24 12:28:57.389006 [DEBUG] switch_core_state_machine.c:486 (sofia/internal/14081112222@somewhere.com) State PARK 2013-09-24 12:28:57.389006 [DEBUG] switch_core_state_machine.c:283 sofia/internal/14081112222@somewhere.com Standard PARK 2013-09-24 12:28:57.408000 [DEBUG] switch_ivr_bridge.c:588 BRIDGE THREAD DONE [sofia/internal/14083334444@somewhere.com] 2013-09-24 12:28:57.408000 [DEBUG] switch_ivr_bridge.c:613 Send signal sofia/internal/14081112222@somewhere.com [BREAK] 2013-09-24 12:28:57.408000 [DEBUG] switch_ivr.c:2803 (sofia/internal/ 14083334444@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@somewhere.com [BREAK] 2013-09-24 12:28:57.408000 [DEBUG] switch_core_state_machine.c:480 (sofia/internal/14083334444@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@somewhere.com) Running State Change CS_PARK 2013-09-24 12:28:57.408000 [DEBUG] switch_core_state_machine.c:486 (sofia/internal/14083334444@somewhere.com) State PARK 2013-09-24 12:28:57.408000 [DEBUG] switch_core_state_machine.c:283 sofia/internal/14083334444@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@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@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@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@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
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@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@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@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@somewhere.com [BREAK] 2013-09-24 12:28:57.369021 [DEBUG] switch_core_session.c:823 Send signal sofia/internal/14083334444@somewhere.com [BREAK] 2013-09-24 12:28:57.369021 [NOTICE] switch_ivr.c:1767 Transfer sofia/internal/14083334444@somewhere.com to XML[Hold_Call@public] 2013-09-24 12:28:57.389006 [DEBUG] switch_ivr_bridge.c:501 sofia/internal/14083334444@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@somewhere.com] 2013-09-24 12:28:57.389006 [DEBUG] switch_ivr_bridge.c:613 Send signal sofia/internal/14083334444@somewhere.com [BREAK] 2013-09-24 12:28:57.389006 [DEBUG] switch_core_session.c:823 Send signal sofia/internal/14083334444@somewhere.com [BREAK] 2013-09-24 12:28:57.389006 [DEBUG] switch_core_session.c:823 Send signal sofia/internal/14081112222@somewhere.com [BREAK] 2013-09-24 12:28:57.389006 [DEBUG] switch_ivr.c:2803 (sofia/internal/14081112222@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@somewhere.com [BREAK] 2013-09-24 12:28:57.389006 [DEBUG] switch_core_state_machine.c:477 (sofia/internal/14081112222@somewhere.com) State EXECUTE going to sleep 2013-09-24 12:28:57.389006 [DEBUG] switch_core_state_machine.c:415 (sofia/internal/14081112222@somewhere.com) Running State Change CS_PARK 2013-09-24 12:28:57.389006 [DEBUG] switch_core_state_machine.c:486 (sofia/internal/14081112222@somewhere.com) State PARK 2013-09-24 12:28:57.389006 [DEBUG] switch_core_state_machine.c:283 sofia/internal/14081112222@somewhere.com Standard PARK 2013-09-24 12:28:57.408000 [DEBUG] switch_ivr_bridge.c:588 BRIDGE THREAD DONE [sofia/internal/14083334444@somewhere.com] 2013-09-24 12:28:57.408000 [DEBUG] switch_ivr_bridge.c:613 Send signal sofia/internal/14081112222@somewhere.com [BREAK] 2013-09-24 12:28:57.408000 [DEBUG] switch_ivr.c:2803 (sofia/internal/14083334444@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@somewhere.com [BREAK] 2013-09-24 12:28:57.408000 [DEBUG] switch_core_state_machine.c:480 (sofia/internal/14083334444@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@somewhere.com) Running State Change CS_PARK 2013-09-24 12:28:57.408000 [DEBUG] switch_core_state_machine.c:486 (sofia/internal/14083334444@somewhere.com) State PARK 2013-09-24 12:28:57.408000 [DEBUG] switch_core_state_machine.c:283 sofia/internal/14083334444@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@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@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@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@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@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@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
valet_park is for playing MOH On Fri, Sep 20, 2013 at 7:52 PM, JP <jaykris@gmail.com> wrote:
I am trying to play MOH on a leg after bridge. Here are the steps
1. I "originate" a call( Call-A ). 2. I then "bridge" it to another call (Call-B). I have set "park_after_bridge=true". 3. After a while, I "transfer" the Call-B to a dialplan extension where I just "playback" moh as follows... <action application="playback" data="local_stream://moh" />
The problem is that I don't hear the moh on leg B even though I observe that the calls are un-bridged. It looks like both the calls remain in park state. Any help appreciated.
Thanks JP
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (4)
-
Brian West
-
JP
-
Michael Collins
-
Yuri Ritvin