diff options
author | rmudgett <rmudgett@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-07-14 16:58:03 +0000 |
---|---|---|
committer | rmudgett <rmudgett@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-07-14 16:58:03 +0000 |
commit | d93fa33a75ef977b9425f11e4d9c69719fea0a9f (patch) | |
tree | 804c18f5b1b87b38928ba78b993358d14926f97e /channels/chan_h323.c | |
parent | c7be6954611c1b6ccfbf8a4f9ddf5f9e4f58a902 (diff) |
Expand the caller ANI field to an ast_party_id
Expand the ani field in ast_party_caller and ast_party_connected_line to
an ast_party_id.
This is an extension to the ast_callerid restructuring patch in review:
https://reviewboard.asterisk.org/r/702/
Review: https://reviewboard.asterisk.org/r/744/
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@276393 f38db490-d61c-443f-a65b-d21fe96a405b
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; |