summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2004-08-31 14:59:58 +0000
committerMark Spencer <markster@digium.com>2004-08-31 14:59:58 +0000
commitcfb711bf57a9fe8b85a188a5cf063d4a0fa8012a (patch)
treecaf2be633ba676105cc6820a0b6ca5e2898767dc
parent471df8f5122c957b9ef5315fcb247622ad8e0476 (diff)
Make app_festival change more portable, allow '*' for context in iax2
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3692 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rwxr-xr-xapps/app_festival.c2
-rwxr-xr-xchannels/chan_iax2.c2
-rwxr-xr-xconfigs/iax.conf.sample1
3 files changed, 3 insertions, 2 deletions
diff --git a/apps/app_festival.c b/apps/app_festival.c
index 14744bab5..82908f050 100755
--- a/apps/app_festival.c
+++ b/apps/app_festival.c
@@ -362,7 +362,7 @@ static int festival_exec(struct ast_channel *chan, void *vdata)
snprintf(cachefile, sizeof(cachefile), "%s/%s", cachedir, MD5Hex);
fdesc=open(cachefile,O_RDWR);
if (fdesc==-1) {
- fdesc=open(cachefile,O_CREAT|O_RDWR,S_IRWXU);
+ fdesc=open(cachefile,O_CREAT|O_RDWR,0777);
if (fdesc!=-1) {
writecache=1;
strln=strlen((char *)data);
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c
index 9aab5dcc3..44a0f3ce0 100755
--- a/channels/chan_iax2.c
+++ b/channels/chan_iax2.c
@@ -3473,7 +3473,7 @@ static int send_command_transfer(struct chan_iax2_pvt *i, char type, int command
static int apply_context(struct iax2_context *con, char *context)
{
while(con) {
- if (!strcmp(con->context, context))
+ if (!strcmp(con->context, context) || !strcmp(con->context, "*"))
return -1;
con = con->next;
}
diff --git a/configs/iax.conf.sample b/configs/iax.conf.sample
index 5ca6f9099..ff1543f0f 100755
--- a/configs/iax.conf.sample
+++ b/configs/iax.conf.sample
@@ -250,6 +250,7 @@ host=216.207.245.47
;[biggateway]
;type=peer
;host=192.168.0.1
+;context=*
;secret=myscret
;trunk=yes ; Use IAX2 trunking with this host
;