aboutsummaryrefslogtreecommitdiffstats
path: root/src/mgcp_hw.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mgcp_hw.c')
-rw-r--r--src/mgcp_hw.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mgcp_hw.c b/src/mgcp_hw.c
index ea33bdc..bcda02e 100644
--- a/src/mgcp_hw.c
+++ b/src/mgcp_hw.c
@@ -52,6 +52,16 @@ int mgcp_hw_init()
return 0;
}
+int mgcp_hw_loop(int trunk, int timeslot)
+{
+#ifdef NO_UNIPORTE
+ return 0;
+#else
+ return PTI_ConnectHSCM(PTI_HSCM_TRUNK + trunk, timeslot - 1,
+ PTI_HSCM_TRUNK + trunk, timeslot - 1, 1, 1);
+#endif
+}
+
int mgcp_hw_connect(int port, int trunk, int timeslot)
{
#ifdef NO_UNIPORTE