Транк h323 -> SIP
Доброго времени суток!
Прошу помочь разобраться с проблемой. Есть пир во вне h323. Абоненты внутри сети с серыми IP. На сервере asterisk 2 интерфейса - внешний и внутренний.
В RTP диапазон портов синхронизирован с поставщиком услуги ( на той стороне Awaya ).
Вот дебаг входящего звонка.
-- Setting up Call
-- Call token: [ip$xx.xx.xx.xx:22961/0]
-- Calling party name: []
-- Calling party number: [9851175606]
-- Called party name: [91700]
-- Called party number: [91700]
-- Calling party IP: [xx.xx.xx.xx]
Setting capabilities to 0x8 (alaw)
Capabilities in preference order is (alaw)
DTMF mode is 8
Allowed Codecs for ip$xx.xx.xx.xx:22961/0 (ip$xx.xx.xx.xx:1720):
Table:
G.711-ALaw-64k <1>
UserInput/hookflash <2>
UserInput/basicString <3>
Set:
0:
0:
G.711-ALaw-64k <1>
1:
UserInput/hookflash <2>
2:
UserInput/basicString <3>
=-= In OnAnswerCall for call 0
- Progress Indicator: 0
- Inserting PI of 8 into ALERTING message
-- Executing [91700@default:1] Answer("H323/ip$xx.xx.xx.xx:22961/0", "") in new stack
-- Started logical channel: sending G.711-ALaw-64k
-- channelsOpen = 1
External RTP Session Starting
RTP channel id 1 parameters:
-- remoteIpAddress: xx.xx.xx.xx
-- remotePort: 28964
-- ExternalIpAddress: xx.xx.xx.xx
-- ExternalPort: 23362
-- Started logical channel: receiving G.711-ALaw-64k
-- channelsOpen = 2
External RTP Session Starting
RTP channel id 1 parameters:
-- remoteIpAddress: xx.xx.xx.xx
-- remotePort: 28964
-- ExternalIpAddress: xx.xx.xx.xx
-- ExternalPort: 23362
Answering call ip$xx.xx.xx.xx:22961/0
-- Executing [91700@default:2] GotoIfTime("H323/ip$xx.xx.xx.xx:22961/0", "09:00-20:00|mon-fri|*|*?opened,91700,1") in new stack
-- Goto (opened,91700,1)
-- Executing [91700@opened:1] Dial("H323/ip$xx.xx.xx.xx:22961/0", "SIP/1002") in new stack
== Using SIP RTP CoS mark 5
-- Called 1002
-- SIP/1002-00000001 is ringing
-- Received RELEASE COMPLETE message...
-- ClearCall: Request to clear call with token ip$xx.xx.xx.xx:22961/0, cause EndedByQ931Cause
-- Sending RELEASE COMPLETE
-- ClearCall: Request to clear call with token ip$xx.xx.xx.xx:22961/0, cause EndedByTransportFail
channelsOpen = 1
channelsOpen = 0
ExternalRTPChannel Destroyed
ExternalRTPChannel Destroyed
== Spawn extension (opened, 91700, 1) exited non-zero on 'H323/ip$xx.xx.xx.xx:22961/0'
-- Call with xx.xx.xx.xx completed (EndedByQ931Cause)
== H.323 Connection deleted.
Если ребутнуть сервис астериска - первый звонок проходит и все слышно отлично. Все остальные звонки - тишина и дроп соединения через 5-6 секунд.
Конфиг h323:
[general]
port = 1720
bindaddr = xx.xx.xx.xx ( мой реальник )
disallow=all
allow=alaw
dtmfmode=inband
gatekeeper = DISABLE
AcceptAnonymous = yes
context=default
progress_setup = 8
progress_alert = 8
[avaya]
type=friend
host=xx.xx.xx.xx ( Ип авайи )
port=1720
context=default
incominglimit=900
disallow=all
allow=g723
allow=alaw
dtmfmode=inband
faststart=yes
h245Tunneling = no
|