[asterisk-commits] mmichelson: branch group/issue8824 r143889 - /team/group/issue8824/channels/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Sep 22 11:58:59 CDT 2008


Author: mmichelson
Date: Mon Sep 22 11:58:58 2008
New Revision: 143889

URL: http://svn.digium.com/view/asterisk?view=rev&rev=143889
Log:
Need to add the word "reason" to the diversion
header we send


Modified:
    team/group/issue8824/channels/chan_sip.c

Modified: team/group/issue8824/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/team/group/issue8824/channels/chan_sip.c?view=diff&rev=143889&r1=143888&r2=143889
==============================================================================
--- team/group/issue8824/channels/chan_sip.c (original)
+++ team/group/issue8824/channels/chan_sip.c Mon Sep 22 11:58:58 2008
@@ -9139,7 +9139,7 @@
 	if (ast_strlen_zero(diverting_name)) {
 		snprintf(header_text, sizeof(header_text), "<sip:%s@%s>;reason=\"%s\"", diverting_number, pvt->fromdomain, reason);
 	} else {
-		snprintf(header_text, sizeof(header_text), "\"%s\" <sip:%s@%s>;\"%s\"", diverting_name, diverting_number, pvt->fromdomain, reason);
+		snprintf(header_text, sizeof(header_text), "\"%s\" <sip:%s@%s>;reason=\"%s\"", diverting_name, diverting_number, pvt->fromdomain, reason);
 	}
 
 	add_header(req, "Diversion", header_text);




More information about the asterisk-commits mailing list