[Asterisk-cvs] asterisk/apps app_dial.c, 1.163, 1.164 app_record.c, 1.34, 1.35

markster markster
Mon Aug 29 22:10:51 CDT 2005


Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv15557/apps

Modified Files:
	app_dial.c app_record.c 
Log Message:
Add SIP video fixes


Index: app_dial.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_dial.c,v
retrieving revision 1.163
retrieving revision 1.164
diff -u -d -r1.163 -r1.164
--- app_dial.c	3 Aug 2005 20:17:53 -0000	1.163
+++ app_dial.c	30 Aug 2005 02:12:09 -0000	1.164
@@ -493,6 +493,11 @@
 							if (!ast_test_flag(outgoing, DIAL_RINGBACKONLY))
 								ast_indicate(in, AST_CONTROL_PROGRESS);
 							break;
+						case AST_CONTROL_VIDUPDATE:
+							if (option_verbose > 2)
+								ast_verbose ( VERBOSE_PREFIX_3 "%s requested a video update, passing it to %s\n", o->chan->name,in->name);
+							ast_indicate(in, AST_CONTROL_VIDUPDATE);
+							break;
 						case AST_CONTROL_PROCEEDING:
 							if (option_verbose > 2)
 								ast_verbose ( VERBOSE_PREFIX_3 "%s is proceeding passing it to %s\n", o->chan->name,in->name);
@@ -600,6 +605,11 @@
 				if (ast_write(outgoing->chan, f))
 					ast_log(LOG_WARNING, "Unable to forward voice\n");
 			}
+			if (single && (f->frametype == AST_FRAME_CONTROL) && (f->subclass == AST_CONTROL_VIDUPDATE)) {
+				if (option_verbose > 2)
+					ast_verbose ( VERBOSE_PREFIX_3 "%s requested a video update, passing it to %s\n", in->name,outgoing->chan->name);
+				ast_indicate(outgoing->chan, AST_CONTROL_VIDUPDATE);
+			}
 			ast_frfree(f);
 		}
 		if (!*to && (option_verbose > 2))

Index: app_record.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_record.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- app_record.c	23 Aug 2005 01:09:49 -0000	1.34
+++ app_record.c	30 Aug 2005 02:12:09 -0000	1.35
@@ -218,6 +218,9 @@
 		
 		
 		if (s) {
+			/* Request a video update */
+			ast_indicate(chan, AST_CONTROL_VIDUPDATE);
+
 			if (maxduration > 0)
 				timeout = time(NULL) + (time_t)maxduration;
 			




More information about the svn-commits mailing list