Experimental crypto feature: Support for libvootp
[lcr.git] / sip.cpp
diff --git a/sip.cpp b/sip.cpp
index 4e33421..640631b 100644 (file)
--- a/sip.cpp
+++ b/sip.cpp
@@ -597,10 +597,15 @@ we only support alaw and ulaw!
 /* receive from remote */
 int Psip::bridge_rx(unsigned char *data, int len)
 {
+       int ret;
+
        /* don't bridge, if tones are provided */
        if (p_tone_name[0])
                return -EBUSY;
 
+       if ((ret = Port::bridge_rx(data, len)))
+               return ret;
+
        /* write to rx buffer */
        while(len--) {
                p_s_rxdata[p_s_rxpos++] = flip[*data++];