Asterisk - The Open Source Telephony Project
18.5.0
|
print libtonozone data as Asterisk indications.conf More...
#include <stdio.h>
#include <stdlib.h>
#include <dahdi/tonezone.h>
#include <unistd.h>
Go to the source code of this file.
Macros | |
#define | PROGRAM "zones2indication" |
Functions | |
int | main (int argc, char *argv[]) |
int | print_all () |
void | print_indications (struct ind_tone_zone *zone_data) |
void | print_tone_zone_sound (struct ind_tone_zone *zone_data, const char *name, int toneid) |
int | print_zone_by_country (char *country) |
int | print_zone_by_id (int zone_num) |
void | usage () |
print libtonozone data as Asterisk indications.conf
Definition in file zones2indications.c.
#define PROGRAM "zones2indication" |
Definition at line 28 of file zones2indications.c.
Referenced by usage().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 120 of file zones2indications.c.
References NULL, print_all(), print_zone_by_country(), print_zone_by_id(), and usage().
int print_all | ( | ) |
Definition at line 98 of file zones2indications.c.
References print_zone_by_id().
Referenced by main().
void print_indications | ( | struct ind_tone_zone * | zone_data | ) |
Definition at line 41 of file zones2indications.c.
References print_tone_zone_sound().
Referenced by print_zone_by_country(), and print_zone_by_id().
void print_tone_zone_sound | ( | struct ind_tone_zone * | zone_data, |
const char * | name, | ||
int | toneid | ||
) |
int print_zone_by_country | ( | char * | country | ) |
Definition at line 87 of file zones2indications.c.
References NULL, and print_indications().
Referenced by main().
int print_zone_by_id | ( | int | zone_num | ) |
Definition at line 76 of file zones2indications.c.
References NULL, and print_indications().
Referenced by main(), and print_all().
void usage | ( | void | ) |