Asterisk - The Open Source Telephony Project GIT-master-1f1c5bb
geoloc_common.c
Go to the documentation of this file.
1/*
2 * Asterisk -- An open source telephony toolkit.
3 *
4 * Copyright (C) 2022, Sangoma Technologies Corporation
5 *
6 * George Joseph <gjoseph@sangoma.com>
7 *
8 * See http://www.asterisk.org for more information about
9 * the Asterisk project. Please do not directly contact
10 * any of the maintainers of this project for assistance;
11 * the project provides a web site, mailing lists and IRC
12 * channels for your use.
13 *
14 * This program is free software, distributed under the terms of
15 * the GNU General Public License Version 2. See the LICENSE file
16 * at the top of the source tree.
17 */
18
19#include "asterisk.h"
20#include "geoloc_private.h"
21
22static const char *result_names[] = {
23 "Success",
24 "Missing type",
25 "Invalid shape type",
26 "Invalid variable name",
27 "Not enough variables",
28 "Too many variables",
29 "Invalid variable value"
30};
31
33{
34 return result_names[result];
35}
36
Asterisk main include file. File version handling, generic pbx functions.
static PGresult * result
Definition: cel_pgsql.c:84
const char * ast_geoloc_validate_result_to_str(enum ast_geoloc_validate_result result)
Definition: geoloc_common.c:32
static const char * result_names[]
Definition: geoloc_common.c:22
ast_geoloc_validate_result