Boa tarde, <br><br>Comecei há 3 dias a configurar o Asterisk em minha residência, e estou tendo problemas com a criação de diretórios no Voicemail, alguém poderia me auxiliar?<br><br>A tabela foi criada da seguinte maneira:
<br><br>CREATE TABLE `voicemail` (
<br><span style="font-family: monospace;">&nbsp;`uniqueid`&nbsp;int(11)&nbsp;NOT&nbsp;NULL&nbsp;auto_increment,
</span><br><span style="font-family: monospace;">&nbsp;`customer_id`&nbsp;varchar(11)&nbsp;NOT&nbsp;NULL&nbsp;default&nbsp;'0',
</span><br><span style="font-family: monospace;">&nbsp;`context`&nbsp;varchar(50)&nbsp;NOT&nbsp;NULL&nbsp;default&nbsp;'',
</span><br><span style="font-family: monospace;">&nbsp;`mailbox`&nbsp;varchar(11)&nbsp;NOT&nbsp;NULL&nbsp;default&nbsp;'0',
</span><br><span style="font-family: monospace;">&nbsp;`password`&nbsp;varchar(5)&nbsp;NOT&nbsp;NULL&nbsp;default&nbsp;'0',
</span><br><span style="font-family: monospace;">&nbsp;`fullname`&nbsp;varchar(150)&nbsp;NOT&nbsp;NULL&nbsp;default&nbsp;'',
</span><br><span style="font-family: monospace;">&nbsp;`email`&nbsp;varchar(50)&nbsp;NOT&nbsp;NULL&nbsp;default&nbsp;'',
</span><br><span style="font-family: monospace;">&nbsp;`pager`&nbsp;varchar(50)&nbsp;NOT&nbsp;NULL&nbsp;default&nbsp;'',
</span><br><span style="font-family: monospace;">&nbsp;`tz`&nbsp;varchar(10)&nbsp;NOT&nbsp;NULL&nbsp;default&nbsp;'central',
</span><br><span style="font-family: monospace;">&nbsp;`attach`&nbsp;varchar(4)&nbsp;NOT&nbsp;NULL&nbsp;default&nbsp;'yes',
</span><br><span style="font-family: monospace;">&nbsp;`saycid`&nbsp;varchar(4)&nbsp;NOT&nbsp;NULL&nbsp;default&nbsp;'yes',
</span><br><span style="font-family: monospace;">&nbsp;`dialout`&nbsp;varchar(10)&nbsp;NOT&nbsp;NULL&nbsp;default&nbsp;'',
</span><br><span style="font-family: monospace;">&nbsp;`callback`&nbsp;varchar(10)&nbsp;NOT&nbsp;NULL&nbsp;default&nbsp;'',
</span><br><span style="font-family: monospace;">&nbsp;`review`&nbsp;varchar(4)&nbsp;NOT&nbsp;NULL&nbsp;default&nbsp;'no',
</span><br><span style="font-family: monospace;">&nbsp;`operator`&nbsp;varchar(4)&nbsp;NOT&nbsp;NULL&nbsp;default&nbsp;'no',
</span><br><span style="font-family: monospace;">&nbsp;`envelope`&nbsp;varchar(4)&nbsp;NOT&nbsp;NULL&nbsp;default&nbsp;'no',
</span><br><span style="font-family: monospace;">&nbsp;`sayduration`&nbsp;varchar(4)&nbsp;NOT&nbsp;NULL&nbsp;default&nbsp;'no',
</span><br><span style="font-family: monospace;">&nbsp;`saydurationm`&nbsp;tinyint(4)&nbsp;NOT&nbsp;NULL&nbsp;default&nbsp;'1',
</span><br><span style="font-family: monospace;">&nbsp;`sendvoicemail`&nbsp;varchar(4)&nbsp;NOT&nbsp;NULL&nbsp;default&nbsp;'no',
</span><br><span style="font-family: monospace;">&nbsp;`delete`&nbsp;varchar(4)&nbsp;NOT&nbsp;NULL&nbsp;default&nbsp;'no',
</span><br><span style="font-family: monospace;">&nbsp;`nextaftercmd`&nbsp;varchar(4)&nbsp;NOT&nbsp;NULL&nbsp;default&nbsp;'yes',
</span><br><span style="font-family: monospace;">&nbsp;`forcename`&nbsp;varchar(4)&nbsp;NOT&nbsp;NULL&nbsp;default&nbsp;'no',
</span><br><span style="font-family: monospace;">&nbsp;`forcegreetings`&nbsp;varchar(4)&nbsp;NOT&nbsp;NULL&nbsp;default&nbsp;'no',
</span><br><span style="font-family: monospace;">&nbsp;`hidefromdir`&nbsp;varchar(4)&nbsp;NOT&nbsp;NULL&nbsp;default&nbsp;'yes',
</span><br><span style="font-family: monospace;">&nbsp;`stamp`&nbsp;timestamp&nbsp;NOT&nbsp;NULL&nbsp;default&nbsp;CURRENT_TIMESTAMP&nbsp;on&nbsp;update&nbsp;CURRENT_TIMESTAMP,
</span><br><span style="font-family: monospace;">&nbsp;PRIMARY&nbsp;KEY&nbsp;&nbsp;(`uniqueid`),
</span><br><span style="font-family: monospace;">&nbsp;KEY&nbsp;`mailbox_context`&nbsp;(`mailbox`,`context`)
</span><br>) ENGINE=MyISAM DEFAULT CHARSET=latin1 ;
<br><br><br><br>Então coloco para inserir no sql: <br><br><span class="syntax"><span class="syntax_alpha syntax_alpha_reservedWord">INSERT</span>  <span class="syntax_alpha syntax_alpha_reservedWord">INTO</span>  <span class="syntax_quote syntax_quote_backtick">
`voicemail`</span> <span class="syntax_punct syntax_punct_bracket_open_round">(</span>  <span class="syntax_quote syntax_quote_backtick">`uniqueid`</span> <span class="syntax_punct syntax_punct_listsep">,</span>  <span class="syntax_quote syntax_quote_backtick">
`customer_id`</span> <span class="syntax_punct syntax_punct_listsep">,</span>  <span class="syntax_quote syntax_quote_backtick">`context`</span> <span class="syntax_punct syntax_punct_listsep">,</span>  <span class="syntax_quote syntax_quote_backtick">
`mailbox`</span> <span class="syntax_punct syntax_punct_listsep">,</span>  <span class="syntax_quote syntax_quote_backtick">`password`</span> <span class="syntax_punct syntax_punct_listsep">,</span>  <span class="syntax_quote syntax_quote_backtick">
`fullname`</span> <span class="syntax_punct syntax_punct_listsep">,</span>  <span class="syntax_quote syntax_quote_backtick">`email`</span> <span class="syntax_punct syntax_punct_listsep">,</span>  <span class="syntax_quote syntax_quote_backtick">
`pager`</span> <span class="syntax_punct syntax_punct_listsep">,</span>  <span class="syntax_quote syntax_quote_backtick">`tz`</span> <span class="syntax_punct syntax_punct_listsep">,</span>  <span class="syntax_quote syntax_quote_backtick">
`attach`</span> <span class="syntax_punct syntax_punct_listsep">,</span>  <span class="syntax_quote syntax_quote_backtick">`saycid`</span> <span class="syntax_punct syntax_punct_listsep">,</span>  <span class="syntax_quote syntax_quote_backtick">
`dialout`</span> <span class="syntax_punct syntax_punct_listsep">,</span>  <span class="syntax_quote syntax_quote_backtick">`callback`</span> <span class="syntax_punct syntax_punct_listsep">,</span>  <span class="syntax_quote syntax_quote_backtick">
`review`</span> <span class="syntax_punct syntax_punct_listsep">,</span>  <span class="syntax_quote syntax_quote_backtick">`operator`</span> <span class="syntax_punct syntax_punct_listsep">,</span>  <span class="syntax_quote syntax_quote_backtick">
`envelope`</span> <span class="syntax_punct syntax_punct_listsep">,</span>  <span class="syntax_quote syntax_quote_backtick">`sayduration`</span> <span class="syntax_punct syntax_punct_listsep">,</span>  <span class="syntax_quote syntax_quote_backtick">
`saydurationm`</span> <span class="syntax_punct syntax_punct_listsep">,</span>  <span class="syntax_quote syntax_quote_backtick">`sendvoicemail`</span> <span class="syntax_punct syntax_punct_listsep">,</span>  <span class="syntax_quote syntax_quote_backtick">
`delete`</span> <span class="syntax_punct syntax_punct_listsep">,</span>  <span class="syntax_quote syntax_quote_backtick">`nextaftercmd`</span> <span class="syntax_punct syntax_punct_listsep">,</span>  <span class="syntax_quote syntax_quote_backtick">
`forcename`</span> <span class="syntax_punct syntax_punct_listsep">,</span>  <span class="syntax_quote syntax_quote_backtick">`forcegreetings`</span> <span class="syntax_punct syntax_punct_listsep">,</span>  <span class="syntax_quote syntax_quote_backtick">
`hidefromdir`</span> <span class="syntax_punct syntax_punct_listsep">,</span>  <span class="syntax_quote syntax_quote_backtick">`stamp`</span>  <span class="syntax_punct syntax_punct_bracket_close_round">)</span> <br><span class="syntax_alpha syntax_alpha_reservedWord">
VALUES</span> <span class="syntax_punct syntax_punct_bracket_open_round">(</span><div class="syntax_indent1"> <span class="syntax_alpha syntax_alpha_reservedWord">NULL</span> <span class="syntax_punct syntax_punct_listsep">
,</span>  <span class="syntax_quote syntax_quote_single">'0'</span><span class="syntax_punct syntax_punct_listsep">,</span>  <span class="syntax_quote syntax_quote_single">'teste'</span><span class="syntax_punct syntax_punct_listsep">
,</span>  <span class="syntax_quote syntax_quote_single">'102'</span><span class="syntax_punct syntax_punct_listsep">,</span>  <span class="syntax_quote syntax_quote_single">'102'</span><span class="syntax_punct syntax_punct_listsep">
,</span>  <span class="syntax_quote syntax_quote_single">'Nando'</span><span class="syntax_punct syntax_punct_listsep">,</span>  <span class="syntax_quote syntax_quote_single">'<a href="mailto:nando@nand0.net">nando@nand0.net
</a>'</span><span class="syntax_punct syntax_punct_listsep">,</span>  <span class="syntax_quote syntax_quote_single">''</span><span class="syntax_punct syntax_punct_listsep">,</span>  <span class="syntax_quote syntax_quote_single">
'central'</span><span class="syntax_punct syntax_punct_listsep">,</span>  <span class="syntax_quote syntax_quote_single">'yes'</span><span class="syntax_punct syntax_punct_listsep">,</span>  <span class="syntax_quote syntax_quote_single">
'yes'</span><span class="syntax_punct syntax_punct_listsep">,</span>  <span class="syntax_quote syntax_quote_single">''</span><span class="syntax_punct syntax_punct_listsep">,</span>  <span class="syntax_quote syntax_quote_single">
''</span><span class="syntax_punct syntax_punct_listsep">,</span>  <span class="syntax_quote syntax_quote_single">'no'</span><span class="syntax_punct syntax_punct_listsep">,</span>  <span class="syntax_quote syntax_quote_single">
'no'</span><span class="syntax_punct syntax_punct_listsep">,</span>  <span class="syntax_quote syntax_quote_single">'no'</span><span class="syntax_punct syntax_punct_listsep">,</span>  <span class="syntax_quote syntax_quote_single">
'no'</span><span class="syntax_punct syntax_punct_listsep">,</span>  <span class="syntax_quote syntax_quote_single">'1'</span><span class="syntax_punct syntax_punct_listsep">,</span>  <span class="syntax_quote syntax_quote_single">
'no'</span><span class="syntax_punct syntax_punct_listsep">,</span>  <span class="syntax_quote syntax_quote_single">'no'</span><span class="syntax_punct syntax_punct_listsep">,</span>  <span class="syntax_quote syntax_quote_single">
'yes'</span><span class="syntax_punct syntax_punct_listsep">,</span>  <span class="syntax_quote syntax_quote_single">'no'</span><span class="syntax_punct syntax_punct_listsep">,</span>  <span class="syntax_quote syntax_quote_single">
'no'</span><span class="syntax_punct syntax_punct_listsep">,</span>  <span class="syntax_quote syntax_quote_single">'yes'</span><span class="syntax_punct syntax_punct_listsep">,</span> <span class="syntax_alpha syntax_alpha_functionName">
NOW</span><span class="syntax_punct syntax_punct_bracket_open_round">(</span>  <span class="syntax_punct syntax_punct_bracket_close_round">)</span> </div><span class="syntax_punct syntax_punct_bracket_close_round">)</span>
<span class="syntax_punct syntax_punct_queryend">;<br><br>Ou seha:<br><br></span></span>context = testando<br>mailbox = 102<br>password = 102<br>fullname = Nando<br>email = <a href="mailto:nando@nand0.net">nando@nand0.net
</a><br>attach = yes<br>saycid = yes<br>review = yes<br>sendvoicemail = yes<br>.<br>.<br>.<br><a href="http://localhost/phpmyadmin/sql.php?db=asterisk&amp;table=voicemail&amp;token=0972567b5941029e3c082f1c8903ad4e&amp;pos=0&amp;session_max_rows=30&amp;disp_direction=horizontal&amp;repeat_cells=100&amp;dontlimitchars=0&amp;sql_query=SELECT+%2AFROM+%60voicemail%60+WHERE+1++ORDER+BY+%60stamp%60+ASC" title="Ordenar">
</a>hidefromdir = yes<br><br><br>Quando eu acesso o VoiceMailMain<br><br>Ele me pede: <br><br>1- Número da Conta: Digito 102<br><br>2- Senha: Digito 102<br><br>Tudo certo, ele entra na caixa de mensagens do ramal digitado, mas o Asterisk não está gerando os diretorios INBOX e Old, ele gera o CONTEXT e a Mailbox apenas. 
<br><br>fortress:/var/spool/asterisk/voicemail# ls<br>testando&nbsp;&nbsp; <br><br>fortress:/var/spool/asterisk/voicemail/testando# ls<br>102<br><br>fortress:/var/spool/asterisk/voicemail/testando/102# ls<br>fortress:/var/spool/asterisk/voicemail/testando/102#
<br><br>Eu criando o dir INBOX e Old na mão (dentro de testando/102), funciona perfeitamente.. informando as mensagens antigas e novas, com ele não criar esses diretórios me retorna o erro no prompt do Asterisk: <br><br>Sep 14 14:59:04 ERROR[9568]: 
app.c:1161 ast_lock_path: Unable to create lock file '/var/spool/asterisk/voicemail/testando/102/Old': No such file or directory<br>Sep 14 14:59:04 ERROR[9568]: app.c:1196 ast_unlock_path: Could not unlock path '/var/spool/asterisk/voicemail/testando/102/Old': No such file or directory
<br>Sep 14 14:59:04 ERROR[9568]: app.c:1161 ast_lock_path: Unable to create lock file '/var/spool/asterisk/voicemail/testando/102/Old': No such file or directory<br>Sep 14 14:59:04 ERROR[9568]: app.c:1196 ast_unlock_path: Could not unlock path '/var/spool/asterisk/voicemail/testando/102/Old': No such file or directory
<br>Sep 14 14:59:04 ERROR[9568]: app.c:1161 ast_lock_path: Unable to create lock file '/var/spool/asterisk/voicemail/testando/102/INBOX': No such file or directory<br>Sep 14 14:59:04 ERROR[9568]: app.c:1196 ast_unlock_path: Could not unlock path '/var/spool/asterisk/voicemail/testando/102/INBOX': No such file or directory
<br>Sep 14 14:59:04 ERROR[9568]: app.c:1161 ast_lock_path: Unable to create lock file '/var/spool/asterisk/voicemail/testando/102/INBOX': No such file or directory<br>Sep 14 14:59:04 ERROR[9568]: app.c:1196 ast_unlock_path: Could not unlock path '/var/spool/asterisk/voicemail/testando/102/INBOX': No such file or directory
<br><br><br>Desde já agradeço. <br><br><br>Atenciosamente,<br>Nando<br>