Presence and MWI issues after upgrade to 6.12.65-28 (asterisk 13.4)

After upgrading to FreePBX release 6.12.65-28, the presence feature and MWI stop to work with our Polycom device. It was working well before with release 6.12.65-25. This upgrade Asterisk from 13.2 to 13.4.

We fix the problem with MWI. The configuration files for the Polycom was missing voicemail number to subscribe. With previous Asterisk version it works maybe the system took the extension number for the voicemail by default.

The other issue is with presence subscription (Buddy Watch Polycom). It is broken. Hints still there (“core show hints” OK) but the phone couldn’t subscribe anymore to these hints. In the pjsip log we see the subscribtion process and all seems OK but at the end something bad happen and the subscription is removed. Here what I see:

[2015-07-29 08:31:37] VERBOSE[26772] res_pjsip_logger.c: <--- Transmitting SIP response (582 bytes) to UDP:192.16.100.212:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.16.100.212:5060;rport=5060;received=192.16.100.212;branch=z9hG4bK5335e320E66BC789
Call-ID: [email protected]
From: "UserName Test" <sip:[email protected]>;tag=5D423A50-4087C539
To: <sip:[email protected]>;tag=HIcbKHoo6E0CKbVedlzawnSlcBae2gaF
CSeq: 2 SUBSCRIBE
Expires: 3600
Contact: <sip:192.16.100.3:5060>
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, REFER, MESSAGE
Supported: 100rel, timer, replaces, norefersub
Server: FPBX-12.0.74(13.4.0)
Content-Length:  0


[2015-07-29 08:31:37] DEBUG[26772] db.c: Unable to find key '197' in family 'CustomPresence'
**[2015-07-29 08:31:37] DEBUG[26772] pjsip:       evsub0x7f1c3c5 .Subscription state changed NULL --> TERMINATED**
**[2015-07-29 08:31:37] DEBUG[26772] res_pjsip_pubsub.c: Removing subscription to resource 197 from list of subscriptions**

Maybe this concern Asterisk so I ask the community directly here: