tweak to make user->callerid work properly
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1207 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
9fd6ce9eba
commit
f561107add
|
@ -1006,7 +1006,7 @@ int setup_incoming_call(call_details_t cd)
|
|||
strncpy(p->context, user->context, sizeof(p->context)-1);
|
||||
p->bridge = user->bridge;
|
||||
|
||||
if (strlen(user->callerid) && strlen(p->callerid))
|
||||
if (strlen(user->callerid))
|
||||
strncpy(p->callerid, user->callerid, sizeof(p->callerid) - 1);
|
||||
else
|
||||
sprintf(p->callerid, "%s <%s>", p->cd.call_source_aliases, p->cd.call_source_e164);
|
||||
|
|
Loading…
Reference in New Issue