mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-15 00:41:02 +00:00
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
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user