• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 646
  • Last Modified:

asterisks CLI

Asterisk on Astlinux 0.6.5, Digium TDM401B card (base board with 1 FXO)
access to 1 standard line (either landline or vonage)
no phones

Intended to use only for outbound dialing and recording conferences, and dialing out and playing a sound file using command line.

For testing purposes it would be helpful if someone could provide:

 Instruction and samples of how to accomplish the on demand dialing, recording and playback of files, whether via script or CLI or however it can best be done

Not looking for someone to just do the work for me, the actual application is much more involved, just looking for a few working examples, so I can learn more.  Because this is not the typical use of asterisk, all the examples I can find in the documentation and online use extensions, various protocols, etc, and serve only to confuse more.

Eventually the process will need to be automated, but I'll save that for another question, unless it's so simple it can be included here.

Flow of example 'outbound dial and record':

Dial number (555) 555-5555
When answered, send dtmf 5
pause 1 second
send dtmf 39483#
begin recording (record time varies, but is generally 1 hour 5 minutes)
save recorded file to /mnt/kd

Example of 'dial out and play a file':

Dials the number
send dtmf access codes
plays a sound file (typically 45 minutes to an hour in length)

Current zaptel.conf file has only

1 Solution
Your best option is to create a call file that will dial a number then playback a file.  Without writing the entire thing for you, that information should get you started.

This link should also help:

scott_audioAuthor Commented:
ok, i get it now, it's as simple as creating the call files then scheduling a mv to the outgoing spool, thanks, that's what i needed.  I know you're busy with many other projects, thanks for taking the time to help - scott

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now