how to register endpoint settings so that I can register on aster due to NAT? I see that the aster sends back a packet with the answer 401, but on the client it says that there is a timeout. It turns out that the response packet does not come to the client, on which side should it be configured?
Setup asterisk:
[6003] type = endpoint transport = transport-nat-udp context = test disallow = all allow = ulaw aors = 6003 auth = auth6003 direct_media=no [6003] type = aor max_contacts = 100 [auth6003] type=auth auth_type=userpass password=пароль username=6003 dump:
<--- Received SIP request (820 bytes) from UDP:188.163.0.11:48630 ---> REGISTER sip:адрес сервера:5060;transport=UDP SIP/2.0 Via: SIP/2.0/UDP 188.163.0.11:48630;branch=z9hG4bKcfbdb686c114d7faca8cbfe99b64572a Via: SIP/2.0/UDP 188.163.0.11:48630;branch=z9hG4bK-524287-1---3745eee367349747;rport From: <sip:6003@адрес сервера:5060;transport=UDP>;tag=7d71c609 To: <sip:6003@адрес сервера:5060;transport=UDP> Call-ID: Akc93-Lm8I_qgh4mG8qsqA.. CSeq: 1 REGISTER Contact: <sip:6003@188.163.0.11:48630;transport=UDP> Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE Max-forwards: 69 Expires: 70 User-agent: Z 3.9.32144 r32121 allow-events: presence allow-events: kpml Content-Length: 0 <--- Transmitting SIP response (604 bytes) to UDP:188.163.0.11:48630 ---> SIP/2.0 401 Unauthorized Via: SIP/2.0/UDP 188.163.0.11:48630;rport=48630;received=188.163.0.11;branch=z9hG4bKcfbdb686c114d7faca8cbfe99b64572a Via: SIP/2.0/UDP 188.163.0.11:48630;rport;branch=z9hG4bK- 524287-1---3745eee367349747 Call-ID: Akc93-Lm8I_qgh4mG8qsqA.. From: <sip:6003@адрес сервера>;tag=7d71c609 To: <sip:6003@адрес сервера>;tag=z9hG4bKcfbdb686c114d7faca8cbfe99b64572a CSeq: 1 REGISTER WWW-Authenticate: Digest realm="asterisk",nonce="1469703075/8c0a49002abe1ee30e9aa1cefc70ba4b",opaque="4d344eeb1ef4ef24",algorithm=md5,qop="auth" Server: Asterisk PBX 13.8.0 Content-Length: 0 
[transport-nat-udp] type=transport protocol=udp bind=0.0.0.0 local_net=10.24.2.0/24 local_net=127.0.0.1/32 external_media_address=внешний IP external_signaling_address=внешний IP- Andrew Romanenko