Tom, thanks a ton for pointing me in the right direction and taking the time to write that lengthy reply. At the end of the day, I would prefer to stay with pjsip for reasons already mentioned in this thread and others.
So converted extension back to pjsip and rebooted. I decided to go ahead and grab syslogs from the phone and set a debug logging channel in asterisk with verbose and debug set at 5, along with pjsip logging.
09:48 rebooted phone (ext 701) - Here is sngrep output
2018/12/29 09:48:15.777137 192.168.0.35:5060 -> 192.168.0.137:5060
NOTIFY sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.35:5060;rport;branch=z9hG4bKPj783f1824-3df9-41eb-8e7f-afdac49ab95b
From: <sip:[email protected]>;tag=dba2cd6b-0fe0-4253-a6e0-b428a927493e
To: <sip:[email protected]>
Contact: <sip:[email protected]:5060>
Call-ID: 66d161d0-60f1-4e77-a1ce-13f191731d6d
CSeq: 57862 NOTIFY
Subscription-State: terminated
Event: message-summary
Allow-Events: presence, dialog, message-summary, refer
Max-Forwards: 70
User-Agent: FPBX-14.0.5.5(13.22.0)
Content-Type: application/simple-message-summary
Content-Length: 49
Messages-Waiting: yes
Voice-Message: 4/0 (0/0)
2018/12/29 09:48:15.931607 192.168.0.137:5060 -> 192.168.0.35:5060
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.0.35:5060;rport=5060;branch=z9hG4bKPj783f1824-3df9-41eb-8e7f-afdac49ab95b
From: <sip:[email protected]>;tag=dba2cd6b-0fe0-4253-a6e0-b428a927493e
To: <sip:[email protected]>;tag=2762033559
Call-ID: 66d161d0-60f1-4e77-a1ce-13f191731d6d
CSeq: 57862 NOTIFY
User-Agent: Yealink SIP-T29G 46.83.0.50
Content-Length: 0
2018/12/29 09:48:15.777905 192.168.0.35:5060 -> 192.168.0.137:5060
NOTIFY sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.35:5060;rport;branch=z9hG4bKPj1ab9ab2b-e30c-4362-9d06-d2fba14e2f6e
From: <sip:[email protected]>;tag=79062b52-3a13-4066-9165-8b1de59504d9
To: <sip:[email protected]>
Contact: <sip:[email protected]:5060>
Call-ID: 652674df-b85e-4008-9f94-7868410182d3
CSeq: 46361 NOTIFY
Subscription-State: terminated
Event: message-summary
Allow-Events: presence, dialog, message-summary, refer
Max-Forwards: 70
User-Agent: FPBX-14.0.5.5(13.22.0)
Content-Type: application/simple-message-summary
Content-Length: 49
Messages-Waiting: yes
Voice-Message: 4/0 (0/0)
2018/12/29 09:48:15.953689 192.168.0.137:5060 -> 192.168.0.35:5060
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.0.35:5060;rport=5060;branch=z9hG4bKPj1ab9ab2b-e30c-4362-9d06-d2fba14e2f6e
From: <sip:[email protected]>;tag=79062b52-3a13-4066-9165-8b1de59504d9
To: <sip:[email protected]>;tag=1448161403
Call-ID: 652674df-b85e-4008-9f94-7868410182d3
CSeq: 46361 NOTIFY
User-Agent: Yealink SIP-T29G 46.83.0.50
Content-Length: 0
At 10:38 lost MWI - sngrep output
2018/12/29 10:38:14.954535 192.168.0.35:5060 -> 192.168.0.137:5060
NOTIFY sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.35:5060;rport;branch=z9hG4bKPj8bc8380c-3cc7-4d6e-a7d8-4a558a47616b
From: <sip:[email protected]>;tag=8ada3409-76ee-40d9-a9b4-5f5583bc002a
To: <sip:[email protected]>
Contact: <sip:[email protected]:5060>
Call-ID: f6de6b17-8e9e-472d-9d6d-fa2d63d19fc6
CSeq: 45634 NOTIFY
Subscription-State: terminated
Event: message-summary
Allow-Events: presence, dialog, message-summary, refer
Max-Forwards: 70
User-Agent: FPBX-14.0.5.5(13.22.0)
Content-Type: application/simple-message-summary
Content-Length: 48
Messages-Waiting: no
Voice-Message: 0/0 (0/0)
2018/12/29 10:38:15.004899 192.168.0.137:5060 -> 192.168.0.35:5060
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.0.35:5060;rport=5060;branch=z9hG4bKPj8bc8380c-3cc7-4d6e-a7d8-4a558a47616b
From: <sip:[email protected]>;tag=8ada3409-76ee-40d9-a9b4-5f5583bc002a
To: <sip:[email protected]>;tag=3831891063
Call-ID: f6de6b17-8e9e-472d-9d6d-fa2d63d19fc6
CSeq: 45634 NOTIFY
User-Agent: Yealink SIP-T29G 46.83.0.50
Content-Length: 0
Here is a snip from asterisk debug log during 10:38. It appears that there is a NOTIFY with messages waiting, then another NOTIFY following that says there is not
[2018-12-29 10:38:14] DEBUG[26956] res_pjsip_pubsub.c: sub_tree 0x7fdc780783d0 sub_tree state Normal
[2018-12-29 10:38:14] DEBUG[26956] res_pjsip_pubsub.c: sub_tree 0x7fdc780783d0 sub_tree state Normal
[2018-12-29 10:38:14] DEBUG[26956] res_pjsip/pjsip_message_filter.c: Re-wrote Contact URI host/port to 192.168.0.35:5060 (this may be re-written again later)
[2018-12-29 10:38:14] DEBUG[26956] netsock2.c: Splitting '192.168.0.137' into...
[2018-12-29 10:38:14] DEBUG[26956] netsock2.c: ...host '192.168.0.137' and port ''.
[2018-12-29 10:38:14] DEBUG[26956] res_pjsip_nat.c: Request is being sent to local address, skipping NAT manipulation
[2018-12-29 10:38:14] VERBOSE[26956] res_pjsip_logger.c: <--- Transmitting SIP request (648 bytes) to UDP:192.168.0.137:5060 --->
NOTIFY sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.35:5060;rport;branch=z9hG4bKPj6b9555e8-7580-49ed-a766-6713ecf7b444
From: <sip:[email protected]>;tag=882c44e4-6ff7-4e70-b6c0-ca78e22f66f7
To: "701" <sip:[email protected]>;tag=3963180513
Contact: <sip:192.168.0.35:5060>
Call-ID: [email protected]
CSeq: 21193 NOTIFY
Event: message-summary
Subscription-State: active;expires=3600
Allow-Events: presence, dialog, message-summary, refer
Max-Forwards: 70
User-Agent: FPBX-14.0.5.5(13.22.0)
Content-Type: application/simple-message-summary
Content-Length: 49
Messages-Waiting: yes
Voice-Message: 4/0 (0/0)
[2018-12-29 10:38:14] DEBUG[26956] res_pjsip_pubsub.c: evsub 0x7fdc78671dd8 state ACTIVE event USER sub_tree 0x7fdc780783d0 sub_tree state Normal
[2018-12-29 10:38:14] DEBUG[26956] res_pjsip_pubsub.c: Updating persistence for '701->701' prune on boot: no
[2018-12-29 10:38:14] VERBOSE[2385] res_pjsip_logger.c: <--- Received SIP request (556 bytes) from UDP:192.168.0.137:5060 --->
REGISTER sip:192.168.0.35:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.137:5060;branch=z9hG4bK2198135894
From: "701" <sip:[email protected]:5060>;tag=4197363148
To: "701" <sip:[email protected]:5060>
Call-ID: [email protected]
CSeq: 3 REGISTER
Contact: <sip:[email protected]:5060>
Allow: INVITE, INFO, PRACK, ACK, BYE, CANCEL, OPTIONS, NOTIFY, REGISTER, SUBSCRIBE, REFER, PUBLISH, UPDATE, MESSAGE
Max-Forwards: 70
User-Agent: Yealink SIP-T29G 46.83.0.50
Expires: 3600
Allow-Events: talk,hold,conference,refer,check-sync
Content-Length: 0
[2018-12-29 10:38:14] DEBUG[2385] res_pjsip/pjsip_distributor.c: Could not find matching transaction for Request msg REGISTER/cseq=3 (rdata0x7fdc6c138f28)
[2018-12-29 10:38:14] DEBUG[2385] res_pjsip/pjsip_distributor.c: Calculated serializer pjsip/distributor-00000047 to use for Request msg REGISTER/cseq=3 (rdata0x7fdc6c138f28)
[2018-12-29 10:38:14] DEBUG[4736] netsock2.c: Splitting '192.168.0.137' into...
[2018-12-29 10:38:14] DEBUG[4736] netsock2.c: ...host '192.168.0.137' and port ''.
[2018-12-29 10:38:14] DEBUG[4736] res_pjsip_endpoint_identifier_ip.c: No identify sections to match against
[2018-12-29 10:38:14] DEBUG[4736] res_pjsip_endpoint_identifier_user.c: Attempting identify by From username '701' domain '192.168.0.35'
[2018-12-29 10:38:14] DEBUG[4736] res_pjsip_endpoint_identifier_user.c: Identified by From username '701' domain '192.168.0.35'
[2018-12-29 10:38:14] DEBUG[4736] res_pjsip_authenticator_digest.c: Using default realm 'asterisk' on incoming auth '701-auth'.
[2018-12-29 10:38:14] DEBUG[4736] netsock2.c: Splitting '192.168.0.35' into...
[2018-12-29 10:38:14] DEBUG[4736] netsock2.c: ...host '192.168.0.35' and port ''.
[2018-12-29 10:38:14] DEBUG[4736] netsock2.c: Splitting '192.168.0.137' into...
[2018-12-29 10:38:14] DEBUG[4736] netsock2.c: ...host '192.168.0.137' and port ''.
[2018-12-29 10:38:14] DEBUG[4736] netsock2.c: Splitting '192.168.0.137' into...
[2018-12-29 10:38:14] DEBUG[4736] netsock2.c: ...host '192.168.0.137' and port ''.
[2018-12-29 10:38:14] DEBUG[4736] res_pjsip_nat.c: Request is being sent to local address, skipping NAT manipulation
[2018-12-29 10:38:14] VERBOSE[4736] res_pjsip_logger.c: <--- Transmitting SIP response (485 bytes) to UDP:192.168.0.137:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.0.137:5060;rport=5060;received=192.168.0.137;branch=z9hG4bK2198135894
Call-ID: [email protected]
From: "701" <sip:[email protected]>;tag=4197363148
To: "701" <sip:[email protected]>;tag=z9hG4bK2198135894
CSeq: 3 REGISTER
WWW-Authenticate: Digest realm="asterisk",nonce="1546101494/e9ca919c625956740427ed22ab4e1993",opaque="558cac7324e6ed34",algorithm=md5,qop="auth"
Server: FPBX-14.0.5.5(13.22.0)
Content-Length: 0
[2018-12-29 10:38:14] DEBUG[19751] manager.c: Examining AMI event:
Event: ChallengeSent
Privilege: security,all
EventTV: 2018-12-29T10:38:14.851-0600
Severity: Informational
Service: PJSIP
EventVersion: 1
AccountID: 701
SessionID: [email protected]
LocalAddress: IPV4/UDP/192.168.0.35/5060
RemoteAddress: IPV4/UDP/192.168.0.137/5060
Challenge:
[2018-12-29 10:38:14] VERBOSE[2385] res_pjsip_logger.c: <--- Received SIP response (394 bytes) from UDP:192.168.0.137:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.0.35:5060;rport=5060;branch=z9hG4bKPj6b9555e8-7580-49ed-a766-6713ecf7b444
From: <sip:[email protected]>;tag=882c44e4-6ff7-4e70-b6c0-ca78e22f66f7
To: "701" <sip:[email protected]>;tag=3963180513
Call-ID: [email protected]
CSeq: 21193 NOTIFY
Contact: <sip:[email protected]:5060>
User-Agent: Yealink SIP-T29G 46.83.0.50
Content-Length: 0
[2018-12-29 10:38:14] DEBUG[2385] res_pjsip/pjsip_distributor.c: Searching for serializer associated with dialog dlg0x7fdc5c011008 for Response msg 200/NOTIFY/cseq=21193 (rdata0x7fdc6c138f28)
[2018-12-29 10:38:14] DEBUG[2385] res_pjsip/pjsip_distributor.c: Found serializer pjsip/distributor-00000037 associated with dialog dlg0x7fdc5c011008
[2018-12-29 10:38:14] VERBOSE[2385] res_pjsip_logger.c: <--- Received SIP request (823 bytes) from UDP:192.168.0.137:5060 --->
REGISTER sip:192.168.0.35:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.137:5060;branch=z9hG4bK3164244746
From: "701" <sip:[email protected]:5060>;tag=4197363148
To: "701" <sip:[email protected]:5060>
Call-ID: [email protected]
CSeq: 4 REGISTER
Contact: <sip:[email protected]:5060>
Authorization: Digest username="701", realm="asterisk", nonce="1546101494/e9ca919c625956740427ed22ab4e1993", uri="sip:192.168.0.35:5060", response="70aff0a428c3ea13d553e406c84d67c0", algorithm=MD5, cnonce="0a4f113b", opaque="558cac7324e6ed34", qop=auth, nc=00000001
Allow: INVITE, INFO, PRACK, ACK, BYE, CANCEL, OPTIONS, NOTIFY, REGISTER, SUBSCRIBE, REFER, PUBLISH, UPDATE, MESSAGE
Max-Forwards: 70
User-Agent: Yealink SIP-T29G 46.83.0.50
Expires: 3600
Allow-Events: talk,hold,conference,refer,check-sync
Content-Length: 0
[2018-12-29 10:38:14] DEBUG[2385] res_pjsip/pjsip_distributor.c: Could not find matching transaction for Request msg REGISTER/cseq=4 (rdata0x7fdc6c138f28)
[2018-12-29 10:38:14] DEBUG[2385] res_pjsip/pjsip_distributor.c: Calculated serializer pjsip/distributor-00000047 to use for Request msg REGISTER/cseq=4 (rdata0x7fdc6c138f28)
[2018-12-29 10:38:14] DEBUG[25789] netsock2.c: Splitting '192.168.0.137' into...
[2018-12-29 10:38:14] DEBUG[25789] netsock2.c: ...host '192.168.0.137' and port ''.
[2018-12-29 10:38:14] DEBUG[25789] res_pjsip_endpoint_identifier_ip.c: No identify sections to match against
[2018-12-29 10:38:14] DEBUG[25789] res_pjsip_endpoint_identifier_user.c: Attempting identify by From username '701' domain '192.168.0.35'
[2018-12-29 10:38:14] DEBUG[25789] res_pjsip_endpoint_identifier_user.c: Identified by From username '701' domain '192.168.0.35'
[2018-12-29 10:38:14] DEBUG[25789] res_pjsip_authenticator_digest.c: Using default realm 'asterisk' on incoming auth '701-auth'.
[2018-12-29 10:38:14] DEBUG[25789] res_pjsip_authenticator_digest.c: Calculated nonce 1546101494/e9ca919c625956740427ed22ab4e1993. Actual nonce is 1546101494/e9ca919c625956740427ed22ab4e1993
[2018-12-29 10:38:14] DEBUG[25789] netsock2.c: Splitting '192.168.0.35' into...
[2018-12-29 10:38:14] DEBUG[25789] netsock2.c: ...host '192.168.0.35' and port ''.
[2018-12-29 10:38:14] DEBUG[25789] netsock2.c: Splitting '192.168.0.137' into...
[2018-12-29 10:38:14] DEBUG[25789] netsock2.c: ...host '192.168.0.137' and port ''.
[2018-12-29 10:38:14] DEBUG[25789] res_pjsip_registrar.c: Matched id '701' to aor '701'
[2018-12-29 10:38:14] DEBUG[25789] res_pjsip_registrar.c: Matched aor '701' by To username
[2018-12-29 10:38:14] DEBUG[25789] config.c: extract double from [3.0] in [-inf, inf] gives [3.000000](0)
[2018-12-29 10:38:14] DEBUG[25789] config.c: extract uint from [0] in [0, 4294967295] gives [0](0)
[2018-12-29 10:38:14] DEBUG[25789] config.c: extract double from [3.000000] in [-inf, inf] gives [3.000000](0)
[2018-12-29 10:38:14] DEBUG[25789] config.c: extract uint from [5060] in [0, 4294967295] gives [5060](0)
[2018-12-29 10:38:14] DEBUG[25789] config.c: extract uint from [60] in [0, 86400] gives [60](0)
[2018-12-29 10:38:14] DEBUG[25789] config.c: extract double from [3.0] in [-inf, inf] gives [3.000000](0)
[2018-12-29 10:38:14] DEBUG[25789] config.c: extract uint from [0] in [0, 4294967295] gives [0](0)
[2018-12-29 10:38:14] DEBUG[25789] config.c: extract double from [3.000000] in [-inf, inf] gives [3.000000](0)
[2018-12-29 10:38:14] DEBUG[25789] config.c: extract uint from [5060] in [0, 4294967295] gives [5060](0)
[2018-12-29 10:38:14] DEBUG[25789] config.c: extract uint from [60] in [0, 86400] gives [60](0)
[2018-12-29 10:38:14] DEBUG[25789] res_pjsip_registrar.c: Refreshed contact 'sip:[email protected]:5060' on AOR '701' with new expiration of 3600 seconds
[2018-12-29 10:38:14] DEBUG[25789] config.c: extract double from [3.0] in [-inf, inf] gives [3.000000](0)
[2018-12-29 10:38:14] DEBUG[25789] config.c: extract uint from [0] in [0, 4294967295] gives [0](0)
[2018-12-29 10:38:14] DEBUG[25789] config.c: extract double from [3.000000] in [-inf, inf] gives [3.000000](0)
[2018-12-29 10:38:14] DEBUG[25789] config.c: extract uint from [5060] in [0, 4294967295] gives [5060](0)
[2018-12-29 10:38:14] DEBUG[25789] config.c: extract uint from [60] in [0, 86400] gives [60](0)
[2018-12-29 10:38:14] DEBUG[25789] netsock2.c: Splitting '192.168.0.137' into...
[2018-12-29 10:38:14] DEBUG[25789] netsock2.c: ...host '192.168.0.137' and port ''.
[2018-12-29 10:38:14] DEBUG[25789] res_pjsip_nat.c: Request is being sent to local address, skipping NAT manipulation
[2018-12-29 10:38:14] VERBOSE[25789] res_pjsip_logger.c: <--- Transmitting SIP response (432 bytes) to UDP:192.168.0.137:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.0.137:5060;rport=5060;received=192.168.0.137;branch=z9hG4bK3164244746
Call-ID: [email protected]
From: "701" <sip:[email protected]>;tag=4197363148
To: "701" <sip:[email protected]>;tag=z9hG4bK3164244746
CSeq: 4 REGISTER
Date: Sat, 29 Dec 2018 16:38:14 GMT
Contact: <sip:[email protected]:5060>;expires=3599
Expires: 3600
Server: FPBX-14.0.5.5(13.22.0)
Content-Length: 0
[2018-12-29 10:38:14] DEBUG[2270] threadpool.c: Increasing threadpool Sorcery's size by 1
[2018-12-29 10:38:14] DEBUG[19751] manager.c: Examining AMI event:
Event: SuccessfulAuth
Privilege: security,all
EventTV: 2018-12-29T10:38:14.950-0600
Severity: Informational
Service: PJSIP
EventVersion: 1
AccountID: 701
SessionID: [email protected]
LocalAddress: IPV4/UDP/192.168.0.35/5060
RemoteAddress: IPV4/UDP/192.168.0.137/5060
UsingPassword: 1
[2018-12-29 10:38:14] DEBUG[17585] res_pjsip_mwi.c: Sending unsolicited MWI NOTIFY to endpoint 701, new messages: 0, old messages: 0
[2018-12-29 10:38:14] DEBUG[17585] config.c: extract double from [3.0] in [-inf, inf] gives [3.000000](0)
[2018-12-29 10:38:14] DEBUG[17585] config.c: extract uint from [0] in [0, 4294967295] gives [0](0)
[2018-12-29 10:38:14] DEBUG[17585] config.c: extract double from [3.000000] in [-inf, inf] gives [3.000000](0)
[2018-12-29 10:38:14] DEBUG[17585] config.c: extract uint from [5060] in [0, 4294967295] gives [5060](0)
[2018-12-29 10:38:14] DEBUG[17585] config.c: extract uint from [60] in [0, 86400] gives [60](0)
[2018-12-29 10:38:14] DEBUG[17585] res_pjsip.c: 0x2da3a70: Wrapper created
[2018-12-29 10:38:14] DEBUG[17585] res_pjsip/pjsip_message_filter.c: Re-wrote Contact URI host/port to 192.168.0.35:5060 (this may be re-written again later)
[2018-12-29 10:38:14] DEBUG[17585] netsock2.c: Splitting '192.168.0.137' into...
[2018-12-29 10:38:14] DEBUG[17585] netsock2.c: ...host '192.168.0.137' and port ''.
[2018-12-29 10:38:14] DEBUG[17585] res_pjsip_nat.c: Request is being sent to local address, skipping NAT manipulation
[2018-12-29 10:38:14] VERBOSE[17585] res_pjsip_logger.c: <--- Transmitting SIP request (632 bytes) to UDP:192.168.0.137:5060 --->
NOTIFY sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.35:5060;rport;branch=z9hG4bKPj8bc8380c-3cc7-4d6e-a7d8-4a558a47616b
From: <sip:[email protected]>;tag=8ada3409-76ee-40d9-a9b4-5f5583bc002a
To: <sip:[email protected]>
Contact: <sip:[email protected]:5060>
Call-ID: f6de6b17-8e9e-472d-9d6d-fa2d63d19fc6
CSeq: 45634 NOTIFY
Subscription-State: terminated
Event: message-summary
Allow-Events: presence, dialog, message-summary, refer
Max-Forwards: 70
User-Agent: FPBX-14.0.5.5(13.22.0)
Content-Type: application/simple-message-summary
Content-Length: 48
Messages-Waiting: no
Voice-Message: 0/0 (0/0)