Why am I getting errors when adding record() method?

All is fine until the moment I want to add record() method.
[comink]
exten => _[+0-9a-zA-Z*].,1,Verbose(“u4 works |”{EXTEN}) exten => _[+0-9a-zA-Z*].,n,GotoIf(["{EXTEN}"="0000"]?3:4) exten => 0000,n,Answer() exten => _[+0-9a-zA-Z*].,n,Set(u4msg={MESSAGE(body)})
same => n,Verbose("Message: "{u4msg}" | "{EXTEN})
exten => _[+0-9a-zA-Z*].,n,Record(/var/spool/asterisk/recording/rec.wav,15,15)
exten => _[+0-9a-zA-Z*].,n,Stasis(COMINK-ARI,${u4msg})
exten => _[+0-9a-zA-Z*].,n(hangup),Hangup()

After adding method, this error appears:

Logs:
[Oct 28 18:01:12] ERROR[96218][C-00000003]: channel.c:5568 set_format: Unable to set format because channel Message/ast_msg_queue supports no formats
[Oct 28 18:01:12] WARNING[96218][C-00000003]: file.c:1252 ast_streamfile: Unable to open beep (format (none)): Function not implemented
[Oct 28 18:01:12] WARNING[96218][C-00000003]: app_record.c:361 record_exec: ast_streamfile failed on Message/ast_msg_queue
[Oct 28 18:01:12] ERROR[96218][C-00000003]: channel.c:5568 set_format: Unable to set format because channel Message/ast_msg_queue supports no formats
[Oct 28 18:01:12] WARNING[96218][C-00000003]: app_record.c:372 record_exec: Unable to set to linear mode, giving up

Please mark up dialplan as pre-formatted text. Also please provide logs as pre-formatted text, not small print images.

You appear to be trying to record audio media for a call which, fundamentally, does not have audio media.

What were you trying to do that was fine up that point?

I am trying to record the user’s voice to a file.

The dialplan is being executed for a text message. There is no voice call, so it can’t record.

And how can I change or expand the dialplan for voice recording?

The dialplan isn’t what to needs to be changed or expanded really. You have to place a call into Asterisk. If you do that, what happens?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.