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);
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;
}
;[biggateway]
;type=peer
;host=192.168.0.1
+;context=*
;secret=myscret
;trunk=yes ; Use IAX2 trunking with this host
;