X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=appbridge.cpp;h=bc93a844406fa0d2f0a99aa18d7364863b05cdaf;hp=b69d47bc6dc9dd4f490426578911f462a604d157;hb=825ad6f887dc27eff5f01fd557ff59fe77f3bdeb;hpb=f6aea744f84e702b3469393f007b9e1bf25f6737 diff --git a/appbridge.cpp b/appbridge.cpp index b69d47b..bc93a84 100644 --- a/appbridge.cpp +++ b/appbridge.cpp @@ -193,8 +193,13 @@ 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, 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);