簡體   English   中英

安裝MySQL實時數據庫后,Asterisk 11無法撥打電話

[英]Asterisk 11 cannot make a call after installing MySQL real-time database

我已經在CentOS 6.4和MySQL數據庫上實時安裝了Asterisk 11。 我遵循了本手冊

我更改了所有sip.conf,extenstions.conf和extconfig.conf。 我可以成功地將Asterisk實時實時連接到MySQL數據庫。 用戶注冊工作正常。 但是,我聽不到手機的聲音,也無法撥打其他電話。

這是我從“用戶1000”調用“用戶2000”時的日志

[Apr 12 00:24:11] WARNING[19656][C-0000000c]: sip/config_parser.c:812 sip_parse_nat_option: nat=yes is deprecated, use nat=force_rport,comedia instead
[Apr 12 00:24:11] WARNING[19656][C-0000000c]: sip/config_parser.c:812 sip_parse_nat_option: nat=yes is deprecated, use nat=force_rport,comedia instead
[Apr 12 00:24:11] WARNING[19656][C-0000000c]: sip/config_parser.c:812 sip_parse_nat_option: nat=yes is deprecated, use nat=force_rport,comedia instead
  == Using SIP RTP CoS mark 5
[Apr 12 00:24:11] WARNING[19656][C-0000000c]: sip/config_parser.c:812 sip_parse_nat_option: nat=yes is deprecated, use nat=force_rport,comedia instead
    -- Executing [2000@from-sip:1] Dial("SIP/1000-0000000b", "SIP/2000|30")
[Apr 12 00:24:11] WARNING[22592][C-0000000c]: pbx.c:1618 pbx_exec: The application delimiter is now the comma, not the pipe.  Did you forget to convert your dialplan?  (Dial(SIP/2000|30))
  == Using SIP RTP CoS mark 5
[Apr 12 00:24:11] ERROR[22592][C-0000000c]: netsock2.c:269 ast_sockaddr_resolve: getaddrinfo("2000|30", "(null)", ...): Name or service not known
[Apr 12 00:24:11] WARNING[22592][C-0000000c]: chan_sip.c:6204 create_addr: No such host: 2000|30
[Apr 12 00:24:11] WARNING[22592][C-0000000c]: app_dial.c:2437 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Subscriber absent)
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Executing [2000@from-sip:2] VoiceMail("SIP/1000-0000000b", "2000@from-sip")
    -- <SIP/1000-0000000b> Playing 'vm-intro.gsm' (language 'en')
    -- <SIP/1000-0000000b> Playing 'beep.gsm' (language 'en')
    -- Recording the message
    -- x=0, open writing:  /var/spool/asterisk/voicemail/from-sip/2000/tmp/5lOmnn format: wav49, 0x7fa2b80013d8
    -- x=1, open writing:  /var/spool/asterisk/voicemail/from-sip/2000/tmp/5lOmnn format: gsm, 0x7fa2b80049b8
    -- x=2, open writing:  /var/spool/asterisk/voicemail/from-sip/2000/tmp/5lOmnn format: wav, 0x7fa2b80041b8

看到問題了嗎?

sip.conf

[general]
 context=from-sip                        ; Default context for incoming calls
 ;
 bindport=5060                   ; bindport is the local UDP port that Asterisk will listen on
 bindaddr=0.0.0.0           ; IP address to bind to (0.0.0.0 binds to all)
 ;
 disallow=all                    ; First disallow all codecs
 allow=gsm
 allow=ulaw                      ; Allow codecs in order of preference
 ;
 register => 12121111111:1234:11111111@sipauth.deltathree.com/1000

extensions.conf文件

[general]
 [globals]
 ;
 [from-sip]
 switch =>Realtime

res_config_mysql.conf

[general]
dbhost = 127.0.0.1
dbname = asteriskrealtime
dbuser = root
dbpass = password
dbport = 3306

您已在db的擴展表中編寫了正確的Dialplan。

對於低於1.4的星號,請使用帶管道(|)分隔符的appdata,對於較新的版本,請使用逗號。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM