Hello everyone,
I have an issue with the Busy Light Function (BLF) for a PJSIP endpoint in Asterisk that doesn’t have a registered device. The endpoint is configured in the pjsip.conf file, and I can make calls to the endpoint, but when I check the BLF status using core show hints
, the endpoint always shows as “Idle,” even though there is an active call.
I would like to have the status of this endpoint displayed correctly, even though it doesn’t have a registered device. Is there a way to configure BLF to track the status of an endpoint that doesn’t have an active registration but can still make and receive calls?
So far, I have tried the following:
- Configured the endpoint in pjsip.conf: The endpoint is properly defined in pjsip.conf and works for regular calls, but the BLF status always remains “Idle,” even during active calls.
- Set hints in the dialplan configuration: I have attempted to monitor the endpoint in extensions.conf with an appropriate hint, but it always shows “Idle,” which is incorrect.
Has anyone found a solution or workaround to correctly display the BLF status for this PJSIP endpoint without a registered device? Is there a specific configuration or feature that I need to enable to make BLF work for unregistered endpoints?
I would greatly appreciate any help or pointers!
Thanks in advance!
pjsip.conf:
[1003]
type=endpoint
transport=udp
context=1003
disallow=all
allow=alaw
aors=1003
force_rport=yes
direct_media=yes
ice_support=yes
rtp_symmetric=yes
send_pai=yes
callerid=1003
contact_user=1003
language=en
callerid=asreceived
subscribe_context=HINTS
allow_subscribe=yes
[1003]
type=aor
contact=sip:1003@IP
max_contacts=0
qualify_frequency=0
extensions.conf:
[HINTS]
exten => 1003,hint,PJSIP/1003
Ok it’s solved like this:
extensions.conf:
[HINTS]
exten => 1003,hint,Custom:OnLeave
[outgoing]
exten => 1003,1,Answer()
same => n,Set(DEVICE_STATE(Custom:OnLeave)=INUSE)
same => n,Playback(demo-congrats)
same => n,Hangup()
exten => h,1,Set(DEVICE_STATE(Custom:OnLeave)=NOT_INUSE)