From 7cb622b4363729f3e8ae82819c06cb9e35caa15a Mon Sep 17 00:00:00 2001 From: Joel Wetzell Date: Sun, 18 Jan 2026 21:14:46 -0600 Subject: [PATCH] add SIP to OSC example --- src/content/docs/examples/dial-a-cue.mdx | 32 +++++++++++++++++++++++ src/content/docs/examples/http-to-osc.mdx | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 src/content/docs/examples/dial-a-cue.mdx diff --git a/src/content/docs/examples/dial-a-cue.mdx b/src/content/docs/examples/dial-a-cue.mdx new file mode 100644 index 0000000..4df2e48 --- /dev/null +++ b/src/content/docs/examples/dial-a-cue.mdx @@ -0,0 +1,32 @@ +--- +title: SIP > OSC +sidebar: + order: 2 +--- + +import { Code } from '@astrojs/starlight/components'; + +This config starts an SIP server listening on port `5060`. Any incoming call will result in a OSC message being sent to `127.0.0.1:53000` with the address set to [fire a QLab cue](https://qlab.app/docs/v5/scripting/osc-dictionary-v5/#/cue/{cue_number}/go) with the dialed number as the cue number. This was tested with a cheap SIP gateway like [this one](https://www.grandstream.com/products/gateways-and-atas/analog-telephone-adaptors/product/ht802). + +export const example = ` +modules: + - id: sip + type: sip.call.server + params: + port: 5060 + - id: udp + type: net.udp.client + params: + host: 127.0.0.1 + port: 53000 +routes: + - input: sip + processors: + - type: osc.message.create + params: + address: "/cue/{{.To}}/go" + - type: osc.message.encode + output: udp +` + + diff --git a/src/content/docs/examples/http-to-osc.mdx b/src/content/docs/examples/http-to-osc.mdx index 0e77863..395b476 100644 --- a/src/content/docs/examples/http-to-osc.mdx +++ b/src/content/docs/examples/http-to-osc.mdx @@ -1,5 +1,7 @@ --- title: HTTP > OSC +sidebar: + order: 1 --- import { Code } from '@astrojs/starlight/components';