]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add quotes to vm_cc command generated internally to escape spaces in the caller id...
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 13 Sep 2010 15:41:27 +0000 (10:41 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 13 Sep 2010 15:41:37 +0000 (10:41 -0500)
src/mod/applications/mod_voicemail/mod_voicemail.c

index 732059aff427019f2c52cb23037f6a91aba0b3e5..069cfd8d9fbf70bb060e36b2d9e320e5ad0210dd 100644 (file)
@@ -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) {