Setting Up Asterisk with PJSIP for Internal Calls (No SIP Provider)

I recently set up an Asterisk server with PJSIP to allow internal calls between two users (1001 & 1002) without an external SIP provider. However, I ran into some issues registering with Zoiper (404 Not Found).

thats the pjsip.conf:

[global]
external_media_address=10.0.122.100
external_signaling_address=10.0.122.100
local_net=10.122.70.0/24

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

[1001]
type=endpoint
auth=auth1001
aors=1001
context=from-internal
disallow=all
allow=ulaw,alaw

[auth1001]
type=auth
auth_type=userpass
username=1001
password=SecurePassword1001

[1002]
type=endpoint
auth=auth1002
aors=1002
context=from-internal
disallow=all
allow=ulaw,alaw

[auth1002]
type=auth
auth_type=userpass
username=1002
password=SecurePassword1002

and thats the dialplan:

[from-internal]
exten => _XXXX,1,Dial(PJSIP/${EXTEN},20)
exten => _XXXX,n,Hangup()

You can’t put this in global.

In the provided configuration there are no AORs defined, so registration would not be possible.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.