All pastes #1504527 Raw Edit

Miscellany

public diff v1 · immutable
#1504527 ·published 2009-07-23 16:53 UTC
rendered paste body
Index: channels/chan_sip.c===================================================================--- channels/chan_sip.c	(revision 208312)+++ channels/chan_sip.c	(working copy)@@ -3112,7 +3112,6 @@ 	if (option_debug) 		ast_log(LOG_DEBUG, "Outgoing Call for %s\n", p->username); -	res = update_call_counter(p, INC_CALL_RINGING); 	if ( res != -1 ) { 		p->callingpres = ast->cid.cid_pres; 		p->jointcapability = ast_translate_available_formats(p->capability, p->prefcodec);@@ -12639,8 +12638,10 @@ 		resp = 183;   	/* Any response between 100 and 199 is PROCEEDING */- 	if (resp >= 100 && resp < 200 && p->invitestate == INV_CALLING)+ 	if (resp > 100 && resp < 200 && p->invitestate == INV_CALLING) {  		p->invitestate = INV_PROCEEDING;+		update_call_counter(p, INC_CALL_RINGING);+	}    	/* Final response, not 200 ? */  	if (resp >= 300 && (p->invitestate == INV_CALLING || p->invitestate == INV_PROCEEDING || p->invitestate == INV_EARLY_MEDIA ))