On Thu, 2007-07-12 at 12:54 +0000, lemmel lemmel wrote: > So I'm back on this matter (I thus give enough time for a good samartan to > help), and now, I think that PlayDTMF is not designed for what I want to do > :
I've done this, and yes, you are correct, PlayDTMF is the wrong thing,
it goes in the wrong direction.
There is no app to do this; but you can do it in the code:
struct channel *chan;
int j;
struct ast_frame f = { AST_FRAME_DTMF, };
char *str = "#2";
/* Send the feature code to the PBX as DTMF, as if the handset had
sent it */
f.len = 100;
for (j=0; j < strlen(str); j++) {
f.subclass = str[j];
ast_queue_frame(chan, &f);
ast_verbose("* DTMF-relay event faked: %c\n", f.subclass);
}
Where chan is the channel to inject the dtmf.
Maybe a small App to do this might be handy... it would give users just
enough rope to... (*cough*)
murf
--
Steve Murphy
Software Developer
Digium
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ --Bandwidth and Colocation Provided by http://www.api-digital.com-- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
