app_voicemail: IMAP connection control

A new global option "imap_poll_logout" was added to specify whether need to
disconnect from the IMAP server after polling of mailboxes.

ASTERISK-27068 #close

Closing IMAP connection after loading mailbox from voicemail.conf

ASTERISK-24052 #close

Change-Id: Ib7558ba04516240a32b65f42e9be64372a0ae12a
This commit is contained in:
Alexei Gradinari
2017-06-19 18:21:29 -04:00
parent 507ce0aa95
commit 8f356192d1
3 changed files with 26 additions and 0 deletions

View File

@@ -227,6 +227,9 @@ pagerdateformat=%A, %B %d, %Y at %r
;imapclosetimeout=60 ; The TCP close timeout (in seconds)
;imapreadtimeout=60 ; The TCP read timeout (in seconds)
;imapwritetimeout=60 ; The TCP write timeout (in seconds)
;imap_poll_logout=no ; If pollmailboxes=yes, then specify whether need to
; disconnect from the IMAP server after polling.
; Default: no
; -----------------------------------------------------------------------------
;