107 Commits

Author SHA1 Message Date
Andrew Thompson
9ad509c29a mod_erlang_event: generate long node names the same as erlang does
Also, allow you to override the node name inference by passing a
nodename with an @ in it, eg. freeswitch@freeswitch.com
2010-08-17 02:32:37 -04:00
Andrew Thompson
6397f898fd Switch from a busy-wait loop to crazy conditional timedwait stuff for speed 2010-08-06 01:32:28 -04:00
Andrew Thompson
b60d6b3376 Remove deprecated new_pid API (its been there long enough) 2010-08-05 16:07:14 -04:00
Andrew Thompson
f281ac390a Bump the 'spawn process' timeout, fix some logging 2010-08-05 13:38:42 -04:00
Andrew Thompson
aa16f939b7 Add some wrapper functions for the new session event filter stuff 2010-08-04 11:28:53 -04:00
Andrew Thompson
0ec9ffe649 Tony said I should use a rwlock for this, so now I do 2010-08-04 10:45:25 -04:00
Andrew Thompson
698fa0455b Add 3 new commands; session_event, session_noevents, session_nixevent 2010-08-03 18:05:19 -04:00
Andrew Thompson
64a28ee974 Switching to using a hash instead of a linked list for outbound sessions 2010-08-03 18:02:18 -04:00
Andrew Thompson
9d44ed0409 Make XML fetch reply ACKs distinguishable, update freeswitch.erl 2010-07-17 14:02:57 -04:00
Andrew Thompson
3786722149 Tweak some mutexes
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16903 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-03-04 20:17:32 +00:00
Andrew Thompson
dc5c383d20 Track time taken for XML fetch responses/timeouts
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16704 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-02-19 18:51:57 +00:00
Andrew Thompson
6107493160 Replace busy wait for XML fetch with thread cond stuff (Original patch contributed by Michael Fig / MarkeTel Systems)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16697 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-02-18 21:55:46 +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
Andrew Thompson
02a915c166 FSCORE-542
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16565 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-02-03 19:55:36 +00:00
Andrew Thompson
77ac925dc5 Don't exit the entire listener for a single session failure (reported by Timur Irmatov)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16516 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-01-26 15:44:46 +00:00
Andrew Thompson
c2cde58f38 Move erlang module's default config file to be with all the others
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15881 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-12-10 22:10:12 +00:00
Andrew Thompson
15363cdb2f Tracking API change
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15871 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-12-10 17:43:10 +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
Andrew Thompson
f9df2e6bd8 How'd that happen?
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15200 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-10-22 20:55:12 +00:00
Andrew Thompson
e47f8215e9 mod_erlang_event: optionally allow compatability with nodes running older OTP releases (R7 through current)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15189 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-10-21 20:57:46 +00:00
Andrew Thompson
671694fb17 Deprecate new_pid message in favor of get_pid which has an extra element, the call's UUID
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14877 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-09-15 19:54:23 +00:00
Andrew Thompson
abc3acdf44 Add support for simply sending an arbitrary message to an arbitrary registered process at a node
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14875 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-09-15 19:23:47 +00:00
Andrew Thompson
fc208bb0b9 Use our own memory pool instead of the sessions
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14652 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-08-27 21:41:47 +00:00
Andrew Thompson
1eace1218a Add support for log node userdata, improve some log messages and command output
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14646 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-08-26 20:50:05 +00:00
Andrew Thompson
eb08813dd4 Add per-call logging support
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14554 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-08-18 16:58:26 +00:00
Andrew Thompson
b4fbb35865 Winsock blows
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14550 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-08-18 05:33:42 +00:00
Andrew Thompson
467653216a Don't make channels stuck
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14428 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-07-29 23:16:32 +00:00
Andrew Thompson
14b0e7d568 Cleanup after outbound sessions that exit before the call hangs up
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14427 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-07-29 23:13:02 +00:00
Andrew Thompson
bf77c75f43 Don't assume valid uuids are exactly 36 characters long
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14393 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-07-27 23:37:45 +00:00
Andrew Thompson
53b0ae45f2 Sync up freeswitch.erl
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14362 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-07-25 18:53:34 +00:00
Andrew Thompson
b44830ecf2 Add support for sending CUSTOM events with a subclass
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14361 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-07-25 18:25:13 +00:00
Andrew Thompson
dbe85eb87f bzero -> memset (so mike won't yell at me)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13902 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-06-23 01:02:19 +00:00
Andrew Thompson
c872e09265 Unify outbound session cleanup code, possibly fixes MODEVENT-47
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13900 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-06-22 23:38:23 +00:00
Andrew Thompson
ff3e7f3f0f Only complain about unexpected exits if the call isn't already hungup
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13857 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-06-19 01:48:59 +00:00
Andrew Thompson
b63e09716a Taking a stab at MODEVENT-47
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13856 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-06-19 00:51:53 +00:00
Andrew Thompson
a0c5978a84 Huh, I guess that was a socket not a file descriptor
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13766 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-06-11 23:48:08 +00:00
Andrew Thompson
b32ea95f68 Add sorta working win32 support
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13764 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-06-11 22:29:37 +00:00
Andrew Thompson
42f6d3ff4a Use SWITCH_XML_SECTION_MAX
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13751 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-06-10 21:17:42 +00:00
Mathieu Rene
4348c7bca2 FSCORE-379
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13746 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-06-10 06:39:08 +00:00
Andrew Thompson
696285a98f Blindly adding winsock support, I'll test it when I get to a windows machine
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13717 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-06-09 05:24:55 +00:00
Mathieu Rene
06babac1e4 Properly use switch_xml_parse_str_dynamic
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13259 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-05-08 04:05:39 +00:00
Andrew Thompson
ffe00a236b Use switch_xml_parse_str_dynamic so we don't leak (thanks Math)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13256 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-05-07 22:13:05 +00:00
Stefan Knoblich
0412ae8e9c snprintf needs a format string too, and write has the warn_unused_result attribute set, so store the return value somewhere
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13090 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-04-21 00:44:33 +00:00
Andrew Thompson
d2bede71f5 Reply appropriately to net_adm:ping()
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13066 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-04-16 23:02:41 +00:00
Andrew Thompson
c9c2f8d6df Whoops!
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12906 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-04-03 17:52:38 +00:00
Andrew Thompson
3c84c89744 Remember kids, practice safe memory management!
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12888 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-04-02 16:11:15 +00:00
Andrew Thompson
aa2f34e98a Fixed registered process outbound mode (reported by rcpacheco)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12845 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-30 21:10:01 +00:00
Andrew Thompson
31aefe6ef8 Remove some unnecessary code that was holding locks on the session
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12651 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-17 19:51:49 +00:00
Andrew Thompson
f06de29ac3 Cleanups/fixes while tracking down stuck channels
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12638 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-17 02:35:06 +00:00
Andrew Thompson
eacbed6de9 Don't hold a pointer to the session, store the uuid instead and use switch_core_session_locate/switch_core_session_rwunlock
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12637 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-17 00:05:17 +00:00