Проблема с исходящими звонками через FXO
Добавлено: 04 мар 2014, 07:33
Всем Приветствую всех присутствующих!,
Проблема с исходящими звонками через FXO линию. При попытке сделать звонок 32 секунды тишина, затем короткие гудки. Причем, если перезапустить астер, то исходящие звонки нормально идут до тех пор, пока не было хоть одного входящего звонка на эту линию. Входящие звонки работают нормально.
При исходящем, астер в логах пишет следующее:
Проблема с исходящими звонками через FXO линию. При попытке сделать звонок 32 секунды тишина, затем короткие гудки. Причем, если перезапустить астер, то исходящие звонки нормально идут до тех пор, пока не было хоть одного входящего звонка на эту линию. Входящие звонки работают нормально.
При исходящем, астер в логах пишет следующее:
sip.conf== Using SIP RTP CoS mark 5
-- Executing [489086578527@from-internal:1] Answer("SIP/199-00003226", "") in new stack
-- Executing [489086578527@from-internal:2] Gosub("SIP/199-00003226", "subInitVariables,start,1()") in new stack
-- Executing [start@subInitVariables:1] GotoIf("SIP/199-00003226", "1?init:return") in new stack
-- Goto (subInitVariables,start,2)
-- Executing [start@subInitVariables:2] Set("SIP/199-00003226", "__INITIALISED=1") in new stack
-- Executing [start@subInitVariables:3] Set("SIP/199-00003226", "__MYSQL_PARENT_CALL_ID=0") in new stack
-- Executing [start@subInitVariables:4] Set("SIP/199-00003226", "__MYSQL_CALL_ID=0") in new stack
-- Executing [start@subInitVariables:5] Set("SIP/199-00003226", "__THIS_CHILD_CALL=0") in new stack
-- Executing [start@subInitVariables:6] Set("SIP/199-00003226", "__CALL_RECORDING=0") in new stack
-- Executing [start@subInitVariables:7] Set("SIP/199-00003226", "__CLIENT_CALL=0") in new stack
-- Executing [start@subInitVariables:8] Set("SIP/199-00003226", "__CALLER_NUMBER=199") in new stack
-- Executing [start@subInitVariables:9] Return("SIP/199-00003226", "") in new stack
-- Executing [489086578527@from-internal:3] Gosub("SIP/199-00003226", "subCallWrite,start,1(2)") in new stack
-- Executing [start@subCallWrite:1] MYSQL("SIP/199-00003226", "Connect mysqlconnid localhost asterisk hf783477thy9088ggd asterisk") in new stack
-- Executing [start@subCallWrite:2] GotoIf("SIP/199-00003226", "1?write_new:write_child") in new stack
-- Goto (subCallWrite,start,3)
-- Executing [start@subCallWrite:3] MYSQL("SIP/199-00003226", "Query resultid 1 INSERT INTO calls (caller, called_ext, start, type) VALUES ('199', '4XXXXXXXXX', '2014-03-04 12:16:48', 2)") in new stack
-- Executing [start@subCallWrite:4] Goto("SIP/199-00003226", "query") in new stack
-- Goto (subCallWrite,start,9)
-- Executing [start@subCallWrite:9] MYSQL("SIP/199-00003226", "Query resultid 1 SELECT LAST_INSERT_ID()") in new stack
-- Executing [start@subCallWrite:10] MYSQL("SIP/199-00003226", "Fetch fetchid 2 __MYSQL_CALL_ID") in new stack
-- Executing [start@subCallWrite:11] MYSQL("SIP/199-00003226", "Clear 2") in new stack
-- Executing [start@subCallWrite:12] MYSQL("SIP/199-00003226", "Disconnect 1") in new stack
-- Executing [start@subCallWrite:13] GotoIf("SIP/199-00003226", "1?write_parent_call:return") in new stack
-- Goto (subCallWrite,start,14)
-- Executing [start@subCallWrite:14] Set("SIP/199-00003226", "__MYSQL_PARENT_CALL_ID=138075") in new stack
-- Executing [start@subCallWrite:15] Return("SIP/199-00003226", "") in new stack
-- Executing [489086578527@from-internal:4] Gosub("SIP/199-00003226", "subCallWriteDstNumber,start,1(0)") in new stack
-- Executing [start@subCallWriteDstNumber:1] MYSQL("SIP/199-00003226", "Connect mysqlconnid localhost asterisk hf783477thy9088ggd asterisk") in new stack
-- Executing [start@subCallWriteDstNumber:2] MYSQL("SIP/199-00003226", "Query resultid 1 UPDATE calls SET called = '0' WHERE `call` = '138075'") in new stack
-- Executing [start@subCallWriteDstNumber:3] MYSQL("SIP/199-00003226", "Disconnect 1") in new stack
-- Executing [start@subCallWriteDstNumber:4] Return("SIP/199-00003226", "") in new stack
-- Executing [489086578527@from-internal:5] Gosub("SIP/199-00003226", "subStartCallMonitorIfNeed,start,1(199)") in new stack
-- Executing [start@subStartCallMonitorIfNeed:1] GotoIf("SIP/199-00003226", "0?start_recording:check_recording") in new stack
-- Goto (subStartCallMonitorIfNeed,start,2)
-- Executing [start@subStartCallMonitorIfNeed:2] MYSQL("SIP/199-00003226", "Connect mysqlconnid localhost asterisk hf783477thy9088ggd asterisk") in new stack
-- Executing [start@subStartCallMonitorIfNeed:3] MYSQL("SIP/199-00003226", "Query resultid 1 SELECT 123 FROM call_recording_numbers WHERE number = '199'") in new stack
-- Executing [start@subStartCallMonitorIfNeed:4] MYSQL("SIP/199-00003226", "Fetch fetchid 2 TMP") in new stack
-- Executing [start@subStartCallMonitorIfNeed:5] MYSQL("SIP/199-00003226", "Clear 2") in new stack
-- Executing [start@subStartCallMonitorIfNeed:6] MYSQL("SIP/199-00003226", "Disconnect 1") in new stack
-- Executing [start@subStartCallMonitorIfNeed:7] GotoIf("SIP/199-00003226", "1?start_recording:skip_recording") in new stack
-- Goto (subStartCallMonitorIfNeed,start,8)
-- Executing [start@subStartCallMonitorIfNeed:8] Gosub("SIP/199-00003226", "subStartCallMonitor,start,1()") in new stack
-- Executing [start@subStartCallMonitor:1] GotoIf("SIP/199-00003226", "1?start_recording:skip_recording") in new stack
-- Goto (subStartCallMonitor,start,2)
-- Executing [start@subStartCallMonitor:2] Set("SIP/199-00003226", "__MONITOR_FILENAME=call-138075") in new stack
-- Executing [start@subStartCallMonitor:3] Monitor("SIP/199-00003226", "wav,call-138075,mb") in new stack
-- Executing [start@subStartCallMonitor:4] Set("SIP/199-00003226", "__CALL_RECORDING=1") in new stack
-- Executing [start@subStartCallMonitor:5] Return("SIP/199-00003226", "") in new stack
-- Executing [start@subStartCallMonitorIfNeed:9] Return("SIP/199-00003226", "") in new stack
-- Executing [489086578527@from-internal:6] Dial("SIP/199-00003226", "SIP/cisco/XXXXXXXXX,,M(setAnswerDate)") in new stack
== Using SIP RTP CoS mark 5
-- Called SIP/cisco/XXXXXXXXX
== Using SIP RTP CoS mark 5
-- Called SIP/cisco/XXXXXXXXX
[Mar 4 11:19:03] WARNING[29008]: chan_sip.c:4174 retrans_pkt: Retransmission timeout reached on transmission 07170d0f6aca7a6e06e9bd461ac7040fe@XXX.XXX.XXX.XXX:5060 for seqno 102 (Critical Request) -- See https://wiki.asterisk.org/wiki/display/ ... nsmissions
Packet timed out after 32000ms with no response
[Mar 4 11:19:03] WARNING[29008]: chan_sip.c:4203 retrans_pkt: Hanging up call 07170d0f6aca7a6e06e9bd461ac7040fe@XXX.XXX.XXX.XXX:5060 - no reply to our critical packet (see https://wiki.asterisk.org/wiki/display/ ... nsmissions).
== Everyone is busy/congested at this time (1:0/0/1)
-- Auto fallthrough, channel 'SIP/199-00002f2c' status is 'CHANUNAVAIL'
Если кто знает в чем может быть причина, подскажите в какую сторону копать, а то голову сломал[cisco]
directmedia=no
type=friend
insecure=port,invite
context=from-fxo
dtmfmode=rfc2833
host=192.168.128.73
permit=0.0.0.0/0.0.0.0
canreinvite=no
disallow=all
allow=alaw
[phones](!)
directmedia=no
context=from-internal
type=friend
qualify=yes
host=dynamic
canreinvite=no
disallow=all
transport=tcp,udp
allow=alaw
nat=no
permit=0.0.0.0/0.0.0.0
[199](phones)
username=199
secret=1010110