[asterisk-commits] mmichelson: branch group/v14_colp r150553 - /team/group/v14_colp/channels/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Oct 17 09:35:29 CDT 2008
Author: mmichelson
Date: Fri Oct 17 09:35:29 2008
New Revision: 150553
URL: http://svn.digium.com/view/asterisk?view=rev&rev=150553
Log:
Don't place quotation marks around the reason
parameter in the Diversion header.
Modified:
team/group/v14_colp/channels/chan_sip.c
Modified: team/group/v14_colp/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/team/group/v14_colp/channels/chan_sip.c?view=diff&rev=150553&r1=150552&r2=150553
==============================================================================
--- team/group/v14_colp/channels/chan_sip.c (original)
+++ team/group/v14_colp/channels/chan_sip.c Fri Oct 17 09:35:29 2008
@@ -7245,9 +7245,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), reason);
+ snprintf(header_text, sizeof(header_text), "<sip:%s@%s>;reason=%s", diverting_number, ast_inet_ntoa(pvt->ourip), reason);
} else {
- snprintf(header_text, sizeof(header_text), "\"%s\" <sip:%s@%s>;reason=\"%s\"", diverting_name, diverting_number, ast_inet_ntoa(pvt->ourip), reason);
+ snprintf(header_text, sizeof(header_text), "\"%s\" <sip:%s@%s>;reason=%s", diverting_name, diverting_number, ast_inet_ntoa(pvt->ourip), reason);
}
add_header(req, "Diversion", header_text);
More information about the asterisk-commits
mailing list