I’m testing Asterisk 17.7.0. PJSIP calls and leaving and retrieving voicemail work OK. Only a minor doubt: shouldn’t billsec in the CDR be zero if the person calling the unavailable endpoint hangs up before the “leave message” beep? That’s how cellphone operators here behave and I will need to replicate that shortly. I’ve looked up and saw no way to do that.
MariaDB [asterisk]> select uniqueid, start, answer, end, duration, billsec, disposition, lastapp from cdr;
+---------------+---------------------+---------------------+---------------------+----------+---------+-------------+---------------+
| uniqueid | start | answer | end | duration | billsec | disposition | lastapp |
+---------------+---------------------+---------------------+---------------------+----------+---------+-------------+---------------+
| 1602189140.0 | 2020-10-08 17:32:20 | 2020-10-08 17:32:23 | 2020-10-08 17:32:32 | 11 | 8 | ANSWERED | Dial |
| 1602189169.3 | 2020-10-08 17:32:49 | 2020-10-08 17:32:49 | 2020-10-08 17:32:54 | 4 | 4 | ANSWERED | VoiceMailMain |
| 1602189189.5 | 2020-10-08 17:33:09 | 2020-10-08 17:33:09 | 2020-10-08 17:33:23 | 14 | 14 | ANSWERED | Hangup |
| 1602189249.7 | 2020-10-08 17:34:09 | 0000-00-00 00:00:00 | 2020-10-08 17:34:24 | 14 | 0 | NO ANSWER | Dial |
| 1602189249.7 | 2020-10-08 17:34:24 | 2020-10-08 17:34:24 | 2020-10-08 17:34:29 | 5 | 5 | ANSWERED | VoiceMail |
| 1602195563.11 | 2020-10-08 19:19:23 | 2020-10-08 19:19:23 | 2020-10-08 19:19:35 | 12 | 12 | ANSWERED | Dial |
| 1602195593.13 | 2020-10-08 19:19:53 | 2020-10-08 19:19:53 | 2020-10-08 19:19:59 | 5 | 5 | ANSWERED | Dial |
| 1602196547.15 | 2020-10-08 19:35:47 | 0000-00-00 00:00:00 | 2020-10-08 19:36:19 | 32 | 0 | NO ANSWER | Dial |
| 1602196547.15 | 2020-10-08 19:36:19 | 2020-10-08 19:36:19 | 2020-10-08 19:36:50 | 30 | 30 | ANSWERED | VoiceMail |
| 1602196718.19 | 2020-10-08 19:38:38 | 2020-10-08 19:38:38 | 2020-10-08 19:38:44 | 5 | 5 | ANSWERED | VoiceMailMain |
| 1602196731.21 | 2020-10-08 19:38:51 | 2020-10-08 19:38:51 | 2020-10-08 19:39:20 | 29 | 29 | ANSWERED | Dial |
+---------------+---------------------+---------------------+---------------------+----------+---------+-------------+---------------+
11 rows in set (0.001 sec)