Commit Graph

2815 Commits

Author SHA1 Message Date
paulc 4f15c74614 Added callcounters module.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2876 acf43c95-373e-0410-b603-e72c3f656dc1
2009-10-30 10:06:37 +00:00
paulc d726724eef Added module that counts calls per user specified cathegory, usually context.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2875 acf43c95-373e-0410-b603-e72c3f656dc1
2009-10-28 16:59:25 +00:00
paulc b0c8da2dc0 Emit call.update only when the SIP dialog tags have changed.
Avoids flooding the system with useless call.update and call.cdr messages.


git-svn-id: http://yate.null.ro/svn/yate/trunk@2874 acf43c95-373e-0410-b603-e72c3f656dc1
2009-10-21 14:10:47 +00:00
paulc 75b98358a7 Added an extra parameter to SDPSession::updateFormats() allowing it to add or remove media.
Use the SDPSession::updateFormats() method in SIP instead of reimplementing it.


git-svn-id: http://yate.null.ro/svn/yate/trunk@2873 acf43c95-373e-0410-b603-e72c3f656dc1
2009-10-20 22:54:56 +00:00
paulc c04093b7d7 Explicitely set "media"="false" when other but no audio media is present since the default for audio is true.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2872 acf43c95-373e-0410-b603-e72c3f656dc1
2009-10-20 20:43:27 +00:00
paulc 6112bc815a Handling of user.register and call.cdr can be disabled in the clustering module.
Usefull while reverting a clustered server to standalone operation.


git-svn-id: http://yate.null.ro/svn/yate/trunk@2871 acf43c95-373e-0410-b603-e72c3f656dc1
2009-10-20 15:04:28 +00:00
marian 3618caab4f Fixed NAI dictionary string.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2870 acf43c95-373e-0410-b603-e72c3f656dc1
2009-10-19 09:08:31 +00:00
paulc 14fc63fd5b Handle more error codes of gateway generated DLCX.
Try to delete all connections on the endpoint if there are insufficient resources, the error may be caused by having an old connection open.


git-svn-id: http://yate.null.ro/svn/yate/trunk@2869 acf43c95-373e-0410-b603-e72c3f656dc1
2009-10-16 16:52:16 +00:00
paulc 0533a9baf6 Made the SIP transactions list protected, added methods to add or remove transactions from list that lock the engine.
Remove transactions from engine's list on destroyed() as later access to their virtual methods is unsafe.


git-svn-id: http://yate.null.ro/svn/yate/trunk@2868 acf43c95-373e-0410-b603-e72c3f656dc1
2009-10-16 12:08:22 +00:00
paulc ea0b4867a7 Chain the debugging of the SIP engine to the SIP channels plugin.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2867 acf43c95-373e-0410-b603-e72c3f656dc1
2009-10-16 12:04:32 +00:00
paulc 4ea2bfae71 Convert RTP telephone-event 36 (CNG) to a call.fax message, indicate detection method.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2866 acf43c95-373e-0410-b603-e72c3f656dc1
2009-10-05 14:50:37 +00:00
paulc 4c2d060eb5 It is possible to configure --with-spandsp=static to avoid runtime version trouble.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2865 acf43c95-373e-0410-b603-e72c3f656dc1
2009-10-05 10:36:37 +00:00
paulc fba49ac1ec Support for newer versions of spandsp with separate RX and TX pages stats.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2864 acf43c95-373e-0410-b603-e72c3f656dc1
2009-10-05 08:53:43 +00:00
paulc ba37eb642e Weed out some older and incompatible versions of spandsp.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2863 acf43c95-373e-0410-b603-e72c3f656dc1
2009-10-05 08:02:24 +00:00
marian e78e1293ae Connect stacked widget current changed signal. Handle stacked widgets in getSelect().
git-svn-id: http://yate.null.ro/svn/yate/trunk@2862 acf43c95-373e-0410-b603-e72c3f656dc1
2009-10-02 14:52:38 +00:00
paulc b4afeaa930 Accept some spandsp versions older than 0.0.6, provide wrappers around incompatible member access methods.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2861 acf43c95-373e-0410-b603-e72c3f656dc1
2009-10-02 13:13:45 +00:00
paulc 435cb3ab9c Extended gethostbyname_r buffer to 576 bytes for more demanding versions of libc.
Use single threaded gethostbyname as fallback if buffer is still too small.


git-svn-id: http://yate.null.ro/svn/yate/trunk@2860 acf43c95-373e-0410-b603-e72c3f656dc1
2009-10-02 13:09:02 +00:00
paulc d98cc424eb Use inet_ntop, inet_pton and gethostbyname_r if available on system.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2859 acf43c95-373e-0410-b603-e72c3f656dc1
2009-10-02 10:00:23 +00:00
paulc 791e083fc1 Mark media as muted if chan.rtp returned an empty local IP address.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2858 acf43c95-373e-0410-b603-e72c3f656dc1
2009-09-25 13:16:00 +00:00
paulc 5b6d399446 Support for replacing in ${param-name$default-value} style.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2857 acf43c95-373e-0410-b603-e72c3f656dc1
2009-09-25 13:13:58 +00:00
paulc 14b4e4a755 Added format info for G.729/G.729A.
Wavefile module can play or record raw G.729 files with extension .g729


git-svn-id: http://yate.null.ro/svn/yate/trunk@2856 acf43c95-373e-0410-b603-e72c3f656dc1
2009-09-23 15:07:50 +00:00
paulc e6ecedb890 Mark the RTP session invalid on reception of a termination request.
This allows connected sources to detach early.


git-svn-id: http://yate.null.ro/svn/yate/trunk@2855 acf43c95-373e-0410-b603-e72c3f656dc1
2009-09-23 14:53:54 +00:00
paulc dc35c215ae Added a validity check method to DataNode and some descendants.
A DataSource will remove invalid consumers that returned zero.


git-svn-id: http://yate.null.ro/svn/yate/trunk@2854 acf43c95-373e-0410-b603-e72c3f656dc1
2009-09-23 14:50:51 +00:00
paulc dd22280ca9 Hold the ChanAssistList mutex between the list search and insertion of new assist in list.
This prevents race conditions between chan.startup and call.execute that could create two assist instances for the same channel.


git-svn-id: http://yate.null.ro/svn/yate/trunk@2853 acf43c95-373e-0410-b603-e72c3f656dc1
2009-09-23 14:00:38 +00:00
paulc 55325b0ee3 Reduce mutex contention by unlocking the ISUP controller while sending a MSU downstream in a few places.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2852 acf43c95-373e-0410-b603-e72c3f656dc1
2009-09-22 11:58:30 +00:00
paulc 909959bc6d Unlock the session mutex while attempting to push the data to the session user.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2851 acf43c95-373e-0410-b603-e72c3f656dc1
2009-09-22 11:57:04 +00:00
paulc 9ed21bbc16 Also keep the ChanAssistList locked while adding a new assist to the list.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2850 acf43c95-373e-0410-b603-e72c3f656dc1
2009-09-21 14:29:52 +00:00
paulc 3cde3a5bc0 Hold the ChanAssistList mutex while removing an element.
Remove the assist from list before calling its msgHangup() method.


git-svn-id: http://yate.null.ro/svn/yate/trunk@2849 acf43c95-373e-0410-b603-e72c3f656dc1
2009-09-21 14:26:22 +00:00
diana 5fd4128f7c Bugfix: Ignore notify if reason is replaced
git-svn-id: http://yate.null.ro/svn/yate/trunk@2848 acf43c95-373e-0410-b603-e72c3f656dc1
2009-09-21 14:10:44 +00:00
marian d8f375ed24 Always reset I/O blocking on listener and accepted sockets. Added more debug.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2847 acf43c95-373e-0410-b603-e72c3f656dc1
2009-09-21 12:41:01 +00:00
paulc c0a309d809 Build the SCTP flags in configure, they may be needed outside the engine.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2846 acf43c95-373e-0410-b603-e72c3f656dc1
2009-09-21 11:37:38 +00:00
paulc aa143b4e34 Fixed the way the SIP transaction answer code is returned to xsip.generate, it wasn't dealing well with timeouts.
While waiting for the arbitrary transaction to finish call Thread::idle() instead of yield().


git-svn-id: http://yate.null.ro/svn/yate/trunk@2845 acf43c95-373e-0410-b603-e72c3f656dc1
2009-09-18 11:17:50 +00:00
paulc a0eaa940b4 Moved all code in the Cisco SM module to an anonymous namespace where it belongs.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2844 acf43c95-373e-0410-b603-e72c3f656dc1
2009-09-18 10:36:41 +00:00
paulc e2e5c65b70 Explicitely join all reflector components to the RTPGroup.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2843 acf43c95-373e-0410-b603-e72c3f656dc1
2009-09-16 11:06:17 +00:00
paulc a42b498823 Added a RTP reflector (dumb proxy) that can be used with SDP forwarding to implement a codec transparent SIP ALG.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2842 acf43c95-373e-0410-b603-e72c3f656dc1
2009-09-15 16:14:28 +00:00
paulc b37455703c Detect and report malformed function calls that caused a forever loop.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2841 acf43c95-373e-0410-b603-e72c3f656dc1
2009-09-15 14:18:23 +00:00
paulc b59a769cc3 Removed superfluous warning when the RTP module receives an unmatched termination message.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2840 acf43c95-373e-0410-b603-e72c3f656dc1
2009-09-14 19:05:28 +00:00
paulc d2418f656d Dispatch a chan.rtp with terminate=true when a SIP media is removed or replaced.
Added several channel parameters to the chan.rtp message.


git-svn-id: http://yate.null.ro/svn/yate/trunk@2839 acf43c95-373e-0410-b603-e72c3f656dc1
2009-09-14 18:52:53 +00:00
paulc 20e14c3cde Added default RTP payloads for MPEG media types.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2838 acf43c95-373e-0410-b603-e72c3f656dc1
2009-09-14 18:49:04 +00:00
paulc 946b5946d6 Made RTPGroup join() and part() methods public.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2837 acf43c95-373e-0410-b603-e72c3f656dc1
2009-09-14 18:47:43 +00:00
paulc ad2703f29e Add the media format to the chan.rtp message even if not starting it.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2836 acf43c95-373e-0410-b603-e72c3f656dc1
2009-09-14 15:02:43 +00:00
paulc 12a2ac9c0c Added parameter to ThreadedSource::looping() so it can keep running while it has consumers.
Fixed behavior of wave and tone "override" and "replace" methods.


git-svn-id: http://yate.null.ro/svn/yate/trunk@2835 acf43c95-373e-0410-b603-e72c3f656dc1
2009-09-14 11:02:27 +00:00
paulc 88614064d9 Display consumer construction and destruction when compiled for debugging.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2834 acf43c95-373e-0410-b603-e72c3f656dc1
2009-09-14 10:43:26 +00:00
paulc 6724184011 Added several RTP paylods for MPEG (A/V) and MJPEG streams.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2833 acf43c95-373e-0410-b603-e72c3f656dc1
2009-09-14 09:11:57 +00:00
paulc 381bb557b6 Provide the entire SDPMedia to the mediaChanged() mthod, not only the name of the media.
Add the "rtpid" parameter to the chan.rtp message if the media id() is available.


git-svn-id: http://yate.null.ro/svn/yate/trunk@2832 acf43c95-373e-0410-b603-e72c3f656dc1
2009-09-14 09:06:16 +00:00
paulc fb6762b981 When compiled for debugging warn if a thread calls idle() holding mutex locks.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2831 acf43c95-373e-0410-b603-e72c3f656dc1
2009-09-10 18:59:05 +00:00
marian 3666da4a2d Table item double click signal is no longer connected to window slot (only table cell double click). Added more debug.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2830 acf43c95-373e-0410-b603-e72c3f656dc1
2009-09-08 13:39:11 +00:00
paulc 8b19f1915a Call the ThreadedSource::cleanup() from reimplemented method in descendants.
Spaced and moved together the class methods in source code (aestethic).


git-svn-id: http://yate.null.ro/svn/yate/trunk@2829 acf43c95-373e-0410-b603-e72c3f656dc1
2009-09-08 13:19:22 +00:00
marian 5e07d86bba Fixed error response matching for sent iq stanzas.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2828 acf43c95-373e-0410-b603-e72c3f656dc1
2009-09-08 13:16:22 +00:00
paulc 2186793f38 The worker thread of ThreadedSource now keeps it referenced.
New methods of DataEndpoint, CallEndpoint and ThreadedSource allow easier handling of concurrent operations.
Modules using ThreadedSource were modified to use the new API.


git-svn-id: http://yate.null.ro/svn/yate/trunk@2827 acf43c95-373e-0410-b603-e72c3f656dc1
2009-09-07 23:49:12 +00:00