asterisks CLI

Posted on 2009-04-30
Last Modified: 2013-12-27
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

Question by:scott_audio
    LVL 7

    Accepted 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:

    Author Closing Comment

    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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension ( This reminded me of questions tha…
    It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now