Set the context properly for a given peer
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2336 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
168d3c3876
commit
7faf1da65b
|
@ -2122,6 +2122,8 @@ static int iax2_call(struct ast_channel *c, char *dest, int timeout)
|
|||
if (!secret && strlen(storedsecret))
|
||||
secret = storedsecret;
|
||||
ast_mutex_lock(&iaxsl[callno]);
|
||||
if (strlen(c->context))
|
||||
strncpy(iaxs[callno]->context, c->context, sizeof(iaxs[callno]->context));
|
||||
if (secret) {
|
||||
if (secret[0] == '[') {
|
||||
/* This is an RSA key, not a normal secret */
|
||||
|
|
Reference in New Issue