Commit Graph

239 Commits

Author SHA1 Message Date
Anthony Minessale 3c72e9f143 add username and realm to sip db
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12785 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-25 20:14:07 +00:00
Michael Jerris cb54de5009 fix macros with missing ( )
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12698 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-20 23:01:20 +00:00
Brian West babb2f83f5 update copyright
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12004 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-13 23:37:37 +00:00
Brian West ae220d3341 update email
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11643 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-04 21:20:54 +00:00
Anthony Minessale 80900446a9 beastie
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11352 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-01-22 03:42:22 +00:00
Anthony Minessale 1d5dd03f14 taint check MODW00T-00
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11339 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-01-21 21:34:31 +00:00
Anthony Minessale e9d7a4a4a0 adjustment
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10876 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-18 23:07:32 +00:00
Michael Jerris 6113ab943c FSCORE-253. add the following functions to work around netbsd failures
switch_toupper
switch_tolower
switch_isalnum
switch_isalpha
switch_iscntrl
switch_isdigit
switch_isgraph
switch_islower
switch_isprint
switch_ispunct
switch_isspace
switch_isupper
switch_isxdigit

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10761 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-15 03:21:36 +00:00
Michael Jerris 8fb167c779 FSCRE-253 netbsd does not follow opengroup prototypes on toupper and tolower so we have to do stupid workarounds.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10760 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-15 02:48:50 +00:00
Michael Jerris 7ca32bb9e1 FSCORE-213 add support for "F" for flash in dtmf
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10486 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-11-20 23:42:39 +00:00
Anthony Minessale 9557929408 move macro to the core
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10276 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-11-07 00:24:31 +00:00
Brian West 881b45a11e tweak from Carlos
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10240 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-11-04 19:31:49 +00:00
Anthony Minessale 7074c7abdd add hashing to event header lookup
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10227 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-11-03 20:08:44 +00:00
Anthony Minessale 30c318b995 clean some old members and naming conventions in the codec structs
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10084 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-10-20 17:48:42 +00:00
Anthony Minessale d192f195b3 fix build err
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10016 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-10-14 19:46:47 +00:00
Anthony Minessale 0e88eb3ae7 add const to macro
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10014 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-10-14 19:17:27 +00:00
Anthony Minessale 4abd35c5a0 add switch_safe_strdup
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9497 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-09-09 22:47:03 +00:00
Michael Jerris 9b6501dd7c fix mod_yaml build on newer gcc
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9381 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-08-28 16:41:48 +00:00
Michael Jerris 5401dbc2e9 new macro
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9349 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-08-22 17:14:19 +00:00
Anthony Minessale 4722de507b add domain-based acl auth thingy
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9056 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-07-16 17:44:54 +00:00
Michael Jerris 4d2cbfe197 Disable multiple registrations on a per-device basis (MODENDP-117)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9042 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-07-15 18:04:17 +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 1d46f922e2 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8893 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-07-03 18:50:15 +00:00
Anthony Minessale 3c349c274e indent pass 1
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8686 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-05-27 04:30:03 +00:00
Anthony Minessale abb7a49e2b make macro safer
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8525 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-05-22 15:24:12 +00:00
Anthony Minessale c599162209 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8417 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-05-15 19:38:29 +00:00
Anthony Minessale 42a54d19ae update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8411 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-05-15 14:49:11 +00:00
Michael Jerris 29ea1523c9 tweak windows build for inet_pton and other build problems
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8131 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-04-21 14:35:14 +00:00
Michael Jerris 7f78cd9b18 missing file from last commit
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8074 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-04-10 02:28:17 +00:00
Anthony Minessale 0c0f2b8005 add acl to mod_dingaling
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8020 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-04-04 15:17:17 +00:00
Anthony Minessale be1bbc63d2 tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7974 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-03-27 22:46:47 +00:00
Anthony Minessale bba65f4a1e add acl stuff
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7966 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-03-26 22:14:09 +00:00
Michael Jerris d6c105efe0 switch_bytes_per_frame -> switch_samples_per_frame rename
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7639 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-02-15 23:02:06 +00:00
Brian West b0ad7ab50c set tab mode properly
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7500 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-02-03 22:14:57 +00:00
Michael Jerris 284d03e5e1 code analysis, bounds checks, buffer overrun fixes.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7403 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-01-28 08:47:55 +00:00
Brian West 84161010ab cleanup and consistency.. blah rain @ PHX fun
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7396 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-01-27 20:01:02 +00:00
Michael Jerris 7cc21a90bd use unsigned more consistently
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7261 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-01-17 05:52:50 +00:00
Anthony Minessale 65668e7e6a RFC4568 support, you don't need the cone of silence anymore...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7244 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-01-16 06:01:53 +00:00
Michael Jerris 6c25cb4136 don't strstr on null/blank strings.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7027 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-12-30 00:22:51 +00:00
Michael Jerris 2fcd93c6fc cleanup some macros a bit more.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6665 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-12-11 20:25:15 +00:00
Michael Jerris f5059ad6ac check to avoid potential seg
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6633 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-12-11 10:47:46 +00:00
Anthony Minessale c8011a5d52 add local vars with []
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6609 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-12-10 21:58:40 +00:00
Anthony Minessale ae9f41c379 adress MODAPP-55
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6491 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-12-04 16:22:02 +00:00
Michael Jerris 0dbc6515d2 fix windows build
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6421 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-11-28 22:27:33 +00:00
Anthony Minessale 60c783c636 rss feeds of your voicemail
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6417 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-11-28 19:56:25 +00:00
Anthony Minessale fc0dc1f9fb improve http support
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6413 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-11-27 19:25:16 +00:00
Anthony Minessale f64d7e43ce improve voicemail
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6399 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-11-26 23:41:00 +00:00
Michael Jerris e7e026b94d little mailer rework.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6397 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-11-26 17:43:42 +00:00
Anthony Minessale a62373c784 fix uri nonsense and backwards stristr
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6274 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-11-15 16:22:18 +00:00
Michael Jerris 69f7a9a955 add missing "execute" handler to phrase macro. (not yet tested)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6234 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-11-13 03:47:07 +00:00
Anthony Minessale 4d2dfa633b add a new dialplan module
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6205 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-11-09 19:25:46 +00:00
Anthony Minessale 2372dcddd6 add regex api func
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6193 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-11-09 15:26:32 +00:00
Anthony Minessale 713afbd975 add some logic tools
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6189 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-11-08 23:46:26 +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
Anthony Minessale 049d952d4e fix path bs
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6105 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-10-31 19:59:40 +00:00
Anthony Minessale b099f96e4e format
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5925 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-10-17 14:59:17 +00:00
Anthony Minessale b50e8f5c9a add switch_stristr and use it in dptools
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5887 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-10-16 14:24:02 +00:00
Anthony Minessale 0a980a4ff9 minor adj
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5851 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-10-12 17:12:31 +00:00
Anthony Minessale 7962945c39 make encoding optional none, base64 or url encoding
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5823 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-10-06 00:30:04 +00:00
Anthony Minessale 5e6093a323 stupidly forgot to include linefeed and carraige return in ok chars for vars thus breaking bypass_media mode for who knows how long...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5563 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-08-03 16:26:32 +00:00
Michael Jerris 61dcfa5113 indentation.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5280 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-07 17:02:59 +00:00
Anthony Minessale 5207780942 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5268 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-05 16:52:50 +00:00
Anthony Minessale 0e3b4cada3 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5267 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-05 16:50:51 +00:00
Anthony Minessale b7c178f2d5 add util
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5265 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-05 16:21:30 +00:00
Anthony Minessale 0d6cf384c1 small fix and new macro
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5260 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-05 15:39:56 +00:00
Michael Jerris a4ff7e88da adding const qualifiers across the api as appropriate.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5165 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-05-12 14:48:14 +00:00
Anthony Minessale ab34a26079 make crash protection a runtime option instead of a compile-time option
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5123 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-05-10 16:56:29 +00:00
Anthony Minessale 7e979e7649 dox
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4901 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-04-09 18:42:40 +00:00
Anthony Minessale 5e23936fa6 cleanup
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4807 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-30 16:41:12 +00:00
Anthony Minessale 33efc5eeb5 tweaks
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4805 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-30 14:57:06 +00:00
Anthony Minessale c15d7892c0 indent again
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4799 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-30 00:15:25 +00:00
Anthony Minessale debdfb1aab indent
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4798 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-30 00:13:31 +00:00
Anthony Minessale 3a54126261 spring cleaning
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4795 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-29 22:31:56 +00:00
Michael Jerris a021945cef switch_malloc and switch_zmalloc macros that are fatal if malloc fails both in debug and release modes, switch_zmalloc includes a companion memset for the malloc'd block.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4794 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-29 17:37:42 +00:00
Brian West 9263ef1f72 add url syntax for playback
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4501 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-10 02:36:55 +00:00
Michael Jerris 42e78242a3 add wrapper code to fully encapsulate apr, apr-utils, pcre, and sqlite. fully use switch_ namespace in modules, create our own format and type defines. follow up commit for unix autotools coming soon after this. PLEASE NOTE: you will NEED to do a make megaclean and run configure again after this update (and the following commit) or it will not build.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4494 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-09 20:44:13 +00:00
Anthony Minessale 54d483c4f5 fix fatal include
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4471 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-07 22:17:02 +00:00
Michael Jerris ceafc84ca0 constify some arguments to switch_console_printf and switch_cut_path and remove improper casts for the consumers of those functions.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4241 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-13 21:03:06 +00:00
Michael Jerris 62a44e621f some more protection from passing around and printing null values, we are now initializing null's passed to switch_caller_profile_new as blank strings in the caller profile, if your using any caller profile values in if's, please use !switch_strlen_zero() in your check.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4203 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-12 18:13:14 +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 58310a9272 make sofia set network_addr as the address the packet was actually received from, not the address from the uri.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4169 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-08 20:16:08 +00:00
Brian West 46b850273c Small buglet.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4158 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-08 01:19:35 +00:00
Anthony Minessale 25b1d12b9e add w and W
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4157 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-08 00:17:22 +00:00
Anthony Minessale b42e387938 yes virginia, sip has shortcommings
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4138 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-06 19:15:26 +00:00
Michael Jerris 5ca7037a84 tweak macro for clean build on msvc.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4110 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-03 04:08:05 +00:00
Anthony Minessale 82db5e0112 fix sample calc
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4108 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-02 20:28:34 +00:00
Anthony Minessale 0ed9ebe492 CODEC TWEAK
mod_sofia will now examine a variable in the channel to
see what the channel's originator was using for a codec and 
try to put that to the top of the list in the sdp.

if this new sofia profile param is set:
<param name="disable-transcoding" value="true"/>

All outbound calls will use *only* the codec that thier originator 
is using to ensure no transcoding.
(of course that could lead to a failed call where there is no way to do this, so use sparingly)



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4073 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-28 17:37:51 +00:00
Anthony Minessale 85dab893d9 A few changes:
1) The xml_curl now has a more enterprise config where it can have more than 1
   url configured so you could have failover. (*note the syntax change*)

2) dialplan modules now take an extra arguement making it possible to pass runtime params to
   them.  This is now used in mod_dialplan_xml to allow an alternate file path to be specified.

   dialplans were already stackable meaning you can configure a sofia profile, for example,
   to use enum followed by the default XML dialplan.

   e.g. <param name="dialplan" value="enum,XML"/>

   From now on, you can also specify :param after each dialplan name to allow param
   to be passed to the module.  mod_dialplan_xml uses this param as a way to override
   where it looks for the dialplan making it possible to stack mutiple calls to the XML dialplan.

   e.g. <param name="dialplan" value="XML:/some/xml/file.xml,XML"/>

   With this you can search the local file file.xml first and if there is still no match
   the hunt will move on to the standard XML using the onboard XML registry and or the external
   gateways.

   *NOTE* this alternate path does not use the external bindings but it does parse the #includes etc.



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4066 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-27 16:23:33 +00:00
Michael Jerris 465456e3ee doxygen
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4006 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-19 22:47:51 +00:00
Anthony Minessale c845cf2839 auto ip stuff
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4000 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-19 19:11:44 +00:00
Anthony Minessale e37559eb0e update conference to add lock sounds, sound prefix, and use say: syntax
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3943 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-11 18:14:02 +00:00
Anthony Minessale 6a2529748a some changes from mmurdock
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3899 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-03 00:21:17 +00:00
Anthony Minessale 60434decf5 ENUM Support
mod_enum can be used as a dialplan app, an api call from the console or as a dialplan interface.


Dialplan Interface:
put enum as the dialplan parameter in an endpoint module
i.e. instead of "XML" set it to "enum" or "enum,XML" for fall through.

Dialplan App:
This example will do a lookup and set the a variable that is the proper
dialstring to call all of the possible routes in order of preference according to 
the lookup and the order of the routes in the enum.conf section.

<extension name="tollfree">
  <condition field="destination_number" expression="^(18(0{2}|8{2}|7{2}|6{2})\d{7})$">
    <action application="enum" data="$1"/>
    <action application="bridge" data="${enum_auto_route}"/>
  </condition>
</extension>

You can also pick an alrernate root:
<action application="enum" data="$1 myroot.org"/>	


API command:
at the console you can say:
enum <number> [<root>]

The root always defaults to the one in the enum.conf section.




git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3494 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-30 21:28:32 +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 f8d3093f5c hack to fix udp sockets
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3377 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-15 03:17:28 +00:00
Anthony Minessale bc7a378c4e Modify Originate input syntax
This adds the | to the originate syntax 
making it possible to put a list of urls to call and attempt
to call them one at a time until one of them is successful or there
are none of them left

The original & delimited list is valid for each step in the | separated
list

Example
sofia/test-int/3920@10.3.3.104|sofia/test-int/3910@10.3.3.104&sofia/test-int/3920@10.3.3.104

first call 1 location and if that results in a failure, try 2 at once on the next go



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2996 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-07 22:19:24 +00:00
Anthony Minessale 0d23976f2a Insane amounts of yucky satanic code to make transfer and that kind of thing work.
Transfers work better when both legs of the call live in thier own channel eg bridged calls
A -> B where you want a to make B -> C

when you route a call to an IVR or playback app you are not really bridging you have
A all alone executing the script so it's hard to transfer that.

I do have it aparently working but it's goofy and you are better off
putting your IVR on it's own switch so they are all inbound calls
then you have A -> B -> IVR
now A can happily transfer B who can stay on line with IVR without stopping
the execution.  You can also accomplish this by calling in a loop back to the same box
if you dont want to have 2 boxes.


Also the beginning effort at bridging calls with no media is here
set this magic variable in your dialplan to convince mod_sofia
to pass A's sdp as it's own to B and return B's sdp back to A on 200 or 183

<action application="set" data="no_media=true"/>
<action application="bridge" data="sofia/id@host.com"/>

You will need a new sofia tarball for this version


There is a bunch of other odds and ends added like a function or 2 etc
Oh,

And don't be suprised if it introduces all kinds of bugs!



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2992 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-06 22:39:49 +00:00
Michael Jerris 849822f64e add switch_yield for windows
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2729 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-17 22:40:19 +00:00
Michael Jerris fa4a1c4317 tweak softimer to not int type truncate microsecond interval time.c
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2728 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-17 22:13:51 +00:00
Anthony Minessale 1386d84694 use usleep when possible, ./configure && make sure when you update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2722 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-17 18:44:53 +00:00
Anthony Minessale b3c437630f use steve's g711 (thanks steve), chage the conditional mutex based on paul T's input (thanks paul) and take the yield away on switch_yield and just sleep
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2663 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-12 17:17:02 +00:00
Anthony Minessale ae9d56e288 Adding bugs to the core
This is the primary commit to add bugs to the core (media bugs that is)
Media bugs are kind of like what ChanSpy is in Asterisk only cooler (I wrote ChanSpy too so I can say that)

Here is an example of using them to record a call by the higher level switch_ivr functionality passed
up to the dialplan via mod_playback.

The call will be recorded while the some.wav plays then stop for the rest of the call (when some_other.wav plays)

The bugs may have bugs since this is 1 day's work so happy hunting ......

<extension name="42">
  <condition field="destination_number" expression="^42$">
   <action application="set" data="RECORD_TITLE=recording test"/>
   <action application="set" data="RECORD_ARTIST=FreeSWITCH"/>
    <action application="record_session" data="/tmp/rtest.wav"/>
    <action application="playback" data="/tmp/some.wav"/>
    <action application="stop_record_session" data="/tmp/rtest.wav"/>
    <action application="playback" data="/tmp/some_other.wav"/>
  </condition>
</extension>



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2588 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-09 03:39:28 +00:00
Anthony Minessale 086676f6e9 what comes up must come down
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2555 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-07 15:15:39 +00:00
Anthony Minessale a4c778a00c fix namespace
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2548 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-07 14:23:31 +00:00
Anthony Minessale 884cfc4465 fix event_socket bugs
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2430 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-29 20:27:43 +00:00
Michael Jerris 2bec16256a fix typo.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2267 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-12 00:38:51 +00:00
Anthony Minessale 7ccdd37a71 socket code
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2257 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-11 15:25:49 +00:00
Anthony Minessale da8484382c move unix builds to apr 1.2.7, sqlite 3.3.6 and libsndfile 1.0.16
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2112 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-25 15:11:15 +00:00
Anthony Minessale ce2a9d2636 add more mutexed flag ops
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1664 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-06-23 16:59:47 +00:00
Anthony Minessale f56e07842f add set/clear flag locked macros
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1661 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-06-22 23:38:44 +00:00
Anthony Minessale d53d9d3997 rearrange some things please see conf/freeswitch.xml as there is a significant change to the conf that will break your stuff
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1446 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-05-12 19:28:21 +00:00
Anthony Minessale d314140374 cleanup
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1445 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-05-12 15:33:49 +00:00
Michael Jerris ead82d86fd msvc types tweaks.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1416 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-05-10 16:37:56 +00:00
Anthony Minessale f09491a69b XMLification (wave 4)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1412 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-05-10 15:47:54 +00:00
Anthony Minessale 23d6224dab gather 2833 into RTP core and a few tweaks
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1351 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-05-04 17:51:53 +00:00
Michael Jerris 14fee78470 part 3 of 3 standardizing typedefed types to end in _t.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1300 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-29 23:43:28 +00:00
Michael Jerris d0347b2a95 part 1 of many standardizing typedefed types to end in _t
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1292 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-29 01:00:52 +00:00
Michael Jerris 751ca005d3 use macro for EXTERN "C" begin and end lines in header files to clean up the headers, and to eliminate a format bug in emacs.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1291 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-28 20:04:08 +00:00
Anthony Minessale 35dc32018c add transfer capability and small ways to test it
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1290 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-28 19:46:57 +00:00
Michael Jerris c3a77d23bb improvements
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1176 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-17 18:25:43 +00:00
Michael Jerris d0a103a343 Addition of mod_syslog for *nix. Thanks to James Martelletti.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1158 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-14 16:45:31 +00:00
Anthony Minessale 7174e8ae8a add high and low priority event queues
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@674 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-02-26 00:12:17 +00:00
Anthony Minessale 5cd80803f7 fix doxygen
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@670 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-02-24 22:27:10 +00:00
Michael Jerris dbdad46049 fix msvc compile. Cleanup some warnings.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@660 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-02-24 00:02:02 +00:00
Anthony Minessale 01fd1c3af4 More PRI/SIP gateway stuff
**ATTENTION** you will need to libs/jrtplib/.complete ; make installall 
to get it to compile on existing builds as the jrtplib required changes.

Added teletone DTMF to mod_wanpipe and rfc2933 DTMF to mod_exosip
Added temporary poor man's daemon
freeswitch -nc > /var/log/freeswitch.log

then it will await a HUP




git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@659 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-02-23 22:41:08 +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
Michael Jerris cf661fbaca misc. cleanup.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@313 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-09 22:30:58 +00:00
Anthony Minessale a4d3a30ac2 what's up doc
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@280 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-05 21:03:22 +00:00
Anthony Minessale 111a0f6deb resample into core
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@254 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-02 17:28:59 +00:00
Michael Jerris ba38f7cff3 some more doxygen stuff... still a LOT to go.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@252 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-02 05:00:28 +00:00
Michael Jerris f78b600507 initial doxygen. Much, much more to go.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@251 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-01 15:23:12 +00:00
Michael Jerris 480d1ac279 fix some size_t\int warnings.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@245 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-30 17:20:21 +00:00
Anthony Minessale e98104d109 Add rate to frames and a bunch of evil resample code
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@240 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-30 00:00:21 +00:00
Anthony Minessale 82d141df73 getting ready for auto resample in opposing versions of SLIN codec
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@232 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-29 00:26:17 +00:00
Anthony Minessale f3d711ccae event cleanup from windows perspective
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@204 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-23 21:09:36 +00:00
Michael Jerris 1e8b78dc6b cleanup?
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@201 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-23 14:29:05 +00:00
Anthony Minessale bbb07474a7 adding some shit
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@100 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-09 19:23:04 +00:00
Anthony Minessale 8311b9a01a iax and empty core for opal
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@86 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-06 17:18:56 +00:00
Michael Jerris b266ae8b11 Moved remotely
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@48 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-11-19 20:09:09 +00:00