Commit Graph

407 Commits

Author SHA1 Message Date
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 26d698de34 update PACKED
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@656 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-02-22 23:07:23 +00:00
Anthony Minessale 172b62785c 1 of many PRI/SIP gateway related updates
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@654 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-02-22 21:14:22 +00:00
Anthony Minessale 3dcc973c9d 1 of many PRI/SIP gateway related updates
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@653 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-02-22 21:04:53 +00:00
Anthony Minessale e84fb76ac2 1 of many PRI/SIP gateway related updates
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@650 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-02-22 17:16:47 +00:00
Anthony Minessale fe3e994237 adding some inter channel communication and other code for real-world usage (not totally done)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@646 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-02-22 02:50:33 +00:00
Michael Jerris fea14e6d90 block unimportant warnings in core.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@642 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-02-21 17:55:38 +00:00
Anthony Minessale 2bea53541b cleanup some warnings
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@639 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-02-21 15:05:18 +00:00
Michael Jerris 241903ba4e fix more msvc warnings.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@636 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-02-20 06:13:56 +00:00
Michael Jerris 70739b6d2e fix more msvc warnings. Fix mod_sndfile build on OSX
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@635 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-02-20 04:36:29 +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
Anthony Minessale 847b7160bd Add multicast event module
This does 2 things when loaded:

1) All events are serialized and sent to the multicast destination.
2) Any serialized event received on the socket will be reconstituted into
   an event and fired on the local box

So, if you make another local event handler listen for the custom event from
mod_event_multicast "multicast::event" you will be able to react to events
on other instances of FreeSWITCH




git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@616 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-02-14 21:13:53 +00:00
Michael Jerris 93d822b66f add mod_zeroconf to msvc build, and fix compile error.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@614 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-02-14 18:18:40 +00:00
Anthony Minessale bc241ba425 add headers for module funcs to avoid warnings
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@610 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-02-14 16:53:15 +00:00
Anthony Minessale 176908397b add zerconf (the howl depend lib needs work sigh)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@606 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-02-13 23:59:14 +00:00
Anthony Minessale 1bd8aaa8f1 Add mod_ldap as directory example
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@580 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-02-09 22:37:44 +00:00
Anthony Minessale 95fbe70503 Initial framework for directory interface modules (ldap etc)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@575 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-02-09 16:28:49 +00:00
Anthony Minessale 472e08dd51 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@555 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-02-07 20:56:16 +00:00
Anthony Minessale 9e85723e3f Fresh updates (Beware... all coded today)
*) Rename *event_handler* to state_handler to avoid confusion with newer eventing engine.
*) Allow application level of state_handler to be layered/stacked (up to 30)
*) Add new core global state_handler stack (also up to 30.. seems reasonable, constant in switch_types.h)



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@554 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-02-07 20:47:15 +00:00
Anthony Minessale 0d8c8b1e16 de-e speeech
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@499 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-30 16:23:26 +00:00
Anthony Minessale 6021832880 Windows updates
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@466 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-27 23:47:45 +00:00
Anthony Minessale 3a802221be fix doxygen
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@463 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-27 22:21:02 +00:00
Anthony Minessale 534db1947e Add more IVR stuff and a test app (mod_ivrtest)
in dialplan (ivrtest <path to file>)
if the file is valid it will play the file and you will be expected to dial digits
until you dial 10 digits or press # or * (* will end the call) (# will repeat the test endlessly)



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@462 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-27 21:33:45 +00:00
Anthony Minessale 17e06cf6bc Add framework for speech modules (asr/tts)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@457 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-27 16:43:57 +00:00
Anthony Minessale 48ae14726b make test 'record' app in app_playback.c
You are best off doing wav (trust me) 
It can record at 8 16 22 and 32 khz if you can manage to have a channel at that speed.

syntax [record /tmp/blah.wav] 

dial * to end (dtmf only works in iax and portaudio {beg file to add it to mod_exosip})



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@453 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-27 01:46:14 +00:00
Michael Jerris 3bbfb94a22 add switch_ivr.h include to switch.h
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@450 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-26 18:19:48 +00:00
Anthony Minessale 569be50b63 IVR groundwork (move playback into the core and add timing option)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@448 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-26 18:00:27 +00:00
Anthony Minessale 613060fd29 IVR groundwork (move playback into the core and add timing option)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@447 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-26 17:57:25 +00:00
Anthony Minessale 2a329aa5e7 make all buffers the same size
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@384 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-14 16:44:52 +00:00
Anthony Minessale 54664b3dab fix iax and add regex dialplan
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@381 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-14 16:01:52 +00:00
Michael Jerris ba43278132 doxygen cleanups\changes.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@319 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-10 20:10:38 +00:00
Michael Jerris 1c0683f59a add main page to the doxygen docs.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@318 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-10 16:00:40 +00:00
Michael Jerris 1de742993f added docs to msvc project, fixed some doxygen warnings.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@317 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-10 15:09:26 +00:00
Michael Jerris 950175a2d8 fix sqlite docs.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@314 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-10 00:28:31 +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 4133798aa0 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@311 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-09 22:03:35 +00:00
Anthony Minessale 4a211d8e04 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@310 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-09 20:13:13 +00:00
Anthony Minessale 061c1ecb1b inter session communication goodies
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@309 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-09 19:48:20 +00:00
Anthony Minessale 208ec3ff7a stream id stuff
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@307 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-09 18:40:56 +00:00
Michael Jerris 5ddfc55d23 compete sqlite documentation. more cleanup to come.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@306 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-09 18:06:09 +00:00
Michael Jerris 39223008df sqlite docs are all in there now, time for cleanup.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@305 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-09 14:52:48 +00:00
Michael Jerris 9b4a9cb040 More sqlite doxygen cleanup and remove a no longer used project file.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@304 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-09 05:46:43 +00:00
Michael Jerris c028235080 Fix some warnings in MSVC (no more deprecated warnings again), fixed g729 build in msvc broken when the files in the lib moved when it was autotooled. Add details in readme about msvc requirements when using VC++ express 2005.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@303 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-09 02:36:00 +00:00
Anthony Minessale 718551016a update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@301 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-06 20:03:42 +00:00
Anthony Minessale b93b22e318 version stuff
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@299 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-06 17:44:19 +00:00
Michael Jerris df6e1cf2ba First bit of sqlite docs... still needs quite a bit o work..
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@298 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-06 16:12:33 +00:00
Anthony Minessale 883efd4e76 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@296 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-06 02:01:11 +00:00
Anthony Minessale f276ac9e68 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@295 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-06 01:44:52 +00:00
Michael Jerris e787af53bc tweak fix for apr doxygen.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@291 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-05 23:30:07 +00:00
Michael Jerris 49a0eb2955 generate switch_version.h in autotools builds.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@290 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-05 23:13:00 +00:00
Michael Jerris 96b6fb70cf git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@288 d0543943-73ff-0310-b7d9-9358b9ac24b2 2006-01-05 22:53:52 +00:00
Michael Jerris 94bb9e855d Create switch_version.h on msvc.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@287 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-05 22:51:01 +00:00
Michael Jerris 418ba6863d tweak to apr doxygen
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@284 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-05 21:57:44 +00:00
Anthony Minessale 16d6848af7 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@282 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-05 21:34:51 +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 8a292bf0b2 stupid crap
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@279 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-04 01:04:33 +00:00
Michael Jerris 900c08571b and a few corrections to the docs.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@260 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-03 00:48:52 +00:00
Michael Jerris dc31a8ecd3 complete first go through of doxygen for the apr\apu based functions.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@259 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-03 00:10:18 +00:00
Michael Jerris 4c3434b0a7 tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@258 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-02 22:45:50 +00:00
Michael Jerris e29d980b68 More doxygen fun.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@257 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-02 22:36:01 +00:00
Michael Jerris 5eb15f329e more apr doxygen, this time, it works right!
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@256 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-02 20:32:26 +00:00
Anthony Minessale a642381f25 unix retool
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@255 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-02 18:31:50 +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 7dc6dd3f5a doxygen of switch thread funcs from apr.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@253 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-02 15:14:19 +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
Michael Jerris 0fbf3f5af0 a little more header juggling.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@239 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-29 19:14:05 +00:00
Michael Jerris cb53fc6ef5 tweak include order
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@238 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-29 17:28:54 +00:00
Michael Jerris 975a087ac4 juggle the header files.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@237 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-29 17:25:28 +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 e7c060b8b9 add channels arg to codec
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@227 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-28 20:06:03 +00:00
Anthony Minessale 094acc5dd3 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@214 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-27 20:15:00 +00:00
Anthony Minessale 378ce8e115 let codecs and timers use existing pool and add new file i/o backend
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@212 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-27 18:46:12 +00:00
Anthony Minessale a0d199af73 let codecs and timers be init with an existing pool
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@209 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-26 21:01:22 +00:00
Anthony Minessale 8c964a5c85 test
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@208 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-26 19:58:42 +00:00
Anthony Minessale b4845b9ff1 ok gsm works
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@206 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-26 19:09:59 +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 f52b45c2c9 centralize api interface
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@197 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-23 02:55:25 +00:00
Anthony Minessale 32273a0c3f xmppmas
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@196 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-23 02:24:56 +00:00
Anthony Minessale 0fd698a347 fix
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@192 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-22 22:17:25 +00:00
Anthony Minessale 3e0234219b use more of apr-utils in the event stuff
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@191 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-22 18:53:33 +00:00
Anthony Minessale e60fbc2267 get uuid from apr-utils for channel events
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@190 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-22 01:57:32 +00:00
Anthony Minessale 98a797a2f2 add apr-utils
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@189 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-21 22:38:53 +00:00
Anthony Minessale 6949227ca1 more events and some build changes
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@188 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-21 22:25:22 +00:00
Anthony Minessale 03cc285054 unix build tweaks
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@187 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-21 17:33:03 +00:00
Anthony Minessale 146b99e1d6 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@184 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-21 16:24:37 +00:00
Anthony Minessale 006e0f8d14 add network_addr to profile (had to add a func to get it for iax)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@175 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-20 16:01:18 +00:00
Anthony Minessale ab0b99eb00 more event stuff
you should now be able to bind an event handler to a 
paticiular file or function not just a paticular event
when using the custom event 

like "file:somefile.c"
or "func:somefunc"

also events now have headers which can be added 
with varargs and should be created and delivered with api calls


switch_event *event;

regular event:
if (switch_event_create(&event, SWITCH_EVENT_STARTUP) == SWITCH_STATUS_SUCCESS) {
	switch_event_add_header(event, "event_info", "System Ready");
	switch_event_fire(&event);
}

custom event:
if (switch_event_create_subclass(&event, SWITCH_EVENT_CUSTOM, "some_subclass_string") == SWITCH_STATUS_SUCCESS) {
	switch_event_add_header(event, "event_info", "hello world %d", 42);
	switch_event_fire(&event);
} 

switch_event_add_header(event, "test %d", 42);

also you can serialize and event into a buffer in
a printable/transferrable format with optional body

char buf[1024];

with body:
switch_event_serialize(event, buf, sizeof(buf), "This is a body my favorite number is %d", 42);

no body:
switch_event_serialize(event, buf, sizeof(buf), NULL);






git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@173 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-19 19:57:32 +00:00
Anthony Minessale 2a58e2038a yet more rearrangment of events ;-)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@172 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-19 18:55:31 +00:00
Anthony Minessale b09fedf7e0 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@158 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-15 20:20:57 +00:00
Anthony Minessale 48e62491e1 make eventing cooler, yeah I know it's only 1 day old but... *shrug*
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@156 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-15 19:10:43 +00:00
Anthony Minessale 230c5012a6 more event code
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@153 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-14 22:46:09 +00:00
Anthony Minessale 03533ad0f3 make events queue in the bg
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@152 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-14 21:29:46 +00:00
Anthony Minessale e16f28d529 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@151 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-14 20:22:19 +00:00
Anthony Minessale 2620e0aa30 events
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@131 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-13 20:52:33 +00:00
Anthony Minessale 40824bc41a add event system
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@128 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-13 19:53:29 +00:00
Anthony Minessale 6fd5a33dbf codec improvement
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@114 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-12 17:50:07 +00:00
Anthony Minessale c5174dbcc8 OMG this rocks
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@102 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-09 22:19:08 +00:00
Anthony Minessale 86c1904cce update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@101 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-09 19:33:21 +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 46b0e12a66 merge
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@90 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-12-06 21:25:56 +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 f8b4096961 Suppress MSVC 8 warnings about crt functions.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@62 d0543943-73ff-0310-b7d9-9358b9ac24b2
2005-11-20 16:49:14 +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