RealTime API sip connection

In the Openai dashboard, we created a realtime prompt, saved it, and published it, so we now have the “prompt id.” Specifically, we also configured the functions and MCP Servers. Testing it from the dashboard, everything worked fine.

We then connected the PBX via SIP to the realtime API and configured the call acceptance software as shown in the example.
The SIP connection is OK, audio is OK, and WebSocket receives and sends the various packets.
We only have one problem.

In the Python code we use to accept SIP calls, we also implemented the code to perform a “session.update” to which we pass the “prompt id,” intending to leverage the dashboard configuration.
The problem is that parameters, such as “system instructions,” are used as per the dashboard settings, while the functions and MCP servers appear not to be!
To make them work, we need to redefine them in “session.update.”

I hope I was clear… do you have any ideas?