Upgrade 3CX to v18 and get it hosted free!

Asterisk cmd MachineDetect addon

Author image

MachineDetect()

Q: Is this the same as app_AMD as in bug/patch5959?

Description

  • MachineDetect(x|y|z)

Waits for answering machine greetings to finish and sets a flag. Waits for ‘x’ milliseconds of silence, ‘y’ times. ${MACHINE} will be set to 1 if ‘z’ miliseconds of total (non-continuous) audio noise is detected. It will not clear the flag, so it is possible to run through several calls to the application with different detection settings in sequence

Examples

  • MachineDetect(700,2,2200) – will detect most machines. (default)
  • MachineDetect(500,3,2200) – will get through a \”hello, hello, hello\”\n”;

 

Download

This application is not distributed with Asterisk or Asterisk-Addons, therefore you must download and compile yourself. However, it is/will be included in Asterisk 1.4.

app_machinedetect.c

Put in your /usr/src/asterisk/apps/ directory. Then modify the Makefile in the /usr/src/asterisk/apps director to include app_machinedetect.so ‘APPS=’ section

Note for compatability with Asterisk 1.2

The C lib includes must be moved above the Asterisk include directives. I will try to post a new version soon.

See also

Related Posts:

Get 3CX - Absolutely Free!
Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.