int ringbackonly;
int musiconhold;
int dataquality;
- int clearchannel;
int allowdisconnect;
struct localuser *next;
};
int allowdisconnect=0;
int privacy=0;
int resetcdr=0;
+ int clearchannel=0;
char numsubst[AST_MAX_EXTENSION];
char restofit[AST_MAX_EXTENSION];
char *transfer = NULL;
tmp->allowdisconnect = 1;
else tmp->allowdisconnect = 0;
if (strchr(transfer, 'c'))
- tmp->clearchannel = 1;
- else tmp->clearchannel = 0;
+ clearchannel = 1;
+ else
+ clearchannel = 0;
}
strncpy(numsubst, number, sizeof(numsubst)-1);
/* If we're dialing by extension, look at the extension to know what to dial */
if (!strcmp(chan->type,"Zap"))
{
int x = 2;
- if (tmp->dataquality || tmp->clearchannel) x = 0;
+ if (tmp->dataquality || clearchannel) x = 0;
ast_channel_setoption(chan,AST_OPTION_TONE_VERIFY,&x,sizeof(char),0);
}
if (!strcmp(peer->type,"Zap"))
{
int x = 2;
- if (tmp->dataquality || tmp->clearchannel) x = 0;
+ if (tmp->dataquality || clearchannel) x = 0;
ast_channel_setoption(peer,AST_OPTION_TONE_VERIFY,&x,sizeof(char),0);
}
hanguptree(outgoing, peer);
ast_log(LOG_DEBUG, "app_dial: sendurl=%s.\n", url);
ast_channel_sendurl( peer, url );
} /* /JDG */
- if (tmp->clearchannel)
+ if (clearchannel)
{
int x = 0;
ast_channel_setoption(chan,AST_OPTION_AUDIO_MODE,&x,sizeof(char),0);
ast_channel_setoption(peer,AST_OPTION_AUDIO_MODE,&x,sizeof(char),0);
}
res = ast_bridge_call(chan, peer, allowredir, allowdisconnect | tmp->clearchannel);
- if (tmp->clearchannel)
+ if (clearchannel)
{
int x = 1;
ast_channel_setoption(chan,AST_OPTION_AUDIO_MODE,&x,sizeof(char),0);