I installed Asterisk 16.1.1 built by root @xxx on a x86_64 running Linux on 2019-02-11 18:45:31 UTC
I setting up the sip.conf, pjsip.conf and extensions.conf files. I want to connect two Zoiper softphones and 2 cameras grandstream.
But I cannot to call between the softphones to the cameras, neither softphones between them!
I follow all recommendation of setting, but I cannot to do it works!
Could you help me with this?
The errors when I open asterisk from command line: CLI are:
[Feb 16 12:19:20] NOTICE[10496]: res_pjsip/pjsip_distributor.c:672 log_failed_request: Request ‘REGISTER’ from ‘sip:6004@xxxxxxxxxx’ failed for ‘xxxxxxxxxx:1025’ (callid: 1119441443-5060-2@BJC.BGI.II.BGH) - Failed to authenticate
[Feb 16 12:19:20] NOTICE[10496]: res_pjsip/pjsip_distributor.c:672 log_failed_request: Request ‘REGISTER’ from ‘sip:6004@xxxxxxxxxx’ failed for ‘xxxxxxxxxx:1025’ (callid: 1119441443-5060-2@BJC.BGI.II.BGH) - No matching endpoint found
[Feb 16 12:19:20] NOTICE[10496]: res_pjsip/pjsip_distributor.c:672 log_failed_request: Request ‘REGISTER’ from ‘sip:6004@xxxxxxxxxx’ failed for ‘xxxxxxxxxx:1025’ (callid: 1119441443-5060-2@BJC.BGI.II.BGH) - Failed to authenticate
[Feb 16 12:19:20] NOTICE[10496]: res_pjsip/pjsip_distributor.c:672 log_failed_request: Request ‘REGISTER’ from ‘sip:6002@xxxxxxxxxx’ failed for ‘xxxxxxxxxx:5060’ (callid: 1859694680-5060-2@BJC.BGI.II.CBA) - No matching endpoint found
[Feb 16 12:19:20] NOTICE[10496]: res_pjsip/pjsip_distributor.c:672 log_failed_request: Request ‘REGISTER’ from ‘sip:6002@xxxxxxxxxx’ failed for ‘xxxxxxxxxx:5060’ (callid: 1859694680-5060-2@BJC.BGI.II.CBA) - Failed to authenticate
[Feb 16 12:19:20] NOTICE[10496]: res_pjsip/pjsip_distributor.c:672 log_failed_request: Request ‘REGISTER’ from ‘sip:6002@xxxxxxxxxx’ failed for ‘xxxxxxxxxx:5060’ (callid: 1859694680-5060-2@BJC.BGI.II.CBA) - No matching endpoint found
[Feb 16 12:19:20] NOTICE[10496]: res_pjsip/pjsip_distributor.c:672 log_failed_request: Request ‘REGISTER’ from ‘sip:6002@xxxxxxxxxx’ failed for ‘xxxxxxxxxx:5060’ (callid: 1859694680-5060-2@BJC.BGI.II.CBA) - Failed to authenticate
[Feb 16 12:19:27] NOTICE[10496]: res_pjsip/pjsip_distributor.c:672 log_failed_request: Request ‘REGISTER’ from ‘“6003” sip:6003@xxxxxxxxxx’ failed for ‘xxxxxxxxxx:10485’ (callid: yQGOz9rp7EKEw1dzou0xZQ…) - No matching endpoint found
[Feb 16 12:19:27] NOTICE[10496]: res_pjsip/pjsip_distributor.c:672 log_failed_request: Request ‘REGISTER’ from ‘“6003” sip:6003@xxxxxxxxxx’ failed for ‘xxxxxxxxxx:10485’ (callid: yQGOz9rp7EKEw1dzou0xZQ…) - No matching endpoint found
[Feb 16 12:19:27] NOTICE[10496]: res_pjsip/pjsip_distributor.c:672 log_failed_request: Request ‘REGISTER’ from ‘“6003” sip:6003@xxxxxxxxxx’ failed for ‘xxxxxxxxxx:10485’ (callid: yQGOz9rp7EKEw1dzou0xZQ…) - Failed to authenticate
[Feb 16 12:19:29] NOTICE[10496]: res_pjsip/pjsip_distributor.c:672 log_failed_request: Request ‘REGISTER’ from ‘“6001” sip:6001@xxxxxxxxxx’ failed for ‘xxxxxxxxxx:25851’ (callid: B62c2XrSYXrw7SDL5YUpZw…) - No matching endpoint found
[Feb 16 12:19:29] NOTICE[10496]: res_pjsip/pjsip_distributor.c:672 log_failed_request: Request ‘REGISTER’ from ‘“6001” sip:6001@xxxxxxxxxx’ failed for ‘xxxxxxxxxx:25851’ (callid: B62c2XrSYXrw7SDL5YUpZw…) - No matching endpoint found
[Feb 16 12:19:29] NOTICE[10496]: res_pjsip/pjsip_distributor.c:672 log_failed_request: Request ‘REGISTER’ from ‘“6001” sip:6001@xxxxxxxxxx’ failed for ‘xxxxxxxxxx:25851’ (callid: B62c2XrSYXrw7SDL5YUpZw…) - Failed to authenticate
The files settings are:
sip.conf
[general]
context=public
disallow=all
allow = alaw,ulaw,g711,g723,h263,gsm,g729
limitonpeers=yes
rtptimeout=600
session-timers=accept
session-expires=120
session-minse=90
session-refresher=uas
rtptimeout=600
notifyringing=notinuse
notifyhold=yes
callcounter=yes
allowsubscribe=yes
port=5060
bindaddr=0.0.0.0
language=es
[6001]
type=friend
context=from-internal
host=dynamic
secret=***************
[6002]
type=friend
context=from-internal
host=dynamic
secret=***************
[6003]
type=friend
context=from-internal
host=dynamic
secret=***************
[6004]
type=friend
context=from-internal
host=dynamic
secret=***************
extensions.conf
[general]
static=yes
writeprotect=no
clearglobalvars=yes
[from-internal]
exten = 100,1,Answer()
same = n,Wait(1)
same = n,Playback(hello-world)
same = n,Hangup()
exten=>6001,1,Dial(SIP/6001,30)
exten=>6001,2,Hangup
exten=>6003,1,Dial(SIP/6003,30)
exten=>6003,2,Hangup
exten=>6004,1,Dial(SIP/6004,30)
exten=>6004,2,Hangup
pjsip.conf
[transport-udp]
type=transport
bind=0.0.0.0
[6001]
type=auth
auth_type=userpass
password=***************
username=6001
transport=transport-udp
max_contacts=1
contact=sip:6001@xx.xx.xx.xx:5060
context=from-internal
auth=6001
aors=6001
[6002]
type=auth
auth_type=userpass
password=***************
username=6002
transport=transport-udp
max_contacts=1
contact=sip:6002@xx.xx.xx.xx:5060
context=from-internal
auth=6002
aors=6002
[6003]
type=auth
auth_type=userpass
password=***************
username=6003
transport=transport-udp
max_contacts=1
contact=sip:6002@xx.xx.xx.xx:5060
context=from-internal
auth=6003
aors=6003
[6004]
type=auth
auth_type=userpass
password=***************
username=6004
transport=transport-udp
max_contacts=1
contact=sip:6004@xx.xx.xx.xx:5060
context=from-internal
auth=6004
aors=6004