Jean-Denis Girard wrote:
> Thanks for the replies, comments in line.
> 
> Matt Riddell wrote:
> 
>>BJ Weschke wrote:
>>
>>
>>>On 11/19/05, Jean-Denis Girard <[EMAIL PROTECTED]> wrote:
>>>
>>>
>>>It's not supported at this time, but you're also not the first person
>>>to ask about it. I suppose it wouldn't be too difficult to add.
> 
> 
> I also thought it wouldn't be too difficult, but after reading
> app_meetme.c I don't even know where to start... :(

OK it wasn't that difficult after all :)

Attached is a simple patch I made to asterisk's app_meetme for text
conferencing. I've only tested with 2 MozPhone in the conference, but it
is works for me. I'll submit the patch to the bug tracker as soon as my
account is active.

Thanks,
-- 
Jean-Denis Girard

SysNux                  Systèmes Linux en Polynésie française
http://www.sysnux.pf/   Tél: +689 483 527 / GSM: +689 797 527
--- apps/app_meetme.c.ORIG	2005-11-12 09:03:40.000000000 -1000
+++ apps/app_meetme.c	2005-11-19 23:02:56.000000000 -1000
@@ -1309,6 +1309,20 @@
 						*/
 						write(fd, f->data, f->datalen);
 					}
+				} else if (f->frametype == AST_FRAME_TEXT) {
+					/* Text conference support */
+					struct ast_conf_user *u = calloc(1, sizeof(*user));
+					ast_log(LOG_DEBUG, "Text frame '%s' from %s\n", (char*) f->data, user->chan->name);
+					for (u = conf->firstuser; u; u = u->nextuser) {
+						if (u==user)
+							continue;
+						if ( u->chan->tech->send_text) {
+							/* We should use: ast_sendtext(u->chan, f->data) 
+							 * but it generates a blocking warning */
+							u->chan->tech->send_text(u->chan, f->data);
+						}
+					}
+					free(u);
 				} else if ((f->frametype == AST_FRAME_DTMF) && (confflags & CONFFLAG_EXIT_CONTEXT)) {
 					char tmp[2];
 
_______________________________________________
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to