From f561107add7dd2c5d45c9fb4c6b01836d358b621 Mon Sep 17 00:00:00 2001 From: Jeremy McNamara Date: Wed, 23 Jul 2003 20:00:48 +0000 Subject: [PATCH] tweak to make user->callerid work properly git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1207 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/h323/chan_h323.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channels/h323/chan_h323.c b/channels/h323/chan_h323.c index 9ad2d48b84..017a164361 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);