Commit Graph

3201 Commits

Author SHA1 Message Date
maciej deafaa3d61 yaypm.utils.outgoing works with forks now
git-svn-id: http://voip.null.ro/svn/yate@3052 acf43c95-373e-0410-b603-e72c3f656dc1
2010-02-01 13:29:19 +00:00
paulc 6eb57b13ca Use static Regexps instead of compiling new ones up to 5 times.
git-svn-id: http://voip.null.ro/svn/yate@3049 acf43c95-373e-0410-b603-e72c3f656dc1
2010-01-31 20:35:48 +00:00
paulc be5664b373 Use static Regexps instead of allocating them on stack. Multiplies 2.5x the parser performance.
git-svn-id: http://voip.null.ro/svn/yate@3048 acf43c95-373e-0410-b603-e72c3f656dc1
2010-01-31 20:30:02 +00:00
paulc 232ca0d142 Minor performance improvement parsing non-SIP/2.0 branches.
git-svn-id: http://voip.null.ro/svn/yate@3047 acf43c95-373e-0410-b603-e72c3f656dc1
2010-01-31 20:27:56 +00:00
paulc 8afde4d6b1 Precompile regular expressions on construction from constant string so it won't need to compile on first call.
git-svn-id: http://voip.null.ro/svn/yate@3046 acf43c95-373e-0410-b603-e72c3f656dc1
2010-01-31 20:05:43 +00:00
paulc eb98a3909a Display the name of the shared object in SLib destructor to aid in debugging unload order.
git-svn-id: http://voip.null.ro/svn/yate@3045 acf43c95-373e-0410-b603-e72c3f656dc1
2010-01-30 20:33:11 +00:00
marian 564cdb3c26 The jingle module is now handling call.execute with target starting with 'jabber/' in client mode.
git-svn-id: http://voip.null.ro/svn/yate@3044 acf43c95-373e-0410-b603-e72c3f656dc1
2010-01-28 11:39:36 +00:00
marian ac821b5213 Add one pair of separators (-----) when xml is printed in verbose mode.
git-svn-id: http://voip.null.ro/svn/yate@3043 acf43c95-373e-0410-b603-e72c3f656dc1
2010-01-28 11:20:16 +00:00
paulc 588591db02 Allow overriding DLL_SUFFIX (.yate) and CFG_SUFFIX (.conf) at compile time.
git-svn-id: http://voip.null.ro/svn/yate@3042 acf43c95-373e-0410-b603-e72c3f656dc1
2010-01-27 16:44:19 +00:00
paulc 2deb231d17 When started in interactive mode (not daemonified) shutdown on receiving SIGHUP since the console was closed.
git-svn-id: http://voip.null.ro/svn/yate@3040 acf43c95-373e-0410-b603-e72c3f656dc1
2010-01-27 12:07:51 +00:00
marian 5946e52bde Use clear() to delete list items when the list is destroyed.
git-svn-id: http://voip.null.ro/svn/yate@3038 acf43c95-373e-0410-b603-e72c3f656dc1
2010-01-26 13:20:06 +00:00
marian c9075175c2 Added extra mutex to protect stream socket and parser (avoid infinite looping on connection reset).
git-svn-id: http://voip.null.ro/svn/yate@3037 acf43c95-373e-0410-b603-e72c3f656dc1
2010-01-26 11:40:15 +00:00
marian b6b6e47497 Don't add streams namespace to error and features elements.
git-svn-id: http://voip.null.ro/svn/yate@3036 acf43c95-373e-0410-b603-e72c3f656dc1
2010-01-26 11:30:34 +00:00
paulc 33a98e83aa Added Channel::initChan() method to add the channel to the driver explicitely, after the object is fully constructed.
git-svn-id: http://voip.null.ro/svn/yate@3033 acf43c95-373e-0410-b603-e72c3f656dc1
2010-01-26 10:31:32 +00:00
paulc 8d36138232 Only needs to include yatengine.h, not yatephone.h
git-svn-id: http://voip.null.ro/svn/yate@3032 acf43c95-373e-0410-b603-e72c3f656dc1
2010-01-26 10:21:30 +00:00
paulc 0a336dee9d Check if the OpenSSL structure is still valid after getting the mutex lock.
git-svn-id: http://voip.null.ro/svn/yate@3030 acf43c95-373e-0410-b603-e72c3f656dc1
2010-01-25 16:48:47 +00:00
paulc 2e749967d4 Reference the ExtReceiver just before trying to start it.
Prevents crashes and memory corruption caused by race conditions, especially when the script des not start or terminates early.


git-svn-id: http://voip.null.ro/svn/yate@3027 acf43c95-373e-0410-b603-e72c3f656dc1
2010-01-17 17:47:01 +00:00
paulc 70f69690c7 Use CallEndpoint::commonMutex() instead of CallFork's private mutex.
Prevents deadlocks when trying to lock them in different order.


git-svn-id: http://voip.null.ro/svn/yate@3026 acf43c95-373e-0410-b603-e72c3f656dc1
2010-01-17 17:44:35 +00:00
paulc 717a87c5af Reduced contention on mutex in CallEndpoint::getPeerId() when there is no peer.
Report the name of the thread holding CallEndpoint::commonMutex() locked.


git-svn-id: http://voip.null.ro/svn/yate@3023 acf43c95-373e-0410-b603-e72c3f656dc1
2010-01-16 21:04:08 +00:00
paulc 57eedc3830 Added method to retrieve the name of the Thread currently owning a Mutex.
git-svn-id: http://voip.null.ro/svn/yate@3022 acf43c95-373e-0410-b603-e72c3f656dc1
2010-01-16 20:42:25 +00:00
paulc 646afef214 When explicitely signalling the supervisor to restart the child reset the run delay time back to minimum.
git-svn-id: http://voip.null.ro/svn/yate@3021 acf43c95-373e-0410-b603-e72c3f656dc1
2010-01-16 20:40:03 +00:00
paulc 5950cdd9df Modified the CallEndpoint::getPeerId() API so it copies the string while holding CallEndpoint::commonMutex().
git-svn-id: http://voip.null.ro/svn/yate@3019 acf43c95-373e-0410-b603-e72c3f656dc1
2010-01-14 00:01:38 +00:00
paulc ac7aedf9ca Cleanup initial local RTP from circuit and call leg when RTP forward is used.
git-svn-id: http://voip.null.ro/svn/yate@3016 acf43c95-373e-0410-b603-e72c3f656dc1
2010-01-11 16:21:12 +00:00
paulc 89a427cb6e Fixed some doxygen comments.
git-svn-id: http://voip.null.ro/svn/yate@3015 acf43c95-373e-0410-b603-e72c3f656dc1
2010-01-11 00:24:17 +00:00
marian 32b89dede5 Avoid destroying a locked isup call mutex.
git-svn-id: http://voip.null.ro/svn/yate@3014 acf43c95-373e-0410-b603-e72c3f656dc1
2010-01-08 15:39:26 +00:00
paulc d7b8c0cfac Added Debian style init files provided by Philipp Kempgen.
git-svn-id: http://voip.null.ro/svn/yate@3013 acf43c95-373e-0410-b603-e72c3f656dc1
2010-01-07 18:58:20 +00:00
andrei c78831d0e4 When getting circuit events return fast without locking if there are no queued events.
Fixes high CPU usage when running many ISDN or SS7 circuits.


git-svn-id: http://voip.null.ro/svn/yate@3011 acf43c95-373e-0410-b603-e72c3f656dc1
2010-01-07 14:19:57 +00:00
oana a3456b35d7 Added counter for number of restarts in supervised mode. Counter value added to Engine::runParams().
git-svn-id: http://voip.null.ro/svn/yate@3010 acf43c95-373e-0410-b603-e72c3f656dc1
2010-01-07 12:11:09 +00:00
paulc 92fb386733 Warn and refuse authentication if the designated password return column is missing from the user.auth result set.
git-svn-id: http://voip.null.ro/svn/yate@3008 acf43c95-373e-0410-b603-e72c3f656dc1
2010-01-06 12:46:45 +00:00
paulc 231f3d9684 Added Winsock to the libraries used by the pgsql module since it directly calls select()
git-svn-id: http://voip.null.ro/svn/yate@3006 acf43c95-373e-0410-b603-e72c3f656dc1
2010-01-05 12:42:47 +00:00
paulc 0622a2379f Setting to disable autostart of connections to Postgres servers.
git-svn-id: http://voip.null.ro/svn/yate@3005 acf43c95-373e-0410-b603-e72c3f656dc1
2010-01-05 12:39:34 +00:00
paulc 60e7a81dd0 Implemented polling of the connection socket to avoid libpq erroring on EAGAIN.
git-svn-id: http://voip.null.ro/svn/yate@3004 acf43c95-373e-0410-b603-e72c3f656dc1
2010-01-05 12:27:01 +00:00
paulc 3319fb7dfb Destroy regexroute handlers before locking the mutex to avoid deadlock. Handlers are protected internally.
Initialize regexroute variables before installing new handlers.


git-svn-id: http://voip.null.ro/svn/yate@3002 acf43c95-373e-0410-b603-e72c3f656dc1
2010-01-04 16:11:48 +00:00
paulc b5138c55db Added diagram of data flow inside and between Data Endpoints.
git-svn-id: http://voip.null.ro/svn/yate@3001 acf43c95-373e-0410-b603-e72c3f656dc1
2009-12-28 15:35:12 +00:00
paulc 2e03052762 Abort further module loading and initialization if engine is exiting.
git-svn-id: http://voip.null.ro/svn/yate@3000 acf43c95-373e-0410-b603-e72c3f656dc1
2009-12-28 13:20:07 +00:00
marian 3db96c011c Notify offline when processing 'unsubscribed' notifications from local users. Notify local resources to remote parties when processing 'subscribed' notifications from local users.
git-svn-id: http://voip.null.ro/svn/yate@2999 acf43c95-373e-0410-b603-e72c3f656dc1
2009-12-23 16:58:16 +00:00
paulc 96c0be6a7d The decision to use stderr or extmodule's %%>output for debugging PHP can be overriden via Yate::Output(boolean).
git-svn-id: http://voip.null.ro/svn/yate@2997 acf43c95-373e-0410-b603-e72c3f656dc1
2009-12-21 12:00:34 +00:00
paulc 657bfc063c Apply "maxcall" and "timeout" parameters on the "chan.control" message.
git-svn-id: http://voip.null.ro/svn/yate@2995 acf43c95-373e-0410-b603-e72c3f656dc1
2009-12-20 15:17:37 +00:00
paulc 29319c2fab Call the callConnect() method so the "tonedetect_out" parameter is applied.
git-svn-id: http://voip.null.ro/svn/yate@2993 acf43c95-373e-0410-b603-e72c3f656dc1
2009-12-18 19:11:21 +00:00
paulc 74f8eeb558 Generate and apply the simplified "privacy" parameter.
git-svn-id: http://voip.null.ro/svn/yate@2992 acf43c95-373e-0410-b603-e72c3f656dc1
2009-12-18 19:10:15 +00:00
paulc 455b6dbf81 Automatically reset the maxcall timer when entering "answered" status.
git-svn-id: http://voip.null.ro/svn/yate@2991 acf43c95-373e-0410-b603-e72c3f656dc1
2009-12-18 19:08:41 +00:00
paulc 0e9eca77ab Explicitely idle the Qt client thread ourselves, do not rely on QTimer since the glib event scheduler eats much CPU for short timeouts.
Fixes a nearly 100% CPU load that happened for Qt linked with glib, almost all recent Linux distributions.


git-svn-id: http://voip.null.ro/svn/yate@2989 acf43c95-373e-0410-b603-e72c3f656dc1
2009-12-17 13:35:18 +00:00
marian edd9b63274 Add destination instance when sending messages on non c2s streams.
git-svn-id: http://voip.null.ro/svn/yate@2988 acf43c95-373e-0410-b603-e72c3f656dc1
2009-12-16 14:45:58 +00:00
marian 2341d1447d Handle directed chat with resource not found and groupchat/error without full jid target. Store only chat/normal message stanzas in offline messages.
git-svn-id: http://voip.null.ro/svn/yate@2987 acf43c95-373e-0410-b603-e72c3f656dc1
2009-12-14 16:51:28 +00:00
marian f59b9fbc96 Set message type to 'chat' when building from a list of parameters. Added some namespaces to global list.
git-svn-id: http://voip.null.ro/svn/yate@2986 acf43c95-373e-0410-b603-e72c3f656dc1
2009-12-14 16:44:34 +00:00
marian c7fd782d0f Added 'auth' request parameter handled in msg.route message.
git-svn-id: http://voip.null.ro/svn/yate@2985 acf43c95-373e-0410-b603-e72c3f656dc1
2009-12-14 16:43:13 +00:00
paulc 70b8974a75 Made more Socket methods virtual to allow implementing non kernel-based sockets.
Removed SCTP specific methods, they will go in a separate class.


git-svn-id: http://voip.null.ro/svn/yate@2984 acf43c95-373e-0410-b603-e72c3f656dc1
2009-12-14 16:37:08 +00:00
marian 8036f128d3 Fixed driver lock without unlock bug in msg.execute handler.
git-svn-id: http://voip.null.ro/svn/yate@2983 acf43c95-373e-0410-b603-e72c3f656dc1
2009-12-14 15:10:35 +00:00
paulc 089862b413 Added possibility to repeat the -Dm option to halve the mutex maximum wait time.
git-svn-id: http://voip.null.ro/svn/yate@2982 acf43c95-373e-0410-b603-e72c3f656dc1
2009-12-10 11:20:50 +00:00
marian f83008379a Route presence stanzas with type error.
git-svn-id: http://voip.null.ro/svn/yate@2981 acf43c95-373e-0410-b603-e72c3f656dc1
2009-12-09 14:53:39 +00:00