On Fri, Jul 1, 2011 at 8:48 AM, rex.alex <rajesh.npnr@yahoo.com> wrote:
similar way I tried both

api originate {origination_caller_id_name='XXX',
start_dtmf_generate=true}user/1000
&bridge({accountcode='XXX'}sofia/gateway/gw_name/phno)

and

api originate {origination_caller_id_name='XXX'}user/1000
&bridge({accountcode='XXX',
start_dtmf_generate=true}sofia/gateway/gw_name/phno)
 
it's not working, but the inband type is working when i use it in dialplan.

Please assist.

Which leg needs to have inband DTMF - the calling or the called?

You can use these variables to do a pre-execute on either leg:
http://wiki.freeswitch.org/wiki/Variable_bridge_pre_execute_aleg_app
http://wiki.freeswitch.org/wiki/Variable_bridge_pre_execute_aleg_data
http://wiki.freeswitch.org/wiki/Variable_bridge_pre_execute_bleg_app
http://wiki.freeswitch.org/wiki/Variable_bridge_pre_execute_bleg_data

start_dtmf_generate is a dialplan app, not a chan var, so it needs to be executed, not "set".

-MC