summaryrefslogtreecommitdiffstats
path: root/bchannel.c
diff options
context:
space:
mode:
authorSuper User2008-05-19 19:39:39 +0200
committerSuper User2008-05-19 19:39:39 +0200
commit153bf9b2f40504eb7fde8d7c5bcb996227deece3 (patch)
tree199b211aa303551d0f8cd3688f9dcbc6859fe6ad /bchannel.c
parentlcr work (soon done :) (diff)
downloadlcr-153bf9b2f40504eb7fde8d7c5bcb996227deece3.tar.gz
lcr-153bf9b2f40504eb7fde8d7c5bcb996227deece3.tar.xz
lcr-153bf9b2f40504eb7fde8d7c5bcb996227deece3.zip
work on chan_lcr
Diffstat (limited to 'bchannel.c')
-rw-r--r--bchannel.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/bchannel.c b/bchannel.c
index 7e2db3b..a30a86a 100644
--- a/bchannel.c
+++ b/bchannel.c
@@ -555,6 +555,11 @@ static void bchannel_receive(struct bchannel *bchannel, unsigned long prim, unsi
CDEBUG("PmISDN(%s) ignoring data, because no call associated with bchannel\n", p_name);
return;
}
+ if (!bchannel->call->audiopath)
+ {
+ /* return, because we have no audio from port */
+ return;
+ }
len = write(bchannel->call->pipe[1], data, len);
if (len < 0)
{