[Asterisk-cvs] asterisk/res res_features.c,1.20,1.21
markster at lists.digium.com
markster at lists.digium.com
Wed Nov 3 17:35:35 CST 2004
Update of /usr/cvsroot/asterisk/res
In directory mongoose.digium.com:/tmp/cvs-serv4155/res
Modified Files:
res_features.c
Log Message:
Pass through flash hook
Index: res_features.c
===================================================================
RCS file: /usr/cvsroot/asterisk/res/res_features.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- res_features.c 28 Oct 2004 15:53:36 -0000 1.20
+++ res_features.c 3 Nov 2004 22:37:55 -0000 1.21
@@ -358,6 +358,8 @@
/* We ran out of time */
config->timelimit = 0;
who = chan;
+ if (f)
+ ast_frfree(f);
f = NULL;
res = 0;
}
@@ -384,6 +386,12 @@
else
ast_indicate(chan, -1);
}
+ if ((f->frametype == AST_FRAME_CONTROL) && (f->subclass == AST_CONTROL_FLASH)) {
+ if (who == chan)
+ ast_indicate(peer, AST_CONTROL_FLASH);
+ else
+ ast_indicate(chan, AST_CONTROL_FLASH);
+ }
if ((f->frametype == AST_FRAME_CONTROL) && (f->subclass == AST_CONTROL_OPTION)) {
aoh = f->data;
/* Forward option Requests */
More information about the svn-commits
mailing list