Commit Graph

220 Commits

Author SHA1 Message Date
Anthony Minessale 063962cae0 add switch_toupper_max to uppercase a string 4 bytes at a time with new switch_toupper function 2012-12-11 20:12:25 -06:00
Anthony Minessale 5d35d71cfd FS-4928 doing 100 calls I found 7 million calls to toupper, this patch replaces it with an inline optimized one I found online. Not sure it helps but maybe you can profile it again with latest. 2012-12-11 19:18:25 -06:00
Anthony Minessale c5204c2128 FS-4614 --resolve update to dynamic line buffer and use internal buffering to boot for file I/O on preprocessing XML 2012-09-18 15:39:28 -05:00
Stefan Knoblich 8bcf3b4fb8 FreeSWITCH: Add switch_strerror_r() to fix problems with XSI and GNU variants of strerror_r().
GNU variant of strerror_r() returns char *, while the XSI version returns int.

To make things worse, glibc ships both and added a unused result warning
in recent versions (2.16) causing the build to fail.

Add our own custom wrapper that always returns a pointer to the message buffer
and additionally make XSI versions of strerror_r() GNU compatible by
returning "Unknown error xxx" if no error message is available.

Fixes:
    src/switch_rtp.c: In function 'rtp_common_read':
    src/switch_rtp.c:3313:15: error: ignoring return value of 'strerror_r',
    declared with attribute warn_unused_result [-Werror=unused-result]
    cc1: all warnings being treated as errors

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-08-14 14:11:44 +02: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 24288832b1 FS-2216 partial with renaming 2012-01-08 14:19:16 -06:00
Anthony Minessale 94b9cc0f9f add voicemail_formatted_caller_id_number param for templates in vm 2011-11-10 14:39:28 -06:00
Anthony Minessale 0ed54079e4 FS-3663 --resolve 2011-11-04 13:16:54 -05:00
Anthony Minessale 1bf97fa7ba add some more reporting data to logs 2011-10-11 15:13:23 -05:00
Anthony Minessale 626b5cb2a2 FS-3571 FS-3442 FS-957 --resolve tighten up the parsing of these boolean vals issue in t38 sdp 2011-09-19 20:11:23 -05:00
Anthony Minessale 21482f011c FS-3521 --resolve that was not a git diff, anyway i would prefer to not feed null to this function by practice because its the sign o f a bigger problem so I added an assert so we can tell if it happens again and protected against it from where its actually happening because NULL destination is not acceptable 2011-08-25 08:46:40 -05:00
Jeff Lenk d193789a2c fix several problems discovered with code analysis 2011-05-30 00:07:32 -05:00
Anthony Minessale bd471fc6a9 add bridged timestamp and hangup_complete_with_xml=true to add xml_cdr to the body of hangup_complete events 2011-04-28 13:46:39 -05:00
Michael Jerris 244048f8f5 add switch_clean_name_string to strip out caller id name chars that can cause issues 2011-04-14 17:51:45 -04:00
Brian West ddb345636a FS-3220: more than just typos 2011-04-01 17:38:58 -05:00
Anthony Minessale 484a397d88 FS-3194 see comitted patch. I made the function assert rather than tolerate NULL and fixed the imporper usage. 2011-03-28 09:49:52 -05:00
Anthony Minessale b53a684843 fix bug in switch_itodtmf from a8f5bf60a8 2011-02-22 18:36:02 -06:00
Anthony Minessale a8f5bf60a8 fix proper display of meta digit in log lines 2011-01-24 12:18:02 -06:00
Anthony Minessale 316963c594 treat EINTR returns as a BREAK (now mapped to SWITCH_STATUS_INTR), we appriciate the interrupted syscalls but we would like to continue working properly 2011-01-11 15:09:03 -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
Anthony Minessale 4d7e4f1ec2 change switch_strip_spaces to specify if you want it to dup the string or destroy the current buffer 2010-12-21 20:30:28 -06:00
Brian West db91f0e81f FS-2842: ACL for IPv6 address and swigall to boot 2010-11-15 11:37:23 -06:00
Mathieu Rene b639aebd62 fix dow to support multiple coma-separated conditions. BLUEBOX-133 2010-10-27 00:57:13 -04:00
Michael Jerris cf5c1d216a try to pass the 'f' up from wanpipe and do something sane with it 2010-10-20 16:40:26 -04:00
Anthony Minessale e3c427ad28 fix default ptime for iLBC and make new configurable global map in switch.conf.xml 2010-10-08 17:04:22 -05:00
Anthony Minessale f8c9ef5f9d fix codec regression from yesterday 2010-09-30 15:15:58 -05:00
Anthony Minessale d093a4a4c6 make code more automagic to shut up the dude on the list 2010-09-21 10:09:55 -05:00
Jeff Lenk 184f395553 fix several code analysis problems and mask several that are required 2010-09-20 09:25:14 -05:00
Marc Olivier Chouinard 59ec8ced59 switch_utils: Add day of week 3 letter initial usage in "wday" field in the dialplan. Example : mon-fri. Using number as before is still supported. Several public switch function are available. 2010-09-17 00:26:27 -04:00
Marc Olivier Chouinard c9fcce0869 switch_utils: Add date time range string compare function switch_fulldate_cmp. It usable in XML dialplan with date-time. String format example : 2009-10-10 14:33:22~2009-11-10 17:32:31. 2010-09-17 00:21:19 -04:00
Marc Olivier Chouinard 4ab8fa13e1 switch_utils: Add time of day string compare function switch_tod_cmp. It usable in XML dialplan with time-of-day. String format is hh:mm:ss you can define a range like this : 09:00-17:00 (Second are not optional) 2010-09-17 00:07:30 -04:00
Anthony Minessale 5481d9a98c MODSOFIA-86 2010-08-19 18:22:06 -05:00
Anthony Minessale 5f763d0d1b fix caller id fields in show channels show calls etc 2010-08-17 17:26:36 -05:00
Anthony Minessale a7d8f866fd fix new util function to actually do what it says it will 2010-07-02 13:00:29 -05:00
Anthony Minessale 1fba654845 fix parse err in originate code 2010-07-01 14:21:44 -05:00
Jeff Lenk ecddf7a880 trivial windows build fix 2010-06-08 10:02:13 -05:00
Anthony Minessale bc6334a610 FSCORE-617 2010-06-07 16:47:35 -05:00
Jeff Lenk 52f14165f8 Fix windows build 2010-06-01 20:12:33 -05:00
Mathieu Parent 3f7cafd709 Rename sofia_glue_get_user_host to switch_split_user_domain
and move to switch_utils. To allow use by other modules.
2010-06-02 01:09:54 +02:00
Anthony Minessale f1430d521a fix switch_get_addr to work with v6 properly 2010-04-30 15:27:15 -05:00
Marc Olivier Chouinard 58819523b6 mod_sofia: Add url encode to a var in the xml output to be valid xml. Also changed switch_url_encode to return the pointer of the string rather than the length, same as switch_amp_encode()
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@17087 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-03-24 19:04:19 +00:00
Michael Jerris f8974f03f9 move functions to strip commas and non-numeric chars to switch_utils
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16936 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-03-08 08:12:12 +00:00
Brian West 9819eed509 skip dialplan args with bad char sequences
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16882 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-03-03 18:31:19 +00:00
Mathieu Rene 00e178963c switch that back to int
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16593 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-02-09 18:21:03 +00:00
Mathieu Rene cd0f7c70e2 fix some code analysis tags
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16592 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-02-09 18:09:55 +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
Brian West 908d8a7280 adding 12kHz and 24kHz
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16026 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-12-22 21:24:15 +00:00
Anthony Minessale 4a86f888be cleanup tab completion more and introduce new callback based expansion functions to do real time tab completion in some areas, needs people to add more funcs etc
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15952 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-12-14 20:10:06 +00:00
Mathieu Rene 302355202a add escape api command to escape a string
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15764 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-12-03 02:37:05 +00:00