[svn-commits] mmichelson: branch group/issue8824 r150552 - /team/group/issue8824/channels/
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Fri Oct 17 09:34:14 CDT 2008
Author: mmichelson
Date: Fri Oct 17 09:34:14 2008
New Revision: 150552
URL: http://svn.digium.com/view/asterisk?view=rev&rev=150552
Log:
Don't place quotation marks around the reason
parameter of 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=150552&r1=150551&r2=150552
==============================================================================
--- team/group/issue8824/channels/chan_sip.c (original)
+++ team/group/issue8824/channels/chan_sip.c Fri Oct 17 09:34:14 2008
@@ -9462,9 +9462,9 @@
/* We at least have a number to place in the Diversion header, which is enough */
if (ast_strlen_zero(diverting_name)) {
- snprintf(header_text, sizeof(header_text), "<sip:%s@%s>;reason=\"%s\"", diverting_number, ast_inet_ntoa(pvt->ourip.sin_addr), reason);
+ snprintf(header_text, sizeof(header_text), "<sip:%s@%s>;reason=%s", diverting_number, ast_inet_ntoa(pvt->ourip.sin_addr), reason);
} else {
- snprintf(header_text, sizeof(header_text), "\"%s\" <sip:%s@%s>;reason=\"%s\"", diverting_name, diverting_number, ast_inet_ntoa(pvt->ourip.sin_addr), reason);
+ snprintf(header_text, sizeof(header_text), "\"%s\" <sip:%s@%s>;reason=%s", diverting_name, diverting_number, ast_inet_ntoa(pvt->ourip.sin_addr), reason);
}
add_header(req, "Diversion", header_text);
More information about the svn-commits
mailing list