*/
void EndpointAppPBX::action_init_pots_retrieve(void)
{
+#ifdef ISDN_P_FXS_POTS
struct route_param *rparam;
struct port_list *portlist = ea_endpoint->ep_portlist;
class Port *port;
goto disconnect;
}
-#ifdef ISDN_P_FXS_POTS
/* release our call */
ourfxs->hangup_ind(0);
/* retrieve selected call */
fxs->retrieve_ind(0);
-#endif
/* split if selected call is member of a 3pty */
epoint = find_epoint_id(ACTIVE_EPOINT(fxs->p_epointlist));
PDEBUG(DEBUG_EPOINT, "EPOINT(%d) try spliting 3pty. this may fail because we don't have a 3pty.\n", epoint->ep_serial);
((class EndpointAppPBX *)epoint->ep_app)->split_3pty();
}
+#endif
}
*/
void EndpointAppPBX::action_init_pots_release(void)
{
+#ifdef ISDN_P_FXS_POTS
struct route_param *rparam;
struct port_list *portlist = ea_endpoint->ep_portlist;
class Port *port;
e_action = NULL;
#endif
-#ifdef ISDN_P_FXS_POTS
/* release selected call */
fxs->hangup_ind(0);
-#endif
/* indicate timeout, so next action will be processed */
process_dialing(1);
+#endif
}
*/
void EndpointAppPBX::action_init_pots_reject(void)
{
+#ifdef ISDN_P_FXS_POTS
struct port_list *portlist = ea_endpoint->ep_portlist;
class Port *port;
class Pfxs *ourfxs, *fxs;
goto disconnect;
}
-#ifdef ISDN_P_FXS_POTS
/* reject alerting call */
fxs->reject_ind(0);
-#endif
/* indicate timeout, so next action will be processed */
process_dialing(1);
+#endif
}
*/
void EndpointAppPBX::action_init_pots_answer(void)
{
+#ifdef ISDN_P_FXS_POTS
struct port_list *portlist = ea_endpoint->ep_portlist;
class Port *port;
class Pfxs *ourfxs, *fxs;
goto disconnect;
}
-#ifdef ISDN_P_FXS_POTS
/* release our call */
ourfxs->hangup_ind(0);
*/
void EndpointAppPBX::action_init_pots_3pty(void)
{
+#ifdef ISDN_P_FXS_POTS
struct port_list *portlist = ea_endpoint->ep_portlist;
class Port *port;
class Pfxs *ourfxs, *fxs, *fxs1 = NULL, *fxs2 = NULL;
goto disconnect;
}
-#ifdef ISDN_P_FXS_POTS
/* release our call */
ourfxs->hangup_ind(0);
-#endif
-#ifdef ISDN_P_FXS_POTS
/* retrieve latest active call */
if (fxs2->p_m_fxs_age > fxs1->p_m_fxs_age) {
fxs2->retrieve_ind(0);
fxs1->retrieve_ind(0);
epoint = find_epoint_id(ACTIVE_EPOINT(fxs2->p_epointlist));
}
-#else
- epoint = NULL;
-#endif
if (!epoint) {
trace_header("ACTION pots-3pty (interal error: no endpoint)", DIRECTION_NONE);
end_trace();
return;
}
+#endif
}
/* process pots-transfer
*/
void EndpointAppPBX::action_init_pots_transfer(void)
{
+#ifdef ISDN_P_FXS_POTS
struct route_param *rparam;
struct port_list *portlist = ea_endpoint->ep_portlist;
class Port *port;
goto disconnect;
}
-#ifdef ISDN_P_FXS_POTS
/* retrieve call */
if (fxs2->p_m_fxs_age > fxs1->p_m_fxs_age)
fxs2->retrieve_ind(0);
else
fxs1->retrieve_ind(0);
-#endif
/* bridge calls */
join_join_fxs();
+#endif
}