[asterisk-commits] oej: branch oej/darjeeling-prack-1.8 r369431 - /team/oej/darjeeling-prack-1.8...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jun 27 13:35:34 CDT 2012


Author: oej
Date: Wed Jun 27 13:35:31 2012
New Revision: 369431

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=369431
Log:
Fixing smal stuff

Modified:
    team/oej/darjeeling-prack-1.8/channels/chan_sip.c

Modified: team/oej/darjeeling-prack-1.8/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/oej/darjeeling-prack-1.8/channels/chan_sip.c?view=diff&rev=369431&r1=369430&r2=369431
==============================================================================
--- team/oej/darjeeling-prack-1.8/channels/chan_sip.c (original)
+++ team/oej/darjeeling-prack-1.8/channels/chan_sip.c Wed Jun 27 13:35:31 2012
@@ -4161,7 +4161,7 @@
 {
 	int res;
 
-	if (ast_test_flag(&p->flags[2], SIP_PAGE3_PRACK)) {
+	if (p->initreq.method == SIP_INVITE && ast_test_flag(&p->flags[2], SIP_PAGE3_PRACK)) {
 		if (reliable == XMIT_PRACK) {
 			ast_debug(2, "=!=!=!=!=!=!=!= PRACK WILL BE USED HERE. Exactly HERE\n");
 		} else {
@@ -21085,7 +21085,7 @@
 	struct ast_channel *owner;
 	int sipmethod;
 	const char *c = get_header(req, "Cseq");
-	const char *required = get_header(req, "Required");
+	const char *required = get_header(req, "Require");
 
 	/* GCC 4.2 complains if I try to cast c as a char * when passing it to ast_skip_nonblanks, so make a copy of it */
 	char *c_copy = ast_strdupa(c);




More information about the asterisk-commits mailing list