mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-06 20:31:50 +00:00
39a9e94305
This updates mod_portaudio to use the new v19 api and also contains
major behavioural changes. This initial check-in should be tested to find
any obscure use cases that lead to crashes etc...
All of the old api interface commands are now depricated and any attempt to
use them should cause a polite warning asking you to try the new single "pa" command.
New Features:
*) Mulitiple calls with hold/call switching.
*) Inbound calls can play a ring file on specified device. (global and per call)
*) Optional hold music for backgrounded calls. (global and per call)
Example dialplan usage:
<extension name="2000">
<condition field="destination_number" expression="^2000$">
<!--if the next 3 lines are omitted the defaults will be used from portaudio.conf-->
<action application="set" data="pa_ring_file=/sounds/myring.wav"/>
<action application="set" data="pa_hold_file=/sounds/myhold.wav"/>
<action application="set" data="export_vars=pa_ring_file,pa_hold_file"/>
<action application="bridge" data="portaudio"/>
</condition>
</extension>
Example API interface usage:
call extension 1000
> pa call 1000
call extension 1001 putting the other call on hold
> pa call 1001
swap the calls between hold and active
> pa switch
view the current calls
> pa list
forground the call with id 1
> pa switch 1
background all calls
> pa switch none
send a dtmf string (1234) to the current call
> pa dtmf 1234
answer the oldest unanswered inbound call
> pa answer
answer the call with id 1
> pa answer 1
hangup the active call
> pa hangup
hangup the call with id 1
> pa hangup 1
get device info
> pa dump
print usage summary
> pa help
USAGE:
--------------------------------------------------------------------------------
pa help
pa dump
pa call <dest> [<dialplan> <cid_name> <cid_num> <rate>]
pa answer [<call_id>]
pa hangup [<call_id>]
pa list
pa switch [<call_id>|none]
pa_dtmf <digit string>
--------------------------------------------------------------------------------
The source of the portaudio v19 library will also be checked in for the
sake of the build system.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3981 d0543943-73ff-0310-b7d9-9358b9ac24b2
249 lines
8.0 KiB
Plaintext
249 lines
8.0 KiB
Plaintext
# Microsoft Developer Studio Project File - Name="devs_example" - Package Owner=<4>
|
|
# Microsoft Developer Studio Generated Build File, Format Version 6.00
|
|
# ** DO NOT EDIT **
|
|
|
|
# TARGTYPE "Win32 (x86) Console Application" 0x0103
|
|
|
|
CFG=devs_example - Win32 Debug
|
|
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
|
|
!MESSAGE use the Export Makefile command and run
|
|
!MESSAGE
|
|
!MESSAGE NMAKE /f "devs_example.mak".
|
|
!MESSAGE
|
|
!MESSAGE You can specify a configuration when running NMAKE
|
|
!MESSAGE by defining the macro CFG on the command line. For example:
|
|
!MESSAGE
|
|
!MESSAGE NMAKE /f "devs_example.mak" CFG="devs_example - Win32 Debug"
|
|
!MESSAGE
|
|
!MESSAGE Possible choices for configuration are:
|
|
!MESSAGE
|
|
!MESSAGE "devs_example - Win32 Release" (based on "Win32 (x86) Console Application")
|
|
!MESSAGE "devs_example - Win32 Debug" (based on "Win32 (x86) Console Application")
|
|
!MESSAGE
|
|
|
|
# Begin Project
|
|
# PROP AllowPerConfigDependencies 0
|
|
# PROP Scc_ProjName ""
|
|
# PROP Scc_LocalPath ""
|
|
CPP=cl.exe
|
|
RSC=rc.exe
|
|
|
|
!IF "$(CFG)" == "devs_example - Win32 Release"
|
|
|
|
# PROP BASE Use_MFC 0
|
|
# PROP BASE Use_Debug_Libraries 0
|
|
# PROP BASE Output_Dir "Release"
|
|
# PROP BASE Intermediate_Dir "Release"
|
|
# PROP BASE Target_Dir ""
|
|
# PROP Use_MFC 0
|
|
# PROP Use_Debug_Libraries 0
|
|
# PROP Output_Dir "Release"
|
|
# PROP Intermediate_Dir "Release"
|
|
# PROP Ignore_Export_Lib 0
|
|
# PROP Target_Dir ""
|
|
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
|
|
# ADD CPP /nologo /MTd /W3 /GX /O2 /I "../../include/" /I "../../../../include/" /I "../../../../src/common/" /I "../../../../../asiosdk2/common/" /I "../../../../../asiosdk2/host/" /I "../../../../../asiosdk2/host/pc/" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /FD /c
|
|
# SUBTRACT CPP /YX
|
|
# ADD BASE RSC /l 0x809 /d "NDEBUG"
|
|
# ADD RSC /l 0x809 /d "NDEBUG"
|
|
BSC32=bscmake.exe
|
|
# ADD BASE BSC32 /nologo
|
|
# ADD BSC32 /nologo
|
|
LINK32=link.exe
|
|
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
|
|
# ADD LINK32 portaudiocpp-vc6-r.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 /out:"../../bin/devs_example.exe" /libpath:"../../lib"
|
|
|
|
!ELSEIF "$(CFG)" == "devs_example - Win32 Debug"
|
|
|
|
# PROP BASE Use_MFC 0
|
|
# PROP BASE Use_Debug_Libraries 1
|
|
# PROP BASE Output_Dir "Debug"
|
|
# PROP BASE Intermediate_Dir "Debug"
|
|
# PROP BASE Target_Dir ""
|
|
# PROP Use_MFC 0
|
|
# PROP Use_Debug_Libraries 1
|
|
# PROP Output_Dir "Debug"
|
|
# PROP Intermediate_Dir "Debug"
|
|
# PROP Ignore_Export_Lib 0
|
|
# PROP Target_Dir ""
|
|
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
|
|
# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "../../include/" /I "../../../../include/" /I "../../../../src/common/" /I "../../../../../asiosdk2/common/" /I "../../../../../asiosdk2/host/" /I "../../../../../asiosdk2/host/pc/" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /FD /GZ /c
|
|
# SUBTRACT CPP /YX
|
|
# ADD BASE RSC /l 0x809 /d "_DEBUG"
|
|
# ADD RSC /l 0x809 /d "_DEBUG"
|
|
BSC32=bscmake.exe
|
|
# ADD BASE BSC32 /nologo
|
|
# ADD BSC32 /nologo
|
|
LINK32=link.exe
|
|
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
|
|
# ADD LINK32 portaudiocpp-vc6-d.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /out:"../../bin/devs_example.exe" /pdbtype:sept /libpath:"../../lib"
|
|
|
|
!ENDIF
|
|
|
|
# Begin Target
|
|
|
|
# Name "devs_example - Win32 Release"
|
|
# Name "devs_example - Win32 Debug"
|
|
# Begin Group "Source Files"
|
|
|
|
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
|
|
# Begin Source File
|
|
|
|
SOURCE=..\..\..\..\pa_asio\iasiothiscallresolver.cpp
|
|
# End Source File
|
|
# Begin Source File
|
|
|
|
SOURCE=..\..\..\..\src\common\pa_allocation.c
|
|
# End Source File
|
|
# Begin Source File
|
|
|
|
SOURCE=..\..\..\..\pa_asio\pa_asio.cpp
|
|
# End Source File
|
|
# Begin Source File
|
|
|
|
SOURCE=..\..\..\..\src\common\pa_converters.c
|
|
# End Source File
|
|
# Begin Source File
|
|
|
|
SOURCE=..\..\..\..\src\common\pa_cpuload.c
|
|
# End Source File
|
|
# Begin Source File
|
|
|
|
SOURCE=..\..\..\..\src\common\pa_dither.c
|
|
# End Source File
|
|
# Begin Source File
|
|
|
|
SOURCE=..\..\..\..\src\common\pa_front.c
|
|
# End Source File
|
|
# Begin Source File
|
|
|
|
SOURCE=..\..\..\..\src\common\pa_process.c
|
|
# End Source File
|
|
# Begin Source File
|
|
|
|
SOURCE=..\..\..\..\src\common\pa_skeleton.c
|
|
# End Source File
|
|
# Begin Source File
|
|
|
|
SOURCE=..\..\..\..\src\common\pa_stream.c
|
|
# End Source File
|
|
# Begin Source File
|
|
|
|
SOURCE=..\..\..\..\src\common\pa_trace.c
|
|
# End Source File
|
|
# Begin Source File
|
|
|
|
SOURCE=..\..\..\..\src\hostapi\dsound\pa_win_ds.c
|
|
# End Source File
|
|
# Begin Source File
|
|
|
|
SOURCE=..\..\..\..\src\hostapi\dsound\pa_win_ds_dynlink.c
|
|
# End Source File
|
|
# Begin Source File
|
|
|
|
SOURCE=..\..\..\..\src\os\win\pa_win_hostapis.c
|
|
# End Source File
|
|
# Begin Source File
|
|
|
|
SOURCE=..\..\..\..\src\os\win\pa_win_util.c
|
|
# End Source File
|
|
# Begin Source File
|
|
|
|
SOURCE=..\..\..\..\src\hostapi\wmme\pa_win_wmme.c
|
|
# End Source File
|
|
# Begin Source File
|
|
|
|
SOURCE=..\..\..\..\src\os\win\pa_x86_plain_converters.c
|
|
# End Source File
|
|
# End Group
|
|
# Begin Group "Header Files"
|
|
|
|
# PROP Default_Filter "h;hpp;hxx;hm;inl"
|
|
# Begin Source File
|
|
|
|
SOURCE=..\..\..\..\pa_asio\iasiothiscallresolver.h
|
|
# End Source File
|
|
# Begin Source File
|
|
|
|
SOURCE=..\..\..\..\src\common\pa_allocation.h
|
|
# End Source File
|
|
# Begin Source File
|
|
|
|
SOURCE=..\..\..\..\src\common\pa_converters.h
|
|
# End Source File
|
|
# Begin Source File
|
|
|
|
SOURCE=..\..\..\..\src\common\pa_cpuload.h
|
|
# End Source File
|
|
# Begin Source File
|
|
|
|
SOURCE=..\..\..\..\src\common\pa_dither.h
|
|
# End Source File
|
|
# Begin Source File
|
|
|
|
SOURCE=..\..\..\..\src\common\pa_endianness.h
|
|
# End Source File
|
|
# Begin Source File
|
|
|
|
SOURCE=..\..\..\..\src\common\pa_hostapi.h
|
|
# End Source File
|
|
# Begin Source File
|
|
|
|
SOURCE=..\..\..\..\src\common\pa_process.h
|
|
# End Source File
|
|
# Begin Source File
|
|
|
|
SOURCE=..\..\..\..\src\common\pa_stream.h
|
|
# End Source File
|
|
# Begin Source File
|
|
|
|
SOURCE=..\..\..\..\src\common\pa_trace.h
|
|
# End Source File
|
|
# Begin Source File
|
|
|
|
SOURCE=..\..\..\..\src\common\pa_types.h
|
|
# End Source File
|
|
# Begin Source File
|
|
|
|
SOURCE=..\..\..\..\src\common\pa_util.h
|
|
# End Source File
|
|
# Begin Source File
|
|
|
|
SOURCE=..\..\..\..\src\hostapi\dsound\pa_win_ds_dynlink.h
|
|
# End Source File
|
|
# Begin Source File
|
|
|
|
SOURCE=..\..\..\..\src\os\win\pa_x86_plain_converters.h
|
|
# End Source File
|
|
# End Group
|
|
# Begin Group "Resource Files"
|
|
|
|
# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
|
|
# End Group
|
|
# Begin Group "Example Files"
|
|
|
|
# PROP Default_Filter ""
|
|
# Begin Source File
|
|
|
|
SOURCE=..\..\example\devs.cxx
|
|
# End Source File
|
|
# End Group
|
|
# Begin Group "ASIO 2 SDK"
|
|
|
|
# PROP Default_Filter ""
|
|
# Begin Source File
|
|
|
|
SOURCE=..\..\..\..\..\asiosdk2\common\asio.cpp
|
|
# End Source File
|
|
# Begin Source File
|
|
|
|
SOURCE=..\..\..\..\..\asiosdk2\host\asiodrivers.cpp
|
|
# End Source File
|
|
# Begin Source File
|
|
|
|
SOURCE=..\..\..\..\..\asiosdk2\host\pc\asiolist.cpp
|
|
# End Source File
|
|
# End Group
|
|
# End Target
|
|
# End Project
|