Trixbox - входящие
С помощью этого форума уже решил несколько задач, но вот сейчас решился настроить сервер телефонии с нуля. Остановился на trixbox как самом простом варианте. Исходящая - ок, а вот со входящей проблемы. Погуглив, понял, что проблема классика. Но ответа не нашел, прошу помочь, ув. знатоки.
В транках прописан ип прова.
Вот что в логах:
[Oct 28 14:26:51] VERBOSE[13532] logger.c: -- Executing [4997590029@from-sip-external:1] NoOp("SIP/provider-ip", "Received incoming SIP connection from unknown peer to 4997590029") in new stack
[Oct 28 14:26:51] VERBOSE[13532] logger.c: -- Executing [4997590029@from-sip-external:2] Set("SIP/provider-ip", "DID=4997590029") in new stack
[Oct 28 14:26:51] VERBOSE[13532] logger.c: -- Executing [4997590029@from-sip-external:3] Goto("SIP/provider-ip", "s,1") in new stack
[Oct 28 14:26:51] VERBOSE[13532] logger.c: -- Goto (from-sip-external,s,1)
[Oct 28 14:26:51] VERBOSE[13532] logger.c: -- Executing [s@from-sip-external:1] GotoIf("SIP/provider-ip", "0?from-trunk,4997590029,1") in new stack
[Oct 28 14:26:51] VERBOSE[13532] logger.c: -- Executing [s@from-sip-external:2] Set("SIP/provider-ip", "TIMEOUT(absolute)=15") in new stack
[Oct 28 14:26:51] VERBOSE[13532] logger.c: Channel will hangup at 2010-10-28 14:27:06.000 MSD.
[Oct 28 14:26:51] VERBOSE[13532] logger.c: -- Executing [s@from-sip-external:3] Answer("SIP/provider-ip", "") in new stack
[Oct 28 14:26:51] VERBOSE[13532] logger.c: -- Executing [s@from-sip-external:4] Wait("SIP/provider-ip", "2") in new stack
[Oct 28 14:26:53] VERBOSE[13532] logger.c: -- Executing [s@from-sip-external:5] Playback("SIP/provider-ip", "ss-noservice") in new stack
[Oct 28 14:26:53] VERBOSE[13532] logger.c: -- <SIP/85.119.76.132-00000039> Playing 'ss-noservice.gsm' (language 'en')
[Oct 28 14:26:54] VERBOSE[13535] logger.c: == Manager 'admin' logged on from 127.0.0.1
[Oct 28 14:26:54] VERBOSE[13535] logger.c: == Manager 'admin' logged off from 127.0.0.1
[Oct 28 14:26:58] VERBOSE[13532] logger.c: -- Executing [s@from-sip-external:6] PlayTones("SIP/provider-ip", "congestion") in new stack
[Oct 28 14:26:58] VERBOSE[13532] logger.c: -- Executing [s@from-sip-external:7] Congestion("SIP/provider-ip", "5") in new stack
[Oct 28 14:26:58] VERBOSE[13532] logger.c: == Spawn extension (from-sip-external, s, 7) exited non-zero on 'SIP/provider-ip'
[Oct 28 14:26:58] VERBOSE[13532] logger.c: -- Executing [h@from-sip-external:1] NoOp("SIP/provider9-ip", "Hangup") in new stack
[Oct 28 14:26:58] VERBOSE[13532] logger.c: -- Executing [h@from-sip-external:2] Set("SIP/provider-ip", "DID=s") in new stack
[Oct 28 14:26:58] VERBOSE[13532] logger.c: -- Executing [h@from-sip-external:3] Goto("SIP/provider-ip", "s,1") in new stack
[Oct 28 14:26:58] VERBOSE[13532] logger.c: -- Goto (from-sip-external,s,1)
[Oct 28 14:26:58] VERBOSE[13532] logger.c: -- Executing [s@from-sip-external:1] GotoIf("SIP/provider-ip", "0?from-trunk,s,1") in new stack
[Oct 28 14:26:58] VERBOSE[13532] logger.c: -- Executing [s@from-sip-external:2] Set("SIP/provider-ip", "TIMEOUT(absolute)=15") in new stack
[Oct 28 14:26:58] VERBOSE[13532] logger.c: Channel will hangup at 2010-10-28 14:27:13.000 MSD.
[Oct 28 14:26:58] VERBOSE[13532] logger.c: -- Executing [s@from-sip-external:3] Answer("SIP/provider-ip", "") in new stack
[Oct 28 14:26:58] VERBOSE[13532] logger.c: == Spawn extension (from-sip-external, s, 3) exited non-zero on 'SIP/provider-ip'
[Oct 28 14:26:59] VERBOSE[13542] logger.c: == Manager 'admin' logged on from 127.0.0.1
Еще 2 вопроса:
1. Возможно ли настроить trixbox только через вебку, без правки конфигов вручную?
2. Вот такие строки проскакивают в логе:
[Oct 28 13:45:53] NOTICE[4726] chan_sip.c: Registration from '"4135426681"<sip:4135426681@external-ip>' failed for '204.236.154.8' - No matching peer found
Очевидно, что пытаются подключиться извне. Как это прикрыть? Iptables? Достаточно ли правил как в этом примере: http://www.selbytech.com/2010/04/how-to-setup-iptables-for-asterisk-1-6-2-on-centos-5-4/ ?
|