]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Adds setting of mwi_from field to check_auth_result check_peer_ok
authorJonathan Rose <jrose@digium.com>
Fri, 20 Jan 2012 15:59:02 +0000 (15:59 +0000)
committerJonathan Rose <jrose@digium.com>
Fri, 20 Jan 2012 15:59:02 +0000 (15:59 +0000)
(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

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@351762 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index af1689fd41e888ca280cfde33a1ff655c46c7dfc..03ac39937cee58a46c7c4198fc83fc3a0c4ef624 100644 (file)
@@ -16231,6 +16231,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);