Оператор принимает входящий звонок, и переводит его на мобильный номер нужного консультанта.
Входящие приходят от SIP провайдера городской линии и мобильного шлюза с сим-картами подключенный по SIP, через этот же мобильный шлюз звонок переводится, то есть происходит исходящий и соединение двух абонентов (телефоны grandstream перевод через transfer с соединением к консультанту, консультант отвечает, оператор ему сообщает ОКПО и кладет трубку для соединение с клиентом).
Проблема возникает не каждый раз. Кого винить пока не знаю.
Нужны ваши подсказки где искать и что искать.
Настраивали asterisk другие люди.
Логи лежать /var/log/asterisk
в файле messages записи только warning и notice, без какой либо информации о звонках
настройки файла
logger.conf
Код: Выделить всё
;
;debug => debug
;security => security
console => notice,warning,error
;console => notice,warning,error,debug
messages => notice,warning,error
;full => notice,warning,error,debug,verbose,dtmf,fax
;syslog keyword : This special keyword logs to syslog facility
;
;syslog.local0 => notice,warning,error
;
строк Hungup я не вижу, вот вывод консоли одного из звонков когда был обрыв
звонок поступил от городского телефона 380563201234 на провайдера SIP городской линии (SIP/380561234567), ответил консультант (101) и перевел звонок черезе мобильный шлюз (192.168.0.6) на мобильный телефон(90677654321), разговаривали они примерно минуту.
Что еще я могу настроить, чтобы получить детальную информацию, где будет указана причина разрыва.
Код: Выделить всё
[Mar 16 10:03:07]
== Using SIP RTP CoS mark 5
> 0x7f8a0802e000 -- Strict RTP learning after remote address set to: 93.178.205.42:45200
-- Executing [380561234567@vega-in:1] NoOp("SIP/380561234567-00005229", "X Vega") in new stack
-- Executing [380561234567@vega-in:2] Answer("SIP/380561234567-00005229", "") in new stack
> 0x7f8a0802e000 -- Strict RTP learning after remote address set to: 93.178.205.42:45200
> 0x7f8a0802e000 -- Strict RTP switching to RTP target address 93.178.205.42:45200 as source
-- Executing [380561234567@vega-in:3] Playback("SIP/380561234567-00005229", "/etc/asterisk/sound/hello") in new stack
-- <SIP/380561234567-00005229> Playing '/etc/asterisk/sound/hello.slin' (language 'ru')
> 0x7f8a0802e000 -- Strict RTP learning complete - Locking on source address 93.178.205.42:45200
-- Executing [380561234567@vega-in:4] Gosub("SIP/380561234567-00005229", "sub-time-check,s,1") in new stack
-- Executing [s@sub-time-check:1] NoOp("SIP/380561234567-00005229", "CHECK TIME WORK") in new stack
-- Executing [s@sub-time-check:2] GotoIfTime("SIP/380561234567-00005229", "17:00-23:59,*,13,oct?notime:time") in new stack
-- Goto (sub-time-check,s,14)
-- Executing [s@sub-time-check:14] Return("SIP/380561234567-00005229", "") in new stack
-- Executing [380561234567@vega-in:5] Macro("SIP/380561234567-00005229", "mixmonitor") in new stack
-- Executing [s@macro-mixmonitor:1] NoOp("SIP/380561234567-00005229", "Record's") in new stack
-- Executing [s@macro-mixmonitor:2] Set("SIP/380561234567-00005229", "VOLUME(TX)=1") in new stack
-- Executing [s@macro-mixmonitor:3] Set("SIP/380561234567-00005229", "VOLUME(RX)=1") in new stack
-- Executing [s@macro-mixmonitor:4] Set("SIP/380561234567-00005229", "FILENAME=1615881790.41450") in new stack
-- Executing [s@macro-mixmonitor:5] Set("SIP/380561234567-00005229", "MONITOR_FILENAME=/var/spool/asterisk/monitor/1615881790.41450") in new stack
-- Executing [s@macro-mixmonitor:6] Set("SIP/380561234567-00005229", "monopt=nice -n 19 /usr/bin/lame -b 32 --silent "/var/spool/asterisk/monitor/1615881790.41450.wav" "/var/spool/asterisk/monitor/1615881790.41450.mp3" && rm -f "/var/spool/asterisk/monitor/1615881790.41450.wav" && chmod o+r "/var/spool/asterisk/monitor/1615881790.41450.mp3"") in new stack
-- Executing [s@macro-mixmonitor:7] Set("SIP/380561234567-00005229", "CDR(filename)=1615881790.41450.mp3") in new stack
-- Executing [s@macro-mixmonitor:8] Set("SIP/380561234567-00005229", "CDR(remoteip)=93.178.205.42") in new stack
-- Executing [s@macro-mixmonitor:9] MixMonitor("SIP/380561234567-00005229", "/var/spool/asterisk/monitor/1615881790.41450.wav,b,nice -n 19 /usr/bin/lame -b 32 --silent "/var/spool/asterisk/monitor/1615881790.41450.wav" "/var/spool/asterisk/monitor/1615881790.41450.mp3" && rm -f "/var/spool/asterisk/monitor/1615881790.41450.wav" && chmod o+r "/var/spool/asterisk/monitor/1615881790.41450.mp3"") in new stack
== Begin MixMonitor Recording SIP/380561234567-00005229
-- Executing [380561234567@vega-in:6] Queue("SIP/380561234567-00005229", "hunter,t,,,600,,check-agent") in new stack
-- Started music on hold, class 'default', on channel 'SIP/380561234567-00005229'
== Using SIP RTP CoS mark 5
-- Called SIP/103
-- SIP/103-0000522a redirecting info has changed, passing it to SIP/380561234567-00005229
-- SIP/103-0000522a is busy
-- Nobody picked up in 0 ms
== Using SIP RTP CoS mark 5
-- Called SIP/101
-- Got SIP response 486 "Busy Here" back from 192.168.0.79:55141
-- SIP/101-0000522b is busy
-- Nobody picked up in 0 ms
-- Stopped music on hold on SIP/380561234567-00005229
-- <SIP/380561234567-00005229> Playing 'queue-youarenext.slin' (language 'ru')
-- Told SIP/380561234567-00005229 in hunter their queue position (which was 1)
-- <SIP/380561234567-00005229> Playing 'queue-thankyou.slin' (language 'ru')
-- Started music on hold, class 'default', on channel 'SIP/380561234567-00005229'
[Mar 16 10:03:38]
== Using SIP RTP CoS mark 5
> 0x7f8a08008dc0 -- Strict RTP learning after remote address set to: 192.168.0.79:11852
-- Executing [90677654321@local-office:1] NoOp("SIP/101-00005248", " out 0677654321 ") in new stack
-- Executing [90677654321@local-office:2] Macro("SIP/101-00005248", "mixmonitor") in new stack
-- Executing [s@macro-mixmonitor:1] NoOp("SIP/101-00005248", "Record's") in new stack
-- Executing [s@macro-mixmonitor:2] Set("SIP/101-00005248", "VOLUME(TX)=1") in new stack
-- Executing [s@macro-mixmonitor:3] Set("SIP/101-00005248", "VOLUME(RX)=1") in new stack
-- Executing [s@macro-mixmonitor:4] Set("SIP/101-00005248", "FILENAME=1615881819.41481") in new stack
-- Executing [s@macro-mixmonitor:5] Set("SIP/101-00005248", "MONITOR_FILENAME=/var/spool/asterisk/monitor/1615881819.41481") in new stack
-- Executing [s@macro-mixmonitor:6] Set("SIP/101-00005248", "monopt=nice -n 19 /usr/bin/lame -b 32 --silent "/var/spool/asterisk/monitor/1615881819.41481.wav" "/var/spool/asterisk/monitor/1615881819.41481.mp3" && rm -f "/var/spool/asterisk/monitor/1615881819.41481.wav" && chmod o+r "/var/spool/asterisk/monitor/1615881819.41481.mp3"") in new stack
-- Executing [s@macro-mixmonitor:7] Set("SIP/101-00005248", "CDR(filename)=1615881819.41481.mp3") in new stack
-- Executing [s@macro-mixmonitor:8] Set("SIP/101-00005248", "CDR(remoteip)=192.168.0.79") in new stack
-- Executing [s@macro-mixmonitor:9] MixMonitor("SIP/101-00005248", "/var/spool/asterisk/monitor/1615881819.41481.wav,b,nice -n 19 /usr/bin/lame -b 32 --silent "/var/spool/asterisk/monitor/1615881819.41481.wav" "/var/spool/asterisk/monitor/1615881819.41481.mp3" && rm -f "/var/spool/asterisk/monitor/1615881819.41481.wav" && chmod o+r "/var/spool/asterisk/monitor/1615881819.41481.mp3"") in new stack
== Begin MixMonitor Recording SIP/101-00005248
-- Executing [90677654321@local-office:3] Dial("SIP/101-00005248", "SIP/0677654321@192.168.0.6:5062") in new stack
== Using SIP RTP CoS mark 5
-- Called SIP/0677654321@192.168.0.6:5062
> 0x7f898800a8a0 -- Strict RTP learning after remote address set to: 192.168.0.6:10804
-- SIP/192.168.0.6:5062-00005249 is making progress passing it to SIP/101-00005248
> 0x7f898800a8a0 -- Strict RTP switching to RTP target address 192.168.0.6:10804 as source
-- Channel SIP/192.168.0.6:5062-00005249 left 'simple_bridge' basic-bridge <e2e56f26-1c17-41f6-9b60-5da913d7582d>
-- Channel SIP/101-00005228 left 'simple_bridge' basic-bridge <eb5e0b24-e13d-41bb-82a9-b86ea93fe652>
-- Channel SIP/192.168.0.6:5062-00005249 swapped with SIP/101-00005228 into 'simple_bridge' basic-bridge <eb5e0b24-e13d-41bb-82a9-b86ea93fe652>
-- Channel SIP/101-00005248 left 'simple_bridge' basic-bridge <e2e56f26-1c17-41f6-9b60-5da913d7582d>
== Spawn extension (local-office, 90677654321, 3) exited non-zero on 'SIP/101-00005248'
== MixMonitor close filestream (mixed)