[svn-commits] oej: branch oej/teapot-1.8 r402902 - in /team/oej/teapot-1.8: channels/ main/...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Nov 20 03:25:12 CST 2013


Author: oej
Date: Wed Nov 20 03:25:10 2013
New Revision: 402902

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=402902
Log:
Add some debugging stuff

Added:
    team/oej/teapot-1.8/patches/show_settings_direct_media.diff   (with props)
Modified:
    team/oej/teapot-1.8/channels/chan_sip.c
    team/oej/teapot-1.8/main/rtp_engine.c

Modified: team/oej/teapot-1.8/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/oej/teapot-1.8/channels/chan_sip.c?view=diff&rev=402902&r1=402901&r2=402902
==============================================================================
--- team/oej/teapot-1.8/channels/chan_sip.c (original)
+++ team/oej/teapot-1.8/channels/chan_sip.c Wed Nov 20 03:25:10 2013
@@ -7302,6 +7302,7 @@
 		ast_rtp_instance_update_source(p->rtp);
 		break;
 	case AST_CONTROL_SRCCHANGE:
+		ast_debug(2, "SSRC change requested in %s\n", p->callid);
 		ast_rtp_instance_change_source(p->rtp);
 		break;
 	case AST_CONTROL_CONNECTED_LINE:
@@ -18843,6 +18844,7 @@
 	ast_cli(a->fd, "  Videosupport:           %s\n", AST_CLI_YESNO(ast_test_flag(&global_flags[1], SIP_PAGE2_VIDEOSUPPORT)));
 	ast_cli(a->fd, "  Textsupport:            %s\n", AST_CLI_YESNO(ast_test_flag(&global_flags[1], SIP_PAGE2_TEXTSUPPORT)));
 	ast_cli(a->fd, "  Comfort Noise:          %s\n", AST_CLI_YESNO(ast_test_flag(&global_flags[1], SIP_PAGE2_ALLOW_CN)));
+	ast_cli(a->fd, "  Direct Media:           %s\n", AST_CLI_YESNO(ast_test_flag(&global_flags[0], SIP_DIRECT_MEDIA)));
 	ast_cli(a->fd, "  Ignore SDP sess. ver.:  %s\n", AST_CLI_YESNO(ast_test_flag(&global_flags[1], SIP_PAGE2_IGNORESDPVERSION)));
 	ast_cli(a->fd, "  AutoCreate Peer:        %s\n", AST_CLI_YESNO(sip_cfg.autocreatepeer));
 	ast_cli(a->fd, "  Match Auth Username:    %s\n", AST_CLI_YESNO(global_match_auth_username));
@@ -26306,6 +26308,7 @@
 					return -1;
 				}
 				if (ast_test_flag(&p->flags[0], SIP_DIRECT_MEDIA)) {
+					ast_debug(3, "Requesting SSRC change in %s\n", p->callid);
 					ast_queue_control(p->owner, AST_CONTROL_SRCCHANGE);
 				}
 			}

Modified: team/oej/teapot-1.8/main/rtp_engine.c
URL: http://svnview.digium.com/svn/asterisk/team/oej/teapot-1.8/main/rtp_engine.c?view=diff&rev=402902&r1=402901&r2=402902
==============================================================================
--- team/oej/teapot-1.8/main/rtp_engine.c (original)
+++ team/oej/teapot-1.8/main/rtp_engine.c Wed Nov 20 03:25:10 2013
@@ -769,6 +769,7 @@
 
 void ast_rtp_instance_change_source(struct ast_rtp_instance *instance)
 {
+	ast_debug(3, "Change source requested \n");
 	if (instance->engine->change_source) {
 		instance->engine->change_source(instance);
 	}

Added: team/oej/teapot-1.8/patches/show_settings_direct_media.diff
URL: http://svnview.digium.com/svn/asterisk/team/oej/teapot-1.8/patches/show_settings_direct_media.diff?view=auto&rev=402902
==============================================================================
--- team/oej/teapot-1.8/patches/show_settings_direct_media.diff (added)
+++ team/oej/teapot-1.8/patches/show_settings_direct_media.diff Wed Nov 20 03:25:10 2013
@@ -1,0 +1,12 @@
+Index: channels/chan_sip.c
+===================================================================
+--- channels/chan_sip.c	(revision 402901)
++++ channels/chan_sip.c	(working copy)
+@@ -18839,6 +18839,7 @@
+ 	ast_cli(a->fd, "  URI user is phone no:   %s\n", AST_CLI_YESNO(ast_test_flag(&global_flags[0], SIP_USEREQPHONE)));
+ 	ast_cli(a->fd, "  Always auth rejects:    %s\n", AST_CLI_YESNO(sip_cfg.alwaysauthreject));
+ 	ast_cli(a->fd, "  Direct RTP setup:       %s\n", AST_CLI_YESNO(sip_cfg.directrtpsetup));
++	ast_cli(a->fd, "  Direct Media:           %s\n", AST_CLI_YESNO(ast_test_flag(&global_flags[0], SIP_DIRECT_MEDIA)));
+ 	ast_cli(a->fd, "  User Agent:             %s\n", global_useragent);
+ 	ast_cli(a->fd, "  SDP Session Name:       %s\n", ast_strlen_zero(global_sdpsession) ? "-" : global_sdpsession);
+ 	ast_cli(a->fd, "  SDP Owner Name:         %s\n", ast_strlen_zero(global_sdpowner) ? "-" : global_sdpowner);

Propchange: team/oej/teapot-1.8/patches/show_settings_direct_media.diff
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: team/oej/teapot-1.8/patches/show_settings_direct_media.diff
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: team/oej/teapot-1.8/patches/show_settings_direct_media.diff
------------------------------------------------------------------------------
    svn:mime-type = text/plain




More information about the svn-commits mailing list