You could set the "execute_on_answer" variable on the b-leg dialstring to execute the lua script. In the lua script, you'd use session:getVariable("switch_r_sdp") and then some pattern matching to figure out if "telephone-event" is in the SDP. If not, then do session:execute("start_dtmf", "")ChrisOn Tue, Mar 17, 2015 at 3:05 PM, Phillip Jones <pjintheusa@gmail.com> wrote:_________________________________________________________________________Hi All,The following dial plan detects RFC 2833 and if it is not present, runs the "start_dtmf" application.<condition field="${switch_r_sdp}" expression="a=rtpmap:(\d+)\stelephone-event/8000" break="never"><action application="set" data="rtp_payload_number=$1"/><anti-action application="start_dtmf"/></condition>I need to do this on the outbound leg - using Lua. Can anyone point me to some code example that would achieve this or get me started?Any help appreciated.ThanksPhil
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.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
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.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