]> 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:42:28 +0000 (15:42 +0000)
committerJonathan Rose <jrose@digium.com>
Fri, 20 Jan 2012 15:42:28 +0000 (15:42 +0000)
(closes ASTERISK-19057)
Reported By: Yuri
Patches: 348360chan_sip.diff uploaded by Yuri (license 5242)

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

channels/chan_sip.c

index e1fc83518bdbaeab468c3773786bb41e2191ddf1..64b40c9701b8bf18650ef78e95566b4ff15dfcec 100644 (file)
@@ -15900,8 +15900,14 @@ static enum check_auth_result check_peer_ok(struct sip_pvt *p, char *of,
                                p->callingpres = peer->callingpres;
                }
                ast_string_field_set(p, fullcontact, peer->fullcontact);
-               if (!ast_strlen_zero(peer->context))
+
+               if (!ast_strlen_zero(peer->context)) {
                        ast_string_field_set(p, context, peer->context);
+               }
+               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);