[svn-commits] file: branch file/stasis_peerevent r390665 - /team/file/stasis_peerevent/chan...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Jun 6 07:54:43 CDT 2013


Author: file
Date: Thu Jun  6 07:54:40 2013
New Revision: 390665

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=390665
Log:
For inbound sessions set the channel state to ring initially, which fixes a devicestate race condition and also reduces the number of channel snapshots.

Modified:
    team/file/stasis_peerevent/channels/chan_gulp.c

Modified: team/file/stasis_peerevent/channels/chan_gulp.c
URL: http://svnview.digium.com/svn/asterisk/team/file/stasis_peerevent/channels/chan_gulp.c?view=diff&rev=390665&r1=390664&r2=390665
==============================================================================
--- team/file/stasis_peerevent/channels/chan_gulp.c (original)
+++ team/file/stasis_peerevent/channels/chan_gulp.c Thu Jun  6 07:54:40 2013
@@ -1393,7 +1393,7 @@
 		return 0;
 	}
 
-	if (!(session->channel = gulp_new(session, AST_STATE_DOWN, session->exten, NULL, NULL, NULL))) {
+	if (!(session->channel = gulp_new(session, AST_STATE_RING, session->exten, NULL, NULL, NULL))) {
 		if (pjsip_inv_end_session(session->inv_session, 503, NULL, &packet) == PJ_SUCCESS) {
 			ast_sip_session_send_response(session, packet);
 		}
@@ -1401,10 +1401,6 @@
 		ast_log(LOG_ERROR, "Failed to allocate new GULP channel on incoming SIP INVITE\n");
 		return -1;
 	}
-
-	ast_setstate(session->channel, AST_STATE_RING);
-
-	ast_devstate_changed(AST_DEVICE_UNKNOWN, AST_DEVSTATE_CACHABLE, "Gulp/%s", ast_sorcery_object_get_id(session->endpoint));
 
 	res = ast_pbx_start(session->channel);
 




More information about the svn-commits mailing list