Asterisk and OpenScapeBusinessX8

Hello all,

I have a problem that I would like to connect an Asterisk with an OpenScapeBusinessX8.
I created a SIP user in the UnifiTK and tried to log in at the Asterisk.
I get the following error: res_pjsip_outbound_registration.c:1397 handle_registration_response: Fatal response ‘401’ received from ‘sip:192.168.1.1’ on registration attempt to ‘sip:6666@192.168.1.1’, stopping outbound registration.
The reason is I need to get some Scripts triggered when the number is diald at the UnifiTK.
I connected the Asterisk directly to a Sip-gate Trunk which worked perfectly fine.
But I could not get it to work with my local UnifiTK.
Here is my PJSIP.conf

[openscape]
type = registration
transport = transport-udp
outbound_auth = openscape
server_uri = sip:192.168.1.1
client_uri = sip:6666@192.168.1.1
retry_interval = 60
contact_user = 6666@192.168.1.1

[openscape]
type = auth
auth_type = userpass
username = 6666
password = password

[openscape]
type = aor
contact = sip:192.168.1.1:5060

[openscape]
type = endpoint
transport = transport-udp
context = from-sip
allow = all
direct_media = yes
outbound_auth = openscape
aors = openscape

[openscape]
type = identify
match = 192.168.1.0/24

[transport-udp]
type=transport
protocol=udp ;upd,tcp,tls,ws,wss,flow
bind=0.0.0.0
external_media_address = 192.168.1.1
external_signaling_address = 192.168.1.1

[6666]
type = endpoint
context = openscape
allow = all
auth = 6666
aors = 6666

[6666]
type = auth
auth_typ = userpass
password = password
username = 6666

[6666]
type = aor
max_contacts = 1

I don’t understand why 401 should be considered fatal, but…

The contact user is obviously invalid and one would normally expect the server URI to contain the same IP address as in match=, and definitely not ones own external address, but you haven’t said what the addresses represent.

I got it to work. I confused my self with the existing one. Wrote it completly new and it works just fine sorry to bother any one.

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