Hi. I found some examples about features.xml but it is just a part of dialplan and will be executed on the DTMF sended in call processing (am i right?), so
I trying to understand how Freeswitch handles REFER. 

Presume i have phone with button "transfer" that sends REFER message to server. How can I associate dialplan whith REFER message arrived to server (rewrite function for it or give additional functionality).
Also can i bind some codes (like in conference mode) for every call? Because in coference mode it is very cool to use:  

session:execute("bind_digit_action","moderator,*1,exec:execute_extension,add")
session:execute("bind_digit_action","moderator,*2,exec:execute_extension,remove")

for rewrite feature codes for it.

Thx you for response