|
|
@ -235,6 +235,7 @@ int ast_set_indication_country(const char *country)
|
|
|
|
if (country) {
|
|
|
|
if (country) {
|
|
|
|
struct tone_zone *z = ast_get_indication_zone(country);
|
|
|
|
struct tone_zone *z = ast_get_indication_zone(country);
|
|
|
|
if (z) {
|
|
|
|
if (z) {
|
|
|
|
|
|
|
|
if (option_verbose > 2)
|
|
|
|
ast_verbose(VERBOSE_PREFIX_3 "Setting default indication country to '%s'\n",country);
|
|
|
|
ast_verbose(VERBOSE_PREFIX_3 "Setting default indication country to '%s'\n",country);
|
|
|
|
current_tonezone = z;
|
|
|
|
current_tonezone = z;
|
|
|
|
return 0;
|
|
|
|
return 0;
|
|
|
@ -359,6 +360,7 @@ int ast_register_indication_country(struct tone_zone *zone)
|
|
|
|
tone_zones = zone;
|
|
|
|
tone_zones = zone;
|
|
|
|
ast_mutex_unlock(&tzlock);
|
|
|
|
ast_mutex_unlock(&tzlock);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (option_verbose > 2)
|
|
|
|
ast_verbose(VERBOSE_PREFIX_3 "Registered indication country '%s'\n",zone->country);
|
|
|
|
ast_verbose(VERBOSE_PREFIX_3 "Registered indication country '%s'\n",zone->country);
|
|
|
|
return 0;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -390,6 +392,7 @@ int ast_unregister_indication_country(const char *country)
|
|
|
|
ast_log(LOG_NOTICE,"Removed default indication country '%s'\n",tz->country);
|
|
|
|
ast_log(LOG_NOTICE,"Removed default indication country '%s'\n",tz->country);
|
|
|
|
current_tonezone = NULL;
|
|
|
|
current_tonezone = NULL;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (option_verbose > 2)
|
|
|
|
ast_verbose(VERBOSE_PREFIX_3 "Unregistered indication country '%s'\n",tz->country);
|
|
|
|
ast_verbose(VERBOSE_PREFIX_3 "Unregistered indication country '%s'\n",tz->country);
|
|
|
|
free_zone(tz);
|
|
|
|
free_zone(tz);
|
|
|
|
tz = tmp;
|
|
|
|
tz = tmp;
|
|
|
|