Adds screening of redirecting number
[lcr.git] / apppbx.cpp
index bacdba9..6cf2c92 100644 (file)
@@ -753,7 +753,7 @@ void EndpointAppPBX::out_setup(int cfnr)
                                earlyb = (interface->is_earlyb == IS_YES);
                        } else
 #endif
-#ifdef WITH_GSM_MS
+#ifdef WITH_SIP
                        if (interface->sip) {
                                SPRINT(portname, "%s-%d-out", interface->name, 0);
                                port = new Psip(PORT_TYPE_SIP_OUT, portname, &port_settings, interface);
@@ -1021,7 +1021,7 @@ void EndpointAppPBX::out_setup(int cfnr)
                                earlyb = (interface->is_earlyb == IS_YES);
                        } else
 #endif
-#ifdef WITH_GSM_MS
+#ifdef WITH_SIP
                        if (interface->sip) {
                                SPRINT(portname, "%s-%d-out", interface->name, 0);
                                port = new Psip(PORT_TYPE_SIP_OUT, portname, &port_settings, interface);
@@ -1344,6 +1344,7 @@ void EndpointAppPBX::port_setup(struct port_list *portlist, int message_type, un
        if (e_callerinfo.interface[0]) {
                do_screen(0, e_callerinfo.id, sizeof(e_callerinfo.id), &e_callerinfo.ntype, &e_callerinfo.present, e_callerinfo.interface);
                do_screen(0, e_callerinfo.id2, sizeof(e_callerinfo.id2), &e_callerinfo.ntype2, &e_callerinfo.present2, e_callerinfo.interface);
+               do_screen(0, e_redirinfo.id, sizeof(e_redirinfo.id), &e_redirinfo.ntype, &e_redirinfo.present, e_callerinfo.interface);
        }
 
        /* process extension */