diff options
author | Matthew Fredrickson <creslin@digium.com> | 2007-10-12 19:41:39 +0000 |
---|---|---|
committer | Matthew Fredrickson <creslin@digium.com> | 2007-10-12 19:41:39 +0000 |
commit | 24e2567e2d56013593fa0e07a059dbeadec77fe6 (patch) | |
tree | dca8e758824a08f2de1daaa8b42aeec1a6d92dc4 /channels | |
parent | d11d2ad834f7c5c95aee7051e9e7f8c85ee10278 (diff) |
Trying to finish the last of the charge_number patch up #10916
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@85526 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_zap.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c index fd54b8eeb..d805745c1 100644 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -2243,6 +2243,7 @@ static int zt_call(struct ast_channel *ast, char *rdest, int timeout) int called_nai_strip; char ss7_calling_nai; int calling_nai_strip; + const char *charge_str = NULL; c = strchr(dest, '/'); if (c) @@ -2306,6 +2307,12 @@ static int zt_call(struct ast_channel *ast, char *rdest, int timeout) isup_set_oli(p->ss7call, ast->cid.cid_ani2); isup_init_call(p->ss7->ss7, p->ss7call, p->cic, p->dpc); + /* Set the charge number if it is set */ + charge_str = pbx_builtin_getvar_helper(ast, "SS7_CHARGE_NUMBER"); + if (charge_str) + isup_set_charge(p->ss7call, charge_str, SS7_ANI_CALLING_PARTY_SUB_NUMBER, 0x10); + + isup_iam(p->ss7->ss7, p->ss7call); ast_setstate(ast, AST_STATE_DIALING); ss7_rel(p->ss7); |