The recent posts about setting Teams presence and being notified about Teams presence changes are the building blocks to synchronize the presence state between MS Teams and our 3CX PBX both ways.
- a call on Teams sets the 3CX presence state to "Away" if it was "Available" before
- if Teams becomes "Available" and 3CX state is "Away" => set 3CX to "Available"
- a call on 3CX tries to set the Teams presence "Busy" - there is some logic behind the scenes, we can't control about overriding "Offline" and "Away" in Teams which comes in handy in this case