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"><<a href="mailto:dave@videon-central.com">dave@videon-central.com</a>></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;"><snip><br>
Going foward, is there any way to programmatically inject DTMF tones into an already-bridged channel?<br>
</snip><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>
<code><br>
[dtmfworkaround]<br>
exten => 6534,1,Goto(dtmfworkaround|6536|1)<br>
exten => 6534,2,Goto(dtmfworkaround|6535|1)<br>
exten => 6535,1,Answer()<br>
exten => 6535,n,Wait(1)<br>
exten => 6535,n,SIPDTMFMode(inband)<br>
exten => 6535,n,SendDTMF(1234)<br>
exten => 6535,n,MeetMe(101|MFqx|1234)<br>
exten => 6536,1,Answer()<br>
exten => 6536,n,MeetMe(101|MFqxA|1234)<br>
<br>
[mycontext]<br>
exten => 658,1,Dial(SIP/486,15,rG(dtmfworkaround^6534^1))<br>
</code><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>
<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>