PBX API : GET /Voicemail/

Get all voicemails from PBX (available from wms ver. 3.80.30805.52)

http(s)://{PBX}/api/v1/VoiceMail/

Response:

{"type":"result","result":{"total":6,"records":[{"duration":"3","macrocontext":"","flag":"","origdate":"Tue Jan 12 11:37:29 AM UTC 2016","origtime":"1452598649","exten":"379","rdnis":"unknown","category":"","msg_id":"msg1452598652-1720752116","origmailbox":"379","callerchan":"SIP\/319-00000384","priority":"1","context":"users","callerid":"\"Sergey Sinina\" <319>","folder":"INBOX","file":"msg0002.txt","path":"379\/INBOX\/msg1452598652-1720752116.mp3"},{"duration":"5","macrocontext":"","flag":"","origdate":"Tue Jan 12 11:37:01 AM UTC 2016","origtime":"1452598621","exten":"379","rdnis":"unknown","category":"","msg_id":"msg1452598627-1230726010","origmailbox":"379","callerchan":"SIP\/319-00000382","priority":"1","context":"users","callerid":"\"Sergey Sinina\" <319>","folder":"INBOX","file":"msg0001.txt","path":"379\/INBOX\/msg1452598627-1230726010.mp3"},{"duration":"7","macrocontext":"","flag":"","origdate":"Tue Jan 12 11:36:11 AM UTC 2016","origtime":"1452598571","exten":"379","rdnis":"unknown","category":"","msg_id":"msg1452598579-1847737034","origmailbox":"379","callerchan":"SIP\/319-00000380","priority":"1","context":"users","callerid":"\"Sergey Sinina\" <319>","folder":"INBOX","file":"msg0000.txt","path":"379\/INBOX\/msg1452598579-1847737034.mp3"},{"duration":"8","macrocontext":"","flag":"","origdate":"Mon Jan 11 11:34:36 AM UTC 2016","origtime":"1452512076","exten":"379","rdnis":"unknown","category":"","msg_id":"msg1452512084-2115301175","origmailbox":"379","callerchan":"SIP\/319-00000271","priority":"1","context":"users","callerid":"\"Sergey Sinina\" <319>","folder":"Old","file":"msg0001.txt","path":"379\/INBOX\/msg1452512084-2115301175.mp3"},{"duration":"9","macrocontext":"","flag":"","origdate":"Mon Jan 11 11:33:29 AM UTC 2016","origtime":"1452512009","exten":"379","rdnis":"unknown","category":"","msg_id":"msg1452512018-1778991337","origmailbox":"379","callerchan":"SIP\/319-0000026c","priority":"1","context":"users","callerid":"\"Sergey Sinina\" <319>","folder":"Old","file":"msg0002.txt","path":"379\/INBOX\/msg1452512018-1778991337.mp3"},{"origmailbox":"379","context":"users","macrocontext":"","exten":"379","rdnis":"unknown","priority":"1","callerchan":"SIP\/318-00000019","callerid":"\"Roman Golovatyi\" <318>","origdate":"Thu Jun 11 06:54:07 AM UTC 2015","origtime":"1434005647","category":"","msg_id":"1434005647-00000000","flag":"","duration":"41","folder":"Old","file":"msg0000.txt","path":""}]}}


Path:

../spoolview/voicemail/{extension}/INBOX/msg{id-a}-{id-b}.[mp3|wav]

https://ucua.wildixin.com/spoolview/voicemail/379/INBOX/msg1452512018-1778991337.mp3


Example:

 

CLI CURL

curl -X GET --globoff -u 300:wil01dix --url "http://10.100.1.208/api/v1/VoiceMail/"