Yes. Answer the call before the bridge so that MOH can be played on the caller.

================================================
Lapulapu City, Phils
Phone: +63-32-3401807, (USA) +1-646-5471226
Mobile: +63-920-6373450
Worldwide:
Dial any 200+ Access Number in 37 Countries, then ... 
              dial *011-63-32-3401807# afterwards.



On Tue, Nov 6, 2012 at 11:30 AM, ocset <ocset@the800group.com> wrote:
Thanks Avi

I have tried the following two dial plans but the phone just rings - no music.


<extension name="ext_8888">
        <condition field="destination_number" expression="^(8888)$">
                <action application="set" data="transfer_ringback=local_stream://moh"/>
                <action application="set" data="ringback=local_stream://moh"/>
                <action application="transfer" data="1005 XML default"/>
        </condition>
 </extension>


<extension name="ext_8888">
        <condition field="destination_number" expression="^(8888)$">
                <action application="set" data="transfer_ringback=local_stream://moh"/>
                <action application="set" data="ringback=local_stream://moh"/>
                <action application="bridge" data="sofia/internal/1005@192.168.0.150"/>
        </condition>
 </extension>

What am I missing? Should there be an "answer" directive in there somewhere also?

Thanks
O.


On 05/11/12 23:30, Avi Marcus wrote:
You probably want ringback and/or transfer ringback. That's for playing something while the call is waiting to be answered.

       <action application="set" data="ringback=local_stream://moh"/>
       <action application="set" data="transfer_ringback=local_stream://moh"/>
You're line isn't quite right -- "{ignore_early_media=true}", you need to set the variable data.

Playback is blocking -- it plays and then moves on. Transfer_ringback sets what to do when the transfer occurs.

I hope that helps and you can clean up the wiki when you've got it all figured out.

-Avi



On Mon, Nov 5, 2012 at 4:55 PM, ocset <ocset@the800group.com> wrote:
Hi

I am trying to to configure FS to play music while transferring a new
incoming call. Like when you phone a business and you get the "your call
in important to use, please wait while we transfer..." message.

I found this suggestion on the web but it does not work for me. I have
tested the two <action> command separately to make sure they work but
when they are put together, the call is never answered and no music is
played.


<include>
  <extension name="ext_8888">
         <condition field="destination_number" expression="^(8888)$">
                 <action application="playback" data="music/test.wav"/>
                 <action application="bridge"
data="{ignore_early_media}sofia/internal/1005@192.168.0.150"/>
         </condition>
  </extension>
</include>

ps. I cannot find the answer in either of the two FS books. Would have
expected this to be there, at least in the cookbook? All I can find is
examples of playing music and then hanging up. Happy to be corrected if
I missed it:-)

All help greatly appreciated
Thanks
O.

_________________________________________________________________________
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


_________________________________________________________________________
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