(closes issue #17868)
Reported by: francesco_r
Patches:
issue_17868.diff uploaded by dvossel (license 671)
Tested by: francesco_r
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@282668
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
int need = strlen(caller->cid.cid_num) + strlen(p->fromdomain) + sizeof("sip:@");
local_target = alloca(need);
snprintf(local_target, need, "sip:%s@%s", caller->cid.cid_num, p->fromdomain);
- local_display = ast_strdupa(caller->cid.cid_name);
+ if (!(ast_strlen_zero(caller->cid.cid_name))) {
+ local_display = ast_strdupa(caller->cid.cid_name);
+ }
ast_channel_unlock(caller);
caller = NULL;
}