Notes for OpenAM
----------------
Craig Southeren, 14 July 2006
Updated by Roger Hardiman, October 2001, January 2002, August 2002
1. Introduction
---------------
OpenAM is a simple answering machine using the H.323 protocol. It requires the
OpenH323 library - see http://www.voxgratia.org for more information. It is
known to run on Linux, FreeBSD, Solaris and MacOS X. If you run the program
successfully on another platform, then please send an email to the mailing
list at openh323@openh323.org, or to craigs@postincrement.com
2. Features
-----------
The code contains the following features:
- requires no codec hardware to operate
- requires no audio hardware to operate
- currently supports G.723.1, G.711 muLaw and ALaw, GSM, Microsoft MS-GSM,
Speex and LPC-10 codecs
- can accept multiple connections simultaneously
- generates a call log containing full information about each call
- runs a user defined program after each call, which can be used to
automatically send the recorded message as a MIME encoded email
attachment to a known email address
- can limit the the length of recorded messages
- automatically cleans up recorded voice files
- uses .wav files for the Outgoing Message (OGM). Can also use
raw audio files
- records messages as .wav files. Can also record as raw audio files
- plays different OGMs depending on the person called
3. Operation
------------
OpenAM works by setting up a H.323 listener process, and then waiting for
incoming connections. Whenever an incoming connection is established, it
plays the outgoing message (OGM) and then starts recording any incoming audio
from the remote end into a record file.
As a simple demonstration, use:
openam -m sample_message
This plays the "sample_message.wav" audio file for the outgoing message
of calls using the GSM, MS-GSM, G.711, Speex and LPC-10 codecs,
and "sample_message_g7231.wav" for calls using the G.723.1 codec.
Recorded messages are placed in the current directory and have a filename
made up of the time and date of the recording. Eg:
20010628_140234.wav (14:02 on 28th June 2001)
Windows users can easily replay messages recorded from a G.723.1 codec
call in the Windows Media Player.
Unix users (without Quicknet cards) cannot play G.723.1 files so they may
prefer to use this command, which does not enable G.723.1 in OpenAM.
openam --pcmmessage sample_message.wav
When the client hangs up, or the maximum record time is reached, the connection
is broken, and the record file is closed. The optional user program is called
with the following parameters:
name of file containing recorded voice data
string describing the address of the client that initiated the call
the username of the remote party
the duration of the call, in seconds
a string describing the codecs used during the call
the vendor description of the remote endpoint software
A record is then written to the call log file, and the record deleted if
necessary.
If the client hangs up before the OGM is finished, then no record file is
created and the user program is not called. A call log record is still
generated.
4. Command line options
-----------------------
OpenAM has the following command line options:
-d dir
--directory dir Set the directory that record files are created in
-l secs
--limit secs Limit recorded messages to secs duration (default 30)
-m fn
--message fn Set outgoing message to fn
This sets both the --pcmmessage and the --g7231message
parameters.
The filename 'fn' must not have an extension.
--pcmmessage is set to 'fn'.wav (or 'fn'.sw if there is
no .wav file)
--g7231message is set to 'fn'_g7231.wav (or 'fn'.g7231 if
there is no .wav file)
--g7231message fn Set the outgoing message for G.723.1 codec connections.
This must be a G.723.1 format .wav file or a .g723 file
--pcmmessage fn Set the outgoing message for the G.711, GSM, MS-GSM
Speex and LPC-10 codec connections. This must be a PCM
format .wav file or a .sw file
--recordraw Use raw audio files (.sw and .g723 files) for recorded
messages (the default is to record .wav files)
-n
--nodelete Do not delete record files after processing
-r cmd
--run cmd Run this command after each recorded message
-u str
--username str Set the local endpoint name to str.
Default is "OpenH323 Answering Machine vxxx"
-t
--trace Enable debug trace, use multiple times for more detail
-o fn
--output fn File for trace output, default is stderr
-h
--help Display this help message
6. OGM and record file formats
------------------------------
OpenAM supports both .wav files and raw audio files.
WAV Files
---------
There are two types of .wav file which OpenAM uses.
i) 8,000 Hz (8KHz), 16-bit, mono PCM wav files. These are standard wav files
and are used whenever the G.711, GSM, MS-GSM, Speex or LPC-10 codecs are
used in a call.
These wav files can be played on all systems which support the .wav format
including Windows, Linux and FreeBSD.
ii) G.723.1 encoded wav files. These are a special format of .wav file which
are used whenever the G.723.1 codec is used in a call.
These wav files can be played on Windows systems using Windows Media Player
(after it has automatically downloaded the right codec) or the
Windows Sound Recorder (after Media Player has installed the right codec)..
They can also be played via a Quicknet card (eg on Linux and FreeBSD)
Raw Files
---------
Some users may prefer to use raw files instead of .wav files as they can
easily be chopped up or joined together.
OpenAM also supports
i) .sw files containing signed 16-bit mono pcm audio sampled at 8,000 Hz
These are used with the G.711, GSM, MS-GSM, Speex and LPC-10 codecs.
ii) .g723 files containing G.723.1 data which is used with the G.723.1 codec.
The OGM
-------
The OGM can be either a .wav file or a raw file.
OpenAM will automatically determine the file type from the extension.
Wav files which are not in the correct format (8000 hz, 16-bit, mono PCM
format) or G.723.1 format will be rejected.
User Specific OGMs
------------------
OpenAM can play a different OGM for each person called.
For example, when calling
roger@h323machine, craig@h323machine and 541153@h323machine,
then OpenAM can be made to play
message_roger.wav, message_craig.wav and message_541153.wav
To do this, use --pcmmessage message_%s.wav
The %s in the filename is substituted with the e164 name/number called.
This feature does not work with the -m or --message option.
You must use the --pcmmessage and --g7231message options.
The Recorded Messages
---------------------
The recorded messages are written as a .wav files unless the --recordraw
option is used in which case a raw files with .sw and .g723 extensions
are written.
Conversion information
----------------------
The sox package can use used to manipulate both raw files and wav files.
Sox uses the extension .sw to identify 8000 Hz signed 16 bit mono audio
files, which is why OpenAM uses this extension.
To convert a 8000 hz .WAV file to .sw format, just use:
sox sample.wav sample.sw
the reverse works to convert .sw files to .WAV
The same technique applies for .au files
Sox can be downloaded from http://sox.sourceforge.net
Sox does not support G.723.1 Wav files.
However these can be converted to standard PCM format in the
Windows Sound Recorder, with the File->Properties->Convert option.
There are also some perl scripts for manipulating G.723.1 files
written by M.Stoychev <M.Stoychev@cnsys.bg>. These can be found at
http://kgb.cnsys.bg/voice/
Unix tricks
-----------
On some Unix systems, /dev/dspW0 can be used to record an OGM in the
没有合适的资源?快使用搜索试试~ 我知道了~
h323plus-app-v1_23_0.tar.gz_h323plus_h323plus windows
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 199 浏览量
2022-09-24
03:49:50
上传
评论
收藏 596KB GZ 举报
温馨提示
共223个文件
h:63个
cxx:45个
ico:23个
这是我写的实现的RTSP协议的实现,很有价值,谢谢大家下载,编译通过,可以运行
资源推荐
资源详情
资源评论
收起资源包目录
h323plus-app-v1_23_0.tar.gz_h323plus_h323plus windows (223个子文件)
openmcu.1 3KB
ohlogoqcif.bmp 26KB
MyOpenH.bmp 11KB
g711.c 8KB
CHANGES 1KB
MyPhoneDlg.cpp 76KB
MyPhoneEndPoint.cpp 24KB
MyPhoneBook.cpp 13KB
VisualPage.cpp 8KB
guiPage.cpp 7KB
AudioPage.cpp 7KB
GKPage.cpp 7KB
Book_OutPage.cpp 6KB
Book_MsdPage.cpp 6KB
Book_InPage.cpp 6KB
CVideoDevice.cpp 6KB
MyIndicator.cpp 6KB
Book_AddressPage.cpp 5KB
NetworkPage.cpp 5KB
GeneralPage.cpp 5KB
Multilang.cpp 3KB
MyPropertySheet.cpp 3KB
MyPhone.cpp 3KB
MyMainMenu.cpp 918B
StdAfx.cpp 197B
precompile.cpp 24B
.cvsignore 110B
main.cxx 233KB
pmodeme.cxx 86KB
main.cxx 68KB
t38engine.cxx 55KB
video.cxx 40KB
h323.cxx 39KB
conference.cxx 34KB
main.cxx 33KB
main.cxx 27KB
main.cxx 25KB
drv_c0c.cxx 20KB
mcu.cxx 17KB
t38session.cxx 16KB
modemep.cxx 15KB
main.cxx 15KB
drv_pty.cxx 14KB
sipep.cxx 12KB
h323ep.cxx 11KB
hdlc.cxx 9KB
manager.cxx 8KB
audio.cxx 8KB
t30tone.cxx 8KB
filemembers.cxx 7KB
pmodemi.cxx 6KB
pmutils.cxx 6KB
pmodem.cxx 6KB
modemstrm.cxx 5KB
drivers.cxx 5KB
custom.cxx 5KB
ifptranscoder.cxx 5KB
dle.cxx 4KB
main_process.cxx 4KB
h323cap.cxx 3KB
g7231_fake.cxx 3KB
custom.cxx 3KB
t30.cxx 2KB
ifpmediafmt.cxx 2KB
enginebase.cxx 2KB
precompile.cxx 2KB
fcs.cxx 2KB
opalutils.cxx 1KB
precompile.cxx 1KB
precompile.cxx 685B
precompile.cxx 572B
precompile.cxx 518B
openivr.dsp 8KB
openam.dsp 5KB
openivr.dsw 827B
openam.dsw 506B
openmcu.gif 3KB
conference.h 33KB
h323.h 20KB
main.h 16KB
resource.h 16KB
pmutils.h 8KB
t38engine.h 8KB
MyPhoneDlg.h 8KB
main.h 6KB
MyPhone.h 6KB
filemembers.h 5KB
mcu.h 5KB
main.h 5KB
main.h 5KB
main.h 5KB
MyPhoneEndPoint.h 4KB
pmodem.h 4KB
pmodemi.h 3KB
MyPhoneBook.h 3KB
h323ep.h 3KB
VisualPage.h 3KB
sipep.h 3KB
AudioPage.h 3KB
GKPage.h 3KB
共 223 条
- 1
- 2
- 3
资源评论
寒泊
- 粉丝: 74
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功