From: Anthony Minessale Date: Mon, 13 Sep 2010 15:41:27 +0000 (-0500) Subject: add quotes to vm_cc command generated internally to escape spaces in the caller id... X-Git-Tag: v1.2-rc1~344^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f012813efd18fe7e46a359fe80d2c5287a6c6da;p=thirdparty%2Ffreeswitch.git add quotes to vm_cc command generated internally to escape spaces in the caller id name --- diff --git a/src/mod/applications/mod_voicemail/mod_voicemail.c b/src/mod/applications/mod_voicemail/mod_voicemail.c index 732059aff4..069cfd8d9f 100644 --- a/src/mod/applications/mod_voicemail/mod_voicemail.c +++ b/src/mod/applications/mod_voicemail/mod_voicemail.c @@ -3172,7 +3172,7 @@ static switch_status_t voicemail_leave_main(switch_core_session_t *session, vm_p switch_event_destroy(&vars); if (status == SWITCH_STATUS_SUCCESS) { if ((vm_cc = switch_channel_get_variable(channel, "vm_cc"))) { - char *cmd = switch_core_session_sprintf(session, "%s %s %s %s %s@%s %s", + char *cmd = switch_core_session_sprintf(session, "%s %s %s '%s' %s@%s %s", vm_cc, file_path, caller_id_number, caller_id_name, id, domain_name, read_flags); if (voicemail_inject(cmd, session) == SWITCH_STATUS_SUCCESS) {