diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2012-01-22 10:16:29 +0000 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2012-01-22 11:44:33 +0100 |
commit | c96c57b8d587e466fe63026fc210bf7ca6a5e7cf (patch) | |
tree | c663db650ab909fb7406df426dd850ae99fd09fe /src/mgcp_hw.c | |
parent | 765c48aba794bc86f83e617ab68ab64f9f2d5ecf (diff) |
mgcp: Implement to loop timeslots when not used for audio
Deal with broken ISUP switches and allow to loop endpoints
when they are not connected. Introduce an option to do it.
Diffstat (limited to 'src/mgcp_hw.c')
-rw-r--r-- | src/mgcp_hw.c | 10 |
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 |