diff options
author | Richard Mudgett <rmudgett@digium.com> | 2010-07-14 16:58:03 +0000 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2010-07-14 16:58:03 +0000 |
commit | cf7bbcc4c667a1fe907b0ec71e9a4fed506b8c23 (patch) | |
tree | 804c18f5b1b87b38928ba78b993358d14926f97e /channels/sig_pri.c | |
parent | e2599bc42c07a6a5611a3804ce08495ccdc72b94 (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: https://origsvn.digium.com/svn/asterisk/trunk@276393 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/sig_pri.c')
-rw-r--r-- | channels/sig_pri.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/channels/sig_pri.c b/channels/sig_pri.c index 6b6a25e6d..26e6e3eda 100644 --- a/channels/sig_pri.c +++ b/channels/sig_pri.c @@ -223,7 +223,12 @@ static void sig_pri_set_caller_id(struct sig_pri_chan *p) caller.id.subaddress.str = p->cid_subaddr; } caller.id.tag = p->user_tag; - caller.ani = p->cid_ani; + + caller.ani.number.str = p->cid_ani; + //caller.ani.number.plan = p->xxx; + //caller.ani.number.presentation = p->xxx; + caller.ani.number.valid = 1; + caller.ani2 = p->cid_ani2; p->calls->set_callerid(p->chan_pvt, &caller); } |