marian
1d9e0f3256
Avoid output buffer re-alloc if needed size don't change in various data translators.
...
git-svn-id: http://voip.null.ro/svn/yate@3769 acf43c95-373e-0410-b603-e72c3f656dc1
2010-11-02 13:59:02 +00:00
marian
82b42cfbc1
The SimpleTranslator is now keeping source and destination formats across Consume calls: avoid repetitive String alloc.
...
git-svn-id: http://voip.null.ro/svn/yate@3768 acf43c95-373e-0410-b603-e72c3f656dc1
2010-11-02 13:43:03 +00:00
marian
e93dca85c5
Added MutexPool class implementing a fixed size array of mutexes. Replaced the global mutex protecting the RefObject counter changes with a mutex pool.
...
git-svn-id: http://voip.null.ro/svn/yate@3760 acf43c95-373e-0410-b603-e72c3f656dc1
2010-11-01 14:54:53 +00:00
marian
d173535c1c
Lock DataSource while its translator is set. Safely retrieve the translator when a chain is detached.
...
git-svn-id: http://voip.null.ro/svn/yate@3759 acf43c95-373e-0410-b603-e72c3f656dc1
2010-10-29 08:41:32 +00:00
marian
ebfb341722
Added global mutex used to protect DataConsumer's source pointer changes.
...
git-svn-id: http://voip.null.ro/svn/yate@3758 acf43c95-373e-0410-b603-e72c3f656dc1
2010-10-27 16:03:44 +00:00
paulc
a2102dfbf1
Emit a chan.connected notification message when a Channel was just connected.
...
git-svn-id: http://voip.null.ro/svn/yate@3755 acf43c95-373e-0410-b603-e72c3f656dc1
2010-10-26 15:48:36 +00:00
paulc
08c88f7891
Optimized SocketAddr::assign to avoid assigning same address.
...
Saves many malloc+free+sprintf calls especially in RTP streams.
git-svn-id: http://voip.null.ro/svn/yate@3712 acf43c95-373e-0410-b603-e72c3f656dc1
2010-10-12 15:39:04 +00:00
paulc
57c23cb9c2
Added a separate constant for the minimum settable debug level threshold.
...
This fixes a display bug caused by Rev 3680, FAIL and GOON were displayed like CONF.
git-svn-id: http://voip.null.ro/svn/yate@3710 acf43c95-373e-0410-b603-e72c3f656dc1
2010-10-12 09:27:13 +00:00
paulc
8fed2ca200
Add O_LARGEFILE to the log file flags to allow it to grow more than 2GB on systems that support it.
...
Apart from the initial O_APPEND the log file is never seek()ed anyway.
git-svn-id: http://voip.null.ro/svn/yate@3705 acf43c95-373e-0410-b603-e72c3f656dc1
2010-10-11 11:00:35 +00:00
paulc
c80d0eca1d
Added a new debug level DebugConf with text CONF for reporting configuration problems.
...
Limit the minimum debug level so CONF and GOON are always visible besides FAIL.
git-svn-id: http://voip.null.ro/svn/yate@3680 acf43c95-373e-0410-b603-e72c3f656dc1
2010-09-29 15:28:27 +00:00
paulc
092c043194
Fortified codec chain destruction against invalid accesses.
...
Even if concurrent destruction can still happen it results in no more than a warning message.
git-svn-id: http://voip.null.ro/svn/yate@3667 acf43c95-373e-0410-b603-e72c3f656dc1
2010-09-23 14:37:48 +00:00
paulc
7023dcca5a
Allow a circular offset of the items in a ListIterator so all elements are iterated but starting with a specific one.
...
git-svn-id: http://voip.null.ro/svn/yate@3616 acf43c95-373e-0410-b603-e72c3f656dc1
2010-09-01 07:50:57 +00:00
marian
25e288711c
Added abstract Compressor class for data (de)compression.
...
git-svn-id: http://voip.null.ro/svn/yate@3423 acf43c95-373e-0410-b603-e72c3f656dc1
2010-07-09 10:20:08 +00:00
marian
3aec7db1d8
Removed dangerous (too complex) macro.
...
git-svn-id: http://voip.null.ro/svn/yate@3419 acf43c95-373e-0410-b603-e72c3f656dc1
2010-07-06 13:13:00 +00:00
marian
4543a2c55e
Constified static Strings declared in functions to make sure they are safely initialized.
...
git-svn-id: http://voip.null.ro/svn/yate@3418 acf43c95-373e-0410-b603-e72c3f656dc1
2010-07-06 12:56:25 +00:00
marian
e60991a22a
Made locally used functions static to avoid namespace pollution.
...
git-svn-id: http://voip.null.ro/svn/yate@3417 acf43c95-373e-0410-b603-e72c3f656dc1
2010-07-06 12:20:03 +00:00
paulc
5137a89320
Constified some more Regexps, speeds up URI parsing and fixes compiling in Windows.
...
git-svn-id: http://voip.null.ro/svn/yate@3393 acf43c95-373e-0410-b603-e72c3f656dc1
2010-06-21 16:58:26 +00:00
paulc
8c02021eeb
Use static const Regexps wherever possible to speed up code.
...
git-svn-id: http://voip.null.ro/svn/yate@3391 acf43c95-373e-0410-b603-e72c3f656dc1
2010-06-17 11:38:46 +00:00
paulc
56a86e22cd
Made the private pointer of Regexp mutable so compile() and matches() can be made const.
...
Part of a patch by Allan Sandfeld Jensen.
git-svn-id: http://voip.null.ro/svn/yate@3390 acf43c95-373e-0410-b603-e72c3f656dc1
2010-06-17 11:36:52 +00:00
paulc
98dd09240a
Report the number of threads that are to be cancelled at shutdown.
...
Protect against not cancelling threads if compiling with SOFT_WAITS <= 0.
git-svn-id: http://voip.null.ro/svn/yate@3386 acf43c95-373e-0410-b603-e72c3f656dc1
2010-06-16 13:45:54 +00:00
paulc
141bf0e244
Improve shutdown behavior by first soft cancelling all threads and waiting a while for them to exit.
...
Based on a patch by Allan Sandfeld Jensen.
git-svn-id: http://voip.null.ro/svn/yate@3385 acf43c95-373e-0410-b603-e72c3f656dc1
2010-06-16 12:23:23 +00:00
paulc
0cdbe20050
Added a broadcast flag to class Message so it can continue dispatching even if one of the handlers returned true.
...
Use the broadcast flag in the messages emitted by the engine.
git-svn-id: http://voip.null.ro/svn/yate@3384 acf43c95-373e-0410-b603-e72c3f656dc1
2010-06-16 11:42:52 +00:00
paulc
6b84c12e8c
Added an engine.stop message that modules can use to keep engine running while cleaning up.
...
The engine emits engine.stop every second (but at most 5 times) and shuts down only if the message returned false.
git-svn-id: http://voip.null.ro/svn/yate@3381 acf43c95-373e-0410-b603-e72c3f656dc1
2010-06-16 09:05:08 +00:00
paulc
5294671cd4
Engine improvments by Allan Sandfeld Jensen: add the "nodename" parameter to engine generated messages.
...
git-svn-id: http://voip.null.ro/svn/yate@3380 acf43c95-373e-0410-b603-e72c3f656dc1
2010-06-16 08:46:47 +00:00
paulc
70b7285b61
Supervisor improvments by Allan Sandfeld Jensen: display child's normal exit code, send SIGABRT to an unresponsive child if -C was used.
...
git-svn-id: http://voip.null.ro/svn/yate@3379 acf43c95-373e-0410-b603-e72c3f656dc1
2010-06-16 08:35:42 +00:00
paulc
81ecea7581
Got rid of some long standing conversion warning by providing the proper casts.
...
git-svn-id: http://voip.null.ro/svn/yate@3377 acf43c95-373e-0410-b603-e72c3f656dc1
2010-06-11 18:07:17 +00:00
paulc
1584e08737
Use the sdbm string hashing algorithm from http://www.cse.yorku.ca/~oz/hash.html
...
Patch recommended by Allan Sandfeld Jensen.
git-svn-id: http://voip.null.ro/svn/yate@3372 acf43c95-373e-0410-b603-e72c3f656dc1
2010-06-11 12:29:00 +00:00
paulc
6e23c56d28
Spelling cleanup of a very common error: Retrive -> Retrieve
...
git-svn-id: http://voip.null.ro/svn/yate@3371 acf43c95-373e-0410-b603-e72c3f656dc1
2010-06-11 11:25:10 +00:00
paulc
d9b07638b6
Made a lot of constructors explicit to prevent undesirable automatic conversions.
...
Fixed two undesirable automatic conversions exposed by this change.
git-svn-id: http://voip.null.ro/svn/yate@3366 acf43c95-373e-0410-b603-e72c3f656dc1
2010-06-08 15:25:05 +00:00
paulc
b9cdacb68a
Include the node name in the engine status and the default rmanager greeting.
...
git-svn-id: http://voip.null.ro/svn/yate@3352 acf43c95-373e-0410-b603-e72c3f656dc1
2010-05-28 17:07:49 +00:00
marian
00bf562482
Added method used to set an element's image.
...
git-svn-id: http://voip.null.ro/svn/yate@3338 acf43c95-373e-0410-b603-e72c3f656dc1
2010-05-21 11:43:26 +00:00
marian
eec93babd9
Add existing accounts to menu. Remove an account from menu when deleted.
...
git-svn-id: http://voip.null.ro/svn/yate@3336 acf43c95-373e-0410-b603-e72c3f656dc1
2010-05-20 15:15:31 +00:00
marian
ffd01a378c
Added methods used to build and remove menus at runtime.
...
git-svn-id: http://voip.null.ro/svn/yate@3335 acf43c95-373e-0410-b603-e72c3f656dc1
2010-05-20 15:14:31 +00:00
marian
9a0c1d2dba
Added client option used to open the account add window on startup if the accounts list is empty. Reset it if the user closes the window before terminating the application.
...
git-svn-id: http://voip.null.ro/svn/yate@3334 acf43c95-373e-0410-b603-e72c3f656dc1
2010-05-19 13:26:57 +00:00
marian
94231f9950
Avoid resetting account add/edit window contents if already visible.
...
git-svn-id: http://voip.null.ro/svn/yate@3332 acf43c95-373e-0410-b603-e72c3f656dc1
2010-05-19 12:29:04 +00:00
marian
0b7a99032b
Handle 'quit' action in DefaultLogic.
...
git-svn-id: http://voip.null.ro/svn/yate@3331 acf43c95-373e-0410-b603-e72c3f656dc1
2010-05-19 11:29:37 +00:00
paulc
16a1bed7d5
Fixed a missing parameter.
...
git-svn-id: http://voip.null.ro/svn/yate@3323 acf43c95-373e-0410-b603-e72c3f656dc1
2010-05-13 17:17:42 +00:00
marian
3c1238ca40
Fixed chan.dtmf sending: use the active channel if none specified.
...
git-svn-id: http://voip.null.ro/svn/yate@3318 acf43c95-373e-0410-b603-e72c3f656dc1
2010-05-13 13:34:42 +00:00
marian
8ae4a46ef6
DefaultLogic is now waiting for engine start notification to login startup accounts.
...
git-svn-id: http://voip.null.ro/svn/yate@3313 acf43c95-373e-0410-b603-e72c3f656dc1
2010-05-12 08:45:40 +00:00
marian
d80a91eb90
Postpone the engine.start message to be processed in the client's thread.
...
git-svn-id: http://voip.null.ro/svn/yate@3312 acf43c95-373e-0410-b603-e72c3f656dc1
2010-05-12 08:01:37 +00:00
marian
52ad21d790
Hide account and contact edit windows before exiting.
...
git-svn-id: http://voip.null.ro/svn/yate@3309 acf43c95-373e-0410-b603-e72c3f656dc1
2010-05-11 14:45:07 +00:00
marian
26eb5b1917
DefaultLogic is now using an accounts list for accounts and contacts management. Fixed account and contact add/edit bugs. Calls log is now shown using a common table for incoming and outgoing. Fixed DefaultLogic resource.notify and user.roster processing.
...
git-svn-id: http://voip.null.ro/svn/yate@3308 acf43c95-373e-0410-b603-e72c3f656dc1
2010-05-11 14:25:41 +00:00
marian
6aa91970b2
Return found configuration section when asked to check or create one.
...
git-svn-id: http://voip.null.ro/svn/yate@3303 acf43c95-373e-0410-b603-e72c3f656dc1
2010-05-10 14:02:21 +00:00
marian
dfc47d0649
Use the new version of NamedList::addParam() to avoid adding empty values.
...
git-svn-id: http://voip.null.ro/svn/yate@3282 acf43c95-373e-0410-b603-e72c3f656dc1
2010-05-04 11:17:46 +00:00
paulc
114685b22a
Made possible to automatically skip adding an empty value to a NamedList.
...
git-svn-id: http://voip.null.ro/svn/yate@3281 acf43c95-373e-0410-b603-e72c3f656dc1
2010-05-04 10:35:52 +00:00
marian
b6958367b2
Make sure the account's resource pointer is always valid.
...
git-svn-id: http://voip.null.ro/svn/yate@3280 acf43c95-373e-0410-b603-e72c3f656dc1
2010-05-04 10:22:34 +00:00
paulc
9d0212f010
Added assignment operator for NamedList.
...
git-svn-id: http://voip.null.ro/svn/yate@3278 acf43c95-373e-0410-b603-e72c3f656dc1
2010-05-04 10:14:59 +00:00
marian
ab9274e550
The ClientAccountList can now keep an account owning locally stored contacts. Fixed comments.
...
git-svn-id: http://voip.null.ro/svn/yate@3277 acf43c95-373e-0410-b603-e72c3f656dc1
2010-05-04 10:00:05 +00:00
marian
41bf946a84
It's now possible to add arbitrary parameters to the call.route message dispatched by an outgoing client channel.
...
git-svn-id: http://voip.null.ro/svn/yate@3251 acf43c95-373e-0410-b603-e72c3f656dc1
2010-04-29 08:51:51 +00:00
marian
6272daa183
Added send chat method to contact.
...
git-svn-id: http://voip.null.ro/svn/yate@3218 acf43c95-373e-0410-b603-e72c3f656dc1
2010-04-20 08:22:38 +00:00