I think that’s the answer.
-
You would need to create a custom dialplan and tie it to the button so that it will toggle the FMFM for the foreign extension, but then I am not sure you would be able to use the hint on the same button.
-
Maybe you could create a custom application to perform the way you would like it to but preserves the FMFM BLF of the button. Custom Phone Applications with Asterisk - Phones - Documentation (freepbx.org)
-
You might also be able to make something like this that diverts the call if it matches a string (otherwise end). If it matches change the callerID (to 4888) and then execute the *214888. That might let you keep the BLF button as is but provide the function you need. NOTE: I have never tried the linked with feature codes and I am assuming the variable that needs to change for the FMFM toggle to work is CallerID(num). Hooking for fun and income - FreePBX / Tips and Tricks - FreePBX Community Forums