diff options
author | mattf <mattf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-05-13 20:11:20 +0000 |
---|---|---|
committer | mattf <mattf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-05-13 20:11:20 +0000 |
commit | b3dee045366c7f4dc013518fe7845f36d168f1c3 (patch) | |
tree | f3dc438379e84c8ab815c6e7d7ddcf3ef452e3ce /channels | |
parent | cace55a3dba852fde01355c9df0ad47b4af1d752 (diff) |
Add support for receiving calling party category
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@115939 f38db490-d61c-443f-a65b-d21fe96a405b
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 81166eeee..b72627921 100644 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -705,6 +705,7 @@ static struct zt_pvt { char lspi_ident[50]; unsigned int call_ref_ident; unsigned int call_ref_pc; + unsigned char calling_party_cat; int transcap; int cic; /*!< CIC associated with channel */ unsigned int dpc; /*!< CIC's DPC */ @@ -9238,6 +9239,11 @@ static void ss7_start_call(struct zt_pvt *p, struct zt_ss7 *linkset) /* Clear this after we set it */ p->call_ref_pc = 0; + snprintf(tmp, sizeof(tmp), "%d", p->calling_party_cat); + pbx_builtin_setvar_helper(c, "SS7_CALLING_PARTY_CATEGORY", tmp); + /* Clear this after we set it */ + p->call_ref_pc = 0; + if (!ast_strlen_zero(p->redirecting_num)) { pbx_builtin_setvar_helper(c, "SS7_REDIRECTING_NUMBER", p->redirecting_num); /* Clear this after we set it */ @@ -9534,6 +9540,7 @@ static void *ss7_linkset(void *data) ast_copy_string(p->orig_called_num, e->iam.orig_called_num, sizeof(p->orig_called_num)); ast_copy_string(p->redirecting_num, e->iam.redirecting_num, sizeof(p->redirecting_num)); ast_copy_string(p->generic_name, e->iam.generic_name, sizeof(p->generic_name)); + p->calling_party_cat = e->iam.calling_party_cat; /* Set DNID */ if (!ast_strlen_zero(e->iam.called_party_num)) |