Commit Graph

14944 Commits

Author SHA1 Message Date
Brian West f9c5f85444 REVERT FS-5555 2013-07-12 13:05:36 -05:00
Nathan Neulinger afeaac2d57 Merge branch 'master' of ssh://git.freeswitch.org:222/freeswitch 2013-07-12 12:01:06 -05:00
Nathan Neulinger af9a18c63c FS-4027 - improve adherence to code conventions 2013-07-12 12:00:57 -05:00
Brian West a8b4ccf7fb FS-5555 improvement --resolve 2013-07-12 11:50:10 -05:00
Nathan Neulinger 655325ab05 fixup and merge in FS-4027 enhancements for additional device support 2013-07-12 11:39:23 -05:00
Nathan Neulinger 802aa379fc skinny typedef 2013-07-12 11:15:46 -05:00
Nathan Neulinger 76c3f4be98 add a few additional skinny message types 2013-07-12 11:05:52 -05:00
Nathan Neulinger 9bdfb18715 skinny correct field name 2013-07-12 11:05:18 -05:00
Nathan Neulinger 11cd5262f7 update device types list with more known types 2013-07-12 11:04:32 -05:00
Anthony Minessale 5dbf2b3cf7 refactor some video code 2013-07-11 17:38:24 -05:00
Nathan Neulinger bab6ebc549 skinny: improve cleanup of devices during registration and unregistration, resolves some weird state issues when devices get disconnected 2013-07-11 13:14:44 -05:00
Ken Rice 2f48c63107 Revert "FS-5567 --resolve"
pulling this one for a bit...

This reverts commit 518b5a802e.
2013-07-11 12:04:12 -05:00
Ken Rice 518b5a802e FS-5567 --resolve 2013-07-11 11:10:11 -05:00
Stefan Knoblich cb554fb023 mod_shout: Rework our_mpg123_new() to handle error cases correctly and to clean up the code
Keeping parameter handling quirks for backwards compatibility reasons.

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2013-07-11 03:17:04 +02:00
Stefan Knoblich 90021b2953 mod_sofia: Add missing format string to switch_event_add_body() call
Fixes GCC format string warning/error.

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2013-07-11 01:15:16 +02:00
Ken Rice 7f3792234b FS-5003 --resolve 2013-07-10 17:31:00 -05:00
Raymond Chandler df7a4fc958 FS-4123 --resolve slightly modified patch applied 2013-07-10 17:53:42 -04:00
Ken Rice 6240d5213f FS-5555 --resolve 2013-07-10 12:08:54 -05:00
Ken Rice eb329ad5ae FS-5524 --resolve 2013-07-10 11:49:59 -05:00
Ken Rice be98eb34ab FS-5559 --resolve 2013-07-10 11:49:58 -05:00
Raymond Chandler a64af62938 add chatplan info app 2013-07-10 12:47:32 -04:00
Anthony Minessale 745ab02e2b render arrays properly in xml_cdr 2013-07-10 10:29:45 -05:00
Raymond Chandler 91392fb18d FS-5467 --resolve patch applied 2013-07-10 12:17:29 -04:00
Anthony Minessale 30d5ecf9f7 FS-5445 --resolve this was actually just missing one word from the code as seen in the similar code in the core, the same mistake was made there where the compiler is not smart enough to see the mutually exclusive logical paths this code is specific to spontaneously creating an array in a single set like set foo[12]=val which would be totally broken if that line were commented 2013-07-10 10:26:08 -05:00
Raymond Chandler de9bd1c367 FS-3911 --resolve patch applied 2013-07-10 10:53:41 -04:00
Ken Rice 41880353f9 FS-5589 --resolve 2013-07-10 09:44:02 -05:00
Jeff Lenk 267ef728e1 FS-5275 --resolve 2013-07-09 08:53:36 -05:00
Seven Du 2985d38f52 debug audio on h323 channels 2013-07-09 14:10:02 +08:00
Michael S Collins e21c57b099 BNPH-5393: --resolve add vars to affect mod_voicemail behavior: skip_record_check and skip_record_urgent_check 2013-07-08 13:45:27 -07:00
Brian West 35fca3d290 fix logic from race fix 2013-07-08 13:19:22 -05:00
Chris Rienzo 6423787da8 mod_rayo: fix - client messages not accepted over s2s connection 2013-07-08 13:09:27 -04:00
Anthony Minessale 8de63a750e FS-5571 --resolve 2013-07-08 10:02:38 -05:00
Anthony Minessale fd1893197e FS-5586 --resolve 2013-07-08 07:55:50 -05:00
Marc Olivier Chouinard c613c65446 --resolve FS-5478 2013-07-08 00:55:48 -04:00
Seven Du f4a66142ce --resolve FS-5072 2013-07-08 00:03:11 +08:00
Ken Rice 22baa51acc FS-2816 --resolve 2013-07-06 22:04:06 -05:00
Jeff Lenk 82292cced7 FS-3127 --resolve please reopen if not fixed 2013-07-06 12:52:21 -05:00
Brian West 9ed53db590 fix race 2013-07-05 19:50:57 -05:00
Ken Rice f30e40a80b --resolve FS-3922 2013-07-04 21:18:20 -05:00
Jeff Lenk 2908e3acd5 fix stupid c89 for windows 2013-07-04 12:28:35 -05:00
Ken Rice e0210d75e3 --resolve FS-5558 2013-07-03 15:01:03 -05:00
Ken Rice 4f71d38e17 --resolve FS-5569 2013-07-03 14:59:53 -05:00
Ken Rice 3f84fc99e9 --resolve FS-4461
Add record_seconds, record_ms and record_samples variables done recording.
original patch not used due to refactor in code.
2013-07-03 14:13:06 -05:00
Ken Rice 51fd5a6cee --resolve FS-5426 2013-07-03 14:13:05 -05:00
Ken Rice bf89fbd81d --resolve FS-5432 2013-07-03 14:13:05 -05:00
Chris Rienzo 0d32f510f2 mod_rayo: move example config so that make config-rayo works 2013-07-03 14:22:30 -04:00
Marc Olivier Chouinard fdbfbc867f --resolve FS-3852 2013-07-03 13:01:23 -04:00
Ken Rice f91bdf12aa --resolve FS-3918 using patch that adds conference_moderator_pin channel variable 2013-07-03 11:13:35 -05:00
Travis Cross 02046950be Fix uninitialized use of length variable
Bad things must have been happening when this was hit.

This was introduced in commit 5cb4cd9d9c
2013-07-03 16:05:07 +00:00
Giovanni Maruzzelli 4a3d1a074f FS-5148 gsmopen: wait for the first audio write() before giving the AT command that moves the audio path to the audio tty (eg: don't accumulate noise by not sending frames on the open tty) 2013-07-03 13:56:02 +02:00
Giovanni Maruzzelli 172df304cc gsmopen: on Linux, automatically find out and setup audio and data ports associated to dongle model, IMEI and IMSI 2013-07-03 10:02:09 +02:00
Steve Underwood 20531a097a Added a "nation" parameter to v18_init(), in preparation for automoding. 2013-07-03 02:39:09 +08:00
Jeff Lenk ba96b391d3 fix trivial compiler error 2013-07-02 12:41:15 -05:00
Anthony Minessale 134871872c fix codec negotiation issue with the same codec at multiple rates 2013-07-02 12:16:54 -05:00
Nathan Neulinger a0043b8ca2 partial rollback of ec67542628 to fix skinny breakage 2013-07-01 22:19:40 -05:00
Ken Rice c2c8fba14a --resolve FS-5566
When you use $12345 in regex substitutions, it isn't obvious
whenever you mean $1-concatenated-2345 or $12-concatenated-345
or any other variation.  In all other languages, in order to
solve this ambiguity, a braces {} are allowed to be used to
separate variable name (or a reference) from surrounding text,
like ${1}2345 or ${12}345.  Use the same for freeswitch too.

While at it, fix a buffer overflow as well: the index[] variable
which is used to copy the "variable" name is 10 chars long, but
it is used in the code without bounds checking, so a reference
which is >9 chars long ($1234567890) will overflow the buffer,
crashing freeswitch.

And another overflow is in the way how size of the "substituted"
variable is handled.  First, in the outer loop, we compare the
wrong variable with the size of `substituted' buffer (amount of
bytes we took from the source instead of amount of bytes we
used in `substituted').  And second, when actual regex match
is being substitured, amount of room in `substituted' variable
is not checked at all.

Patch contributed by Michael Tokarev <mjt@tls.msk.ru>
2013-07-01 17:05:07 -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
Anthony Minessale e1ed386bb9 FS-5565 --resolve 2013-07-01 12:16:47 -05:00
Anthony Minessale bbdd77ec35 fix race condition on device state destroy 2013-06-28 14:21:04 -05:00
Anthony Minessale dac93d7936 FS-5527 --resolve 2013-06-28 10:42:06 -05:00
Chris Rienzo 72aad68965 mod_rayo: dtmf #*A-D was broken 2013-06-28 11:16:06 -04:00
Brian West a8e0cbfcde punt without return 2013-06-28 09:48:49 -05:00
Anthony Minessale 2ea31f5d95 add preAnswer and ringReady too 2013-06-27 16:31:29 -05:00
Anthony Minessale 41c1c1cb75 add answer work tag to httapi 2013-06-27 16:25:59 -05:00
Anthony Minessale cd56d774a0 parse error response for code to only change roles on 487 2013-06-27 13:00:20 -05:00
Moises Silva 5324063f44 Added support for blind transfer notification of negative responses 2013-06-26 23:17:49 -04:00
Nathan Neulinger 5fefae03fd improve skinny behavior in HA deployment 2013-06-26 21:56:10 -05:00
Nathan Neulinger 375c102ae0 typo 2013-06-26 21:55:38 -05:00
Anthony Minessale 3879a85bfb set rtp params in skinny for rtp flush on bridge 2013-06-26 18:35:06 -05:00
Anthony Minessale 7eb86bba75 fix empty +flags{} pre-empting conference_member_flags variable 2013-06-26 16:04:38 -05:00
Brian West 384cf3381c use the correct repeat key to replay messages 2013-06-26 15:17:56 -05:00
Anthony Minessale c903934628 FS-5550 --resolve 2013-06-26 10:51:44 -05:00
Anthony Minessale bf5fa172e5 FS-5547 --resolve 2013-06-26 10:47:40 -05:00
Anthony Minessale 13dacdcde4 FS-5546 --resolve oddly that is the thing I was trying to fix in the first place 2013-06-26 09:17:15 -05:00
Anthony Minessale ecc4b52d4a fix typo with some flags related to jingle 2013-06-25 14:54:34 -05:00
Chris Rienzo 628b4048d9 mod_rayo: added missing modeline 2013-06-25 15:15:08 -04:00
Nathan Neulinger 32adc789f6 make noexpandtab explicit in all vim modelines other than xml files 2013-06-25 11:50:17 -05:00
Chris Rienzo 13fdd77f7e mod_rayo: used wrong stack 2013-06-25 11:40:38 -04:00
Chris Rienzo f750bcbcc1 mod_rayo: fixes for <prompt> and reply loops 2013-06-25 11:30:10 -04:00
Chris Rienzo 7625001e49 mod_rayo: fix component JID 2013-06-25 08:08:56 -04:00
Chris Rienzo 899f68759a mod_rayo: fix cleanup of console complete functions 2013-06-25 07:54:59 -04:00
Chris Rienzo ad5ea44aeb mod_rayo: don't send item-not-found to replies 2013-06-25 07:42:34 -04:00
Chris Rienzo cac8536170 mod_http_cache: valgrind fixes 2013-06-24 22:19:54 -04:00
Chris Rienzo a29bab368d mod_ssml: valgrind fixes 2013-06-24 22:19:54 -04:00
Chris Rienzo 8bf40819df mod_rayo: valgrind fixes 2013-06-24 22:19:54 -04:00
Chris Rienzo e52f131460 mod_rayo: forgot to return error if unknown destination for stanza 2013-06-24 22:19:53 -04:00
Chris Rienzo c15c0924d1 mod_rayo: added message delivery threads 2013-06-24 22:19:53 -04:00
Chris Rienzo 0f0f278124 mod_rayo: reworked internal messaging- all messages sent by JID only 2013-06-24 22:19:53 -04:00
Chris Rienzo 911948c87a mod_rayo: remove reply from send function - everything is send only now 2013-06-24 22:19:53 -04:00
Anthony Minessale 1ed5e3e331 FS-5530 --resolve this will make it identical to the bridge behaviour even when the bridge in early media begins and now you will explicitly need continue_on_fail=true in this situation to not fail 2013-06-24 09:45:43 -05:00
Anthony Minessale 6b58aea501 FS-5539 --resolve 2013-06-24 09:15:01 -05:00
Nathan Neulinger f59690c02f skinny more logging improvements and some refactoring of protocol replies 2013-06-23 21:47:58 -05:00
Nathan Neulinger 9279113a26 skinny - add simple expansion of text strings by id in the logging msgs 2013-06-23 16:11:54 -05:00
Nathan Neulinger 86e4e580b1 logging 2013-06-23 15:18:10 -05:00
Nathan Neulinger 4b0bae5afd fix broken build due to running with warnings disabled, oops 2013-06-23 15:11:31 -05:00
Nathan Neulinger 4a267627f2 skinny logging 2013-06-23 14:58:25 -05:00
Jeff Lenk 0d4967b718 fix windows build 2013-06-23 14:34:26 -05:00
Nathan Neulinger e744bf0385 improvements to skinny logging, table based message text ids 2013-06-23 14:19:05 -05:00
Nathan Neulinger a38ea77fa3 misc constant name adjustments to match actual text on phones 2013-06-22 13:46:26 -05:00
Ben Langfeld 6faae5b178 mod_rayo: Punchblock now supports content-type on input matches
Fix applied to Punchblock here: cef5198e80
2013-06-22 14:27:28 -04:00
Jeff Lenk f8122e39c5 fix trivial compiler warning 2013-06-21 21:43:22 -05:00
Anthony Minessale 48e1415f64 fix return values from refactor so stun timeouts can trigger error properly 2013-06-21 12:42:37 -05:00
Nathan Neulinger 1b2341b6d8 FS-5532 - workaround to improve behavior, but not correct fix 2013-06-21 14:48:49 -05:00
Chris Rienzo 609b0b324d mod_rayo: fix crash when DTMF is received after input timeout 2013-06-21 09:42:54 -04:00
Giovanni Maruzzelli eb79128d8e skypopen: OSS driver has active timers only on active devices (eg: when it's actually used by a skypeclient) 2013-06-21 10:58:16 +02:00
Anthony Minessale 5a0f43d956 make sure sip-hold works on webrtc 2013-06-21 00:41:25 -05:00
Anthony Minessale 76177e6196 FS-5531 --resolve add another optional param to supply flags for either behaviour n for null and b for boolean 2013-06-20 22:53:43 -05:00
Anthony Minessale 1e9ab89bbb sniffing glue 2013-06-20 22:25:25 -05:00
Anthony Minessale 5cb4cd9d9c fill the opposite file to keep data in sync 2013-06-20 21:51:31 -05:00
Anthony Minessale 16bdee13fc add answer_delay variable to sleep N ms when answer is called from the channel thread 2013-06-20 21:29:31 -05:00
Anthony Minessale 48ea6b5217 FS-5530 2013-06-20 21:15:32 -05:00
Anthony Minessale 1617469019 FS-5530 --resolve 2013-06-20 21:10:23 -05:00
Anthony Minessale e1b6d4d1be FS-5530 --resolve 2013-06-20 20:58:55 -05:00
Anthony Minessale f35ea43b38 FS-5513 --resolve 2013-06-20 18:33:40 -05:00
Giovanni Maruzzelli 7e2ea11b67 gsmopen: cleaning 2013-06-21 00:41:07 +02:00
Giovanni Maruzzelli 4640a9c80c gsmopen: cleaning 2013-06-21 00:41:07 +02:00
Giovanni Maruzzelli 66f028b4ba gsmopen: cleaning 2013-06-21 00:41:07 +02:00
Giovanni Maruzzelli 0a364e1f3b gsmopen: cleaning 2013-06-21 00:41:07 +02:00
Giovanni Maruzzelli fa1d773a84 FS-4821 fixed core dump when received sms in UCS2 after having sent sms in UCS2 2013-06-21 00:41:07 +02:00
Anthony Minessale b0f964f23f swigall 2013-06-20 11:41:34 -05:00
Anthony Minessale 9cc21d28fc add novideo app 2013-06-20 13:10:21 -05:00
Anthony Minessale 702c9af3f9 add novideo app 2013-06-20 13:08:09 -05:00
Anthony Minessale e60f37f651 FS-5529 --resolve 2013-06-20 12:36:30 -05:00
Chris Rienzo dc604fd589 mod_ssml: XML decode <audio src=".. attribute since iksemel SAX parser doesn't 2013-06-20 09:25:45 -04:00
Giovanni Maruzzelli 12c96d9009 FS-5292 gsmopen: patch from garmt 2013-06-20 14:21:49 +02:00
Giovanni Maruzzelli 607ef575bc FS-5482 skypopen: check assignment on possibly NULL pointer, avoiding segfault 2013-06-20 10:17:52 +02:00
Jeff Lenk b4ba31dad6 more trivial compiler warnings for windows 2013-06-19 10:44:31 -05:00
Chris Rienzo a8751d15ce mod_rayo: allow variables to be passed in dialstring 2013-06-19 08:53:17 -04:00
Anthony Minessale bd2862080c FS-4969 --resolve 2013-06-18 21:19:24 -05:00
Anthony Minessale 4baf0276d6 FS-5513 --resolve 2013-06-18 21:16:56 -05:00
Jeff Lenk a7be251bd8 fix several more windows compiler warnings and mod_gsmopen 2013-06-18 22:44:11 -05:00
Anthony Minessale 9cf05e3595 only refuse loopback endoint not profiles named loopback 2013-06-18 16:19:08 -05:00
Jeff Lenk ec9eebbf99 fix trivial compiler error and vs2010 reswig 2013-06-18 16:55:03 -05:00
Brian West 750c06c1b8 fix reload of outbound_name change 2013-06-18 15:49:12 -05:00
Anthony Minessale 691acf2812 fix build on cent5 2013-06-18 14:38:57 -05:00
Nathan Neulinger 5d0753e330 FS-5510 --resolve - also add logging of hangup cause 2013-06-18 12:21:35 -05:00
Anthony Minessale a42b7de6d5 swigall 2013-06-18 09:13:50 -05:00
Nathan Neulinger f782c280d4 add skinny cmd to kill all current listeners 2013-06-18 09:41:56 -05:00
Nathan Neulinger 45d33b02e9 Add skinny device kill api command 2013-06-18 09:18:31 -05:00
Anthony Minessale 1b0375371a refactor 2013-06-18 06:24:17 -05:00
Anthony Minessale d642eb96f0 FS-5513 --resolve 2013-06-17 21:37:53 -05:00
Anthony Minessale 2fac3a8e83 refactor some of the video passthru code 2013-06-17 19:52:37 -05:00
Anthony Minessale 3ac4e77384 FS-5519 --resolve 2013-06-17 19:43:24 -05:00
Brian West 3634d4a0e7 remove debugging 2013-06-17 17:51:48 -05:00
Anthony Minessale db59af93e3 remove cid flip from pickup 2013-06-17 10:57:33 -05:00
Anthony Minessale c3de185b22 add deflect parsing support for mod_loopback and fix unloop bug 2013-06-17 10:45:00 -05:00
Anthony Minessale 2c9ee26fdd dont change device state from hangup to hangup 2013-06-17 10:44:22 -05:00
Jeff Lenk f858176f89 vs2010 reswig 2013-06-14 11:45:44 -05:00
Chris Rienzo 0311d4615a mod_rayo: some fixes for punchblock 2.0 compatibility 2013-06-13 15:28:53 -04:00
William King b73a8fe624 Fix missing return statement. 2013-06-13 10:08:16 -07:00
Chris Rienzo 2d4acdfa61 mod_rayo: updates for 0.2 of spec 2013-06-13 11:23:12 -04:00
William King 4219049789 New compiler warning(error). Unused assignment before the pointer is reassigned. 2013-06-12 21:39:27 -07:00
William King 3f2f393a7c If the addr pointer is NULL, better to check first before using it. 2013-06-12 21:24:06 -07:00
William King a710841123 This is probably what was intended. If the pointer 'path' is NULL, or if it is not NULL, then the first char should not be '\0' 2013-06-12 21:21:54 -07:00
William King 91c8c8a57b oops 2013-06-12 21:17:17 -07:00
William King 5026788c4a Fix minor typo so that the metadata album field can be set. 2013-06-12 17:17:57 -07:00
William King 97918f473b Since I can't seem to locate what this might be used for, or the more correct solution, I'm going to comment it out for now. If someone can find a better solution so that this functionality would actually work, please advise. 2013-06-12 17:11:36 -07:00
William King 5c60bd6b42 Make sure to cleanup event if there was a failure that caused it not to be fired. 2013-06-12 17:02:15 -07:00
William King a181ec629f On the off chance the if statement takes the false branch, let's not leak the memory. again. 2013-06-12 16:46:38 -07:00
William King 5e5af427ef On the off chance the if statement takes the false branch, let's not leak the memory 2013-06-12 16:41:24 -07:00
Chris Rienzo 98ae1c93fa mod_http_cache: fixed wrong string to sign when referencing AWS S3 object with subdirectory 2013-06-12 09:38:35 -04:00
Seven Du a3dfd0bf62 FS-5498 add ringing and early stats to event 2013-06-12 09:09:21 +08:00
Anthony Minessale d0749e9a26 FS-5500 --resolve 2013-06-11 11:38:18 -05:00
Anthony Minessale de802f2124 FS-5498 fix state change 2013-06-11 11:24:04 -05:00
Anthony Minessale 42c6a66e08 FS-5498 add profile-variables section to directory to specify profile variables to be set automatically 2013-06-11 09:38:58 -05:00
Anthony Minessale b74ad2a6bb FS-5503 --resolve indeed, thx 2013-06-11 09:31:16 -05:00
Anthony Minessale df1bba55ee FS-5498 2013-06-10 19:13:21 -05:00
Anthony Minessale 6731519bef FS-5498 2013-06-10 18:22:08 -05:00
Brian West a433b97375 Skip to next file when you hup the stream 2013-06-07 12:29:42 -05:00
Travis Cross 46f4709ee6 Whitespace cleanup to previous commit 2013-06-07 06:59:38 +00:00
William King e7fa70416d Previous commit was incorrect. This would correctly handle the memory loss case. 2013-06-06 23:54:07 -07:00
Anthony Minessale 01959606cd FS-5493 oops 2013-06-06 13:17:20 -05:00
Anthony Minessale 860ed3f9a6 add last callback run stamp to device records 2013-06-06 13:09:13 -05:00
Anthony Minessale 75fab9b0f2 FS-5493 --resolve 2013-06-06 12:59:18 -05:00
Chris Rienzo ee2f1d32a4 Added mod_rayo (XMPP 3PCC http://xmpp.org/extensions/xep-0327.html). Used by Adhearsion as its native call control protocol. Currently beta testing. 2013-06-06 16:03:00 -04:00
Chris Rienzo acacb342e8 Added mod_ssml (speech synthesis markup language) ssml:// and tts:// file formats. 2013-06-06 15:34:49 -04:00
Travis Cross 74dcbe8240 Add missing newline at end of file 2013-06-06 19:01:17 +00:00
Anthony Minessale 7b25322e46 don't need this change revert 2013-06-05 11:21:59 -05:00
Anthony Minessale 4240526ce3 add some device-state mechinism to FS to allow tracking of device-specific states where they may have more than one call from the same device 2013-06-05 11:20:11 -05:00
Seven Du 947c0542a9 update to mp4v2-2.0.0
It seems I cannot contact the original author
it seems has a bug which even cannot compile with mp4v2-trunk-479
This patch allow it to compile
2013-06-04 08:46:05 +08:00
Travis Cross 505815c902 Avoid crashing FS after delivering a VM
When vm-storage-dir was set to an absolute path, FS would abort after
delivering a VM because we were trying to free(3) memory sitting in
the middle of a memory pool.

FS-5329
2013-06-03 09:29:51 +00:00
Travis Cross bc25079fce Fix spelling in log message 2013-06-02 20:06:34 +00:00
Anthony Minessale 5835e0d541 FS-5488 --resolve 2013-05-31 14:46:15 -05:00
Nathan Neulinger e74bba08c2 FS-5449: apply correct quoting, got older version of patch accidentally 2013-05-31 16:31:27 -05:00
Nathan Neulinger ac0ed44b96 FS-5449: --resolve add a mod_commands function to use the shell escape function and update the existing function to use correct escaping
adds a pool based implementation of the switch_util_quote_shell_arg function and changes existing function to be a wrapper around the pool based one
2013-05-31 16:25:08 -05:00
Anthony Minessale 5eabe2bc4e FS-5488 --resolve 2013-05-31 13:14:37 -05:00
Brian West a55d70ed62 add kirk wireless servers to safe as they do not do rport 2013-05-31 11:54:05 -05:00
Brian West 507788f01c Swap this 2013-05-31 09:16:32 -05:00
Nathan Neulinger 803c02a3e8 Change to correct prompt on outgoing call, eliminate UNDEFINED! message 2013-05-30 12:49:59 -05:00
Nathan Neulinger fffe3d06aa Allow skinny speed dials to work when already off-hook 2013-05-30 12:15:20 -05:00
Jeff Lenk 24c13adfaf FS-5483 --resolve 2013-05-29 09:32:24 -05:00
Travis Cross a82878f786 Unsigned values are never less than zero 2013-05-29 03:02:07 +00:00
Travis Cross f07181e266 Avoid using psession uninitialized in mod_fsk 2013-05-29 02:59:05 +00:00
Steve Underwood 3519e0f4c3 More tweaks towards colour FAXing 2013-05-29 10:07:08 +08:00
Steve Underwood 3b595efc60 More tweaks towards colour FAXing 2013-05-29 09:53:56 +08:00
Mariusz Czułada d0af6ce81d FS-5157 patch accepted 2013-05-29 00:19:49 +02:00
Brian West ecd8aabf5d log auto adjust ip and port separate so it doesn't get clobbered on hold/update events 2013-05-28 16:25:39 -05:00
Anthony Minessale 9d8af739c8 FS-5480 --resolve 2013-05-28 08:17:44 -05:00
Travis Cross 3c8db7c715 Avoid using memory after we free it
Without setting errmsg to NULL here, we'll try to print this freed
value again below if another error doesn't intercede.
2013-05-28 05:28:19 +00:00
Travis Cross 5b1d1de1a7 Add common include paths for jni.h and jni_md.h 2013-05-27 16:19:24 +00:00
Travis Cross f3541e00f4 Fix variable type in mod_nibblebill 2013-05-27 07:58:33 +00:00
Travis Cross 25d488a801 Work around error in pocketsphinx-0.7
fsg_search.c:263:2: error: non-void function 'fsg_search_reinit' should return a value [-Wreturn-type]
2013-05-27 07:40:00 +00:00
Travis Cross 076a7706db Remove extraneous parentheses in mod_say_pl 2013-05-26 12:22:51 +00:00
Travis Cross c9b3909ac1 Add missing newline at end of mod_say_fa.c 2013-05-26 12:22:08 +00:00
Travis Cross 4ea2ae5d38 Remove extraneous parentheses
This resolves a clang warning:

  error: equality comparison with extraneous parentheses [-Werror,-Wparentheses-equality]
2013-05-26 12:19:19 +00:00
Travis Cross 065043ce67 Remove unused variable in mod_rtmp
Unused variables break the build with recent versions of gcc and
clang.
2013-05-26 04:53:16 +00:00
Travis Cross 04c3b913aa Quote arguments to shell when sending email
Note that the function switch_util_quote_shell_arg is implemented
incorrectly for unix shells, so this is still not safe until that
function is fixed.

Reported-by: Nathan Neulinger <nneul@mst.edu>

FS-5450 --resolve
2013-05-26 01:27:16 +00:00
Travis Cross 8f10ff073a Fix memory leaks in mod_tts_commandline
We were using both switch_util_quote_shell_arg and
switch_string_replace without freeing the results even though both
functions malloc.
2013-05-26 01:03:08 +00:00
Travis Cross 3dd2376475 Leave room for switch_escape_string to add a terminating null
Thanks-to: Nathan Neulinger <nneul@mst.edu>

FS-5448 --resolve
2013-05-25 23:28:55 +00:00
Travis Cross ab641842f4 Fix comment spelling
Thanks-to: Mariusz Czułada <manieq.net@gmail.com>
2013-05-25 21:40:40 +00:00
Travis Cross c09a261d58 Fix memory corruption in mod_erlang_event
Thanks-to: Alexandre Snarskii <snar@snar.spb.ru>

FS-5465 --resolve
2013-05-25 21:20:41 +00:00
Travis Cross 012003b5ff Don't setup ZRTP without a session and channel
FS-5472 --resolve
2013-05-25 21:10:11 +00:00
William King db0d03532d Fix a possible deadlock scenario in the impossible scenario from the last patch. 2013-05-25 11:06:01 -07:00
William King 7be8184b2a Redundant code. The if/else block makes more sense than the equivalent in two separate if's. 2013-05-25 07:47:09 -07:00
William King 938699d0b6 Better to not pass tmp_socket to setsockopt if there was an error here creating the socket. 2013-05-25 07:37:28 -07:00
William King 7d531c0966 It's been missing a break there for ~4 years and instead using the 8k max_ms values(the ptime_div value is the same). 2013-05-25 07:15:49 -07:00
William King f04842d4c8 Cleaning up logically dead code. 2013-05-25 07:02:49 -07:00
William King acf9a72e3f This condition should NEVER be hit, but in case the started thread is unable to locate itself in the EVENT_DISOATCH_QUEUE_THREADS array, it's best to return null here and kill the unexpected event thread rather than segfault FS by writing outside of the bounds of the EVENT_DISPATCH_QUEUE_RUNNING array. 2013-05-25 06:51:37 -07:00
William King 5d939b9652 Small off by one error. If the array is of size 144, then an index of 144 inclusive is an error. 2013-05-25 06:41:03 -07:00
William King 12f2f674f9 Let's bit a bit safer when dereferencing pointers. 2013-05-24 20:24:04 -07:00
William King 480407e5f3 Removing logically dead code 2013-05-24 19:59:32 -07:00
William King 9ea90341f7 If there is a problem reading the dictionary file, don't leak memory... 2013-05-24 19:55:50 -07:00
William King 2e6d3a1f2a Removing unused code 2013-05-24 19:53:26 -07:00
William King b42ee84933 More explicit and defensive code so if the init fails we know we handling this pointer safely, because rc_config_init will free the pointer if there was a problem, but it will not set the pointer to NULL. 2013-05-24 19:49:33 -07:00
William King dc4209275d Another location where mod_rtmp would leak memory. 2013-05-24 19:45:38 -07:00
William King 194e1ae366 Fix improper handling of a double linked list that could have caused a memory leak. 2013-05-24 19:42:17 -07:00
William King e2d6bc3340 Appears to have been a copy paste error because this doesn't do what the api claims, and it also leaks the reference to the new node. 2013-05-24 19:35:56 -07:00
William King f3fd94b3e5 Fixing a memory leak. name needs to be freed since it's being strdup'd lower. 2013-05-24 19:31:26 -07:00
Anthony Minessale 4bf4b2c408 FS-5470 --resolve 2013-05-24 09:37:25 -05:00
Anthony Minessale f42fffb65f FS-5466 --resolve 2013-05-24 09:14:13 -05:00
Anthony Minessale 7f3c160793 FS-5453 --resolve 2013-05-24 08:13:41 -05:00
Mariusz Czułada 3866a6e15c FS-5042 changed event body creation 2013-05-24 12:18:00 +02:00
Raymond Chandler 610718fdff FS-4871: reduce logging a bit 2013-05-23 20:51:25 -04:00
Anthony Minessale e02992bc6c FS-5453 --resolve this is a different issue, we just have to hangup the loopback channel so the loopback and the sip don't both execute the extension 2013-05-23 09:59:00 -05:00
Anthony Minessale e169212319 swig 2013-05-23 09:53:50 -05:00
Anthony Minessale 606e197ac6 FS-5042 --resolve 2013-05-23 08:07:10 -05:00
Anthony Minessale 1b1bdf6816 FS-5453 --resolve 2013-05-23 08:00:03 -05:00
Nathan Neulinger 514fc941c0 FS-5431: --resolve fix socket creation loop for mod_skinny to avoid segfault 2013-05-23 08:13:44 -05:00
William King 15f43bac09 FS-5440: don't assert on bad input rtmp data 2013-05-22 12:38:23 -07:00
Anthony Minessale 6cdb46889c FS-5402 --resolve the problem is ent originate has many channels and many causes to parse so we need to check it against all the causes 2013-05-22 11:01:39 -05:00
Anthony Minessale 790e9b4d33 FS-5360 change defaults 2013-05-22 10:20:41 -05:00
Chris Rienzo 02cf105840 Merge branch 'master' of ssh://git.freeswitch.org:222/freeswitch 2013-05-22 13:22:19 -04:00
Chris Rienzo 2c82e6afc6 mod_http_cache: fix example config 2013-05-22 13:22:03 -04:00
Anthony Minessale 699bd795f6 FS-5455 try this 2013-05-22 08:11:29 -05:00
Jeff Lenk 66a94a2c45 windows fix trivial compiler warning 2013-05-22 10:38:04 -05:00
Nathan Neulinger 23bd06881d FS-5429: --resolve add minimal idivert support for skinny 2013-05-22 09:58:28 -05:00
Nathan Neulinger 8afaf28a09 FS-5379: --resolve fix skinny phone codec agreement issues due to incorrect hardwired ptime, update field names for future coding to be more descriptive 2013-05-22 09:27:09 -05:00
Nathan Neulinger 337976e469 FS-5225: --resolve add ability to dial by pressing line button 2013-05-22 09:17:41 -05:00
Nathan Neulinger 0b05cf6843 FS-5267: --resolve avoid null deref if sessions missing 2013-05-22 09:12:46 -05:00
Chris Rienzo f7e725f4bf mod_http_cache: a couple more unit test cases 2013-05-22 08:47:49 -04:00