无法通过星号中的odbc存储语音邮件

时间:2014-04-04 13:01:16

标签: asterisk voip ivr

我正在使用asterisk 1.8尝试在数据库中保存语音邮件详细信息但是cli显示了这个

     [Apr  4 18:11:54] NOTICE[6879][C-00000006]: chan_sip.c:25503 handle_request_invite: Call from '' (37.59.2.156:5071) to extension '9900972597869877' rejected because extension not found in context 'default'.
    -- <DAHDI/i1/9634434640-3> Playing 'digits/4.gsm' (language 'yes')
    -- <DAHDI/i1/9634434640-3> Playing 'digits/7.gsm' (language 'yes')
    -- <DAHDI/i1/9634434640-3> Playing 'digits/5.gsm' (language 'yes')
    -- <DAHDI/i1/9634434640-3> Playing 'digits/9.gsm' (language 'yes')
    -- <DAHDI/i1/9634434640-3> Playing 'digits/5.gsm' (language 'yes')
    -- <DAHDI/i1/9634434640-3> Playing 'digits/0.gsm' (language 'yes')
    -- <DAHDI/i1/9634434640-3> Playing 'digits/0.gsm' (language 'yes')
    -- <DAHDI/i1/9634434640-3> Playing 'vm-isunavail.gsm' (language 'yes')
    -- <DAHDI/i1/9634434640-3> Playing 'vm-intro.gsm' (language 'yes')
    -- <DAHDI/i1/9634434640-3> Playing 'beep.gsm' (language 'yes')
    -- Recording the message
    -- x=0, open writing:  /var/spool/asterisk/voicemail/default/4759500/tmp/E2vm3O format: wav49, 0xb7416ecc
    -- x=1, open writing:  /var/spool/asterisk/voicemail/default/4759500/tmp/E2vm3O format: gsm, 0xb741f5b4
    -- x=2, open writing:  /var/spool/asterisk/voicemail/default/4759500/tmp/E2vm3O format: wav, 0xb741fcdc
    -- Span 1: Channel 0/1 got hangup request, cause 16
    -- User hung up
  == Parsing '/var/spool/asterisk/voicemail/default/4759500/INBOX/msg0000.txt': Found
[Apr  4 18:12:14] WARNING[6963][C-00000004]: app_voicemail.c:4086 insert_data_cb: SQL Direct Execute failed!
[Apr  4 18:12:14] WARNING[6963][C-00000004]: res_odbc.c:608 ast_odbc_direct_execute: SQL Execute error! Verifying connection to asterisk [asterisk-connector]...
[Apr  4 18:12:14] WARNING[6963][C-00000004]: app_voicemail.c:4086 insert_data_cb: SQL Direct Execute failed!
[Apr  4 18:12:14] WARNING[6963][C-00000004]: app_voicemail.c:4202 store_file: SQL Execute error!
[INSERT INTO voicemail (dir,msgnum,recording,context,macrocontext,callerid,origtime,duration,mailboxuser,mailboxcontext,flag,msg_id) VALUES (?,?,?,?,?,?,?,?,?,?,?,?)]

  == Spawn extension (voice, 4759500, 4) exited non-zero on 'DAHDI/i1/9634434640-3'
    -- Hungup 'DAHDI/i1/9634434640-3'
[Apr  4 18:12:14] WARNING[6963][C-00000004]: res_odbc.c:608 ast_odbc_direct_execute: SQL Execute error! Verifying connection to asterisk [asterisk-connector]...

任何帮助将不胜感激

1 个答案:

答案 0 :(得分:0)

你没有odbc连接或没有桌子。

准确问题检查

asterisk -rx "odbc show"