aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_voicemail.c
diff options
context:
space:
mode:
authordvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b>2009-12-04 17:21:34 +0000
committerdvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b>2009-12-04 17:21:34 +0000
commit8cf18995fd9a8db33e1a0ab7206b837049d7c605 (patch)
treedaa34c80c320047fc86fc819f441a9bef2371d20 /apps/app_voicemail.c
parent787c56eb3ef01d79701714a6d41af70526d33856 (diff)
document and rename strip_control() in app_voicemail
(closes issue #16291) Reported by: wdoekes git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@233116 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_voicemail.c')
-rw-r--r--apps/app_voicemail.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index 591199f2e..54465e72b 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -582,7 +582,13 @@ static int adsiver = 1;
static char emaildateformat[32] = "%A, %B %d, %Y at %r";
-static char *strip_control(const char *input, char *buf, size_t buflen)
+/*!
+ * \brief Strips control and non 7-bit clean characters from input string.
+ *
+ * \note To map control and none 7-bit characters to a 7-bit clean characters
+ * please use ast_str_encode_mine().
+ */
+static char *strip_control_and_high(const char *input, char *buf, size_t buflen)
{
char *bufptr = buf;
for (; *input; input++) {
@@ -3198,10 +3204,10 @@ static void make_email_file(FILE *p, char *srcemail, struct ast_vm_user *vmu, in
passdata2 = alloca(len_passdata2);
if (cidnum) {
- strip_control(cidnum, enc_cidnum, sizeof(enc_cidnum));
+ strip_control_and_high(cidnum, enc_cidnum, sizeof(enc_cidnum));
}
if (cidname) {
- strip_control(cidname, enc_cidname, sizeof(enc_cidname));
+ strip_control_and_high(cidname, enc_cidname, sizeof(enc_cidname));
}
gethostname(host, sizeof(host) - 1);
if (strchr(srcemail, '@'))