mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 00:04:53 +00:00
Allow functions to be written to (bug #2278, with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5296 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -150,7 +150,7 @@ static int nosound=0;
|
||||
/* ZZ */
|
||||
static struct ast_channel *alsa_request(const char *type, int format, void *data, int *cause);
|
||||
static int alsa_digit(struct ast_channel *c, char digit);
|
||||
static int alsa_text(struct ast_channel *c, char *text);
|
||||
static int alsa_text(struct ast_channel *c, const char *text);
|
||||
static int alsa_hangup(struct ast_channel *c);
|
||||
static int alsa_answer(struct ast_channel *c);
|
||||
static struct ast_frame *alsa_read(struct ast_channel *chan);
|
||||
@@ -479,7 +479,7 @@ static int alsa_digit(struct ast_channel *c, char digit)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int alsa_text(struct ast_channel *c, char *text)
|
||||
static int alsa_text(struct ast_channel *c, const char *text)
|
||||
{
|
||||
ast_mutex_lock(&alsalock);
|
||||
ast_verbose( " << Console Received text %s >> \n", text);
|
||||
|
@@ -3711,7 +3711,7 @@ static struct mgcp_gateway *build_gateway(char *cat, struct ast_variable *v)
|
||||
e->capability = capability;
|
||||
e->parent = gw;
|
||||
e->dtmfmode = dtmfmode;
|
||||
if (!ep_reload && e->sub->rtp)
|
||||
if (!ep_reload && e->sub && e->sub->rtp)
|
||||
e->dtmfmode |= MGCP_DTMF_INBAND;
|
||||
e->adsi = adsi;
|
||||
e->type = TYPE_LINE;
|
||||
|
Reference in New Issue
Block a user