Forward DTMF as message directly from GSM BS to SIP.
[lcr.git] / sip.cpp
diff --git a/sip.cpp b/sip.cpp
index e39f19c..48ce05d 100644 (file)
--- a/sip.cpp
+++ b/sip.cpp
@@ -1027,17 +1027,9 @@ int Psip::message_dtmf(unsigned int epoint_id, int message_id, union parameter *
 
 int Psip::message_epoint(unsigned int epoint_id, int message_id, union parameter *param)
 {
-       class Endpoint *epoint;
-
        if (Port::message_epoint(epoint_id, message_id, param))
                return 1;
 
-       epoint = find_epoint_id(epoint_id);
-       if (!epoint) {
-               PDEBUG(DEBUG_SIP, "PORT(%s) no endpoint object found where the message is from.\n", p_name);
-               return 0;
-       }
-
        switch(message_id) {
                case MESSAGE_ALERTING: /* call is ringing on LCR side */
                if (p_state != PORT_STATE_IN_SETUP