<br>Alguém sabe me dizer o porque que não consegui inserir dados na minha tabela voicemessages, no campo RECORDING, a sintaxe no extensions esta errada ?<br><br><br>exten => 100,1,Voicemail(100@default)<br>exten => 100,n,MYSQL(Connect connid localhost asterisk 123456 asterisk)<br>
exten => 100,n,MYSQL(Query resultid ${connid} INSERT\ INTO\ voicemessages\ set\ dir="/var/spool/asterisk/voicemail/default/${EXTEN}/INBOX/"\,callerid=${CALLERID(numbe))}\,recording=LOAD_FILE("/var/spool/asterisk/voicemail/default/${EXTEN}/INBOX/msg0001.WAV")\)<br>
<br><br>exten => 100,n,Hangup()<br><br><br>+----+--------+-------------------------------------------------------------+---------+--------------+----------+----------+----------+-------------+----------------+-----------+<br>
| id | msgnum | dir | context | macrocontext | callerid | origtime | duration | mailboxuser | mailboxcontext | recording |<br>+----+--------+-------------------------------------------------------------+---------+--------------+----------+----------+----------+-------------+----------------+-----------+<br>
| 1 | 0 | /var/spool/asterisk/voicemail/default/100/INBOX/ | | | 105 | | | | | NULL |<br>+----+--------+--------------------------------------------------+---------+--------------+----------+----------+----------+-------------+----------------+-----------<br clear="all">
<br>-- <br>Wendell Silva Bandeira<br>Analista de TI <br><br>