Sip.conf to pjsip.conf BLF

Hello Forum,

we migrated our asterisk 16 (Debian 11) from sip.conf to pjsip.conf. Now we want to reconfigure our BLF hints to work properly again.

OLD Config (sip.conf):

callcounter = yes
allowsubscribe = yes
limitonpeers = yes
notifyringing = yes
notifyhold = yes
notifycid = yes

; Phone 1
; 13001
[805EC027C46E]
type=friend
secret=************
host=dynamic
nat=force_rport,comedia
language=de
call-limit=5
subscribecontext=HINTS
context=DRK-Phones

extensions.conf

[HINTS]
exten => 13001,hint,SIP/805EC027C46E
exten => 13002,hint,SIP/805EC027C477
exten => 13003,hint,SIP/805EC027C2E3

NEW pjsip.conf

; Phone 1
; 13001
[805EC027C46E]
type = aor
max_contacts = 1

[805EC027C46E]
type = auth
username = 805EC027C46E
password = **********

[805EC027C46E]
type = endpoint
transport=transport-udp
context = DRK-Phones
disallow = all
allow = alaw
rtp_symmetric = yes
force_rport = yes
rewrite_contact = yes
direct_media = no
auth = 805EC027C46E
aors = 805EC027C46E
subscribe_context=HINTS
allow_subscribe=yes

extensions.conf

[HINTS]
exten => 13001,hint,SIP/805EC027C46E
exten => 13002,hint,SIP/805EC027C477
exten => 13003,hint,SIP/805EC027C2E3

be-pbx-01-deb11*CLI> core show hints

-= Registered Asterisk Dial Plan Hints =-

13003@HINTS : SIP/805EC027C2E3 State:Unavailable Presence:not_set Watchers 2
13002@HINTS : SIP/805EC027C477 State:Unavailable Presence:not_set Watchers 2
13001@HINTS : SIP/805EC027C46E State:Unavailable Presence:not_set Watchers 2

What am i missing in the pjsip.conf or even in the extensions.conf?

Thanks a lot in advance,
Nico

The hint is configured for chan_sip. For chan_pjsip you’d use PJSIP/ instead. For example: PJSIP/805EC027C46E

Hi jcolp,

thanks for the fast reply! Changed it to pjsip, but the hints are still unavailable.

13001@HINTS : PJSIP/805EC027C46E State:Unavailable Presence:not_set Watchers 2

Are the devices registered to the endpoints? What is the output of “pjsip show endpoints”?

they are connected, but with a complete different ip address.

The ip should be 10.40.12.24

Endpoint: 805EC027C46E Not in use 0 of inf
InAuth: 805EC027C46E/805EC027C46E
Aor: 805EC027C46E 1
Contact: 805EC027C46E/sip:805EC027C46E@10.2.12.3:17 b37b594d87 NonQual nan
Transport: transport-udp udp 0 0 0.0.0.0:5060

13001@DRKHUDE-HINTS : PJSIP/805EC027C46E State:Idle Presence:not_set Watchers 2

Looking better now, Thanks!

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