diff options
Diffstat (limited to 'channels/chan_h323.c')
-rw-r--r-- | channels/chan_h323.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/channels/chan_h323.c b/channels/chan_h323.c index 1866ce038..74734a589 100644 --- a/channels/chan_h323.c +++ b/channels/chan_h323.c @@ -1082,7 +1082,10 @@ static struct ast_channel *__oh323_new(struct oh323_pvt *pvt, int state, const c /* Don't use ast_set_callerid() here because it will * generate a needless NewCallerID event */ - ch->caller.ani = ast_strdup(cid_num); + if (!ast_strlen_zero(cid_num)) { + ch->caller.ani.number.valid = 1; + ch->caller.ani.number.str = ast_strdup(cid_num); + } if (pvt->cd.redirect_reason >= 0) { ch->redirecting.from.number.valid = 1; |