diff options
Diffstat (limited to 'channels/h323')
-rwxr-xr-x | channels/h323/chan_h323.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/h323/chan_h323.c b/channels/h323/chan_h323.c index 9ad2d48b8..017a16436 100755 --- a/channels/h323/chan_h323.c +++ b/channels/h323/chan_h323.c @@ -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); |