Create SIP Audio Response
This processor will create a SIP response message with an audio file as the payload. If this message is output to a SIP module using the module.output processor, then the SIP module will send the response to the caller and play the audio file included in the response.
- type:
sip.response.audio.create - params:
- audioFile: path to the audio file to play
- postWait: number of milliseconds to wait after playing the audio
- preWait: number of milliseconds to wait before playing the audio
Example
Section titled “Example”This example will create a SIP response that will wait 1 second then play response.wav then wait another second before completing the response.
- type: sip.response.audio.create params: preWait: 1000 audioFile: "response.wav" postWait: 1000