diff options
author | Matthew Fredrickson <creslin@digium.com> | 2009-04-28 22:07:24 +0000 |
---|---|---|
committer | Matthew Fredrickson <creslin@digium.com> | 2009-04-28 22:07:24 +0000 |
commit | a082ad616f1c35e8a2449e27a45c08e36b862f86 (patch) | |
tree | 748a292364ece9216574be7a58cb7b4522ec61f1 /channels/chan_dahdi.c | |
parent | 6389ec15fb7414c16942ecbe1d023aa59a82ebba (diff) |
Add support setting CPC from channel variable
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@190947 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_dahdi.c')
-rw-r--r-- | channels/chan_dahdi.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c index 0c01c795e..ab6386a24 100644 --- a/channels/chan_dahdi.c +++ b/channels/chan_dahdi.c @@ -3434,6 +3434,7 @@ static int dahdi_call(struct ast_channel *ast, char *rdest, int timeout) const char *call_ref_id = NULL; const char *call_ref_pc = NULL; const char *send_far = NULL; + const char *calling_party_category = NULL; c = strchr(dest, '/'); if (c) { @@ -3543,6 +3544,10 @@ static int dahdi_call(struct ast_channel *ast, char *rdest, int timeout) call_ref_pc ? atoi(call_ref_pc) : 0); } + calling_party_category = pbx_builtin_getvar_helper(ast, "SS7_CALLING_PARTY_CATEGORY"); + if (calling_party_category) + isup_set_calling_party_category(p->ss7call, atoi(calling_party_category)); + send_far = pbx_builtin_getvar_helper(ast, "SS7_SEND_FAR"); if ((send_far) && ((strncmp("NO", send_far, strlen(send_far))) != 0 )) (isup_far(p->ss7->ss7, p->ss7call)); |