SS5: removed star-release-feature
authorAndreas Eversberg <jolly@eversberg.eu>
Fri, 27 Nov 2015 08:01:27 +0000 (09:01 +0100)
committerAndreas Eversberg <jolly@eversberg.eu>
Tue, 15 Dec 2015 06:52:21 +0000 (07:52 +0100)
interface.c
ss5.cpp
ss5.h

index 4cc978c..ce05173 100644 (file)
@@ -1097,9 +1097,6 @@ static int inter_ss5(struct interface *interface, char *filename, int line, char
                if (!strcasecmp(element, "delay"))
                        ifport->ss5 |= SS5_FEATURE_DELAY;
                else
-               if (!strcasecmp(element, "starrelease"))
-                       ifport->ss5 |= SS5_FEATURE_STAR_RELEASE;
-               else
                if (!strcasecmp(element, "suppress"))
                        ifport->ss5 |= SS5_FEATURE_SUPPRESS;
                else {
diff --git a/ss5.cpp b/ss5.cpp
index 321f4f3..41a3126 100644 (file)
--- a/ss5.cpp
+++ b/ss5.cpp
@@ -1434,13 +1434,6 @@ void Pss5::pulse_ind(int on)
                        add_trace("digit", NULL, "%s", dial+1);
                        add_trace("pulses", NULL, "%d", p_m_s_pulsecount);
                        end_trace();
-                       /* special star release feature */
-                       if ((p_m_mISDNport->ss5 & SS5_FEATURE_STAR_RELEASE) && dial[1] == '*') {
-                               ss5_trace_header(p_m_mISDNport, this, SS5_DIALING_IND, p_m_b_channel);
-                               add_trace("star", NULL, "releases call");
-                               end_trace();
-                               goto star_release;
-                       }
                        if (p_state == PORT_STATE_IN_SETUP) {
                                /* sending digit as setup */
                                do_setup(dial, 0); /* include 'a' == KP1 */
@@ -1466,7 +1459,6 @@ void Pss5::pulse_ind(int on)
                                ss5_trace_header(p_m_mISDNport, this, SS5_DIALING_IND, p_m_b_channel);
                                add_trace("longtone", NULL, "releases call");
                                end_trace();
-                               star_release:
                                /* long pulse is gone, release current connection, if any */
                                while(p_epointlist) {
                                        message = message_create(p_serial, p_epointlist->epoint_id, PORT_TO_EPOINT, MESSAGE_RELEASE);
diff --git a/ss5.h b/ss5.h
index adedac7..d1ad962 100644 (file)
--- a/ss5.h
+++ b/ss5.h
@@ -16,7 +16,6 @@
 #define SS5_FEATURE_BELL               0x00000010
 #define SS5_FEATURE_PULSEDIALING       0x00000020
 #define SS5_FEATURE_DELAY              0x00000040
-#define SS5_FEATURE_STAR_RELEASE       0x00000080
 #define SS5_FEATURE_SUPPRESS           0x00000100
 
 /* SS5 port classes */