From: Jonathan Rose Date: Fri, 20 Jan 2012 15:42:28 +0000 (+0000) Subject: Adds setting of mwi_from field to check_auth_result check_peer_ok X-Git-Tag: 1.8.10.0-rc1~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=836e26a426fae12c1f8fbdd43b5ad902379f769e;p=thirdparty%2Fasterisk.git 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) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@351759 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index e1fc83518b..64b40c9701 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -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);