Hi all,
I currently have a raspberry with buster and asterisk 16.x that I need to migrate to bookworm and asterisk 20.x. I’m trying to migrate the sip.conf/users.conf config to pjsip.conf, unfortunately without success at the moment.
My asterisk server (192.168.1.25) is connected to an analog telephone adapter (ATA 192.168.1.55 → 1000 in the config) and an external provider (my.sip.domain).
;===============================================
; pjsip.conf
;===============================================
[transport-udp]
type = transport
protocol = udp
bind = 192.168.1.25:5060
external_media_address = my.own.network
external_signaling_address = my.own.network
external_signaling_port = 5060
local_net = 192.168.1.0/24
[reg_my.sip.domain]
type = registration
retry_interval = 20
transport = transport-udp
outbound_auth = auth_reg_my.sip.domain
client_uri = sip:02433322XX@my.sip.domain
server_uri = sip:my.sip.domain
[auth_reg_my.sip.domain]
type = auth
auth_type = userpass
password = some_password
username = 02433322XX
[provider1-endpoint]
type = endpoint
context = LocalSets
allow = !all,g722,alaw,ulaw,gsm
rtp_symmetric = yes
force_rport = yes
rewrite_contact = yes
direct_media = no
tone_zone = ch
language = fr
subscribe_context = default
auth = provider1-auth
outbound_auth = auth_reg_my.sip.domain
aors = provider1-aor
[provider1-aor]
type = aor
contact = sip:02433322XX@my.sip.domain
[provider1-identify]
type = identify
endpoint = provider1-endpoint
match = my.sip.domain
;===============================================
; endpoint template for ATA
;===============================================
endpoint-int
type = endpoint
transport = transport-udp
context = LocalSets
allow = !all,g722,alaw,ulaw,gsm
direct_media = no
device_state_busy_at = 1
dtmf_mode = rfc4733
auth-userpwd
type = auth
auth_type = userpass
aor-single-reg
type = aor
;===============================================
1000-endpoint
auth = 1000-auth
aors = 1000-aor
1000-auth
username = 1000
password = some_password
1000-aor
contact = sip:192.168.1.25:5060
[1000-identify]
type = identify
endpoint = 1000-endpoint
match = 192.168.1.0/24
unfortunately my ATA is not able to register to the provider and I get this message in the log full :
[Jan 29 08:59:53] DEBUG[1875] res_pjsip_outbound_registration.c: Received REGISTER response 200(OK)
[Jan 29 08:59:53] DEBUG[1875] res_pjsip_outbound_registration.c: Processing REGISTER response 200 from server 'sip:my.sip.domain' for client 'sip:02433322XX@my.sip.domain'
[Jan 29 08:59:53] DEBUG[1875] res_pjsip_outbound_registration.c: Outbound registration to 'sip:my.sip.domain' with client 'sip:02433322XX@my.sip.domain' successful
[Jan 29 08:59:53] DEBUG[1875] res_pjsip_outbound_registration.c: Scheduling outbound registration to server 'sip:my.sip.domain' from client 'sip:02433322XX@my.sip.domain' in 3590 seconds
...
[Jan 29 09:03:22] DEBUG[1874] res_pjsip/pjsip_distributor.c: Could not find matching transaction for Request msg REGISTER/cseq=658 (rdata0x7f7c003cb8)
[Jan 29 09:03:22] DEBUG[1874] res_pjsip/pjsip_distributor.c: Calculated serializer pjsip/distributor-00000036 to use for Request msg REGISTER/cseq=658 (rdata0x7f7c003cb8)
[Jan 29 09:03:22] DEBUG[1872] threadpool.c: Increasing threadpool pjsip/pool's size by 5
[Jan 29 09:03:22] DEBUG[1906] res_pjsip_endpoint_identifier_ip.c: Source address 192.168.1.55:5060 does not match identify 'provider1-identify'
[Jan 29 09:03:22] DEBUG[1906] res_pjsip_endpoint_identifier_ip.c: Source address 192.168.1.55:5060 matches identify '1000-identify'
[Jan 29 09:03:22] DEBUG[1906] res_pjsip_endpoint_identifier_ip.c: Identify '1000-identify' SIP message matched to endpoint 1000-endpoint
[Jan 29 09:03:22] DEBUG[1906] res_pjsip_authenticator_digest.c: Using default realm 'asterisk' on incoming auth '1000-auth'.
[Jan 29 09:03:22] DEBUG[1906] res_pjsip_authenticator_digest.c: Realm: asterisk Username: 1000 Result: NOAUTH
[Jan 29 09:03:22] DEBUG[1874] res_pjsip/pjsip_distributor.c: Could not find matching transaction for Request msg REGISTER/cseq=659 (rdata0x7f7c003cb8)
[Jan 29 09:03:22] DEBUG[1874] res_pjsip/pjsip_distributor.c: Calculated serializer pjsip/distributor-00000036 to use for Request msg REGISTER/cseq=659 (rdata0x7f7c003cb8)
[Jan 29 09:03:22] DEBUG[1906] res_pjsip_endpoint_identifier_ip.c: Source address 192.168.1.55:5060 does not match identify 'provider1-identify'
[Jan 29 09:03:22] DEBUG[1906] res_pjsip_endpoint_identifier_ip.c: Source address 192.168.1.55:5060 matches identify '1000-identify'
[Jan 29 09:03:22] DEBUG[1906] res_pjsip_endpoint_identifier_ip.c: Identify '1000-identify' SIP message matched to endpoint 1000-endpoint
[Jan 29 09:03:22] DEBUG[1906] res_pjsip_authenticator_digest.c: Using default realm 'asterisk' on incoming auth '1000-auth'.
[Jan 29 09:03:22] DEBUG[1906] res_pjsip_authenticator_digest.c: Calculated nonce 1706515402/63de3cead2da3cc437a3b223090237db. Actual nonce is 1706515402/63de3cead2da3cc437a3b223090237db
[Jan 29 09:03:22] DEBUG[1906] res_pjsip_authenticator_digest.c: Realm: asterisk Username: 1000 Result: SUCCESS
[Jan 29 09:03:22] WARNING[1906] res_pjsip_registrar.c: AOR '' not found for endpoint '1000-endpoint' (192.168.1.55:5060)
I used the pjsip.conf.sample file to create my own config. I’m not very experienced and after several unsuccessful migration attempts, I’d be very glad to have some help.