Есть Asterisk 1.8.20.0, прекрасно работающий с 2-мя десятками внутренних пользователей и 6 внешними транками. Внутренние пользователи все в разных местах, проблем NAT / не NAT не возникает. Точнее, не возникало до вчера.
У очередного пользователя все входящие - ок., исходящие на внешние транки - ок, а вот исходящие на GSM-шлюз (с точки зрения * - шлюз такой-же внутренний пользователь) - не ок, голос только к Астериску.
Шлюз во внутренней сети Астериска, проблемный пользователь - 235, за натом, внешний у него 217.147.161.2, к астериску подключается через внешний интерфейс. Для всех пользователей стоит
Код: Выделить всё
nat=force_rport,comedia
canreinvite=no
directmedia=no
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
<------------->
[2013-08-15 20:49:43] VERBOSE[5667] chan_sip.c: --- (11 headers 0 lines) ---
[2013-08-15 20:49:43] VERBOSE[19689] res_rtp_asterisk.c: Sent RTP packet to 217.147.161.2:10003 (type 00, seq 006724, ts 291520, len 000160)
[2013-08-15 20:49:43] VERBOSE[19689] res_rtp_asterisk.c: Sent RTP packet to 217.147.161.2:10003 (type 00, seq 006725, ts 291680, len 000160)
[2013-08-15 20:49:43] VERBOSE[19689] res_rtp_asterisk.c: Sent RTP packet to 217.147.161.2:10003 (type 00, seq 006726, ts 291840, len 000160)
[2013-08-15 20:49:43] VERBOSE[19689] res_rtp_asterisk.c: Sent RTP packet to 217.147.161.2:10003 (type 00, seq 006727, ts 292000, len 000160)
[2013-08-15 20:49:43] VERBOSE[19689] res_rtp_asterisk.c: Sent RTP packet to 217.147.161.2:10003 (type 00, seq 006728, ts 292160, len 000160)
[2013-08-15 20:49:43] VERBOSE[19689] res_rtp_asterisk.c: Sent RTP packet to 217.147.161.2:10003 (type 00, seq 006729, ts 292320, len 000160)
[2013-08-15 20:49:43] VERBOSE[19689] res_rtp_asterisk.c: Sent RTP packet to 217.147.161.2:10003 (type 00, seq 006730, ts 292480, len 000160)
[2013-08-15 20:49:43] VERBOSE[19689] res_rtp_asterisk.c: Sent RTP packet to 217.147.161.2:10003 (type 00, seq 006731, ts 292640, len 000160)
[2013-08-15 20:49:43] VERBOSE[19689] res_rtp_asterisk.c: Sent RTP packet to 217.147.161.2:10003 (type 00, seq 006732, ts 292800, len 000160)
[2013-08-15 20:49:43] VERBOSE[19689] res_rtp_asterisk.c: Sent RTP packet to 217.147.161.2:10003 (type 00, seq 006733, ts 292960, len 000160)
[2013-08-15 20:49:43] VERBOSE[19689] res_rtp_asterisk.c: Sent RTP packet to 217.147.161.2:10003 (type 00, seq 006734, ts 293120, len 000160)
[2013-08-15 20:49:43] VERBOSE[19689] res_rtp_asterisk.c: Sent RTP packet to 217.147.161.2:10003 (type 00, seq 006735, ts 293280, len 000160)
[2013-08-15 20:49:43] VERBOSE[19689] res_rtp_asterisk.c: Got RTP packet from 217.147.161.2:45317 (type 00, seq 001395, ts 2926740, len 000160)
[2013-08-15 20:49:43] VERBOSE[19689] res_rtp_asterisk.c: Sent RTP packet to 217.147.161.2:10003 (type 00, seq 006736, ts 293440, len 000160)
[2013-08-15 20:49:43] VERBOSE[19689] res_rtp_asterisk.c: Got RTP packet from 217.147.161.2:45317 (type 00, seq 001396, ts 2926900, len 000160)
[2013-08-15 20:49:43] VERBOSE[19689] res_rtp_asterisk.c: Sent RTP packet to 217.147.161.2:10003 (type 00, seq 006737, ts 293600, len 000160)
[2013-08-15 20:49:43] VERBOSE[19689] res_rtp_asterisk.c: Got RTP packet from 217.147.161.2:45317 (type 00, seq 001397, ts 2927060, len 000160)
[2013-08-15 20:49:43] VERBOSE[5667] chan_sip.c: --- (11 headers 0 lines) ---
[2013-08-15 20:49:43] VERBOSE[19689] res_rtp_asterisk.c: Sent RTP packet to 217.147.161.2:10003 (type 00, seq 006724, ts 291520, len 000160)
[2013-08-15 20:49:43] VERBOSE[19689] res_rtp_asterisk.c: Sent RTP packet to 217.147.161.2:10003 (type 00, seq 006725, ts 291680, len 000160)
[2013-08-15 20:49:43] VERBOSE[19689] res_rtp_asterisk.c: Sent RTP packet to 217.147.161.2:10003 (type 00, seq 006726, ts 291840, len 000160)
[2013-08-15 20:49:43] VERBOSE[19689] res_rtp_asterisk.c: Sent RTP packet to 217.147.161.2:10003 (type 00, seq 006727, ts 292000, len 000160)
[2013-08-15 20:49:43] VERBOSE[19689] res_rtp_asterisk.c: Sent RTP packet to 217.147.161.2:10003 (type 00, seq 006728, ts 292160, len 000160)
[2013-08-15 20:49:43] VERBOSE[19689] res_rtp_asterisk.c: Sent RTP packet to 217.147.161.2:10003 (type 00, seq 006729, ts 292320, len 000160)
[2013-08-15 20:49:43] VERBOSE[19689] res_rtp_asterisk.c: Sent RTP packet to 217.147.161.2:10003 (type 00, seq 006730, ts 292480, len 000160)
[2013-08-15 20:49:43] VERBOSE[19689] res_rtp_asterisk.c: Sent RTP packet to 217.147.161.2:10003 (type 00, seq 006731, ts 292640, len 000160)
[2013-08-15 20:49:43] VERBOSE[19689] res_rtp_asterisk.c: Sent RTP packet to 217.147.161.2:10003 (type 00, seq 006732, ts 292800, len 000160)
[2013-08-15 20:49:43] VERBOSE[19689] res_rtp_asterisk.c: Sent RTP packet to 217.147.161.2:10003 (type 00, seq 006733, ts 292960, len 000160)
[2013-08-15 20:49:43] VERBOSE[19689] res_rtp_asterisk.c: Sent RTP packet to 217.147.161.2:10003 (type 00, seq 006734, ts 293120, len 000160)
[2013-08-15 20:49:43] VERBOSE[19689] res_rtp_asterisk.c: Sent RTP packet to 217.147.161.2:10003 (type 00, seq 006735, ts 293280, len 000160)
[2013-08-15 20:49:43] VERBOSE[19689] res_rtp_asterisk.c: Got RTP packet from 217.147.161.2:45317 (type 00, seq 001395, ts 2926740, len 000160)
[2013-08-15 20:49:43] VERBOSE[19689] res_rtp_asterisk.c: Sent RTP packet to 217.147.161.2:10003 (type 00, seq 006736, ts 293440, len 000160)
[2013-08-15 20:49:43] VERBOSE[19689] res_rtp_asterisk.c: Got RTP packet from 217.147.161.2:45317 (type 00, seq 001396, ts 2926900, len 000160)
[2013-08-15 20:49:43] VERBOSE[19689] res_rtp_asterisk.c: Sent RTP packet to 217.147.161.2:10003 (type 00, seq 006737, ts 293600, len 000160)
[2013-08-15 20:49:43] VERBOSE[19689] res_rtp_asterisk.c: Got RTP packet from 217.147.161.2:45317 (type 00, seq 001397, ts 2927060, len 000160)
В случае, если юзер звонит через тот же * но не на шлюз, а на сип-транк провайдера - все ок:
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
<------------>
[2013-08-15 20:53:00] VERBOSE[19838] res_rtp_asterisk.c: Got RTP packet from 217.147.161.2:9736 (type 00, seq 007430, ts 1060300, len 000160)
[2013-08-15 20:53:00] VERBOSE[19838] res_rtp_asterisk.c: Sent RTP packet to 217.147.161.2:9736 (type 00, seq 017449, ts 1155453720, len 000160)
[2013-08-15 20:53:01] VERBOSE[19838] res_rtp_asterisk.c: Sent RTP packet to 217.147.161.2:9736 (type 00, seq 017450, ts 1155453880, len 000160)
[2013-08-15 20:53:01] VERBOSE[19838] res_rtp_asterisk.c: Got RTP packet from 217.147.161.2:9736 (type 00, seq 007431, ts 1061180, len 000160)
[2013-08-15 20:53:01] VERBOSE[19838] res_rtp_asterisk.c: Sent RTP packet to 217.147.161.2:9736 (type 00, seq 017451, ts 1155454040, len 000160)
[2013-08-15 20:53:01] VERBOSE[19838] res_rtp_asterisk.c: Got RTP packet from 217.147.161.2:9736 (type 00, seq 007432, ts 1061340, len 000160)
[2013-08-15 20:53:01] VERBOSE[19838] res_rtp_asterisk.c: Sent RTP packet to 217.147.161.2:9736 (type 00, seq 017452, ts 1155454200, len 000160)
[2013-08-15 20:53:01] VERBOSE[19838] res_rtp_asterisk.c: Got RTP packet from 217.147.161.2:9736 (type 00, seq 007433, ts 1061500, len 000160)
[2013-08-15 20:53:01] VERBOSE[19838] res_rtp_asterisk.c: Sent RTP packet to 217.147.161.2:9736 (type 00, seq 017453, ts 1155454360, len 000160)
[2013-08-15 20:53:01] VERBOSE[19838] res_rtp_asterisk.c: Sent RTP packet to 217.147.161.2:9736 (type 00, seq 017454, ts 1155454520, len 000160)
[2013-08-15 20:53:01] VERBOSE[19838] res_rtp_asterisk.c: Got RTP packet from 217.147.161.2:9736 (type 00, seq 007434, ts 1061660, len 000160)
[2013-08-15 20:53:01] VERBOSE[19838] res_rtp_asterisk.c: Got RTP packet from 217.147.161.2:9736 (type 00, seq 007435, ts 1061820, len 000160)
[2013-08-15 20:53:01] VERBOSE[19838] res_rtp_asterisk.c: Sent RTP packet to 217.147.161.2:9736 (type 00, seq 017455, ts 1155454680, len 000160)
[2013-08-15 20:53:00] VERBOSE[19838] res_rtp_asterisk.c: Got RTP packet from 217.147.161.2:9736 (type 00, seq 007430, ts 1060300, len 000160)
[2013-08-15 20:53:00] VERBOSE[19838] res_rtp_asterisk.c: Sent RTP packet to 217.147.161.2:9736 (type 00, seq 017449, ts 1155453720, len 000160)
[2013-08-15 20:53:01] VERBOSE[19838] res_rtp_asterisk.c: Sent RTP packet to 217.147.161.2:9736 (type 00, seq 017450, ts 1155453880, len 000160)
[2013-08-15 20:53:01] VERBOSE[19838] res_rtp_asterisk.c: Got RTP packet from 217.147.161.2:9736 (type 00, seq 007431, ts 1061180, len 000160)
[2013-08-15 20:53:01] VERBOSE[19838] res_rtp_asterisk.c: Sent RTP packet to 217.147.161.2:9736 (type 00, seq 017451, ts 1155454040, len 000160)
[2013-08-15 20:53:01] VERBOSE[19838] res_rtp_asterisk.c: Got RTP packet from 217.147.161.2:9736 (type 00, seq 007432, ts 1061340, len 000160)
[2013-08-15 20:53:01] VERBOSE[19838] res_rtp_asterisk.c: Sent RTP packet to 217.147.161.2:9736 (type 00, seq 017452, ts 1155454200, len 000160)
[2013-08-15 20:53:01] VERBOSE[19838] res_rtp_asterisk.c: Got RTP packet from 217.147.161.2:9736 (type 00, seq 007433, ts 1061500, len 000160)
[2013-08-15 20:53:01] VERBOSE[19838] res_rtp_asterisk.c: Sent RTP packet to 217.147.161.2:9736 (type 00, seq 017453, ts 1155454360, len 000160)
[2013-08-15 20:53:01] VERBOSE[19838] res_rtp_asterisk.c: Sent RTP packet to 217.147.161.2:9736 (type 00, seq 017454, ts 1155454520, len 000160)
[2013-08-15 20:53:01] VERBOSE[19838] res_rtp_asterisk.c: Got RTP packet from 217.147.161.2:9736 (type 00, seq 007434, ts 1061660, len 000160)
[2013-08-15 20:53:01] VERBOSE[19838] res_rtp_asterisk.c: Got RTP packet from 217.147.161.2:9736 (type 00, seq 007435, ts 1061820, len 000160)
[2013-08-15 20:53:01] VERBOSE[19838] res_rtp_asterisk.c: Sent RTP packet to 217.147.161.2:9736 (type 00, seq 017455, ts 1155454680, len 000160)