const char *to_host = NULL;
char *mwi_account = NULL;
char *dup_mwi_account = NULL;
+ char *display_m = NULL;
char *mwi_user = NULL;
char *mwi_host = NULL;
char *var = NULL;
if (to) {
display = to->a_display;
if (zstr(display)) {
- display = "\"user\"";
+ display = "\"\"";
}
}
}
+ if (display && !strchr(display, '"')) {
+ display_m = switch_mprintf("\"%q\"", display);
+ display = display_m;
+ }
+
+
if (sip->sip_path) {
path_val = sip_header_as_string(nua_handle_home(nh), (void *) sip->sip_path);
path_encoded_len = (int)(strlen(path_val) * 3) + 1;
end:
+ switch_safe_free(display_m);
switch_safe_free(dup_mwi_account);
switch_safe_free(utmp);