[svn-commits] oej: branch oej/darjeeling-prack-1.8 r369510 - /team/oej/darjeeling-prack-1.8...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Jun 29 14:30:22 CDT 2012


Author: oej
Date: Fri Jun 29 14:30:18 2012
New Revision: 369510

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=369510
Log:
How on earth could this happen? Guess only the PRACK society knows.

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=369510&r1=369509&r2=369510
==============================================================================
--- team/oej/darjeeling-prack-1.8/channels/chan_sip.c (original)
+++ team/oej/darjeeling-prack-1.8/channels/chan_sip.c Fri Jun 29 14:30:18 2012
@@ -4195,9 +4195,12 @@
 
 }
 
+/*! \brief Active PRACK if supported by config and by other end */
 static void add_prack_respheader(struct sip_pvt *p, struct sip_request *req, int reliable)
 {
-	if (p->initreq.method == SIP_INVITE && ast_test_flag(&p->flags[2], SIP_PAGE3_PRACK)) {
+	/* If method is INVITE and it contains Supported: 100 rel and we have enabled PRACK */
+	if (p->initreq.method == SIP_INVITE && p->sipoptions & SIP_OPT_100REL && ast_test_flag(&p->flags[2], SIP_PAGE3_PRACK)) {
+		/* Check if the invite has 100 REL supported here */
 		if (reliable == XMIT_PRACK) {
 			char buf[SIPBUFSIZE/2];
 			if (p->rseq == 0) {




More information about the svn-commits mailing list