You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sip: route state updates through a public StateHandler (#714)
* sip: route state updates through a public StateHandler
CallState's update stream now flows through a StateHandler interface
that callers in cloud-sip can hook into. A default rpcStateHandler
forwards UpdateSIPCallState / RecordCallContext to an upstream RPC
client, preserving today's behavior for non-cloud builds.
Other changes that fall out:
- Handler.OnSessionEnd takes *CallState instead of *livekit.SIPCallInfo
so handlers can route post-call writes (PCAP append) through the
state's RecordCallContext passthrough rather than the raw RPC client.
- CallState owns the proto + transferInfos + dirty bit and serializes
every flush under its mutex. Ctx-free API.
- Service.NewService takes a GetStateHandler factory so cloud builds
can inject their own (legacy RPC + local observability fork).
- internalProvidergetSIPTrunkAuthentication parallelizes the auth/
observability lookups and threads SIPCallObservability through the
dispatch wrappers (auth response, create-participant request).
* deps: bump protocol to pick up SIPCallObservability fields
* deps: bump protocol
* ci: re-trigger
* sip: rename mutate to appendInfo in RecordCallContext
Address PR feedback — `appendInfo` reads more clearly than `mutate` for
the late-arriving call-context write (e.g. PCAP links).
* deps: bump protocol
* deps: bump server-sdk-go for new protocol compat
protocol main removed the legacy Scenario_Create_* / ScenarioGroup_*
types after #1609 (agent_simulation yaml refactor); server-sdk-go@v2.16.6
still references them and fails to build. Bump to the matching
server-sdk-go main pseudo-version.
0 commit comments