ps->f.samples = samples;
ps->f.offset = AST_FRIENDLY_OFFSET;
ps->f.data = ps->data;
+ ps->f.delivery.tv_sec = 0;
+ ps->f.delivery.tv_usec = 0;
ast_write(chan, &ps->f);
ps->pos += x;
/* Protect the tone_zones list (highly unlikely that two things would change
* it at the same time, but still! */
-ast_mutex_t tzlock = AST_MUTEX_INITIALIZER;
+AST_MUTEX_DEFINE_EXPORTED(tzlock);
/* Set global indication country */
int ast_set_indication_country(const char *country)
free(zone->tones);
zone->tones = tmp;
}
+ if (zone->ringcadance)
+ free((void*)zone->ringcadance);
free(zone);
}
if (option_verbose > 2)
ast_verbose(VERBOSE_PREFIX_3 "Unregistered indication country '%s'\n",tz->country);
free_zone(tz);
+ if (tone_zones == tz)
+ tone_zones = tmp;
tz = tmp;
res = 0;
}