FYI, I added this to the queue_dtmf misc dp tools wiki page.<div><a href="http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_queue_dtmf#Alternate_Example_Using_execute_on_answer">http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_queue_dtmf#Alternate_Example_Using_execute_on_answer</a></div>
<div><br></div><div>-MC<br><br><div class="gmail_quote">On Tue, Oct 4, 2011 at 7:27 AM, Wayne <span dir="ltr">&lt;<a href="mailto:wayne@hamilton.net">wayne@hamilton.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<u></u>



<div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span>Just to answer this posts for others that are searching 
for the answer this is what I did to make it work. </span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span>For some reason after resetting my Sangoma card  
with a power down and restart of the server send_dtmf started 
working.</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span>Here is  the XML that worked for me. Seems that 
the sleep and flush also got rid of my random tones.</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span></span></font> </div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span>&lt;extension name=&quot;test-tone&quot; &gt;<br>   
&lt;condition field=&quot;destination_number&quot; expression=&quot;1(.*)&quot; 
&gt;<br>        &lt;action application=&quot;set&quot; 
data=&quot;effective_caller_id_number=<a href="tel:9025556747" value="+19025556747" target="_blank">9025556747</a>&quot;/&gt;<br>        
&lt;action application=&quot;sleep&quot; 
data=&quot;500&quot;/&gt;<br>        &lt;action 
application=&quot;flush_dtmf&quot;/&gt;<br>        
&lt;action application=&quot;export&quot; data=&quot;nolocal:execute_on_answer=send_dtmf <a href="mailto:W$1#@500" target="_blank">W$1#@500</a>&quot; 
/&gt;<br>       &lt;action application=&quot;bridge&quot; 
data=&quot;freetdm/wp1/a/<a href="tel:18005551234" value="+18005551234" target="_blank">18005551234</a>&quot;/&gt;<br>   
&lt;/condition&gt;<br>&lt;/extension&gt;</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span></span></font> </div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span>Thanks to all that helped.</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span>Wayne</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span></span></font> </div><br>
<div dir="ltr" lang="en-us" align="left">
<hr>
<font size="2" face="Tahoma"><b>From:</b> 
<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a> 
[mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>] <b>On Behalf Of 
</b>Wayne<br><b>Sent:</b> Thursday, September 15, 2011 11:55 AM<br><b>To:</b> 
&#39;FreeSWITCH Users Help&#39;<br><b>Subject:</b> Re: [Freeswitch-users] Sending DTMF 
on B-leg<br></font><br></div>
<div></div>
<div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial">Okay,</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial"></font></span> </div>
<div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial">I have tried send_dtmf and queue_dtmf and I can not get 
any DTMF to pass. Would anyone be so kind and send me an extension 
that has it working on the B-leg. I am getting nowhere.</font></span></div>
<div dir="ltr" align="left"><span></span> </div>
<div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial">Thanks Wayne</font> </span></div><br>
<div dir="ltr" lang="en-us" align="left">
<hr>
<font size="2" face="Tahoma"><b>From:</b> 
<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a> 
[mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>] <b>On Behalf Of 
</b>Michael Collins<br><b>Sent:</b> Tuesday, September 13, 2011 4:29 
PM<br><b>To:</b> FreeSWITCH Users Help<br><b>Subject:</b> Re: [Freeswitch-users] 
Sending DTMF on B-leg<br></font><br></div>
<div></div>Okay, fair enough. Not sure what queue_dtmf is not working. You could 
always try &quot;execute_on_answer&quot; and execute an extension that sends the 
dtmfs.  
<div><br></div>
<div>-MC<br><br>
<div class="gmail_quote">On Tue, Sep 13, 2011 at 2:16 PM, Wayne <span dir="ltr">&lt;<a href="mailto:wayne@hamilton.net" target="_blank">wayne@hamilton.net</a>&gt;</span> wrote:<br>
<blockquote style="border-left:#ccc 1px solid;margin:0px 0px 0px 0.8ex;padding-left:1ex" class="gmail_quote"><u></u>
  <div>
  <div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial">Sorry 
  Michael,</font></span></div>
  <div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial"></font></span> </div>
  <div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial">When I 
  started out I was sending the calls to a SIP provider. I couldn&#39;t here the 
  DTMF tones. For trouble shooting I moved it to a local PRI. I was thinking 
  that maybe this was an issue with the sip trunk and sending inband or out of 
  band but that doesn&#39;t seem to be the case.</font></span></div>
  <div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial"></font></span> </div>
  <div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial">Wayne</font></span></div><br>
  <div dir="ltr" lang="en-us" align="left">
  <hr>
  <font size="2" face="Tahoma"><b>From:</b> <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a> [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>] <b>On Behalf 
  Of </b>Michael Collins<br><b>Sent:</b> Tuesday, September 13, 2011 2:41 PM 
  <div>
  <div></div>
  <div><br><b>To:</b> FreeSWITCH Users Help<br><b>Subject:</b> Re: 
  [Freeswitch-users] Sending DTMF on B-leg<br></div></div></font><br></div>
  <div>
  <div></div>
  <div>
  <div></div><br><br>
  <div class="gmail_quote">On Tue, Sep 13, 2011 at 11:34 AM, Wayne <span dir="ltr">&lt;<a href="mailto:wayne@hamilton.net" target="_blank">wayne@hamilton.net</a>&gt;</span> wrote:<br>
  <blockquote style="border-left:#ccc 1px solid;margin:0px 0px 0px 0.8ex;padding-left:1ex" class="gmail_quote"><u></u>
    <div>
    <div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial">That&#39;s 
    true I don&#39;t hear any tones when I answer the phone. I don&#39;t see any 
    messages in my log from queue_dtmf. Any help would be 
    great.</font></span></div>
    <div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial"></font></span> </div>
    <div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial">Wayne</font></span></div>
    <div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial"></font></span></div></div></blockquote>
  <div>Okay, in your original post you said you are making an OB call on a SIP 
  trunk, yet in your example there is no SIP trunk. You&#39;ve got an internal user 
  and a FreeTDM FXO port. Can you please clarify what you actually have? Who&#39;s 
  the caller and who&#39;s the callee?<br>-MC<br><br> <br></div>
  <blockquote style="border-left:rgb(204,204,204) 1px solid;margin:0pt 0pt 0pt 0.8ex;padding-left:1ex" class="gmail_quote">
    <div>
    <div dir="ltr" align="left"> </div>
    <div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial"></font></span> </div><br>
    <div dir="ltr" lang="en-us" align="left">
    <hr>
    <font size="2" face="Tahoma"><b>From:</b> <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a> [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>] <b>On 
    Behalf Of </b>Michael Collins<br><b>Sent:</b> Thursday, September 08, 2011 
    6:25 PM 
    <div>
    <div></div>
    <div><br><b>To:</b> FreeSWITCH Users Help<br><b>Subject:</b> Re: 
    [Freeswitch-users] Sending DTMF on B-leg<br></div></div></font><br></div>
    <div>
    <div></div>
    <div>
    <div></div>Are you saying that no DTMFs are being sent out when the bridge 
    is initially completed?  
    <div>-MC<br><br>
    <div class="gmail_quote">On Wed, Sep 7, 2011 at 3:17 PM, Wayne <span dir="ltr">&lt;<a href="mailto:wayne@hamilton.net" target="_blank">wayne@hamilton.net</a>&gt;</span> wrote:<br>
    <blockquote style="border-left:#ccc 1px solid;margin:0px 0px 0px 0.8ex;padding-left:1ex" class="gmail_quote"><u></u>
      <div>
      <div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial">I have 
      tried that </font></span></div>
      <div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial">&lt;extension name=&quot;test-tone&quot; &gt;<br>   
      &lt;condition field=&quot;destination_number&quot; expression=&quot;<a href="tel:%289025556747" value="+19025556747" target="_blank">(9025556747</a>)&quot; 
      &gt;<br>       &lt;action application=&quot;set&quot; 
      data=&quot;call_direction=outbound&quot; 
      /&gt;<br>       &lt;action application=&quot;set&quot; 
      data=&quot;effective_caller_id_name=${outbound_caller_id_name}&quot; 
      /&gt;<br>       &lt;action application=&quot;set&quot; 
      data=&quot;effective_caller_id_number=${outbound_caller_id_number}&quot; 
      /&gt;<br>       &lt;action application=&quot;set&quot; 
      data=&quot;continue_on_fail=true&quot; /&gt;<br>       
      &lt;action application=&quot;queue_dtmf&quot; data=&quot;0123456789&quot; 
      /&gt;<br>       &lt;action 
      application=&quot;bridge&quot; data=&quot;freetdm/wp1/a/$1&quot; /&gt;<br>   
      &lt;/condition&gt;<br>&lt;/extension&gt;</font></span></div>
      <div><span><font color="#0000ff" size="2" face="Arial"></font></span> </div>
      <div><span><font color="#0000ff" size="2" face="Arial">The debug tells me that 
      this</font></span></div>
      <div><span><font color="#0000ff" size="2" face="Arial">tail -f freeswitch.log | 
      grep -i dtmf</font></span></div>
      <div><span></span> </div>
      <div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial">Dialplan: 
      </font><a href="mailto:sofia/internal/1333@192.168.48.87" target="_blank"><font size="2" face="Arial">sofia/internal/1333@192.168.48.87</font></a><font color="#0000ff" size="2" face="Arial"> Action queue_dtmf(0123456789)<br>
EXECUTE </font><a href="mailto:sofia/internal/1333@192.168.48.87" target="_blank"><font size="2" face="Arial">sofia/internal/1333@192.168.48.87</font></a><font color="#0000ff" size="2" face="Arial"> queue_dtmf(0123456789)<br>
2011-09-07 17:13:44.676204 
      [DEBUG] switch_channel.c:465 </font><a href="mailto:sofia/internal/1333@192.168.48.87" target="_blank"><font size="2" face="Arial">sofia/internal/1333@192.168.48.87</font></a><font color="#0000ff" size="2" face="Arial"> Queue dtmf<br>
2011-09-07 17:13:44.676204 [DEBUG] 
      switch_channel.c:465 </font><a href="mailto:sofia/internal/1333@192.168.48.87" target="_blank"><font size="2" face="Arial">sofia/internal/1333@192.168.48.87</font></a><font color="#0000ff" size="2" face="Arial"> Queue dtmf<br>
2011-09-07 17:13:44.676204 [DEBUG] 
      switch_channel.c:465 </font><a href="mailto:sofia/internal/1333@192.168.48.87" target="_blank"><font size="2" face="Arial">sofia/internal/1333@192.168.48.87</font></a><font color="#0000ff" size="2" face="Arial"> Queue dtmf<br>
2011-09-07 17:13:44.676204 [DEBUG] 
      switch_channel.c:465 </font><a href="mailto:sofia/internal/1333@192.168.48.87" target="_blank"><font size="2" face="Arial">sofia/internal/1333@192.168.48.87</font></a><font color="#0000ff" size="2" face="Arial"> Queue dtmf<br>
2011-09-07 17:13:44.676204 [DEBUG] 
      switch_channel.c:465 </font><a href="mailto:sofia/internal/1333@192.168.48.87" target="_blank"><font size="2" face="Arial">sofia/internal/1333@192.168.48.87</font></a><font color="#0000ff" size="2" face="Arial"> Queue dtmf<br>
2011-09-07 17:13:44.676204 [DEBUG] 
      switch_channel.c:465 </font><a href="mailto:sofia/internal/1333@192.168.48.87" target="_blank"><font size="2" face="Arial">sofia/internal/1333@192.168.48.87</font></a><font color="#0000ff" size="2" face="Arial"> Queue dtmf<br>
2011-09-07 17:13:44.676204 [DEBUG] 
      switch_channel.c:465 </font><a href="mailto:sofia/internal/1333@192.168.48.87" target="_blank"><font size="2" face="Arial">sofia/internal/1333@192.168.48.87</font></a><font color="#0000ff" size="2" face="Arial"> Queue dtmf<br>
2011-09-07 17:13:44.676204 [DEBUG] 
      switch_channel.c:465 </font><a href="mailto:sofia/internal/1333@192.168.48.87" target="_blank"><font size="2" face="Arial">sofia/internal/1333@192.168.48.87</font></a><font color="#0000ff" size="2" face="Arial"> Queue dtmf<br>
2011-09-07 17:13:44.676204 [DEBUG] 
      switch_channel.c:465 </font><a href="mailto:sofia/internal/1333@192.168.48.87" target="_blank"><font size="2" face="Arial">sofia/internal/1333@192.168.48.87</font></a><font color="#0000ff" size="2" face="Arial"> Queue dtmf<br>
2011-09-07 17:13:44.676204 [DEBUG] 
      switch_channel.c:465 </font><a href="mailto:sofia/internal/1333@192.168.48.87" target="_blank"><font size="2" face="Arial">sofia/internal/1333@192.168.48.87</font></a><font color="#0000ff" size="2" face="Arial"> Queue dtmf<br>
2011-09-07 17:13:45.076218 [DEBUG] 
      sofia_glue.c:3355 Set 2833 dtmf send payload to 101<br>2011-09-07 
      17:13:45.076218 [DEBUG] sofia_glue.c:3360 Set 2833 dtmf receive payload to 
      101<br>2011-09-07 17:13:45.116216 [DEBUG] ftdm_io.c:3714 [s1c1][1:1] 
      Generating DTMF [0123456789]<br>2011-09-07 17:13:47.876238 [DEBUG] 
      ftmod_wanpipe.c:701 [s1c1][1:1] Enabled DTMF events<br>2011-09-07 
      17:13:47.956228 [DEBUG] ftmod_wanpipe.c:1415 [s1c1][1:1] Queuing wanpipe 
      DTMF: 9<br>2011-09-07 17:13:47.956228 [DEBUG] ftdm_io.c:3524 [s1c1][1:1] 
      Queuing DTMF 9 (debug = 0)<br>2011-09-07 17:13:47.956228 [DEBUG] 
      mod_freetdm.c:733 Queuing DTMF [9] in channel FreeTDM/1:<a href="tel:1%2F9025556747" value="+19025556747" target="_blank">1/9025556747</a><br>2011-09-07 17:13:48.036235 
      [DEBUG] ftmod_wanpipe.c:1415 [s1c1][1:1] Queuing wanpipe DTMF: 
      9<br>2011-09-07 17:13:48.036235 [DEBUG] ftdm_io.c:3524 [s1c1][1:1] Queuing 
      DTMF 9 (debug = 0)<br>2011-09-07 17:13:48.036235 [DEBUG] mod_freetdm.c:733 
      Queuing DTMF [9] in channel FreeTDM/1:<a href="tel:1%2F9025556747" value="+19025556747" target="_blank">1/9025556747</a></font></div>
      <div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"></font> </div>
      <div dir="ltr" align="left"><span></span><font color="#0000ff" size="2" face="Arial">S<span>o where would I look next.</span></font></div>
      <div><font color="#0000ff" size="2" face="Arial"><span></span></font> </div>
      <div><font color="#0000ff" size="2" face="Arial"><span>Wayne</span></font></div>
      <div dir="ltr" align="left"><br></div><br>
      <div dir="ltr" lang="en-us" align="left">
      <hr>
      <font size="2" face="Tahoma"><b>From:</b> <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a> [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>] <b>On 
      Behalf Of </b>Avi Marcus<br><b>Sent:</b> Wednesday, September 07, 2011 
      3:55 PM<br><b>To:</b> FreeSWITCH Users Help<br><b>Subject:</b> Re: 
      [Freeswitch-users] Sending DTMF on B-leg<br></font><br></div>
      <div>
      <div></div>
      <div>
      <div></div>
      <div dir="ltr">I think you looking for queue_dtmf.<br><br><a href="http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_queue_dtmf" target="_blank">http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_queue_dtmf</a><br>
<br>-Avi 
      Marcus<br><br><br><br>On Wed, Sep 7, 2011 at 11:47 PM, Wayne &lt;<a href="mailto:wayne@hamilton.net" target="_blank">wayne@hamilton.net</a>&gt; 
      wrote:<br>&gt; Hello All,<br>&gt;<br>&gt; I need to call out on a SIP 
      trunk and when the call is answered send DTMF<br>&gt; tones.<br>&gt; I 
      need to send the DTMF only on the outbound leg.<br>&gt;<br>&gt; Does 
      anyone have a dialplan that will do that? Is it possible. I have 
      only<br>&gt; found one thread on it and did get much out of 
      it.<br>&gt;<br>&gt; Thanks<br>&gt; Wayne<br>&gt;<br>&gt;<br>&gt;<br>&gt; 
      FreeSWITCH-users mailing list<br>&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; 
      UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>&gt; 
      <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>&gt;<br><br></div></div></div></div><br><br>FreeSWITCH-users 
      mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div></div></div></div><br><br>FreeSWITCH-users 
    mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div></div></div><br><br>FreeSWITCH-users 
  mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div></div>
<br><br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>