Hi, I’m new here. I’m basically trying to connect my SIP Trunk with Asterisk (Asterisk 20.8.1) but when I do:
pjsip show registrations
<Registration/ServerURI…> <Auth…> <Status…>
twilio-registration/sip:rubinhozzz-test.pstn.dublin.tw twilio-auth Unregistered (exp. 4s ago)
Objects found: 1
It looks like unregistered.
This is my pjsip.conf:
[twilio-trunk]
type=endpoint
context=from-trunk
disallow=all
allow=ulaw,alaw
transport=transport-udp
outbound_auth=twilio-auth
aors=twilio-aor
[twilio-auth]
type = auth
auth_type=userpass
username=asterisk-twilio
password=MyP@ssword1234
[twilio-aor]
type=aor
contact=sip:rubinhozzz-test.pstn.dublin.twilio.com:5060;transport=udp
[transport-udp]
type=transport
protocol=udp
bind=0.0.0.0:5060
[twilio-registration]
type=registration
outbound_auth=twilio-auth
server_uri=sip:rubinhozzz-test.pstn.dublin.twilio.com;transport=udp
client_uri=sip:asterisk-twilio@rubinhozzz-test.pstn.dublin.twilio.com
retry_interval = 60
I believe my SIP URI domains aren’t the right ones, but it could be something else.
My logs:
[Mar 20 00:51:42] ERROR[78032] loader.c: res_pjsip_transport_websocket declined to load.
[Mar 20 00:51:42] ERROR[78032] loader.c: cel_sqlite3_custom declined to load.
[Mar 20 00:51:42] ERROR[78032] loader.c: cdr_tds declined to load.
[Mar 20 00:51:42] ERROR[78032] loader.c: cdr_radius declined to load.
[Mar 20 00:51:42] ERROR[78032] loader.c: cel_tds declined to load.
[Mar 20 00:51:42] ERROR[78032] loader.c: cel_radius declined to load.
[Mar 20 00:51:42] ERROR[78032] loader.c: cdr_sqlite3_custom declined to load.
[Mar 20 00:51:42] ERROR[78032] loader.c: cdr_pgsql declined to load.
[Mar 20 00:51:42] ERROR[78032] loader.c: chan_unistim declined to load.
[Mar 20 00:51:42] ERROR[78032] loader.c: pbx_dundi declined to load.
[Mar 20 00:51:42] ERROR[78032] loader.c: app_voicemail declined to load.
[Mar 20 00:51:42] ERROR[78032] loader.c: app_voicemail_odbc declined to load.
[Mar 20 00:51:42] ERROR[78032] loader.c: res_hep_rtcp declined to load.
[Mar 20 00:51:42] ERROR[78032] loader.c: res_hep_pjsip declined to load.
[Mar 20 00:51:42] WARNING[78037] chan_sip.c: chan_sip has no official maintainer and is deprecated. Migration to
[Mar 20 00:51:42] WARNING[78037] chan_sip.c: chan_pjsip is recommended. See guides at the Asterisk Wiki:
[Mar 20 00:51:42] WARNING[78037] chan_sip.c: https://wiki.asterisk.org/wiki/display/AST/Migrating+from+chan_sip+to+res_pjsip
[Mar 20 00:51:42] WARNING[78037] chan_sip.c: https://wiki.asterisk.org/wiki/display/AST/Configuring+res_pjsip
[Mar 20 00:51:48] NOTICE[78064] sorcery.c: Type ‘system’ is not reloadable, maintaining previous values
[Mar 20 00:53:22] WARNING[78064] res_pjsip_outbound_registration.c: No response received from ‘sip:rubinhozzz-test.pstn.dublin.twilio.com’ on registration attempt to ‘sip:asterisk-twilio@rubinhozzz-test.pstn.dublin.twilio.com’, retrying in ‘60’
Ring a bell?
Thanks in advance
Ruben