Камрады!
Вопрос теоретического плана: "Я же правильно понимаю что externaddr должен где-то фигурировать в логах звонка?"
Поясню, настраиваю Ростелеком на Asterisk'е. Они выдали постоянный внутренний адрес из их подсети формата 10.9.*.*
Я добавил его в externaddr, а так же добавил подсети в том виде как они мне скинули */16.
externaddr = 10.9.**.**
localnet = 192.168.50.0/24
localnet = 10.10.0.0/16
localnet = 10.9.0.0/16
language=ru
context=default
allowoverlap=no
udpbindaddr=0.0.0.0
bindport=5060
tcpenable=no
tcpbindaddr=0.0.0.0
transport=udp
srvlookup=yes
allowguest=no
limitonpeers=yes
alwaysauthreject=yes
Далее я регистрирую пира:
[2****2]
type=peer
host=10.10.10.100
nat=no
insecure=invite,port
disallow=all
allow=alaw
allow=ulaw
dtmfmode=auto
secret=********
defaultuser=2*****
fromuser=2*****
callbackextension=2*****
context=incoming
directmedia=nonat
canreinvite=no
Но при исходящем и входящем звонках мой externaddr нигде не фигуриует, это нормально?
Connected to Asterisk 13.14.0 currently running on voip (pid = 1385)
== Using SIP RTP CoS mark 5
-- Executing [213162@incoming:1] Dial("SIP/213162-00000006", "SIP/123") in new stack
== Using SIP RTP CoS mark 5
-- Called SIP/123
-- SIP/123-00000007 is ringing
-- SIP/123-00000007 answered SIP/213162-00000006
-- Channel SIP/123-00000007 joined 'simple_bridge' basic-bridge <1d5146f0-9517-43fd-ac72-cea30b6b8002>
-- Channel SIP/213162-00000006 joined 'simple_bridge' basic-bridge <1d5146f0-9517-43fd-ac72-cea30b6b8002>
> Bridge 1d5146f0-9517-43fd-ac72-cea30b6b8002: switching from simple_bridge technology to native_rtp
> Locally RTP bridged 'SIP/213162-00000006' and 'SIP/123-00000007' in stack
> Locally RTP bridged 'SIP/213162-00000006' and 'SIP/123-00000007' in stack
> 0x7fde68005d10 -- Probation passed - setting RTP source address to 192.168.50.10:12338
> 0x7fde60009bb0 -- Probation passed - setting RTP source address to 10.10.10.113:21164
-- Channel SIP/123-00000007 left 'native_rtp' basic-bridge <1d5146f0-9517-43fd-ac72-cea30b6b8002>
-- Channel SIP/213162-00000006 left 'native_rtp' basic-bridge <1d5146f0-9517-43fd-ac72-cea30b6b8002>
== Spawn extension (incoming, 213162, 1) exited non-zero on 'SIP/213162-00000006'
== Using SIP RTP CoS mark 5
-- Executing [8*******8@outcoling:1] Dial("SIP/123-00000008", "SIP/8********8@213162") in new stack
== Using SIP RTP CoS mark 5
-- Called SIP/8********8@213162
> 0x7fdf24007070 -- Probation passed - setting RTP source address to 10.10.12.199:6004
> 0x7fdf24007070 -- Probation passed - setting RTP source address to 10.10.12.199:6004
-- SIP/213162-00000009 is ringing
-- SIP/213162-00000009 is making progress passing it to SIP/123-00000008
> 0x7fdf24007070 -- Probation passed - setting RTP source address to 10.10.12.199:6004
> 0x7fde60009bb0 -- Probation passed - setting RTP source address to 192.168.50.10:12342
-- SIP/213162-00000009 answered SIP/123-00000008
-- Channel SIP/213162-00000009 joined 'simple_bridge' basic-bridge <773b259f-337d-4ba6-bfb5-550d472eaeb3>
-- Channel SIP/123-00000008 joined 'simple_bridge' basic-bridge <773b259f-337d-4ba6-bfb5-550d472eaeb3>
> Bridge 773b259f-337d-4ba6-bfb5-550d472eaeb3: switching from simple_bridge technology to native_rtp
> Locally RTP bridged 'SIP/123-00000008' and 'SIP/213162-00000009' in stack
> Locally RTP bridged 'SIP/123-00000008' and 'SIP/213162-00000009' in stack
> 0x7fdf24007070 -- Probation passed - setting RTP source address to 10.10.12.199:6004
-- Channel SIP/213162-00000009 left 'native_rtp' basic-bridge <773b259f-337d-4ba6-bfb5-550d472eaeb3>
-- Channel SIP/123-00000008 left 'native_rtp' basic-bridge <773b259f-337d-4ba6-bfb5-550d472eaeb3>
== Spawn extension (outcoling, 8******8, 1) exited non-zero on 'SIP/123-00000008'