summaryrefslogtreecommitdiff
path: root/channels/sig_ss7.c
diff options
context:
space:
mode:
authorKinsey Moore <kmoore@digium.com>2012-07-06 22:03:44 +0000
committerKinsey Moore <kmoore@digium.com>2012-07-06 22:03:44 +0000
commitdb59a3f12399fad704fb8977ab980f372c073068 (patch)
treed49fc35070b46d5eb377d69bbba7e60a8e1027dd /channels/sig_ss7.c
parent49aa47171b03dd0425d7afa200e12870c1beddae (diff)
Remove unnecessary generation of informational cause frames
It is not necessary to generate information cause code frames on every protocol event that occurs. This removes all the instances where the frame was not conveying a cause code and was instead just conveying a protocol-specific message. This also corrects the generation of the message associated with disconnects for MFC/R2 to use the MFC/R2 specific text for the disconnect cause. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@369765 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/sig_ss7.c')
-rw-r--r--channels/sig_ss7.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/channels/sig_ss7.c b/channels/sig_ss7.c
index 24de8057f..6abca5433 100644
--- a/channels/sig_ss7.c
+++ b/channels/sig_ss7.c
@@ -1328,28 +1328,6 @@ void *ss7_linkset(void *data)
break;
}
- if (chanpos > -1) {
- switch (e->e) {
- /* handled above */
- case ISUP_EVENT_IAM:
- case ISUP_EVENT_REL:
- case ISUP_EVENT_RSC:
- break;
- default:
- p = linkset->pvts[chanpos];
- sig_ss7_lock_private(p);
- sig_ss7_lock_owner(linkset, chanpos);
- if (p->owner) {
- char *event_str = ss7_event2str(e->e);
-
- snprintf(cause_str, sizeof(cause_str), "SS7 %s", event_str);
- ss7_queue_pvt_cause_data(p->owner, cause_str);
- ast_channel_unlock(p->owner);
- }
- sig_ss7_unlock_private(p);
- }
- }
-
/* Call ID stuff needs to be cleaned up here */
if (callid) {
callid = ast_callid_unref(callid);