Context issue

when i call from the PBX at my space to my home PBX the call gets rejected and i get this in my asterisk log on freepbx 399 is a sip extension on my PBX but i have no idea how to get it in that context

[2022-09-12 12:05:19] NOTICE[13185] res_pjsip_session.c: tahtkev: Call (UDP:10.208.11.13:5060) to extension ‘399’ rejected because extension not found in context ‘phones’.

i have manually edited the contex now in

pjsip.endpoint.conf to

[399]
type=endpoint
aors=399
auth=399-auth
tos_audio=ef
tos_video=af41
cos_audio=5
cos_video=4
allow=ulaw,alaw,gsm,g726,g722
context=phones
callerid=IVR <399>

dtmf_mode=rfc4733
direct_media=yes
aggregate_mwi=yes
use_avpf=no
rtcp_mux=no
max_audio_streams=1
max_video_streams=1
bundle=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
timers_min_se=90
media_encryption_optimistic=no

it still doesn’t work

The context it refers to is that in extensions.conf (and its include flies), not the section name in pjsip.conf.

The context in your extract above is the one that is used for calls from the phone, not to it.

I’m not a FreePBX person, so I don’t know if phones is a normal context used by FreePBX.

You should never modify pjsip.endpoint.conf, as it is generated by FreePBX, automatically, whenever the configuration is loaded.

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