mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-03 04:16:43 +00:00
Fix formatting
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17415 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
13
enum.c
13
enum.c
@@ -64,8 +64,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
|
|||||||
#define T_TXT 16
|
#define T_TXT 16
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* The IETF Enum standard root, managed by the ITU */
|
#define TOPLEV "e164.arpa." /*!< The IETF Enum standard root, managed by the ITU */
|
||||||
#define TOPLEV "e164.arpa."
|
|
||||||
|
|
||||||
/* Linked list from config file */
|
/* Linked list from config file */
|
||||||
static struct enum_search {
|
static struct enum_search {
|
||||||
@@ -416,8 +415,8 @@ int ast_get_enum(struct ast_channel *chan, const char *number, char *dst, int ds
|
|||||||
context.naptr_rrs = NULL;
|
context.naptr_rrs = NULL;
|
||||||
context.naptr_rrs_count = 0;
|
context.naptr_rrs_count = 0;
|
||||||
|
|
||||||
if (options != NULL){
|
if (options != NULL) {
|
||||||
if (*options == 'c'){
|
if (*options == 'c') {
|
||||||
context.options = ENUMLOOKUP_OPTIONS_COUNT;
|
context.options = ENUMLOOKUP_OPTIONS_COUNT;
|
||||||
context.position = 0;
|
context.position = 0;
|
||||||
} else {
|
} else {
|
||||||
@@ -531,7 +530,6 @@ int ast_get_enum(struct ast_channel *chan, const char *number, char *dst, int ds
|
|||||||
} else if (!(context.options & ENUMLOOKUP_OPTIONS_COUNT)) {
|
} else if (!(context.options & ENUMLOOKUP_OPTIONS_COUNT)) {
|
||||||
context.dst[0] = 0;
|
context.dst[0] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (chan)
|
if (chan)
|
||||||
ret |= ast_autoservice_stop(chan);
|
ret |= ast_autoservice_stop(chan);
|
||||||
|
|
||||||
@@ -600,7 +598,8 @@ int ast_get_txt(struct ast_channel *chan, const char *number, char *dst, int dst
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
ast_log(LOG_DEBUG, "No such number found: %s (%s)\n", tmp, strerror(errno));
|
if (option_debug > 1)
|
||||||
|
ast_log(LOG_DEBUG, "No such number found in ENUM: %s (%s)\n", tmp, strerror(errno));
|
||||||
ret = 0;
|
ret = 0;
|
||||||
}
|
}
|
||||||
if (chan)
|
if (chan)
|
||||||
@@ -608,7 +607,7 @@ int ast_get_txt(struct ast_channel *chan, const char *number, char *dst, int dst
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*! \brief Add enum tree to linked list ---*/
|
/*! \brief Add enum tree to linked list */
|
||||||
static struct enum_search *enum_newtoplev(char *s)
|
static struct enum_search *enum_newtoplev(char *s)
|
||||||
{
|
{
|
||||||
struct enum_search *tmp;
|
struct enum_search *tmp;
|
||||||
|
|||||||
Reference in New Issue
Block a user