Only one channel is registered

<Registration/ServerURI…> <Auth…> <Status…>

7001/sip:XXXXXXX 7001 Registered (exp. 3321s)
7002/sip:XXXXXXX 7002 Rejected (exp. 152s ago)
7003/sip:XXXXXXX 7003 Rejected (exp. 152s ago)
7004/sip:XXXXXXX 7004 Rejected (exp. 156s ago)
7005/sip:XXXXXXX 7005 Rejected (exp. 153s ago)

Hi ,
I am using the same configuration in every pjsip endpoint registrations (outbound) to establish user type trunk,but only one is getting registered.

getting the error below
Apr 4 11:55:17] WARNING[7493]: res_pjsip_outbound_registration.c:1378 handle_registration_response: Fatal response ‘404’ received from ‘sip:XXXXXXX’ on registration attempt to ‘sip:7005@XXXXXX’, stopping outbound registration
[Apr 4 11:55:20] WARNING[7493]: res_pjsip_outbound_registration.c:1378 handle_registration_response: Fatal response ‘404’ received from ‘sip:XXXXXXX’ on registration attempt to ‘sip:7003@XXXXXX’, stopping outbound registration
[Apr 4 11:55:20] WARNING[7493]: res_pjsip_outbound_registration.c:1378 handle_registration_response: Fatal response ‘404’ received from ‘sip:XXXXXXX’ on registration attempt to ‘sip:7002@XXXXXX’, stopping outbound registration
[Apr 4 11:55:20] WARNING[7493]: res_pjsip_outbound_registration.c:1378 handle_registration_response: Fatal response ‘404’ received from ‘sip:XXXXXXX’ on registration attempt to ‘sip:7004@XXXXXX’, stopping outbound registration

I have added the configuration also ,

server -1

[7001]

type=endpoint

context=alert

transport=transport-udp

outbound_auth=7001

disallow=all

allow=ulaw

aors=7001

force_rport=yes

direct_media=no

ice_support=yes

[7001]

type=aor

contact=sip:7001@XXXXXXXX:5060

max_contacts=1

remove_existing=yes

[7001]

type=identify

endpoint=7001

match=XXXXXXXX

[7001]

type=auth

auth_type=userpass

username=7001

password=

realm=XXXXXXXX

[7001]

type=registration

transport=transport-udp

outbound_auth=7001

server_uri=sip:XXXXXXXX

client_uri=sip:7001@XXXXXXXX

contact_user=7001

retry_interval=60

forbidden_retry_interval=600

expiration=3600

line=yes

endpoint=7001

auth_rejection_permanent=no

[7002]

type=endpoint

context=alert

transport=transport-udp

outbound_auth=7002

disallow=all

allow=ulaw

aors=7002

force_rport=yes

direct_media=no

ice_support=yes

[7002]

type=aor

contact=sip:7002@XXXXXXXX:5060

max_contacts=1

remove_existing=yes

[7002]

type=identify

endpoint=7002

match=XXXXXXXX

[7002]

type=auth

auth_type=userpass

username=7002

password=

realm=XXXXXXXX

[7002]

type=registration

transport=transport-udp

outbound_auth=7002

server_uri=sip:XXXXXXXX

client_uri=sip:7002@XXXXXXXX

contact_user=7002

retry_interval=60

forbidden_retry_interval=600

expiration=3600

line=yes

endpoint=7002

auth_rejection_permanent=no

[7003]

type=endpoint

context=alert

transport=transport-udp

outbound_auth=7003

disallow=all

allow=ulaw

aors=7003

force_rport=yes

direct_media=no

ice_support=yes

[7003]

type=aor

contact=sip:7003@XXXXXXXX:5060

max_contacts=1

remove_existing=yes

[7003]

type=identify

endpoint=7003

match=XXXXXXXX

[7003]

type=auth

auth_type=userpass

username=7003

password=

realm=XXXXXXXX

[7003]

type=registration

transport=transport-udp

outbound_auth=7003

server_uri=sip:XXXXXXXX

client_uri=sip:7003@XXXXXXXX

contact_user=7003

retry_interval=60

forbidden_retry_interval=600

expiration=3600

line=yes

endpoint=7003

auth_rejection_permanent=no

[7004]

type=endpoint

context=alert

transport=transport-udp

outbound_auth=7004

disallow=all

allow=ulaw

aors=7004

force_rport=yes

direct_media=no

ice_support=yes

[7004]

type=aor

contact=sip:7004@XXXXXXXX:5060

max_contacts=1

remove_existing=yes

[7004]

type=identify

endpoint=7004

match=XXXXXXXX

[7004]

type=auth

auth_type=userpass

username=7004

password=

realm=XXXXXXXX

[7004]

type=registration

transport=transport-udp

outbound_auth=7004

server_uri=sip:XXXXXXXX

client_uri=sip:7004@XXXXXXXX

contact_user=7004

retry_interval=60

forbidden_retry_interval=600

expiration=3600

line=yes

endpoint=7004

auth_rejection_permanent=no

[7005]

type=endpoint

context=alert

transport=transport-udp

outbound_auth=7005

disallow=all

allow=ulaw

aors=7005

force_rport=yes

direct_media=no

ice_support=yes

[7005]

type=aor

contact=sip:7005@XXXXXXXX:5060

max_contacts=1

remove_existing=yes

[7005]

type=identify

endpoint=7005

match=XXXXXXXX

[7005]

type=auth

auth_type=userpass

username=7005

password=

realm=XXXXXXXX

[7005]

type=registration

transport=transport-udp

outbound_auth=7005

server_uri=sip:XXXXXXXX

client_uri=sip:7005@XXXXXXXX

contact_user=7005

retry_interval=60

forbidden_retry_interval=600

expiration=3600

line=yes

endpoint=7005

auth_rejection_permanent=no

server-2

[7001]

type=endpoint

transport=transport-udp

context=alert

disallow=all

allow=ulaw

outbound_auth=7001

aors=7001

[7001]

type=aor

max_contacts=1

remove_existing=yes

contact=sip:YYYYYYYY:5060

[7001]

type=identify

endpoint=7001

match=YYYYYYYY

[7001]

type=auth

auth_type=userpass

username=7001

password=

[7002]

type=endpoint

transport=transport-udp

context=alert

disallow=all

allow=ulaw

outbound_auth=7002

aors=7002

[7002]

type=aor

max_contacts=1

remove_existing=yes

contact=sip:YYYYYYYY:5060

[7002]

type=identify

endpoint=7002

match=YYYYYYYY

[7002]

type=auth

auth_type=userpass

username=7002

password=

[7003]

type=endpoint

transport=transport-udp

context=alert

disallow=all

allow=ulaw

outbound_auth=7003

aors=7003

[7003]

type=aor

max_contacts=1

remove_existing=yes

contact=sip:YYYYYYYY:5060

[7003]

type=identify

endpoint=7003

match=YYYYYYYY

[7003]

type=auth

auth_type=userpass

username=7003

password=

[7004]

type=endpoint

transport=transport-udp

context=alert

disallow=all

allow=ulaw

outbound_auth=7004

aors=7004

[7004]

type=aor

max_contacts=1

remove_existing=yes

contact=sip:YYYYYYYY:5060

[7004]

type=identify

endpoint=7004

match=YYYYYYYY

[7004]

type=auth

auth_type=userpass

username=7004

password=

[7005]

type=endpoint

transport=transport-udp

context=alert

disallow=all

allow=ulaw

outbound_auth=7005

aors=7005

[7005]

type=aor

max_contacts=1

remove_existing=yes

contact=sip:YYYYYYYY:5060

[7005]

type=identify

endpoint=7005

match=YYYYYYYY

[7005]

type=auth

auth_type=userpass

username=7005

password=

kindly provide solution …

We can’t provide a solution. The remote side rejected with a 404, so contacting them might yield information. It might be your configuration, or it might be them.

okay,thanks for your response .
can you please share a sample registration config file to register sip provider in pjsip or sip provider(pjsip) config file ,if possible.

There is one on the wiki[1] and since one of your registrations is successful, then presumably you have a working configuration for that one.

[1] res_pjsip Configuration Examples - Asterisk Project - Asterisk Project Wiki


server -1
[7001]
type=endpoint
context=alert
transport=transport-udp
outbound_auth=7001
disallow=all
allow=ulaw
aors=7001
force_rport=yes
direct_media=no
ice_support=yes

[7001]
type=aor
contact=sip:7001@XXXXXXXX:5060
max_contacts=1
remove_existing=yes

[7001]
type=identify
endpoint=7001
match=XXXXXXXX

[7001]
type=auth
auth_type=userpass
username=7001
password=
realm=XXXXXXXX

[7001]
type=registration
transport=transport-udp
outbound_auth=7001
server_uri=sip:XXXXXXXX
client_uri=sip:7001@XXXXXXXX
contact_user=7001
retry_interval=60
forbidden_retry_interval=600
expiration=3600
line=yes
endpoint=7001
auth_rejection_permanent=no

[7002]
type=endpoint
context=alert
transport=transport-udp
outbound_auth=7002
disallow=all
allow=ulaw
aors=7002
force_rport=yes
direct_media=no
ice_support=yes

[7002]
type=aor
contact=sip:7002@XXXXXXXX:5060
max_contacts=1
remove_existing=yes

[7002]
type=identify
endpoint=7002
match=XXXXXXXX

[7002]
type=auth
auth_type=userpass
username=7002
password=
realm=XXXXXXXX

[7002]
type=registration
transport=transport-udp
outbound_auth=7002
server_uri=sip:XXXXXXXX
client_uri=sip:7002@XXXXXXXX
contact_user=7002
retry_interval=60
forbidden_retry_interval=600
expiration=3600
line=yes
endpoint=7002
auth_rejection_permanent=no

But I have similar configuration for all the endpoints ,I don’t know why the first endpoint alone gets registered .
But it didn’t affects the call ,inspite getting warning mentioned above .
I made this configuration referring the wiki[1],that you have shared .

I don’t know why either - I’m not your provider. The most anyone could do here is probably guess, and maybe be wrong.

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