Agent status & BLF

Is this currently Master-branch only?
Running 4.4 branch.
Anyone got it working on 4.4?

I've replaced what seems to be the affected files without success.
Nevermind this, I figured it out.

Only thing that not seems to be working with this awesome feature is the subscribe-function from the phones to the agent+[agent name]
I've noticed that if I restart the phone there's no status on the key until the status is actually changed once, either by pressing the key or changing on the server.

Anyone have any ideas on how to get subscribe working?
 
Nevermind this, I figured it out.

Only thing that not seems to be working with this awesome feature is the subscribe-function from the phones to the agent+[agent name]
I've noticed that if I restart the phone there's no status on the key until the status is actually changed once, either by pressing the key or changing on the server.

Anyone have any ideas on how to get subscribe working?
Solved it by adding the following to /etc/freeswitch/autoload_configs/lua.conf.xml

Code:
    <!-- FusionPBX: Support BLF for Agent Status -->
    <param name="startup-script" value="blf_subscribe.lua agent"/>
 
Small add to @KonradSC awesome patch.
For some reason 'Log Out' via BLF is not working fast and not lit down lamp instantly on Freeswitch 1.8.7.
Small trick worked for me - generate event with same UUID as call UUID
Something like this

Code:
if string.find(agent_name, 'agent+', nil, true) ~= 1 then
    presence_in.turn_lamp( blf_status,
        'agent+'..agent_name.."@"..domain_name,
        uuid
    );
end