mirror of
https://github.com/asterisk/asterisk.git
synced 2026-06-28 03:10:20 -07:00
automerge commit
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@52369 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -8359,13 +8359,11 @@ static struct iax2_peer *build_peer(const char *name, struct ast_variable *v, in
|
||||
maskfound++;
|
||||
inet_aton(v->value, &peer->mask);
|
||||
} else if (!strcasecmp(v->name, "context")) {
|
||||
if (ast_strlen_zero(peer->context))
|
||||
ast_copy_string(peer->context, v->value, sizeof(peer->context));
|
||||
ast_copy_string(peer->context, v->value, sizeof(peer->context));
|
||||
} else if (!strcasecmp(v->name, "regexten")) {
|
||||
ast_copy_string(peer->regexten, v->value, sizeof(peer->regexten));
|
||||
} else if (!strcasecmp(v->name, "peercontext")) {
|
||||
if (ast_strlen_zero(peer->peercontext))
|
||||
ast_copy_string(peer->peercontext, v->value, sizeof(peer->peercontext));
|
||||
ast_copy_string(peer->peercontext, v->value, sizeof(peer->peercontext));
|
||||
} else if (!strcasecmp(v->name, "port")) {
|
||||
if (ast_test_flag(peer, IAX_DYNAMIC))
|
||||
peer->defaddr.sin_port = htons(atoi(v->value));
|
||||
|
||||
Reference in New Issue
Block a user