Skip to content
Snippets Groups Projects
Commit 8dbdd851 authored by Luigi Rizzo's avatar Luigi Rizzo
Browse files

fix indentation of a block


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@31869 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent d18e3635
Branches
Tags
No related merge requests found
...@@ -1980,24 +1980,24 @@ static void register_peer_exten(struct sip_peer *peer, int onoff) ...@@ -1980,24 +1980,24 @@ static void register_peer_exten(struct sip_peer *peer, int onoff)
if (ast_strlen_zero(global_regcontext)) if (ast_strlen_zero(global_regcontext))
return; return;
   
ast_copy_string(multi, S_OR(peer->regexten, peer->name), sizeof(multi)); ast_copy_string(multi, S_OR(peer->regexten, peer->name), sizeof(multi));
stringp = multi; stringp = multi;
while ((ext = strsep(&stringp, "&"))) { while ((ext = strsep(&stringp, "&"))) {
if ((context = strchr(ext, '@'))) { if ((context = strchr(ext, '@'))) {
*context++ = '\0'; /* split ext@context */ *context++ = '\0'; /* split ext@context */
if (!ast_context_find(context)) { if (!ast_context_find(context)) {
ast_log(LOG_WARNING, "Context %s must exist in regcontext= in sip.conf!\n", context); ast_log(LOG_WARNING, "Context %s must exist in regcontext= in sip.conf!\n", context);
continue; continue;
}
} else {
context = global_regcontext;
} }
if (onoff) } else {
ast_add_extension(context, 1, ext, 1, NULL, NULL, "Noop", context = global_regcontext;
ast_strdup(peer->name), free, "SIP");
else
ast_context_remove_extension(context, ext, 1, NULL);
} }
if (onoff)
ast_add_extension(context, 1, ext, 1, NULL, NULL, "Noop",
ast_strdup(peer->name), free, "SIP");
else
ast_context_remove_extension(context, ext, 1, NULL);
}
} }
   
/*! \brief Destroy peer object from memory */ /*! \brief Destroy peer object from memory */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment