summaryrefslogtreecommitdiffstats
path: root/mISDN.cpp
diff options
context:
space:
mode:
authorSuper User2007-05-09 07:39:20 +0200
committerSuper User2007-05-09 07:39:20 +0200
commit559ff64e3062b70f27ddceba825f40642a6c5725 (patch)
tree5d1fcfb704616da846db41ec7985b84a32e0bfd1 /mISDN.cpp
parentonly for backup, still in coding state - no compile!!! (diff)
downloadlcr-559ff64e3062b70f27ddceba825f40642a6c5725.tar.gz
lcr-559ff64e3062b70f27ddceba825f40642a6c5725.tar.xz
lcr-559ff64e3062b70f27ddceba825f40642a6c5725.zip
backup work
Diffstat (limited to 'mISDN.cpp')
-rw-r--r--mISDN.cpp16
1 files changed, 10 insertions, 6 deletions
diff --git a/mISDN.cpp b/mISDN.cpp
index 5bb09d1..40d5204 100644
--- a/mISDN.cpp
+++ b/mISDN.cpp
@@ -550,12 +550,11 @@ void PmISDN::bchannel_receive(iframe_t *frm)
return;
}
- /* external incoming calls will not process any audio data unless
- * the call is connected OR inbandpattern feature is enabled.
+ /* calls will not process any audio data unless
+ * the call is connected OR tones feature is enabled.
*/
- if (p_type==PORT_TYPE_DSS1_TE_IN
- && p_state!=PORT_STATE_CONNECT
- && !options.inbandpattern)
+ if (p_state!=PORT_STATE_CONNECT
+ && !p_m_mISDNport->is_tones)
return;
#if 0
@@ -1388,7 +1387,7 @@ int mISDN_handler(void)
/*
* global function to add a new card (port)
*/
-struct mISDNport *mISDN_port_open(int port, int ptp)
+struct mISDNport *mISDN_port_open(int port, int ptp, int ptmp)
{
int ret;
unsigned char buff[1025];
@@ -1564,6 +1563,11 @@ struct mISDNport *mISDN_port_open(int port, int ptp)
{
PDEBUG(DEBUG_ISDN, "Port is point-to-point.\n");
mISDNport->ptp = ptp = 1;
+ if (ptmp && nt)
+ {
+ PDEBUG(DEBUG_ISDN, "Port is forced to point-to-multipoint.\n");
+ mISDNport->ptp = ptp = 0;
+ }
}
i = 0;
while(i < stinf->childcnt)