aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authormattf <mattf@f38db490-d61c-443f-a65b-d21fe96a405b>2007-09-06 16:38:54 +0000
committermattf <mattf@f38db490-d61c-443f-a65b-d21fe96a405b>2007-09-06 16:38:54 +0000
commit28497da2c966b13c9352ced824fb226e8f2f385c (patch)
tree955dbea9b4c8408a16f3a800f4a798e608442269 /channels
parent44ee1bffca58c5bfcffffde3b122a1d899513252 (diff)
Patch on 10575. Add support for unequipped CIC (UCIC) message as well as improve some of our CIC flags in chan_zap
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@81742 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_zap.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c
index 45337874e..f7efa069f 100644
--- a/channels/chan_zap.c
+++ b/channels/chan_zap.c
@@ -8831,7 +8831,22 @@ static void *ss7_linkset(void *data)
ss7_block_cics(linkset, e->cgu.startcic, e->cgu.endcic, e->cgu.status, 0);
isup_cgua(linkset->ss7, e->cgu.startcic, e->cgu.endcic, p->dpc, e->cgu.status, e->cgu.type);
break;
+ case ISUP_EVENT_UCIC:
+ ast_verb(3,"Got UCIC message on CIC %d\n", e->ucic.cic);
+ chanpos = ss7_find_cic(linkset, e->ucic.cic);
+ if (chanpos < 0) {
+ ast_log(LOG_WARNING, "UCIC on unconfigured CIC %d\n", e->ucic.cic);
+ break;
+ }
+ p = linkset->pvts[chanpos];
+ ast_debug(1, "Unequiped Circuit Id Code on CIC %d\n", e->ucic.cic);
+ ast_mutex_lock(&p->lock);
+ p->remotelyblocked = 1;
+ p->inservice = 0;
+ ast_mutex_unlock(&p->lock); //doesn't require a SS7 acknowledgement
+ break;
case ISUP_EVENT_BLO:
+ ast_verb(3,"Got BLO acknowledgement from CIC %d\n", e->ubl.cic);
chanpos = ss7_find_cic(linkset, e->blo.cic);
if (chanpos < 0) {
ast_log(LOG_WARNING, "BLO on unconfigured CIC %d\n", e->blo.cic);
@@ -8841,10 +8856,12 @@ static void *ss7_linkset(void *data)
ast_debug(1, "Blocking CIC %d\n", e->blo.cic);
ast_mutex_lock(&p->lock);
p->remotelyblocked = 1;
+ p->inservice = 0;
ast_mutex_unlock(&p->lock);
isup_bla(linkset->ss7, e->blo.cic, p->dpc);
break;
case ISUP_EVENT_UBL:
+ ast_verb(3,"Got UBL acknowledgement from CIC %d\n", e->ubl.cic);
chanpos = ss7_find_cic(linkset, e->ubl.cic);
if (chanpos < 0) {
ast_log(LOG_WARNING, "UBL on unconfigured CIC %d\n", e->ubl.cic);
@@ -8854,6 +8871,7 @@ static void *ss7_linkset(void *data)
ast_debug(1, "Unblocking CIC %d\n", e->ubl.cic);
ast_mutex_lock(&p->lock);
p->remotelyblocked = 0;
+ p->inservice = 1;
ast_mutex_unlock(&p->lock);
isup_uba(linkset->ss7, e->ubl.cic, p->dpc);
break;