I have set-up Asterisk 18 in Ubuntu 20.04 server. I did this following this guide, and tried to connect it to GoTrunk following this guide.
After completing all the steps this is how my pjsip.conf file looks like:
;=====DEFINE BASIC UDP TRANSPORT=====
[transport-udp]
type=transport
protocol=udp
bind=0.0.0.0;
;=====DEFINE OUTBOUND REGISTRATION WITH OUTBOUND AUTHENTICATION=====
[gotrunk]
type=registration;
transport=transport-udp
outbound_auth=gotrunk_auth
server_uri=sip:eu.st.ssl7(dot)net:5060
contact_user=(OutboundGoTrunkUsername)
retry_interval=60
forbiden_retry_interval=60
expiration=3600
[gotrunk_auth]
type=auth
auth_type=userpass
password=(OutboundGoTrunkPassword)
username=(OutboundGoTrunkUsername)
;=====ENDPOINT CONFIGURED AS A TRUNK, OUTBOUND AUTHENTICATION=====
[gotrunk]
type=aor
contact=sip:eu.st.ssl7(dot)net:5060
max_contracts=5
[gotrunk]
type=endpoint
transport=transport-udp
context=from-external
disallow=all
allow=all
outbound_auth=gotrunk_auth
aors=gotrunk
[gotrunk]
type=identify
endpoint=gotrunk
match=eu.st.ssl7(dot)net
;=====CONFIGURE 2 EXTENSIONS FOR USE WITH SIP PHONE=====
[202]
type=endpoint
transport=transport-udp
context=from-internal
callerid= +44203xxxxxxx<+44203xxxxxxx> ; optional to set custom CID on Extension
disallow=all
allow=all
auth=202
aor=202
[202]
type=auth
auth_type=userpass
password=TestPassword
username=202
[202]
type=aor
mac_contacts=5
[203]
type=endpoint
transport=transport-udp
context=from-internal
disallow=all
allow=all
auth=203
aor=203
[203]
type=auth
auth_type=userpass
password=TestPassword
username=203
[203]
type=aor
mac_contacts=5
I have tried to connect it to Bria Solo with the correct domain, and the UserID as the one provided by GoTrunk and it establishes a connection to Bria. I can only dial myself, but I guess that’s because of the extensions.conf that I haven’t edited yet.
When I write “pjsip show registrations” it says that there are no objects found. How can I fix the registration to GoTrunk, and how can I fix the dialpad to be applicable to me?
I appreciate any help!