How can I stop my mac from switching desktops when I receive a phone call
Assign it to either "All Desktops" or "None."  Right Click to access the context menu and then select "Options"

I have mine set to "None" and regardless of where I am, it does't switch but the notification pops up in the Notification center as expected.