S
S
svtrimb2019-12-06 11:45:36
Asterisk
svtrimb, 2019-12-06 11:45:36

Why is the sip trunk not registering on the external server?

Hello.
Asterisk has a sip trunk that registers on an external server.
Trunk settings in sip.conf file
[general]
context=from-sip-users
allowguest=no
allowoverlap=no
udpbindaddr=0.0.0.0:5070
tcpenable=no
tcpbindaddr=0.0.0.0:5060
tlsenable=no
tlsbindaddr=0.0.0.0:5061
useragent=*useragent name*
srvlookup=no
videosupport=yes
maxcallbitrate=512
t38pt_udptl=no
nat=force_rport,comedia
externip=*external ip*
localnet=192.168.0.0/255.255.255.0
register => trunk_name:[email protected]_external_server/*internal_number* ~60
[*trunk_name*]
type=friend
defaultuser=*trunk_name*
secret=*password*
context=from-*trunk_name*
fromdomain=*external_server_ip*
fromuser=*trunk_name*
host=*external_server_ip*
insecure=invite
qualify=yes
qualifyfreq=60
disallow=all
allow=alaw
dtmfmode=Auto
t38pt_udptl=no
directmedia=yes
there is NAT between Asterisk and the external server, all necessary ports are open on it
The problem is that the trunk does not want to register on the external server. The following error is in the logs:

chan_sip.c: Forbidden - wrong password on authentication for REGISTER for 'trunk_name' to 'external_server_ip'

at the same time, it annoys that Wireshark shows the
To field in invites: without a name, but in theory it should be To:
The rest of the From, Contact, Caller-ID fields are in order
What needs to be added / changed in the trunk config so that the "To" field is correct And registration was successful?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question