projects
/
lcr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fcc787b
)
Fix: chan_lcr will suppress audio traffic until ref is received
author
Andreas Eversberg
<jolly@eversberg.eu>
Thu, 16 Aug 2012 06:22:32 +0000
(08:22 +0200)
committer
Andreas Eversberg
<jolly@eversberg.eu>
Sun, 16 Dec 2012 09:10:34 +0000
(10:10 +0100)
If no ref is received from LCR, the traffic may not be sent to LCR.
chan_lcr.c
patch
|
blob
|
history
diff --git
a/chan_lcr.c
b/chan_lcr.c
index
302716e
..
332cc7f
100644
(file)
--- a/
chan_lcr.c
+++ b/
chan_lcr.c
@@
-2750,7
+2750,7
@@
static int lcr_write(struct ast_channel *ast, struct ast_frame *fr)
#else
call = ast_channel_tech_pvt(ast);
#endif
#else
call = ast_channel_tech_pvt(ast);
#endif
- if (!call) {
+ if (!call
|| !call->ref
) {
ast_mutex_unlock(&chan_lock);
if (f != fr) {
ast_frfree(f);
ast_mutex_unlock(&chan_lock);
if (f != fr) {
ast_frfree(f);