mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-09 19:38:22 +00:00
Remove a couple of peerification bbugs (bug #3576)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5024 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -6172,7 +6172,7 @@ static int sip_show_objects(int fd, int argc, char *argv[])
|
|||||||
static void print_group(int fd, unsigned int group)
|
static void print_group(int fd, unsigned int group)
|
||||||
{
|
{
|
||||||
char buf[256];
|
char buf[256];
|
||||||
ast_cli(fd, ast_print_group(buf, sizeof(buf), group) );
|
ast_cli(fd, "%s\n", ast_print_group(buf, sizeof(buf), group) );
|
||||||
}
|
}
|
||||||
|
|
||||||
/*--- dtmfmode2str: Convert DTMF mode to printable string ---*/
|
/*--- dtmfmode2str: Convert DTMF mode to printable string ---*/
|
||||||
@@ -9177,6 +9177,11 @@ static struct sip_peer *build_peer(const char *name, struct ast_variable *v, int
|
|||||||
peer->defaddr.sin_family = AF_INET;
|
peer->defaddr.sin_family = AF_INET;
|
||||||
peer->expiry = expiry;
|
peer->expiry = expiry;
|
||||||
}
|
}
|
||||||
|
/* If we have channel variables, remove them (reload) */
|
||||||
|
if(peer->chanvars) {
|
||||||
|
ast_variables_destroy(peer->chanvars);
|
||||||
|
peer->chanvars = NULL;
|
||||||
|
}
|
||||||
strncpy(peer->context, default_context, sizeof(peer->context)-1);
|
strncpy(peer->context, default_context, sizeof(peer->context)-1);
|
||||||
strncpy(peer->language, default_language, sizeof(peer->language)-1);
|
strncpy(peer->language, default_language, sizeof(peer->language)-1);
|
||||||
strncpy(peer->musicclass, global_musicclass, sizeof(peer->musicclass)-1);
|
strncpy(peer->musicclass, global_musicclass, sizeof(peer->musicclass)-1);
|
||||||
|
|||||||
Reference in New Issue
Block a user