add SIP to OSC example

This commit is contained in:
Joel Wetzell
2026-01-18 21:14:46 -06:00
parent 4f8751c251
commit 7cb622b436
2 changed files with 34 additions and 0 deletions
+32
View File
@@ -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
`
<Code code={example} title="config.yaml" lang="yaml"/>