The Problem:
I am using Asterisk 23 with the recently merged high-sample-rate AudioSocket support (PR #151). I am attempting to connect a 16kHz stream using the following dialplan:
same => n,Answer()
same => n,Set(UUID=${SHELL(cat /proc/sys/kernel/random/uuid):0:36})
same => n,NoOp(Generated UUID: ${UUID})
same => n,AudioSocket(${UUID},127.0.0.1:40000,slin16)
same => n,Hangup()
The Observation:
Even with slin16 specified, the Python backend continues to receive Type 0x10 (8kHz) headers and
320-byte payloads instead of the expected Type
0x12 (16kHz) and 640-byte payloads.
The Question: > Does the AudioSocket () dialplan application support the 3rd argument for format selection yet, or must this currently be done exclusively through the channel driver (chan_audiosocket) using audiosocket.conf?