mirror of
https://github.com/asterisk/asterisk.git
synced 2026-06-29 03:41:34 -07:00
Formatting cleanup
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@28483 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
+3
-2
@@ -1954,12 +1954,13 @@ static void register_peer_exten(struct sip_peer *peer, int onoff)
|
||||
if((context = strchr(ext, '@'))) {
|
||||
context++;
|
||||
if (!ast_context_find(context)) {
|
||||
ast_log(LOG_WARNING, "Context %s must exist in regcontext!\n", context);
|
||||
ast_log(LOG_WARNING, "Context %s must exist in regcontext= in sip.conf!\n", context);
|
||||
continue;
|
||||
}
|
||||
ext = strsep(&ext, "@");
|
||||
if (onoff)
|
||||
ast_add_extension(context, 1, ext, 1, NULL, NULL, "Noop", ast_strdup(peer->name), free, "SIP");
|
||||
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);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user