static int __has_voicemail(const char *context, const char *mailbox, const char *folder, int shortcircuit);
#endif
-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++) {
#endif
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 (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));
}
if ((p = vm_mkftemp(tmp)) == NULL) {