Дорогие господа офицеры Asterisk, знаю, что будете отправлять в платную потдержку и сильно материться, но задам вопрос.
Есть у меня такой оператор sipmarket.net, чей транк не подключается. Все остальные транки подключаются нормально. Через телефон D-link этот же транк подключается спокойно. настройки транка:
host=sipmarket.net
username=138317
secret=ХХХХХ
fromuser=138317
fromdomain=sipmarket.net
nat=yes
type=friend
insecure=port,invite
context=from-trunk
dtmfmode=auto
relaxdtmf=yes
rfc2833compensate=yes
allow=ulaw&alaw&g729&gsm
строка регистрации:
138317:ХХХХХ@sipmarket.net/138317
Пинг на сервер не идет, но поддержка оператора говорит, что пинг закрыт.
Ping не дает картины - у нас закрыт Ping-порт. Согласно логам от Вас не приходят ни звонки, ни регистарции.
Дебаг говорит:
[2014-10-13 03:25:31] DEBUG[33165] chan_sip.c: SIP Registry sipmarket.net: refcount now 2
[2014-10-13 03:25:31] DEBUG[33165] chan_sip.c: SIP Registry sipmarket.net: refcount now 3
[2014-10-13 03:25:31] DEBUG[33165] netsock2.c: Splitting "sipmarket.net" into...
[2014-10-13 03:25:31] DEBUG[33165] netsock2.c: ...host "sipmarket.net" and port "".
[2014-10-13 03:25:31] DEBUG[33165] netsock2.c: Splitting "sipmarket.net" into...
[2014-10-13 03:25:31] DEBUG[33165] netsock2.c: ...host "sipmarket.net" and port "".
[2014-10-13 03:25:31] DEBUG[33165] chan_sip.c: SIP Registry sipmarket.net: refcount now 2
[2014-10-13 03:25:31] DEBUG[33165] chan_sip.c: Allocating new SIP dialog for 3be8fcd934fb51143ed1e92e15a218bb@192.1
68.1.2 - REGISTER (No RTP)
[2014-10-13 03:25:31] DEBUG[33165] chan_sip.c: SIP Registry sipmarket.net: refcount now 3
[2014-10-13 03:25:31] DEBUG[33165] acl.c: For destination "95.211.216.165", our source address is "192.168.1.2".
[2014-10-13 03:25:31] DEBUG[33165] chan_sip.c: Target address 95.211.216.165:5060 is not local, substituting extern
addr
[2014-10-13 03:25:31] DEBUG[33165] chan_sip.c: Setting SIP_TRANSPORT_UDP with address 77.73.234.178:5060
[2014-10-13 03:25:31] DEBUG[33165] chan_sip.c: SIP Registry sipmarket.net: refcount now 4
[2014-10-13 03:25:31] DEBUG[33165] chan_sip.c: Scheduled a registration timeout for sipmarket.net id #2289201
[2014-10-13 03:25:31] DEBUG[33165] netsock2.c: Splitting "sipmarket.net" into...
[2014-10-13 03:25:31] DEBUG[33165] netsock2.c: ...host "sipmarket.net" and port "".
[2014-10-13 03:25:31] DEBUG[33165] netsock2.c: Splitting "sipmarket.net" into...
[2014-10-13 03:25:31] DEBUG[33165] netsock2.c: ...host "sipmarket.net" and port "".
[2014-10-13 03:25:31] DEBUG[33165] netsock2.c: Splitting "sipmarket.net" into...
[2014-10-13 03:25:31] DEBUG[33165] netsock2.c: ...host "sipmarket.net" and port "".
[2014-10-13 03:25:31] DEBUG[33165] chan_sip.c: Initializing initreq for method REGISTER - callid 3be8fcd934fb51143e
d1e92e15a218bb@192.168.1.2
[2014-10-13 03:25:31] DEBUG[33165] chan_sip.c: REGISTER attempt 10453 to 138317@sipmarket.net
[2014-10-13 03:25:31] DEBUG[33165] chan_sip.c: Trying to put "REGISTER si" onto UDP socket destined for 95.211.216.
165:5060
[2014-10-13 03:25:31] NOTICE[33165] chan_sip.c: -- Registration for "138317@sipmarket.net" timed out, trying aga
in (Attempt #10453)
[2014-10-13 03:25:31] DEBUG[33165] chan_sip.c: SIP Registry sipmarket.net: refcount now 3
[2014-10-13 03:25:31] DEBUG[33165] chan_sip.c: Destroying SIP dialog 3be8fcd934fb51143ed1e92e15a218bb@192.168.1.2
[2014-10-13 03:25:31] DEBUG[33274] manager.c: Examining event:
Event: Registry
Privilege: system,all
ChannelType: SIP
Username: 138317
Domain: sipmarket.net
Status: Request Sent