mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-18 07:48:14 +00:00
Make sure we really have a bridged channel (bug #2963)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4362 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -5174,9 +5174,11 @@ static void *ss_thread(void *data)
|
||||
p->subs[SUB_THREEWAY].owner;
|
||||
struct zt_pvt *pbridge = NULL;
|
||||
/* set up the private struct of the bridged one, if any */
|
||||
if (nbridge && ast_bridged_channel(nbridge)) pbridge = ast_bridged_channel(nbridge)->pvt->pvt;
|
||||
if (nbridge &&
|
||||
(!strcmp(nbridge->type,"Zap")) &&
|
||||
if (nbridge && ast_bridged_channel(nbridge))
|
||||
pbridge = ast_bridged_channel(nbridge)->pvt->pvt;
|
||||
if (nbridge && pbridge &&
|
||||
(!strcmp(nbridge->type,"Zap")) &&
|
||||
(!strcmp(ast_bridged_channel(nbridge)->type, "Zap")) &&
|
||||
ISTRUNK(pbridge)) {
|
||||
int func = ZT_FLASH;
|
||||
/* Clear out the dial buffer */
|
||||
|
||||
Reference in New Issue
Block a user