[asterisk-commits] mjordan: branch certified-1.8.15 r375589 - in /certified/branches/1.8.15: ./ ...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Nov 2 10:26:12 CDT 2012


Author: mjordan
Date: Fri Nov  2 10:26:07 2012
New Revision: 375589

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=375589
Log:
Multiple revisions 371357,371469,371860,372628

........
  r371357 | jrose | 2012-08-16 13:57:27 -0500 (Thu, 16 Aug 2012) | 8 lines
  
  chan_sip: Use pvt outgoing_call variable to set Remote-Party-ID Header
  
  Previously the pvt SIP_OUTGOING flag was used instead, which will frequently
  flip during reinvites.
  
  (closes issue AST-897)
  Reported by: Thomas Arimont
........
  r371469 | mjordan | 2012-08-17 13:51:43 -0500 (Fri, 17 Aug 2012) | 14 lines
  
  Fix memory leak in XML documentation
  
  When formatting documentation fields, the XML documentation parser calls
  xmldoc_get_formatted.  This function allocates a string buffer at the
  beginning of its routine.  Unfortunately, on certain code paths, it also
  calls xmldoc_string_cleanup, which assumes that it will create the string
  buffer.  The previously allocated string buffer is then leaked by the
  xmldoc_string_cleanup routine.
  
  Now: we don't do that.
  
  (closes issue AST-932)
  Reported by: Alexander Homig
........
  r371860 | rmudgett | 2012-08-29 13:22:24 -0500 (Wed, 29 Aug 2012) | 12 lines
  
  Fix hangup cause passthrough regression.
  
  The v1.8 -r369258 change to fix the F and F(x) action logic introduced a
  regression in passing the hangup cause from the called channel to the
  caller channel.
  
  (closes issue ASTERISK-20287)
  Reported by: Konstantin Suvorov
  Patches:
        app_dial_hangupcause.patch (license #6421) patch uploaded by Konstantin Suvorov (modified)
  Tested by: rmudgett
........
  r372628 | rmudgett | 2012-09-07 17:06:29 -0500 (Fri, 07 Sep 2012) | 5 lines
  
  Remove annoying unconditional debug message from INC/DEC functions.
  
  (closes issue AST-1001)
  Reported by: Guenther Kelleter
........

Merged revisions 371357,371469,371860,372628 from http://svn.asterisk.org/svn/asterisk/branches/1.8

Modified:
    certified/branches/1.8.15/   (props changed)
    certified/branches/1.8.15/apps/app_dial.c
    certified/branches/1.8.15/channels/chan_sip.c
    certified/branches/1.8.15/funcs/func_math.c
    certified/branches/1.8.15/main/xmldoc.c

Propchange: certified/branches/1.8.15/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.

Modified: certified/branches/1.8.15/apps/app_dial.c
URL: http://svnview.digium.com/svn/asterisk/certified/branches/1.8.15/apps/app_dial.c?view=diff&rev=375589&r1=375588&r2=375589
==============================================================================
--- certified/branches/1.8.15/apps/app_dial.c (original)
+++ certified/branches/1.8.15/apps/app_dial.c Fri Nov  2 10:26:07 2012
@@ -2996,9 +2996,9 @@
 					/* The peer is now running its own PBX. */
 					goto out;
 				}
-			} else {
-				chan->hangupcause = peer->hangupcause;
-			}
+			}
+		} else if (!ast_check_hangup(chan)) {
+			chan->hangupcause = peer->hangupcause;
 		}
 		ast_hangup(peer);
 	}

Modified: certified/branches/1.8.15/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/certified/branches/1.8.15/channels/chan_sip.c?view=diff&rev=375589&r1=375588&r2=375589
==============================================================================
--- certified/branches/1.8.15/channels/chan_sip.c (original)
+++ certified/branches/1.8.15/channels/chan_sip.c Fri Nov  2 10:26:07 2012
@@ -11082,7 +11082,7 @@
 		}
 		add_header(req, "P-Asserted-Identity", ast_str_buffer(tmp));
 	} else {
-		ast_str_set(&tmp, -1, "\"%s\" <sip:%s@%s>;party=%s", lid_name, lid_num, fromdomain, ast_test_flag(&p->flags[0], SIP_OUTGOING) ? "calling" : "called");
+		ast_str_set(&tmp, -1, "\"%s\" <sip:%s@%s>;party=%s", lid_name, lid_num, fromdomain, p->outgoing_call ? "calling" : "called");
 
 		switch (lid_pres) {
 		case AST_PRES_ALLOWED_USER_NUMBER_NOT_SCREENED:

Modified: certified/branches/1.8.15/funcs/func_math.c
URL: http://svnview.digium.com/svn/asterisk/certified/branches/1.8.15/funcs/func_math.c?view=diff&rev=375589&r1=375588&r2=375589
==============================================================================
--- certified/branches/1.8.15/funcs/func_math.c (original)
+++ certified/branches/1.8.15/funcs/func_math.c Fri Nov  2 10:26:07 2012
@@ -421,8 +421,6 @@
 		modify_orig = 1;
 	}
 
-	ast_log(LOG_NOTICE, "The value is now: %d\n", int_value);
-
 	if (snprintf(returnvar, sizeof(returnvar), "%d", int_value) > 0) {
 		pbx_builtin_setvar_helper(chan, data, returnvar);
 		if (modify_orig) {

Modified: certified/branches/1.8.15/main/xmldoc.c
URL: http://svnview.digium.com/svn/asterisk/certified/branches/1.8.15/main/xmldoc.c?view=diff&rev=375589&r1=375588&r2=375589
==============================================================================
--- certified/branches/1.8.15/main/xmldoc.c (original)
+++ certified/branches/1.8.15/main/xmldoc.c Fri Nov  2 10:26:07 2012
@@ -1798,14 +1798,16 @@
 {
 	struct ast_xml_node *tmp;
 	const char *notcleanret, *tmpstr;
-	struct ast_str *ret = ast_str_create(128);
+	struct ast_str *ret;
 
 	if (raw_output) {
+		/* xmldoc_string_cleanup will allocate the ret object */
 		notcleanret = ast_xml_get_text(node);
 		tmpstr = notcleanret;
 		xmldoc_string_cleanup(ast_skip_blanks(notcleanret), &ret, 0);
 		ast_xml_free_text(tmpstr);
 	} else {
+		ret = ast_str_create(128);
 		for (tmp = ast_xml_node_get_children(node); tmp; tmp = ast_xml_node_get_next(tmp)) {
 			/* if found, parse a <para> element. */
 			if (xmldoc_parse_para(tmp, "", "\n", &ret)) {




More information about the asterisk-commits mailing list