dect
/
asterisk
Archived
13
0
Fork 0

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:
markster 2004-03-04 23:43:58 +00:00
parent 168d3c3876
commit 7faf1da65b
1 changed files with 2 additions and 0 deletions

View File

@ -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 */