[asterisk-commits] pcadach: branch pcadach/chan_h323-live r43089 - /team/pcadach/chan_h323-live/...

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sun Sep 17 08:24:51 MST 2006


Author: pcadach
Date: Sun Sep 17 10:24:50 2006
New Revision: 43089

URL: http://svn.digium.com/view/asterisk?rev=43089&view=rev
Log:
Force Asterisk notification of changed RTP parameters

Modified:
    team/pcadach/chan_h323-live/channels/chan_h323.c

Modified: team/pcadach/chan_h323-live/channels/chan_h323.c
URL: http://svn.digium.com/view/asterisk/team/pcadach/chan_h323-live/channels/chan_h323.c?rev=43089&r1=43088&r2=43089&view=diff
==============================================================================
--- team/pcadach/chan_h323-live/channels/chan_h323.c (original)
+++ team/pcadach/chan_h323-live/channels/chan_h323.c Sun Sep 17 10:24:50 2006
@@ -387,10 +387,11 @@
 		pvt->newdigit = -1;
 	}
 	if (pvt->update_rtp_info > 0) {
-		ast_jb_configure(c, &global_jbconf);
 		if (pvt->rtp) {
+			ast_jb_configure(c, &global_jbconf);
 			c->fds[0] = ast_rtp_fd(pvt->rtp);
 			c->fds[1] = ast_rtcp_fd(pvt->rtp);
+			ast_queue_frame(pvt->owner, &ast_null_frame);	/* Tell Asterisk to apply changes */
 		}
 		pvt->update_rtp_info = -1;
 	}
@@ -984,6 +985,7 @@
 		ast_jb_configure(pvt->owner, &global_jbconf);
 		pvt->owner->fds[0] = ast_rtp_fd(pvt->rtp);
 		pvt->owner->fds[1] = ast_rtcp_fd(pvt->rtp);
+		ast_queue_frame(pvt->owner, &ast_null_frame);	/* Tell Asterisk to apply changes */
 		ast_channel_unlock(pvt->owner);
 	} else
 		pvt->update_rtp_info = 1;



More information about the asterisk-commits mailing list