<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">If you need to inject dtmf tones or sound into an existing channel you can use chanspy with option w. I play sound files using the AMI to originate a call to an extension that does chanspy on one leg and a playback on the other. &nbsp;I use channel variables to say which channel to play to and which sound file to play.&nbsp;SendDTMF or Playtones should be able to inject tones.<br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; ">--&nbsp;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; ">Jim Dickenson</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; "><a href="mailto:dickenson@cfmc.com">mailto:dickenson@cfmc.com</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; ">CfMC</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; "><a href="http://www.cfmc.com/">http://www.cfmc.com/</a></div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px; "><br></span></font></div></div></span><br class="Apple-interchange-newline">
</div>
<br><div><div>On Jan 12, 2010, at 4:19 PM, Steve Murphy wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Dave--<br><br>I remember adding a feature a long time ago for snoms, to the source code,<br>to send dtmf out for some button press on a snom phone, in the 'outward' direction,<br>I think to activate a feature or somesuch. (Boy, is my memory hazy!) At any rate, I was able to<br>
inject dtmf, but I had to do it in the source. AFAICT, there is no app that<br>do this explicitly; and Murphy's Law would state that even if a dialplan app existed,<br>it would not get run at the time you need to be run.<br>
<br>So, if you found a workaround, and it works, it won't matter how pretty it is. Magic<br>is Magic.<br><br>And speaking of Murphy's Law: <br><br>Enjoy it while it lasts, because, sure as death and taxes, someone will fix a bug<br>
somewhere, and you'll lose an undocumented feature ;)<br><br>murf<br><br><br><div class="gmail_quote">On Tue, Jan 12, 2010 at 2:31 PM, David Gibbons <span dir="ltr">&lt;<a href="mailto:dave@videon-central.com">dave@videon-central.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">&lt;snip&gt;<br>
Going foward, is there any way to programmatically inject DTMF tones into an already-bridged channel?<br>
&lt;/snip&gt;<br>
<br>
Well, due to the lack of responses, either I missed something obvious or nobody cares. I'm really hoping I didn't miss something obvious... :).<br>
<br>
In any event, I got curious of my own old question and hacked out a work around:<br>
<br>
0. Assume your extension is dumped into context 'mycontext'<br>
1. You dial an internal extension<br>
2. * Dials an external number (presumably another PBX device)<br>
3. When the remote device answers, both parties are dumped into the DTMFworkaround context<br>
4. The called party has its DTMF mode set to inband so that the tones are played out loud<br>
4.5. Meanwhile, the calling party is dumped into an empty meeting conference that is used soley to bridge these two legs<br>
5. When the tones are done, the called party is dumped into the bridged conference.<br>
6. When the caller hangs up, the conference boots the callee<br>
<br>
&lt;code&gt;<br>
[dtmfworkaround]<br>
exten =&gt; 6534,1,Goto(dtmfworkaround|6536|1)<br>
exten =&gt; 6534,2,Goto(dtmfworkaround|6535|1)<br>
exten =&gt; 6535,1,Answer()<br>
exten =&gt; 6535,n,Wait(1)<br>
exten =&gt; 6535,n,SIPDTMFMode(inband)<br>
exten =&gt; 6535,n,SendDTMF(1234)<br>
exten =&gt; 6535,n,MeetMe(101|MFqx|1234)<br>
exten =&gt; 6536,1,Answer()<br>
exten =&gt; 6536,n,MeetMe(101|MFqxA|1234)<br>
<br>
[mycontext]<br>
exten =&gt; 658,1,Dial(SIP/486,15,rG(dtmfworkaround^6534^1))<br>
&lt;/code&gt;<br>
<br>
-Dave<br>
<font color="#888888"><br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com/" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
 &nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Steve Murphy<br>ParseTree Corp<br><br>
-- <br>_____________________________________________________________________<br>-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com">http://www.api-digital.com</a> --<br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> &nbsp;&nbsp;<a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a></blockquote></div><br></body></html>