<div dir="ltr"><div><div>In this case I believe that ${last_matching_digits} is empty at the time the bind_digit_action is executed. I would suggest that instead of executing the log app you instead create a new dialplan context and then use the execute_extension app. Execute the extension in your new context (so that you don't have to parse through your main dialplan context) that performs the log app and it should evaluate ${last_matching_digits} fresh.<br><br></div>Let us know how that goes.<br><br></div>-MC<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 21, 2014 at 10:31 AM, Szeto, Steven <span dir="ltr"><<a href="mailto:steven_szeto@mitel.com" target="_blank">steven_szeto@mitel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">As Michael suggested, I have tried the bind_digit_action application.</span><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">To display a <span>DTMF</span> keystroke in the logs, I added this action to my dial plan:</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"><span style="white-space:pre-wrap">                </span><action application="bind_digit_action" data="my_digits,~^\d+,exec:log,INFO <span>DTMF</span> digits detected ${last_matching_digits};;my UUID is ${uuid}"/><br></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">I get logs that look like this:</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"><div>Info: 2014-Oct-20 13:55:01.250 Received Freeswitch EventName: [[LOG, INFO <span>DTMF</span> digits detected ;;my UUID is 6b29cba9-64e4-481d-af56-7a218714d460]] - CallId: [6b29cba9-64e4-481d-af56-7a218714d460]<span style="white-space:pre-wrap">        </span>()</div><div><br></div></div><div style="font-family:arial,sans-serif;font-size:13px">Notice that the ${last_matching_digits} variable is always blank.</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Is there another variable that I can use to display the detected <span>DTMF</span> digits? Is this a bug that needs to be raised & fixed?</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 16, 2014 at 9:15 PM, Michael Collins <span dir="ltr"><<a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>I believe bind_digit_action (BDA) will do what you need. I think the trick for you is to specify the detection leg and the action leg, that is, where does BDA listen for a DTMF (self, peer, both) and where does it execute the action (again on self, peer, or both). <br><br></div>There are some examples here:<br><a href="https://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_bind_digit_action" target="_blank">https://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_bind_digit_action</a><br><br></div>However, I recommend you set up some simple call bridges where you explicitly set the detect and event action legs differently so that you can see it first hand. Once you have it working in simple cases, like pressing a digit executing a dp app log, then you can move on to more interesting endeavors. It's been a while, but I recall doing stuff like setting various targets on various legs that printed log lines to the console, kinda like, "Hey, this should be on the b-leg! UUID is '${uuid}'"<br><br></div>Let us know how it goes.<br><br></div>-MC<br><br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Thu, Oct 16, 2014 at 2:08 PM, Szeto, Steven <span dir="ltr"><<a href="mailto:steven_szeto@mitel.com" target="_blank">steven_szeto@mitel.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">If I establish a call between two registered endpoints, and then press a DTMF key, I can see a DTMF key press event from the originator's call id:<div><br></div><div><div>Freeswitch EventName: [[EVENT-NAME, DTMF]] - CallId: [694eb613-6b97-4197-a951-5288066ffbf5]<span style="white-space:pre-wrap">        </span>()</div><div><br></div><div>GenerateDTMFEvent - CallID: [694eb613-6b97-4197-a951-5288066ffbf5] - TimeStamp: [10/17/2014 01:03:34.993 AM] - DTMF: [5]<span style="white-space:pre-wrap">        </span>()</div><div><br></div></div><div><br></div><div>How can I get equivalent DTMF events on the terminator's call id? I hear the DTMF key on the phone, but I need to process the keystroke in my own application.</div><div><br></div><div>Can the bind_digit_action application do what I need? If so, can I please get an example?<br clear="all"><div><br></div>-- <br><div dir="ltr"><table style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium" width="500"><tbody><tr><td><p style="font-family:Helvetica,Arial,sans-serif;font-size:12px;line-height:16px;color:rgb(0,49,88)"><span style="font-weight:bold">Regards,</span></p><p style="font-family:Helvetica,Arial,sans-serif;font-size:12px;line-height:16px;color:rgb(0,49,88)"><span style="font-weight:bold">Steve Szeto</span><br><span style="color:rgb(75,75,75)"><strong>MiContact Center IVR Team</strong></span><br><span style="color:rgb(75,75,75)">Software Design</span><br><br><strong>Phone:<a href="tel:613-592-2122" value="+16135922122" target="_blank">613-592-2122</a></strong><br>Mobile:<br><br><span style="color:rgb(75,75,75)"><strong><img src="http://www.mitel.com/sites/default/files/mitel-logo.jpg"></strong></span><br><br><strong>Mitel</strong><br>350 Legget Drive,<br>Kanata, Ontario, K2K 2W7, Canada<br><br><a href="http://mitel.com/" style="color:rgb(0,49,88)" target="_blank">mitel.com</a><br><a href="mailto:steven.szeto@mitel.com" style="color:rgb(0,49,88)" target="_blank">steven.szeto@mitel.com</a></p><p><a href="http://www.facebook.com/mitel.networks" target="_blank"><img src="http://www.mitel.com/sites/default/files/facebook.png" alt="Facebook" style="margin-right:15px"></a><a href="http://www.twitter.com/Mitel" target="_blank"><img src="http://www.mitel.com/sites/default/files/twitter.png" alt="Twitter" style="margin-right:15px"></a><a href="http://plus.google.com/+mitel" target="_blank"><img src="http://www.mitel.com/sites/default/files/gplus.png" alt="Google Plus" style="margin-right:15px"></a><a href="http://www.linkedin.com/company/mitel" target="_blank"><img src="http://www.mitel.com/sites/default/files/linkedin.png" alt="Linkedin" style="margin-right:15px"></a></p></td></tr></tbody></table></div>
</div></div>
<br>
</div></div><font size="1">This e-mail (including any attachments) is for the sole use of the intended recipient(s) and may contain information that is confidential and/or protected by legal privilege. Any unauthorized review, use, copy, disclosure or distribution of this e-mail is strictly prohibited. If you are not the intended recipient, please notify Mitel immediately and destroy all copies of this e-mail. Mitel does not accept any liability for breach of security, error or virus that may result from the transmission of this message.</font><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><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></blockquote></div><br></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><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></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><table style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium" width="500"><tbody><tr><td><p style="font-family:Helvetica,Arial,sans-serif;font-size:12px;line-height:16px;color:rgb(0,49,88)"><span style="font-weight:bold">Regards,</span></p><p style="font-family:Helvetica,Arial,sans-serif;font-size:12px;line-height:16px;color:rgb(0,49,88)"><span style="font-weight:bold">Steve Szeto</span><br><span style="color:rgb(75,75,75)"><strong>MiContact Center IVR Team</strong></span><br><span style="color:rgb(75,75,75)">Software Design</span><br><br><strong>Phone:<a href="tel:613-592-2122" value="+16135922122" target="_blank">613-592-2122</a></strong><br>Mobile:<br><br><span style="color:rgb(75,75,75)"><strong><img src="http://www.mitel.com/sites/default/files/mitel-logo.jpg"></strong></span><br><br><strong>Mitel</strong><br>350 Legget Drive,<br>Kanata, Ontario, K2K 2W7, Canada<br><br><a href="http://mitel.com/" style="color:rgb(0,49,88)" target="_blank">mitel.com</a><br><a href="mailto:steven.szeto@mitel.com" style="color:rgb(0,49,88)" target="_blank">steven.szeto@mitel.com</a></p><p><a href="http://www.facebook.com/mitel.networks" target="_blank"><img src="http://www.mitel.com/sites/default/files/facebook.png" alt="Facebook" style="margin-right:15px"></a><a href="http://www.twitter.com/Mitel" target="_blank"><img src="http://www.mitel.com/sites/default/files/twitter.png" alt="Twitter" style="margin-right:15px"></a><a href="http://plus.google.com/+mitel" target="_blank"><img src="http://www.mitel.com/sites/default/files/gplus.png" alt="Google Plus" style="margin-right:15px"></a><a href="http://www.linkedin.com/company/mitel" target="_blank"><img src="http://www.mitel.com/sites/default/files/linkedin.png" alt="Linkedin" style="margin-right:15px"></a></p></td></tr></tbody></table></div>
</div>
<br>
<font size="1">This e-mail (including any attachments) is for the sole use of the intended recipient(s) and may contain information that is confidential and/or protected by legal privilege. Any unauthorized review, use, copy, disclosure or distribution of this e-mail is strictly prohibited. If you are not the intended recipient, please notify Mitel immediately and destroy all copies of this e-mail. Mitel does not accept any liability for breach of security, error or virus that may result from the transmission of this message.</font><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><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></blockquote></div><br></div>