Adds screening of redirecting number
[lcr.git] / appbridge.cpp
index efad0d9..e94de02 100644 (file)
@@ -148,13 +148,13 @@ fail:
 #endif
 #ifdef WITH_GSM_MS
        if (interface_out->gsm_ms) {
-               port = new Pgsm_bs(PORT_TYPE_GSM_MS_OUT, portname, &port_settings, interface_out);
+               port = new Pgsm_ms(PORT_TYPE_GSM_MS_OUT, portname, &port_settings, interface_out);
        } else
 #endif
        {
+               char *ifname = interface_out->name;
 #ifdef WITH_MISDN
                struct mISDNport *mISDNport;
-               char *ifname = interface_out->name;
                int channel = 0;
                struct admin_list *admin;
                int earlyb;
@@ -199,7 +199,7 @@ fail:
                add_trace("interface", NULL, "%s", ifname);
                end_trace();
                cause = 31;
-               goto fail
+               goto fail;
 #endif
        }
        if (!port)