1. From the fs_cli I execute the following to setup the first leg
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 [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.c:2803 (sofia/internal/
14081112222@somewhere.com) State Change CS_EXECUTE -> CS_PARK
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.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_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