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;"> `uniqueid` int(11) NOT NULL auto_increment,
</span><br><span style="font-family: monospace;"> `customer_id` varchar(11) NOT NULL default '0',
</span><br><span style="font-family: monospace;"> `context` varchar(50) NOT NULL default '',
</span><br><span style="font-family: monospace;"> `mailbox` varchar(11) NOT NULL default '0',
</span><br><span style="font-family: monospace;"> `password` varchar(5) NOT NULL default '0',
</span><br><span style="font-family: monospace;"> `fullname` varchar(150) NOT NULL default '',
</span><br><span style="font-family: monospace;"> `email` varchar(50) NOT NULL default '',
</span><br><span style="font-family: monospace;"> `pager` varchar(50) NOT NULL default '',
</span><br><span style="font-family: monospace;"> `tz` varchar(10) NOT NULL default 'central',
</span><br><span style="font-family: monospace;"> `attach` varchar(4) NOT NULL default 'yes',
</span><br><span style="font-family: monospace;"> `saycid` varchar(4) NOT NULL default 'yes',
</span><br><span style="font-family: monospace;"> `dialout` varchar(10) NOT NULL default '',
</span><br><span style="font-family: monospace;"> `callback` varchar(10) NOT NULL default '',
</span><br><span style="font-family: monospace;"> `review` varchar(4) NOT NULL default 'no',
</span><br><span style="font-family: monospace;"> `operator` varchar(4) NOT NULL default 'no',
</span><br><span style="font-family: monospace;"> `envelope` varchar(4) NOT NULL default 'no',
</span><br><span style="font-family: monospace;"> `sayduration` varchar(4) NOT NULL default 'no',
</span><br><span style="font-family: monospace;"> `saydurationm` tinyint(4) NOT NULL default '1',
</span><br><span style="font-family: monospace;"> `sendvoicemail` varchar(4) NOT NULL default 'no',
</span><br><span style="font-family: monospace;"> `delete` varchar(4) NOT NULL default 'no',
</span><br><span style="font-family: monospace;"> `nextaftercmd` varchar(4) NOT NULL default 'yes',
</span><br><span style="font-family: monospace;"> `forcename` varchar(4) NOT NULL default 'no',
</span><br><span style="font-family: monospace;"> `forcegreetings` varchar(4) NOT NULL default 'no',
</span><br><span style="font-family: monospace;"> `hidefromdir` varchar(4) NOT NULL default 'yes',
</span><br><span style="font-family: monospace;"> `stamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
</span><br><span style="font-family: monospace;"> PRIMARY KEY (`uniqueid`),
</span><br><span style="font-family: monospace;"> KEY `mailbox_context` (`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&table=voicemail&token=0972567b5941029e3c082f1c8903ad4e&pos=0&session_max_rows=30&disp_direction=horizontal&repeat_cells=100&dontlimitchars=0&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 <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>