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);