Multiple PJSIP registrations to one SIP server


#1

Hi.

Failed to do a proper configuration, need some assistance.

SIP server/registrar: 172.16.25.23
Let it be 3cx, FreePBX, …

SIP client (act as a client): 172.16.25.100
Asterisk 13.13, PJSIP 2.4.5

Need to provide multiple registrations from SIP client to SIP server/registrar.

Not problems with

  1. Registration
  2. INVITE from client to server
    But troubles with INVITE from server to client.

Server provides an account : fxs17 with password 111111

Can anybody give me a hint, what’s wrong ?

Do I have to name endpoint “fxs17”, or I can give it any name (as long as I register to server, not receive registration) ?


#2

[0.0.0.0-udp]
type=transport
protocol=udp
bind=0.0.0.0:5060

endpoint0
type=endpoint
transport=0.0.0.0-udp
disallow=all
allow=alaw
allow=ulaw
allow=g729

t38_udptl=no
t38_udptl_ec=none
fax_detect=no
t38_udptl_nat=no
dtmf_mode=auto
direct_media=yes
from_domain=172.16.25.23
timers_sess_expires=1800
rewrite_contact=yes
rtp_symmetric=yes
force_rport=yes

registration0
type=registration
transport=0.0.0.0-udp
retry_interval=60
max_retries=10
expiration=3600
auth_rejection_permanent=yes
server_uri=sip:172.16.25.23

fxs17
context=from-sip-fxs
aors=fxs17
outbound_auth=fxs17
from_user=fxs17
set_var=DAHDICHAN=17

[fxs17]
type=aor
qualify_frequency=60
contact=sip:fxs17@172.16.25.23

[fxs17]
type=auth
auth_type=userpass
password=111111
username=fxs17

fxs17
outbound_auth=fxs17
client_uri=sip:fxs17@172.16.25.23
contact_user=fxs17