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"><<a href="mailto:wayne@hamilton.net">wayne@hamilton.net</a>></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><extension name="test-tone" ><br>
<condition field="destination_number" expression="1(.*)"
><br> <action application="set"
data="effective_caller_id_number=<a href="tel:9025556747" value="+19025556747" target="_blank">9025556747</a>"/><br>
<action application="sleep"
data="500"/><br> <action
application="flush_dtmf"/><br>
<action application="export" data="nolocal:execute_on_answer=send_dtmf <a href="mailto:W$1#@500" target="_blank">W$1#@500</a>"
/><br> <action application="bridge"
data="freetdm/wp1/a/<a href="tel:18005551234" value="+18005551234" target="_blank">18005551234</a>"/><br>
</condition><br></extension></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>
'FreeSWITCH Users Help'<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 "execute_on_answer" 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"><<a href="mailto:wayne@hamilton.net" target="_blank">wayne@hamilton.net</a>></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'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'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"><<a href="mailto:wayne@hamilton.net" target="_blank">wayne@hamilton.net</a>></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's
true I don't hear any tones when I answer the phone. I don'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've got an internal user
and a FreeTDM FXO port. Can you please clarify what you actually have? Who's
the caller and who'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"><<a href="mailto:wayne@hamilton.net" target="_blank">wayne@hamilton.net</a>></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"><extension name="test-tone" ><br>
<condition field="destination_number" expression="<a href="tel:%289025556747" value="+19025556747" target="_blank">(9025556747</a>)"
><br> <action application="set"
data="call_direction=outbound"
/><br> <action application="set"
data="effective_caller_id_name=${outbound_caller_id_name}"
/><br> <action application="set"
data="effective_caller_id_number=${outbound_caller_id_number}"
/><br> <action application="set"
data="continue_on_fail=true" /><br>
<action application="queue_dtmf" data="0123456789"
/><br> <action
application="bridge" data="freetdm/wp1/a/$1" /><br>
</condition><br></extension></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 <<a href="mailto:wayne@hamilton.net" target="_blank">wayne@hamilton.net</a>>
wrote:<br>> Hello All,<br>><br>> I need to call out on a SIP
trunk and when the call is answered send DTMF<br>> tones.<br>> I
need to send the DTMF only on the outbound leg.<br>><br>> Does
anyone have a dialplan that will do that? Is it possible. I have
only<br>> found one thread on it and did get much out of
it.<br>><br>> Thanks<br>> Wayne<br>><br>><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><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>