Quantcast
Channel: FreePBX Community Forums - Latest posts
Viewing all articles
Browse latest Browse all 226877

PJSIP extension won't register when created via extension module

$
0
0

Here is the error from /var/log/asterisk/full

[2018-05-14 17:50:49] NOTICE[25927] res_pjsip/pjsip_distributor.c: Request ‘REGISTER’ from ‘“1104” <sip:1104@obfuscated IP address of server>’ failed for ‘obfuscated IP address of endpoint:49752’ (callid: BNRT2mxwQYMRwpFv679MxQ…) - No matching endpoint found
[2018-05-14 17:50:49] NOTICE[25927] res_pjsip/pjsip_distributor.c: Request ‘REGISTER’ from ‘“1104” <sip:1104@obfuscated IP address of server>’ failed for ‘obfuscated IP address of endpoint:49752’ (callid: BNRT2mxwQYMRwpFv679MxQ…) - No matching endpoint found
[2018-05-14 17:50:49] NOTICE[25927] res_pjsip/pjsip_distributor.c: Request ‘REGISTER’ from ‘“1104” <sip:1104@obfuscated IP address of server>’ failed for ‘obfuscated IP address of endpoint:49752’ (callid: BNRT2mxwQYMRwpFv679MxQ…) - Failed to authenticate

Here is the config generated by the extensions module:

[0.0.0.0-udp]
type=transport
protocol=udp
bind=0.0.0.0:6060
external_media_address=obfuscated IP address
external_signaling_address=obfuscated IP address
allow_reload=yes
local_net=192.168.100.0/24
local_net=192.168.5.0/24

[0.0.0.0-tcp]
type=transport
protocol=tcp
bind=0.0.0.0:6061
external_media_address=obfuscated IP address
external_signaling_address=obfuscated IP address
allow_reload=yes
local_net=192.168.100.0/24
local_net=192.168.5.0/24

[1104]
type=aor
max_contacts=1
remove_existing=yes
maximum_expiration=7200
minimum_expiration=60
qualify_frequency=60

[1104-auth]
type=auth
auth_type=userpass
password=password
username=1104

[1104]
type=endpoint
aors=1104
auth=1104-auth
allow=ulaw,alaw,gsm,g726,g723,speex,g722,silk
context=from-internal
callerid=device <1104>
dtmf_mode=rfc4733
aggregate_mwi=yes
use_avpf=no
rtcp_mux=no
ice_support=no
media_use_received_transport=no
trust_id_inbound=yes
media_encryption=no
timers=yes
media_encryption_optimistic=no
rtp_symmetric=yes
rewrite_contact=yes
force_rport=yes
language=en

[1104-identify]
type=identify
endpoint=1104

If i delete the ext from extensions module and build a config manually with the config shown below it will register:

[1104]
type=aor
max_contacts=1
remove_existing=yes
maximum_expiration=7200
minimum_expiration=60
qualify_frequency=60

[auth1104]
type=auth
auth_type=userpass
password=password
username=1104

[1104]
type=endpoint
aors=1104
auth=auth1104
allow=ulaw,alaw,gsm,g726,g723,speex,g722,silk
context=from-internal
callerid=device <1104>
dtmf_mode=rfc4733
aggregate_mwi=yes
use_avpf=no
rtcp_mux=no
ice_support=no
media_use_received_transport=no
trust_id_inbound=yes
media_encryption=no
timers=yes
media_encryption_optimistic=no
rtp_symmetric=yes
rewrite_contact=yes
force_rport=yes
language=en

[1104-identify]
type=identify
endpoint=1104

I do not have any custom modules or code at the moment for troubleshooting purposes.

Does it matter what version of asterisk I’m running? I’m running Asterisk 13.19.1


Viewing all articles
Browse latest Browse all 226877

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>