thanks a lot Michael, i've tested <param name="disable-hold" value="true"/> but the problem still persists, 
i set this after "hold-music" in internal.xml:
    <param name="hold-music" value="$${hold_music}"/>
    <param name="disable-hold" value="true"/>

also i think setting disable-hold in sip profile is a global setting, how do i disable hold for each phone number?


2013/6/6 Michael Collins <msc@freeswitch.org>



On Wed, Jun 5, 2013 at 5:26 PM, Vincent Xia <gmangudai@gmail.com> wrote:
why disable_hold is not working? i set <action application="set" data="disable_hold=true"/> in the dialplan and also 

<param name="disable_hold" value="true"/> in sip profiles, nothing happened.
Double check that param name. Params usually have dashes whereas channel variables have underscores:
<param name="disable-hold" value="true"/>

-MC

another question is, disable_hold is described as a channel variable, i wonder how FS affects the channel by setting 

<action application="set" data="disable_hold=true"/> in the dialplan? for example,

    <extension name="disable_hold">
      <condition field="destination_number" expression="^(11[01][0-9])$">
<action application="answer"/>
<action application="set" data="disable_hold=true"/>
      </condition>
    </extension>

in this extension, which one, the calling party or called party, will be disabled?

_________________________________________________________________________
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


_________________________________________________________________________
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