[Home]

Summary:ASTERISK-05771: [patch] Chat-cord: Off Hook + DTMF detection
Reporter:Vincent de Groot (vdegroot)Labels:
Date Opened:2005-12-03 15:21:29.000-0600Date Closed:2011-06-07 14:03:10
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Channels/chan_oss
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) oss.patch
Description:Based on the hack of Onno Kortmann http://www.okay.dyndns.org/okhp/linux/asterisk/

This patch makes it possible to use a chat-cord ( http://www.grynx.com/index.php/projects/build-your-own-chat-cord/ ) in combination with an normal telephone to use as device for Asterisk.

- Off hook detection based on the difference in stddev of noise levels (off/on-hook)
- Use the buttons of phone to send DTMF codes (numbers) to driver

****** ADDITIONAL INFORMATION ******

Changes compared with the hack of Onno:
- Onno's hack was written for the old OSS channel (chan_oss_old.c) This one is working for the current chan_oss.c
- This patch has no support for generating a ring-tone


Compile with:

In Asterisk Makefile
OPTIONS += -DRADIO_RELAX

In chan_oss.c
#define TRYOPEN 1

Extra parameters in /etc/asterisk/oss.conf
Use debug=0x4 in oss.conf to view the stddev values of the signal to fine tune the parameters below.

vol_divide=3
hd_disp_interval=30
hd_hl_threshold=60
hd_ll_threshold=40
hd_hl_seqmin=20
hd_ll_seqmin=20

hd_hl_threshold: The pick-up threshold level, a value just below the observed values when the phone is off-hook but no one is talking.

hd_ll_threshold: A value just above the value that appears when the phone is hung up.

More info about fine tuning at:
http://www.okay.dyndns.org/okhp/linux/asterisk/
Comments:By: Russell Bryant (russell) 2005-12-05 14:55:31.000-0600

Since this patch is based on the work of someone else, we will probably need a disclaimer from both of you to consider putting this into the tree.

By: Olle Johansson (oej) 2006-01-04 05:20:55.000-0600

No reply for over a month. Closing time.