Adds setting of mwi_from field to check_auth_result check_peer_ok

(closes ASTERISK-19057)
Reported By: Yuri
Patches: 348360chan_sip.diff uploaded by Yuri (license 5242)
........

Merged revisions 351759 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 351762 from http://svn.asterisk.org/svn/asterisk/branches/10


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@351764 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Jonathan Rose 2012-01-20 16:00:58 +00:00
parent 7a442b017c
commit 1a6960099b
1 changed files with 3 additions and 0 deletions

View File

@ -16259,6 +16259,9 @@ static enum check_auth_result check_peer_ok(struct sip_pvt *p, char *of,
if (!ast_strlen_zero(peer->messagecontext)) {
ast_string_field_set(p, messagecontext, peer->messagecontext);
}
if (!ast_strlen_zero(peer->mwi_from)) {
ast_string_field_set(p, mwi_from, peer->mwi_from);
}
ast_string_field_set(p, peersecret, peer->secret);
ast_string_field_set(p, peermd5secret, peer->md5secret);
ast_string_field_set(p, language, peer->language);