Commit Graph

191 Commits

Author SHA1 Message Date
Anthony Minessale 35865bd90c FS-10118: [freeswitch-core] Race conditions from lack of error checking in switch_core_session_read_lock #resolve 2017-03-09 13:22:25 -06:00
Sergey Safarov df1ab07ca4 FS-9924: Removed extra space in source files 2017-02-09 23:59:49 -05:00
Brian West 48fab6f6db FS-9851: [freeswitch-core] Add abstimeout to CoreSession:getDigits in switch_cpp #resolve 2016-12-14 14:06:20 -06:00
Anthony Minessale 9b8a5edd3d FS-9638 2016-11-10 12:09:00 -06:00
Michael Jerris 94d28e0fd6 FS-8928: flag a bidning error when using EventConsumer::bind with invalid event name instead of blindly using custom 2016-03-17 12:51:35 -05:00
Brian West 49b9d7f9ff FS-8898 log setVariable at debug, so you can tell what variables are being set with ease from scripts 2016-03-09 20:33:52 -06:00
Michael Jerris 4fc4c52392 Revert "FS-8720: [core] allow passing in blank/null to session::hangup to mean NORMAL_CLEARING hangup cause instead of segfault"
wrong fix for this issue
This reverts commit 3304492b41.
2016-01-12 13:03:21 -05:00
Michael Jerris 3304492b41 FS-8720: [core] allow passing in blank/null to session::hangup to mean NORMAL_CLEARING hangup cause instead of segfault 2016-01-12 10:57:00 -05:00
Mark Lipscombe 4e9977507d FS-8537: Passing nil to various lua functions causes segfault
Various functions exposed via lua do not check their parameters for null
causing freeswitch to segfault.

This change adds checking for null parameters and returns an error
instead of segfaulting.
2015-11-15 10:43:09 +11:00
Anthony Minessale 4d7a0ac024 FS-8167 #resolve [FS segs] 2015-09-15 22:35:29 -05:00
Anthony Minessale 1d91b7d61c FS-7721 #resolve #comment this will fix your issue but of course now your example will not function anymore because you are unsetting the input callback and dtmf will be ignored but this is to be expected 2015-06-30 12:30:36 -05:00
Michael Jerris 7963c4045e FS-7707: fix build error on centos7 2015-06-22 14:36:09 -04:00
Seven Du aa15994c7f fix return value 2014-09-06 18:29:19 +08:00
Seven Du 1a4e6e3093 FS-6796 #comment avoid use c++ string since it causing troubles 2014-09-06 07:18:38 +08:00
Seven Du 31f78d8cac add ability to read from a stream
do not use this unless you understand what you are doing and you want to take the risk,
you are warnned
2014-09-04 09:45:16 +08:00
Anthony Minessale 3a00260dc6 FS-6615 test this patch 2014-07-16 19:33:10 +05:00
Travis Cross d1ec643286 Improve name of new console log function
The new console log function here isn't any more of a channel log than
the old one.  The name was bad, and no one could have been using this
yet since we just ran reswig.  We'll take the same tack the kernel
developers do when replacing a function with an otherwise equivalent
one with a better API.
2014-07-16 03:52:08 +00:00
Travis Cross 74262ee964 Add `session::consoleLog2()`
This allows emitting log messages that include the file name and line
number of the call.  Because we have the session object here, the log
messages can be correctly associated with the session from which they
were emitted.

As when the kernel developers need to 'fix' a system call, we'll just
add a number to the name of the existing function.
2014-07-16 03:52:08 +00:00
Brian West a99df48984 FS-4861 improve logging when using c++ wrapper 2014-07-09 09:09:45 -05:00
Michael Jerris 44401e842a CID:1023936 Unused pointer value 2014-05-15 17:00:32 +00:00
Michael Jerris 3ff3f327ee FS-6484: guess at fixing seg from mod_managed, this function should never be called without a channel, but if it does, throw an error instead 2014-05-05 19:19:03 -04:00
Ken Rice 6e7d5d0897 update copyright header for 2014 2014-02-12 12:08:56 -06:00
Anthony Minessale 1af72288d1 FS-6061 --resolve 2013-12-23 22:43:06 +05:00
Anthony Minessale 802794b9f1 FS-5794 --resolve 2013-09-16 19:56:02 -05:00
Brian West fb34ff9ade adding transfer-sound to ivr menu so you can specifiy a sound file to pay when a transfer takes place 2013-07-24 18:40:45 -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 e60f37f651 FS-5529 --resolve 2013-06-20 12:36:30 -05:00
Brian West cc2efd5597 Fix silly warning 2013-04-16 12:13:45 -05:00
Anthony Minessale 0e41c484a3 FS-5284 --resolve ready is meant to signify that the object is ready for external use so setting it to 1 before the bind is sufficient 2013-04-08 13:00:24 -05:00
William King 3199f5ce0a Fixing the only place where parms is used instead of params. 2013-02-04 12:20:25 -06:00
Anthony Minessale 1e22ba2ba5 add cleanup method to event consumer 2013-01-29 09:34:23 -06:00
Anthony Minessale 428cd029de FS-4868 --resolve This patch also adds freeswitch.ready() which will return false once shutdown has started 2012-11-26 15:18:58 -06:00
Anthony Minessale fe7580b13d FS-4738 --resolve 2012-10-19 15:48:13 -04:00
Anthony Minessale 830755ac85 allow event consumer to supply size as optional arg 2012-06-14 11:31:46 -05:00
Ken Rice 7a147e4762 Update a ton of copyright statements to make sure the dates are proper 2012-04-25 17:14:55 -05:00
Jeff Lenk b992e29640 FS-3553 --resolve 2011-11-16 16:00:14 -06:00
Anthony Minessale 2faaee0e6e add getGlobalVariable and setGlobalVariable to swig stuff 2011-10-21 08:56:42 -05:00
Anthony Minessale 7333d46d5b add new chatplan concept and mod_sms. Apps for chat messages: copy new base freeswitch.xml and chatplan dir if you are upgrading on existing config base 2011-09-21 14:31:18 -05:00
Anthony Minessale 301ea9fbce locate session even when it's hungup in script constructor 2011-08-26 08:30:27 -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 0ba25358b9 FS-3119 2011-03-03 14:21:02 -06:00
Anthony Minessale f33e9c6ede FS-2966 I already fixed this in the wait_for_state, so i copied the same fix to wait_for_state_timeout, the lua one needed a similar call to wait for the state to change to avoid a race, both of you should be fixed with this patch 2011-03-02 20:50:33 -06:00
Brian West 89c5f3bf82 FS-3023 2011-02-02 11:04:49 -06:00
Brian West 3734f4cd44 bump copyright date and fix some email and typos from diego. 2011-01-05 10:09:04 -06:00
Anthony Minessale c4e350ab0c add insertFile front end to switch_ivr_insert_file and reswig 2010-12-29 15:09:57 -06:00
Anthony Minessale 93cc3dc556 normalize tests for outbound channels to use switch_channel_direction instead of testing for CF_OUTBOUND 2010-12-15 20:59:42 -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 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
Anthony Minessale 5cd072a3fb allow vars to be set containing vars from languages 2010-07-15 08:42:51 -05:00
Anthony Minessale 3a6bb506c0 passing non-null value to generate_xml_cdr now implies its an initalized xml object 2010-07-01 15:22:13 -05:00