39 Commits

Author SHA1 Message Date
Travis Cross
d0ce18885c Cleanup bad whitespace
Introduced in commit e6ac87f5f1d484e07801d4d03be3a8aaad2a36f1.
2014-05-21 17:25:32 +00:00
Jeff Lenk
e6ac87f5f1 fixes for VS2010 code analysis - hope these are OK else-ware 2014-05-20 22:54:32 -05:00
Michael Jerris
7011602550 no need to check if p is null, it can never be null 2014-05-07 12:37:36 -04:00
Ken Rice
6e7d5d0897 update copyright header for 2014 2014-02-12 12:08:56 -06:00
Anthony Minessale
d2a2e4ce15 FS-5568 --resolve the real problem is that L=-1 is not valid because the L param is about how many times to generate the output while generating the tone so -1 is impossible because it can never end to let you hear it. The real fix is to not allow -1 loops=-1 is the correct way to do this because that is parsed after the tone is generated and repeats the entire thing. Doing something like L=100 actually generates the whole slinear audio 100 times into memore where loops=100 only generates the little snippet and repeats it after it was generated. 2013-07-02 08:44:47 -05:00
Nathan Neulinger
32adc789f6 make noexpandtab explicit in all vim modelines other than xml files 2013-06-25 11:50:17 -05:00
Ken Rice
c5554eb939 Copyright date update. 2012-04-18 11:52:02 -05:00
Anthony Minessale
a65794fb5e FS-3570 receive side, update libteletone to track duration so it is less likely to double detect and push api changes down to freetdm 2011-09-16 10:06:04 -05:00
Anthony Minessale
73279f01bf FS-3166 --resolve 2011-04-22 16:43:29 -05:00
Brian West
3734f4cd44 bump copyright date and fix some email and typos from diego. 2011-01-05 10:09:04 -06:00
Jeff Lenk
184f395553 fix several code analysis problems and mask several that are required 2010-09-20 09:25:14 -05:00
Anthony Minessale
d31c24dcb3 thats better 2010-09-14 12:16:14 -05:00
Anthony Minessale
74430cb3c6 doh 2010-09-14 12:00:46 -05:00
Anthony Minessale
6f2c455f92 add tone2wav 2010-09-14 11:48:43 -05:00
Michael Jerris
b1377e015b update api visibility macros for windows
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12547 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-10 15:45:29 +00:00
Michael Jerris
9d82fff528 fix suncc visibility support
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12157 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-19 05:06:04 +00:00
Michael Jerris
ffe2ad4bbd API visibility support (GCC/SUNCC) (FSCORE-264)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12061 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-16 18:17:01 +00:00
Michael Jerris
1005e93b63 LBTEL-1 Build error "array subscript is above array bounds"
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10741 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-12 19:45:34 +00:00
Anthony Minessale
5668dbe0b2 fix compiler warning
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10730 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-12 15:09:44 +00:00
Michael Jerris
64997c4d8e vim extendtab is bad
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8894 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-07-03 19:12:26 +00:00
Michael Jerris
20ab270879 code analysis and fixes for teletone.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7614 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-02-14 18:13:50 +00:00
Anthony Minessale
620508cc80 off by 1 err pointed out by trixter from irc
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6388 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-11-23 18:09:23 +00:00
Anthony Minessale
de8928f33b sync
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6180 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-11-07 21:16:38 +00:00
Michael Jerris
622a2733dc use more correct const char * for things that should not be modified. This should also fix the switch_cpp.cpp changes from MODAPP-44. More patches to follow up on this for a few more modules that will likely break with this commit.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6120 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-11-01 11:28:26 +00:00
Michael Jerris
d46578dbcf fix build, sync with our working copy.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5279 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-07 03:50:08 +00:00
Michael Jerris
d90df53666 switch teletone to use float.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5278 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-07 01:02:39 +00:00
Anthony Minessale
607bb13d5a update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5277 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-07 00:21:16 +00:00
Anthony Minessale
88fdfab48f update teletone see wiki for syntax changes in TTML
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5276 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-06 23:28:00 +00:00
Anthony Minessale
4156571ea6 add license exception to teleton for openzap
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5196 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-05-17 13:56:10 +00:00
Michael Jerris
f359f847f7 fix magic emacs and vi formatting comments in the bottom of our source files to use tabs instead of spaces
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4176 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-09 02:36:03 +00:00
Michael Jerris
44649c70b4 Add magic comments for emacs and vi in source and header files to properly format and display tabs vs. spaces in those editors:
/* For Emacs:
 * Local Variables:
 * mode:c
 * indent-tabs-mode:nil
 * tab-width:4
 * c-basic-offset:4
 * End:
 * For VIM:
 * vim:set softtabstop=4 shiftwidth=4 tabstop=4 expandtab:
 */


git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3462 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-27 22:30:48 +00:00
Anthony Minessale
d7baa16132 Ringback (sponsored by Front Logic)
This addition lets you set artifical ringback on a channel
that is waiting for an originated call to be answered.

the syntax is 

<action application="set" data="ringback=[data]"/>

where data is either the full path to an audio file
or a teletone generation script..


syntax of teletone scripts

LEGEND:

0-9,a-d,*,# (standard dtmf tones)

variables: c,r,d,v,>,<,+,w,l,L,%

c (channels)        - Sets the number of channels.
r (rate)            - Sets the sample rate.
d (duration)        - Sets the default tone duration.
v (volume)          - Sets the default volume.
> (decrease vol)    - factor to decrease volume by per frame (0 for even decrease across duration).
< (increase vol)    - factor to increase volume by per frame (0 for even increase across duration).
+ (step)            - factor to step by used by < and >.
w (wait)            - default silence after each tone.
l (loops)           - number of times to repeat each tone in the script.
L (LOOPS)           - number of times to repeat the the whole script.
% (manual tone)     - a generic tone specified by a duration, a wait and a list of frequencies.

standard tones can have custom duration per use with the () modifier
7(1000, 500) to generate DTMF 7 for 1 second then pause .5 seconds

EXAMPLES

UK Ring Tone [400+450 hz on for 400ms off for 200ms then 400+450 hz on for 400ms off for 2200ms]
%(400,200,400,450);%(400,2200,400,450)

US Ring Tone [440+480 hz on for 2000ms off for 4000ms]
%(2000,4000,440,480)

ATT BONG [volume level 4000, even decay, step by 2, # key for 60ms with no wait, volume level 2000, 350+440hz {us dialtone} for 940ms
v=4000;>=0;+=2;#(60,0);v=2000;%(940,0,350,440)

SIT Tone 913.8 hz for 274 ms with no wait, 1370.6 hz for 274 ms with no wait, 1776.7 hz for 380ms with no wait
%(274,0,913.8);%(274,0,1370.6);%(380,0,1776.7)

ATTN TONE (phone's off the hook!) 1400+2060+2450+2600 hz for 100ms with 100ms wait
%(100,100,1400,2060,2450,2600)



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3408 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-19 01:05:06 +00:00
Michael Jerris
2ce49f8f0b silence silly warning
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3404 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-18 16:39:45 +00:00
Anthony Minessale
7712c6637c messaging stuff
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1902 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-17 14:12:07 +00:00
Anthony Minessale
45d1b5cc87 1 of many PRI/SIP gateway related updates
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@652 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-02-22 18:32:15 +00:00
Michael Jerris
fc341792be turn on higher warning level in msvc for the core and libteletone and resolve warnings.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@634 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-02-20 00:23:25 +00:00
Anthony Minessale
8d1967d7eb cleanup
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@633 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-02-19 21:34:16 +00:00
Michael Jerris
51f566fbd4 add msvc build to libteletone
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@632 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-02-19 21:24:29 +00:00
Anthony Minessale
b3b8dc6eae Add in new tone detection/generation library "libteletone"
Thanks to coppice, trixter, mikej and bkw for research, hints and or code examples.



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@629 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-02-19 20:28:24 +00:00