diff options
author | jeremy <jeremy@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-12-18 04:09:39 +0000 |
---|---|---|
committer | jeremy <jeremy@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-12-18 04:09:39 +0000 |
commit | b05939637ee49dcd0642eb86cec00fa1eb5cf3ff (patch) | |
tree | 5d7779820d636345a25b43cdc8290fbf0a040fc6 /channels/chan_h323.c | |
parent | c5d6a9b0c365b9202acd08bd496e08e37ae32187 (diff) |
Fix incoming caller*id. Bug #3077
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4473 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_h323.c')
-rwxr-xr-x | channels/chan_h323.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/channels/chan_h323.c b/channels/chan_h323.c index 5457f1702..6089653bd 100755 --- a/channels/chan_h323.c +++ b/channels/chan_h323.c @@ -807,9 +807,13 @@ static struct ast_channel *oh323_new(struct oh323_pvt *pvt, int state, const cha } if (!ast_strlen_zero(pvt->cid_num)) { ch->cid.cid_num = strdup(pvt->cid_num); + } else if (!ast_strlen_zero(pvt->cd.call_source_e164)) { + ch->cid.cid_num = strdup(pvt->cd.call_source_e164); } if (!ast_strlen_zero(pvt->cid_name)) { ch->cid.cid_name = strdup(pvt->cid_name); + } else if (!ast_strlen_zero(pvt->cd.call_source_name)) { + ch->cid.cid_name = strdup(pvt->cd.call_source_name); } if (!ast_strlen_zero(pvt->rdnis)) { ch->cid.cid_rdnis = strdup(pvt->rdnis); |