X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=appbridge.cpp;h=cc8d699c7c350196df9ba8f8196b3c4fb7fbd9e0;hp=1202fc9b30c743cf1c8558c1adbf4aeff6ca86dd;hb=79bd731c0db3e3202cfeed2af3fb217ae744b70f;hpb=7f0d14c706328e1ff74fe8b8c16ae54407cc8055 diff --git a/appbridge.cpp b/appbridge.cpp index 1202fc9..cc8d699 100644 --- a/appbridge.cpp +++ b/appbridge.cpp @@ -174,7 +174,6 @@ fail: #ifdef WITH_MISDN struct mISDNport *mISDNport; int channel = 0; - int earlyb; int mode = B_MODE_TRANSPARENT; /* hunt for mISDNport and create Port */ @@ -193,8 +192,12 @@ fail: port = ss5_hunt_line(mISDNport); else #endif - port = new Pdss1((mISDNport->ntmode)?PORT_TYPE_DSS1_NT_OUT:PORT_TYPE_DSS1_TE_OUT, mISDNport, portname, &port_settings, mISDNport->ifport->interface, channel, mISDNport->ifport->channel_force, mode); - earlyb = mISDNport->earlyb; +#ifdef ISDN_P_FXS_POTS + if (mISDNport->pots) + port = new Pfxs(PORT_TYPE_POTS_FXS_OUT, mISDNport, portname, &port_settings, mISDNport->ifport->interface, mode); + else +#endif + port = new Pdss1((mISDNport->ntmode)?PORT_TYPE_DSS1_NT_OUT:PORT_TYPE_DSS1_TE_OUT, mISDNport, portname, &port_settings, mISDNport->ifport->interface, channel, mISDNport->ifport->channel_force, mode); #else trace_header("INTERFACE (has no function)", DIRECTION_NONE); add_trace("interface", NULL, "%s", ifname);