Creating a PJSIP Extension Without Auth Section

I have a few extensions that I want to authenticate using their IP address instead of a password. I can get it working by hardcoding the endpoint in pjsip_custom.conf

[123456]
type=aor
contact=sip:mydomain.com

[123456]
type=endpoint
aors=123456
tos_audio=ef
tos_video=af41
cos_audio=5
cos_video=4
allow=g722,ulaw,alaw,gsm,g726
context=from-internal
callerid=TEST <123456>

dtmf_mode=rfc4733
direct_media=yes
aggregate_mwi=yes
use_avpf=no
rtcp_mux=no
ice_support=no
media_use_received_transport=no
trust_id_inbound=yes
user_eq_phone=no
send_connected_line=yes
media_encryption=no
timers=yes
media_encryption_optimistic=no
rtp_timeout=30
rtp_timeout_hold=300
send_pai=yes
rtp_symmetric=yes
rewrite_contact=yes
force_rport=yes
language=en
one_touch_recording=on
record_on_feature=apprecord
record_off_feature=apprecord

[123456-identify]
type=identify
endpoint=123456
match=123.123.123.123

I’m wondering if there’s a way to do this through the GUI. I tried creating a PJSIP extension without a secret but it still creates an auth section in pjsip.auth.conf.

Thanks.

I’m pretty sure this isn’t supported yet in FreePBX. I recall this being brought up a few years ago and a few times since. I recommended that they raise a feature request but don’t think it was ever filed.

Not tested, but it may get you close. If not, please describe the device or app you are trying to connect.

Create a Trunk with Authentication None and Context set to from-internal, which should allow the strange device/app to make calls. For receiving, create a Custom extension with the Dial parameter set to call the trunk.

This works. Thanks for the suggestion.

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