aboutsummaryrefslogtreecommitdiffstats
path: root/channel.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2000-03-26 01:59:06 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2000-03-26 01:59:06 +0000
commitfab529cb029abf375e0f0a60e7b635f6c067106e (patch)
tree0c056fe684b8ab582cb1c7800e4802b7e7d6a92f /channel.c
parent679e53660faaff7268141f559cbc47a52140899b (diff)
Version 0.1.3 from FTP
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@207 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channel.c')
-rwxr-xr-xchannel.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/channel.c b/channel.c
index 881e291cf..f83a4eb12 100755
--- a/channel.c
+++ b/channel.c
@@ -126,6 +126,7 @@ struct ast_channel *ast_channel_alloc(void)
tmp->data = NULL;
pthread_mutex_init(&tmp->lock, NULL);
strncpy(tmp->context, "default", sizeof(tmp->context));
+ strncpy(tmp->language, defaultlanguage, sizeof(tmp->language));
strncpy(tmp->exten, "s", sizeof(tmp->exten));
tmp->priority=1;
tmp->next = channels;
@@ -387,6 +388,16 @@ struct ast_frame *ast_read(struct ast_channel *chan)
return f;
}
+int ast_sendtext(struct ast_channel *chan, char *text)
+{
+ int res = 0;
+ CHECK_BLOCKING(chan);
+ if (chan->pvt->send_text)
+ res = chan->pvt->send_text(chan, text);
+ chan->blocking = 0;
+ return res;
+}
+
int ast_write(struct ast_channel *chan, struct ast_frame *fr)
{
int res = -1;