MixMonitor when using Call file

Hello.

Does anyone have an example of how to record Auto Called conversations that play MP3 files, using File.call format
and extensions.conf dialplan?

My Call file looks like this:

Channel: SIP/number@provider
Application: MP3Player
Data: /tmp/test.mp3

My sip.conf:
[provider]
type=peer
ā€¦
ā€¦
context=outgoing

My extensions.conf:
[outgoing]
exten => _X.,1,Dial(SIP/provider/${EXTEN})
exten => _X.,2,MixMonitor(${EXTEN}.wav)

Thank you!

You need to use local channel,

1 Like

You have an example?

https://wiki.asterisk.org/wiki/display/AST/Using+Callfiles+and+Local+Channels

1 Like

Thanks! That worked nicely :slight_smile: