Travis Cross
2d811e0ba0
Suppress spurious warning in phrase macro playback
...
Prior to this commit, if anything at all went wrong in
switch_ivr_phrase_macro_event() we would generate a warning like this:
[WARNING] switch_ivr_play_say.c:348 Macro [macro_name]: 'pattern_name' did not match any patterns
This is clearly misleading. The natural thing to do on seeing that
message is to verify that the language files are there, and that the
pattern really does exist in that macro. But none of that was usually
the problem. The message would be generated if the language wasn't
found, or if the channel had gone away, for example.
With this commit, we verify that we actually tried looking for the
pattern before displaying the warning about the pattern not matching.
2014-04-09 04:48:09 +00:00
Ken Rice
6e7d5d0897
update copyright header for 2014
2014-02-12 12:08:56 -06:00
Peter Olsson
084e245085
Lots of trivial tweaks to minimize compiler warnings, especially on 64-bit platform: Added missing type casts, changed types, added missing NULL checks.
2014-01-22 22:30:23 +01:00
Anthony Minessale
a27fe4c5a5
some null checks from coverity
2013-12-26 23:57:10 +05:00
Anthony Minessale
ea6a05cac5
FS-6033 --resolve
2013-12-10 03:42:18 +05:00
Raymond Chandler
beb0673f25
expose useful internals... thanks jaybinks
2013-11-26 19:48:49 -05:00
Anthony Minessale
00f52f3002
FS-4965 calling the variable playback_last_offset_pos instead
2013-11-25 16:09:12 -06:00
Anthony Minessale
3c83138bb4
FS-5807 contd
2013-09-20 12:41:16 -05:00
Anthony Minessale
75da9d1e73
FS-5807 --resolve
2013-09-20 10:47:39 -05:00
Ken Rice
41880353f9
FS-5589 --resolve
2013-07-10 09:44:02 -05:00
Anthony Minessale
8bcff4ca4d
fix input event checker pre-empting return value from dtmf checker when both are present
2013-07-01 14:31:43 -05:00
Nathan Neulinger
32adc789f6
make noexpandtab explicit in all vim modelines other than xml files
2013-06-25 11:50:17 -05:00
Anthony Minessale
8ac3178e45
FS-5242
2013-05-21 10:03:22 -05:00
Anthony Minessale
d012c5f392
omg it can make calls ... long way to go ...
2013-03-31 21:27:15 -05:00
Anthony Minessale
e976144ef1
FS-5216 seems like invalid codec lets try this
2013-03-29 22:35:32 -05:00
Anthony Minessale
c0f736c9da
FS-5242
2013-03-29 10:54:45 -05:00
Anthony Minessale
bf93eb47e9
FS-5131 --resolve indeed, nice catch
2013-02-28 09:28:00 -06:00
Anthony Minessale
aa89eab58f
FS-4709 --resolve, not adding the change to switch_rtp I want to have that log line there, don't make vanity changes mixed in with code changes
2013-02-26 11:49:17 -06:00
Anthony Minessale
042347802b
changing the params thing a bit, use {foo=bar} syntax instead
2013-02-20 16:34:22 -06:00
Marc Olivier Chouinard
0bfddcfd0f
Phrases: Allow phrase with no pattern to be processed
2013-01-22 22:14:58 -05:00
Marc Olivier Chouinard
af6ae011c7
FS-3743 --comment-only I've added the variable playback_timeout_as_success so you can make it return success even if it timed out.
2013-01-13 01:18:44 -05:00
Anthony Minessale
d3fcfa8245
FS-4273 --resolve
2012-12-20 11:44:21 -06:00
Anthony Minessale
8be9d429fb
fix recursion error
2012-12-10 10:56:07 -06:00
Michael Jerris
195949f25f
don't seg on no valid_terminators
2012-07-02 11:55:49 -04:00
Anthony Minessale
ed6e7b9fc0
if valid_terminators string starts with = it implies one of them must be typed
2012-06-28 13:17:57 -05:00
Anthony Minessale
8bb55ed4bf
abstract out originate_signal_bond to a function to avoid confustion and regressions
2012-05-29 13:10:15 -05:00
Anthony Minessale
ae23edad9c
FS-4111 --resolve
2012-04-18 14:49:00 -05:00
Ken Rice
c5554eb939
Copyright date update.
2012-04-18 11:52:02 -05:00
Anthony Minessale
2f998764c8
FS-4101 --resolve
2012-04-11 08:39:01 -05:00
Anthony Minessale
845330eefa
FS-3399 --resolve
2012-04-05 13:15:45 -05:00
Anthony Minessale
a4320da5a8
fix regression from earlier today
2012-01-05 16:01:27 -06:00
Anthony Minessale
e185ff0075
allow dmachine and input callback to co-exist
2012-01-05 09:39:18 -06:00
Anthony Minessale
2f786a07e9
lower token freq to 5, put it in a define and have more obvious warning about full lots
2011-10-26 12:57:59 -05:00
Anthony Minessale
5fe3a22d83
fix inaccurate sample count in file handle, buffered samples were being double tallied
2011-09-21 11:05:33 -05:00
Michael S Collins
e4d473190d
mod_dptools: add transfer_on_failure ext/dp/context to play_and_get_digits
...
If max tries is reach and user has not made a valid entry then system transfers the call leg to the specified destination.
2011-08-18 20:29:52 -07:00
Anthony Minessale
5cf6dc3115
FS-3505 --resolve copied same code from the other place the original intention was to behave as described in the bug report but it seemed like a reasonable enough request
2011-08-16 16:11:38 -05:00
Anthony Minessale
38b3f43d7d
add prefix chars to playback_terminators + means include the term in the string and x means include the char and return SWITCH_STATUS_RESTART eg #+* only includes the * if you type it but not the #
2011-05-19 15:39:43 -05:00
Anthony Minessale
73279f01bf
FS-3166 --resolve
2011-04-22 16:43:29 -05:00
Marc Olivier Chouinard
4137b360cf
switch_ivr/xml: Change the structure of the phrases/language system. Previously it was fxml->phrases->macros->language->macro. Changed it so fxml->languages->language->phrases->macros->macro
...
You can have sub macros <macros name="voicemail"><macro ...> and allow you to call it login@voicemail.
Change the sound-path to sound-prefix to make it constistant with the rest of freeswitch.
Also allow to set a sound-prefix to a macros, so you can override it for a specific file set.
You can set say-modules="en" or whatever in the <language section to define that say module to use.
2011-04-20 13:09:03 -04:00
Daniel Swarbrick
8c98328433
Allow longer input regexes to be used in phrases
2011-04-06 15:36:35 +02:00
Anthony Minessale
0871b8c53a
FS-3217 --resolve
2011-03-31 18:29:49 -05:00
Anthony Minessale
913ec9861e
FS-3176 forget the last patch I forgot there is no way to know the right codec using it the file string way, you will just have to manually specify en.PCMA as before but now it should work
2011-03-31 15:01:58 -05:00
Anthony Minessale
bc397ab600
FS-2971
2011-02-25 10:55:47 -06:00
Anthony Minessale
976859bb45
fix unreachable condition with a null args to make any key stop playback/record etc without dequing and remove hard-coded flush digits in play_and_get_digits be sure to flush it yourself before using
2011-01-24 14:04:26 -06:00
Anthony Minessale
7a1dcb6958
add record_restart_time_limit_on_dtmf var
2011-01-24 09:43:16 -06:00
Anthony Minessale
b262f44ce2
add temp_hold_music var that is only valid until you transfer the call and finishing touches on bind meta to A-D
2011-01-05 18:58:56 -06:00
Anthony Minessale
27869d7a26
add bind meta on A-D and refactor
2011-01-05 17:53:27 -06: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
fe005bddd7
FS-2789 fix secondary issue with min_digits = 0 and terminator key pressed to cancel
2010-12-21 22:15:03 -06:00
Anthony Minessale
28cab5ed46
FS-2923
2010-12-13 18:00:15 -06:00
Brian West
b2a3bbff9b
Fix samples for playback
2010-12-13 10:30:00 -06:00
Anthony Minessale
c4369fc84d
add uuid_fileman <uuid> <cmd>:<val> <-- same vals as the callbacks in js and lua to control the currently playing file of a channel from the cli or ESL (for the people who were ignoring me on the conference call so I decided to implement it instead of try to explain it )
2010-11-30 15:34:22 -06:00
Anthony Minessale
17ac6ba9c6
add record overwrite
2010-10-26 19:34:47 -05:00
Anthony Minessale
afb00ef5a1
tweaks
2010-10-17 18:52:03 -05:00
Anthony Minessale
ec9fddacce
add some more dmachine code for args parsing
2010-10-11 18:38:30 -05:00
Anthony Minessale
20d17baae2
set idle pattern to 255 instead of 0 to prevent clipping sound on short frames from mod_native_file FS-2772
2010-10-11 16:36:04 -05:00
Anthony Minessale
7f3319dc11
add switch_ivr_dmachine async digit parser to core
2010-10-04 18:23:43 -05:00
Anthony Minessale
cfa30468e8
sprinkle digit_timeout into switch_ivr_read and switch_ivr_play_and_get_digits and the higher level variants
2010-09-23 18:37:45 -05:00
Jeff Lenk
6d74d7ab66
MODAPP-448 Phrase "speak-text" application returns on first key press in phrase file on Windows
2010-08-23 15:54:23 -05:00
Anthony Minessale
d6d7773ca4
FSCORE-639 with some additional changes
2010-07-29 17:41:33 -05:00
Mathieu Parent
25fe16dfed
ivr_play: preanswer before getting variables to avoid crash
2010-07-22 23:53:11 +02:00
Anthony Minessale
dac1243900
add playback_timeout_sec to core and make it useful in valet_parking
2010-06-18 18:07:31 -05:00
Anthony Minessale
eba05c3c01
allow uuid_break to interrupt one or all in a delimited string of files the same as several individual files
2010-06-04 10:15:04 -05:00
Anthony Minessale
cb79d08592
FSCORE-571
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16995 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-03-15 20:41:56 +00:00
Mathieu Rene
52e52eb9d1
FSCORE-571
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16992 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-03-14 23:54:24 +00:00
Anthony Minessale
a0891fa211
check for true
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16965 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-03-10 23:53:12 +00:00
Anthony Minessale
cf521109d2
add record_fill_cng var
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16964 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-03-10 23:40:14 +00:00
Michael Jerris
aceb06f24f
move common say 'spell' function into shared code
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16931 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-03-07 21:26:36 +00:00
Michael Jerris
7c16b84aac
first cut and say interface rework to include gender and put all args into a struct for easier future extension
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16929 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-03-07 19:34:05 +00:00
Anthony Minessale
2a0bc6c526
FSMOD-39
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16917 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-03-05 18:58:08 +00:00
Anthony Minessale
19e7c013d8
add an event to phrases to be used as possible variables in parsing
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16885 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-03-03 20:49:38 +00:00
Anthony Minessale
d2c6900240
fix mem leak in phrases
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16884 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-03-03 19:55:15 +00:00
Marc Olivier Chouinard
4ce38bb4d9
switch_ivr_play_say: Fix a segfault when using <nomatch/> in phrases
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16711 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-02-21 08:45:38 +00:00
Anthony Minessale
d4b1da5c67
FSCORE-554
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16706 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-02-19 18:59:10 +00:00
Brian West
ee2345d81c
FSCORE-552
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16694 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-02-18 19:54:58 +00:00
Anthony Minessale
644664004c
tweak
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16646 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-02-15 20:16:06 +00:00
Anthony Minessale
886e1ddb4d
run indent on the whole tree and update copyright dates in prep for 1.0.5
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16579 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-02-06 03:38:24 +00:00
Anthony Minessale
3049cd5c8d
try this Vagabond
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16517 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-01-26 18:20:09 +00:00
Brian West
e485dcc73f
remove extra error log where not needed
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16077 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-12-29 17:59:30 +00:00
Anthony Minessale
fa34dcce04
DP-10
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16011 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-12-21 19:11:34 +00:00
Brian West
726464555c
FSCORE-517
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16003 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-12-18 23:19:53 +00:00
Anthony Minessale
6a82ae0485
null out var on each new call to read app
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15918 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-12-11 21:50:29 +00:00
Michael Jerris
06a4ef9735
core: don't hangup call on asr errors (FSCORE-493)
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15623 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-11-23 17:54:08 +00:00
Anthony Minessale
9cf0d7f846
add append and truncate to audio file api
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15503 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-11-17 21:40:09 +00:00
Anthony Minessale
bd85ca8108
const
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15460 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-11-13 16:37:23 +00:00
Anthony Minessale
45dc6306ee
add read_frame_callback to gentones
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15459 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-11-13 15:52:20 +00:00
Brian West
a893812665
FSCORE-486
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15446 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-11-12 15:12:32 +00:00
Anthony Minessale
940ba327e7
fix some sample count issues
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15395 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-11-06 23:29:36 +00:00
Anthony Minessale
10bc5514df
missing %s in 2 places
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15308 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-11-01 18:51:02 +00:00
Anthony Minessale
eac46e9dc4
answer channel on record to ensure media
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15265 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-10-29 05:11:54 +00:00
Anthony Minessale
df7637f687
change switch_strlen_zero to zstr
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15211 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-10-23 16:03:42 +00:00
Anthony Minessale
1fd13eeb5e
fix playback_ms and record_ms to work right and add playback_seconds and record_seconds
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15155 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-10-13 22:29:20 +00:00
Anthony Minessale
59b94dfacc
refactor some of the message parsing code to use fifo to reduce threading contention
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15142 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-10-12 22:23:55 +00:00
Anthony Minessale
3fd6e624f0
FSCORE-463
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15139 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-10-12 16:21:39 +00:00
Marc Olivier Chouinard
6baff277af
PHRASES: Add Recursive phrases support (FSCORE-458)
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15101 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-10-06 20:13:50 +00:00
Brian West
3bc20b3c43
MODAPP-325 part 1
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14981 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-09-25 19:07:20 +00:00
Anthony Minessale
e7fff13f76
BOUNTY-9 (Thank you Xpander Communications) [part 2]
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14891 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-09-16 20:46:36 +00:00
Anthony Minessale
2c0eaac332
add record_start and record_stop events
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14591 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-08-21 22:29:44 +00:00
Mathieu Rene
c2d5f970bc
Per-call logging, part one
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14509 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-08-13 20:35:02 +00:00
Anthony Minessale
b164cbfe9c
init buffer in lead out on speak
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13787 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-06-16 21:33:31 +00:00