mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 18:19:30 +00:00
Remove dead code from features.c; refactor pickup code into pickup.c
This patch does the following: * It moves the pickup code out of features.c and into pickup.c * It removes the vast majority of dead code out of features.c. In particular, this includes the parking code. (issue ASTERISK-22134) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@396060 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
11
main/cdr.c
11
main/cdr.c
@@ -916,17 +916,14 @@ static int snapshot_cep_changed(struct ast_channel_snapshot *old_snapshot,
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (strcmp(new_snapshot->context, old_snapshot->context)
|
||||
|| strcmp(new_snapshot->exten, old_snapshot->exten)
|
||||
|| new_snapshot->priority != old_snapshot->priority) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* When Party A is originated to an application and the application exits, the stack
|
||||
* will attempt to clear the application and restore the dummy originate application
|
||||
* of "AppDialX". Ignore application changes to AppDialX as a result.
|
||||
*/
|
||||
if (strcmp(new_snapshot->appl, old_snapshot->appl) && strncasecmp(new_snapshot->appl, "appdial", 7)) {
|
||||
if (strcmp(new_snapshot->appl, old_snapshot->appl) && strncasecmp(new_snapshot->appl, "appdial", 7)
|
||||
&& (strcmp(new_snapshot->context, old_snapshot->context)
|
||||
|| strcmp(new_snapshot->exten, old_snapshot->exten)
|
||||
|| new_snapshot->priority != old_snapshot->priority)) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user