You cannot change a button label programatically. Labels are read from configuration scripts or DB and applied when asterisk or fop2 are reloaded. And labels also change on queue login or logout events if there is a name associated to a local member.
Comments
I have update database directly and restart FOP2.
Vitaya