[Asterisk-cvs] asterisk/channels chan_sip.c,1.746,1.747

markster at lists.digium.com markster at lists.digium.com
Mon May 30 09:47:39 CDT 2005


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

Modified Files:
	chan_sip.c 
Log Message:
Fix attended transfer crash (bug #4404 with changes)


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.746
retrieving revision 1.747
diff -u -d -r1.746 -r1.747
--- chan_sip.c	30 May 2005 13:27:12 -0000	1.746
+++ chan_sip.c	30 May 2005 13:51:04 -0000	1.747
@@ -170,6 +170,7 @@
 	{ "To", "t" },
 	{ "Supported", "k" },
 	{ "Refer-To", "r" },
+	{ "Referred-By", "b" },
 	{ "Allow-Events", "u" },
 	{ "Event", "o" },
 	{ "Via", "v" },
@@ -5712,6 +5713,7 @@
 
 	if (!( (p_referred_by = get_header(req, "Referred-By")) && (h_referred_by = ast_strdupa(p_referred_by)) )) {
 		ast_log(LOG_WARNING, "No Referrred-By Header That's not illegal\n");
+		return -1;
 	} else {
 		referred_by = ditch_braces(h_referred_by);
 	}




More information about the svn-commits mailing list