Commit Graph

1632 Commits

Author SHA1 Message Date
paulc 08c5b34be1 Retrieve as strings all MySQL types that cannot hold arbitrary binary data.
git-svn-id: http://voip.null.ro/svn/yate@3107 acf43c95-373e-0410-b603-e72c3f656dc1
2010-03-04 16:27:27 +00:00
paulc 638ffc277c Copy RTP stats in SIP to the CDR and to BYE or 200 message.
git-svn-id: http://voip.null.ro/svn/yate@3106 acf43c95-373e-0410-b603-e72c3f656dc1
2010-03-03 19:05:01 +00:00
marian 5b3d5ec79d Optionally dump received 'iq' xml string in dispatched jabber.iq message.
git-svn-id: http://voip.null.ro/svn/yate@3104 acf43c95-373e-0410-b603-e72c3f656dc1
2010-03-03 09:51:02 +00:00
marian 980779ded1 Remember the node where an instance is located.
git-svn-id: http://voip.null.ro/svn/yate@3101 acf43c95-373e-0410-b603-e72c3f656dc1
2010-03-02 15:18:20 +00:00
paulc 98df7e335f Preserve the Call-ID across REGISTER messages in a single login session.
git-svn-id: http://voip.null.ro/svn/yate@3096 acf43c95-373e-0410-b603-e72c3f656dc1
2010-02-23 18:22:59 +00:00
oana 3149b861cd Added support for Dahdi drivers. Compatibility with Zaptel is maintained.
git-svn-id: http://voip.null.ro/svn/yate@3094 acf43c95-373e-0410-b603-e72c3f656dc1
2010-02-23 13:50:52 +00:00
paulc 5acd80973a Re-establish the transport up state whenever we managed to receive a message.
git-svn-id: http://voip.null.ro/svn/yate@3093 acf43c95-373e-0410-b603-e72c3f656dc1
2010-02-18 17:54:12 +00:00
marian b8ab2edfa5 Remember directed presence notifications. Automatically notify directed 'offline' presence when an user goes offline without doing it.
git-svn-id: http://voip.null.ro/svn/yate@3091 acf43c95-373e-0410-b603-e72c3f656dc1
2010-02-18 13:56:12 +00:00
marian 3d07d9cbee Fixed debug message parameter.
git-svn-id: http://voip.null.ro/svn/yate@3090 acf43c95-373e-0410-b603-e72c3f656dc1
2010-02-18 13:29:37 +00:00
marian 8630c28ec1 Implemented support for multiple remote domains on incoming s2s streams. Implemented XEP 0185 and 0220. Added module option and stream flag used to disable RFC3920 features advertising on incoming s2s streams.
git-svn-id: http://voip.null.ro/svn/yate@3085 acf43c95-373e-0410-b603-e72c3f656dc1
2010-02-18 11:40:24 +00:00
marian 1ef003f69f Added user.notify message handler used in client mode to close all channels belonging to an unregistered local account.
git-svn-id: http://voip.null.ro/svn/yate@3084 acf43c95-373e-0410-b603-e72c3f656dc1
2010-02-16 16:23:28 +00:00
paulc 2b2f7e2380 Use CR LF for multi-line message outputs, fixes telnet and Windows logging.
git-svn-id: http://voip.null.ro/svn/yate@3082 acf43c95-373e-0410-b603-e72c3f656dc1
2010-02-15 21:07:17 +00:00
paulc dcaf541c92 The default stream mode is adapted to the type of transport.
Constified some methods of the Transport class.


git-svn-id: http://voip.null.ro/svn/yate@3081 acf43c95-373e-0410-b603-e72c3f656dc1
2010-02-15 20:57:37 +00:00
paulc 0db9124255 The MGCP-CA module needs to be early init as the endpoint must be set up when ysigchan or analog need to create circuits.
git-svn-id: http://voip.null.ro/svn/yate@3076 acf43c95-373e-0410-b603-e72c3f656dc1
2010-02-09 20:52:16 +00:00
andrei 50a37a289d Fixed configuration of Cisco SM module.
git-svn-id: http://voip.null.ro/svn/yate@3075 acf43c95-373e-0410-b603-e72c3f656dc1
2010-02-08 15:57:32 +00:00
marian fe684b1fd2 Fixed bug: don't send local user's presence when its subscription request is aproved.
git-svn-id: http://voip.null.ro/svn/yate@3074 acf43c95-373e-0410-b603-e72c3f656dc1
2010-02-06 23:34:27 +00:00
marian 115558cfb3 Notify presence when a subscription request is aproved by a local user.
git-svn-id: http://voip.null.ro/svn/yate@3073 acf43c95-373e-0410-b603-e72c3f656dc1
2010-02-06 23:04:07 +00:00
marian b4cc407b2f Try harder to set the from attribute of an offline chat before storing it.
git-svn-id: http://voip.null.ro/svn/yate@3072 acf43c95-373e-0410-b603-e72c3f656dc1
2010-02-05 21:11:05 +00:00
paulc e04a1ad691 Shortened some expressions, added braces to avoid compiler warnings.
git-svn-id: http://voip.null.ro/svn/yate@3070 acf43c95-373e-0410-b603-e72c3f656dc1
2010-02-04 12:59:48 +00:00
paulc 2c29e87f01 Set the proper PPID for M2PA, propagate to SCTP socket.
Fixed order of sequence numbers in M2PA.
Fixed the insertion/removal of priority octet in M2PA transport.


git-svn-id: http://voip.null.ro/svn/yate@3067 acf43c95-373e-0410-b603-e72c3f656dc1
2010-02-04 02:01:40 +00:00
paulc 65c7a2da30 Added method to set the desired SCTP protocol payload identification (PPID).
git-svn-id: http://voip.null.ro/svn/yate@3066 acf43c95-373e-0410-b603-e72c3f656dc1
2010-02-04 01:59:27 +00:00
paulc 8be9e9991a Add the REGISTER request URI and Call-ID to the user.(un)register messages.
git-svn-id: http://voip.null.ro/svn/yate@3063 acf43c95-373e-0410-b603-e72c3f656dc1
2010-02-02 23:59:54 +00:00
paulc 580f5c0c9e Detect if sctp_connectx() has 3 or 4 arguments.
git-svn-id: http://voip.null.ro/svn/yate@3059 acf43c95-373e-0410-b603-e72c3f656dc1
2010-02-02 16:46:53 +00:00
andrei ecd075d0ac Added generic support for SS7 SIGTRAN protocol stack.
Added SCTP sockets support based on Linux Kernel SCTP.
Added SS7 Sigtran M2PA protocol support.


git-svn-id: http://voip.null.ro/svn/yate@3058 acf43c95-373e-0410-b603-e72c3f656dc1
2010-02-02 14:38:12 +00:00
andrei 269ec0618e Allow configuration of components from message.
Configuration of ysigchan is saved to file


git-svn-id: http://voip.null.ro/svn/yate@3056 acf43c95-373e-0410-b603-e72c3f656dc1
2010-02-02 13:13:44 +00:00
paulc 102f7af8ef Use PThread::WaitForTermination() to wait for call proxy thread, avoid 100% CPU load if call takes long to set up.
Give names to PWLib threads to aid in debugging.


git-svn-id: http://voip.null.ro/svn/yate@3053 acf43c95-373e-0410-b603-e72c3f656dc1
2010-02-01 14:44:31 +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
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 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 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 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
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 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
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 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
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
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
marian fc0bbccc96 Use configuration section name as default debug name for a span.
git-svn-id: http://voip.null.ro/svn/yate@2977 acf43c95-373e-0410-b603-e72c3f656dc1
2009-12-03 11:25:10 +00:00
marian 15812c43a6 Add stream type prefix to stream name. Added account to client streams. A client stream can now be retrieved by account from the jabber client engine.
git-svn-id: http://voip.null.ro/svn/yate@2976 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-27 12:17:17 +00:00
marian b561088b3b Implemented 'online' operation in resource.notify handler.
git-svn-id: http://voip.null.ro/svn/yate@2975 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-27 10:01:04 +00:00
marian f0177d8650 Use local ip returned by 'jabber.account' message for RTP setup.
git-svn-id: http://voip.null.ro/svn/yate@2974 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-27 08:49:10 +00:00
marian 917bafa4a4 Add stream local ip when handling jabber.account messages.
git-svn-id: http://voip.null.ro/svn/yate@2973 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-27 08:47:43 +00:00
marian ff16bf8438 Add line/account to jabber.iq messages.
git-svn-id: http://voip.null.ro/svn/yate@2972 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-26 16:06:00 +00:00
marian 47ce975c68 Explicitely terminate the SSL socket.
git-svn-id: http://voip.null.ro/svn/yate@2970 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-26 15:22:38 +00:00
marian 256f06d80d Avoid adding empty name attribute to roster items. Fixed some comments.
git-svn-id: http://voip.null.ro/svn/yate@2967 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-26 13:35:55 +00:00
marian eb21e10663 Implemented resource.notify, resource.subscribe and user.roster handlers. Handle chat message delay child.
git-svn-id: http://voip.null.ro/svn/yate@2966 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-26 09:45:22 +00:00
paulc a13a89b4de Copy by default some parameters from call.execute to chan.startup of outgoing calls.
git-svn-id: http://voip.null.ro/svn/yate@2965 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-25 18:36:34 +00:00
paulc 6a433cfe25 Copy by default some parameters from call.execute to chan.startup of outgoing calls.
git-svn-id: http://voip.null.ro/svn/yate@2964 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-25 18:34:54 +00:00
marian 5eba85c23f Fixed bug: don't try to update again when adding a new contact on subscription approval.
git-svn-id: http://voip.null.ro/svn/yate@2961 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-24 16:52:29 +00:00
paulc 61481d6310 Allow Q931::IdentifiedChannelNonExistent starting with 1.15.6 (Mimas Patch 2).
git-svn-id: http://voip.null.ro/svn/yate@2957 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-19 15:35:20 +00:00
paulc 05a1e6fbb7 Ignore Q931 cause IdentifiedChannelNonExistent in OpenH323 versions older than 1.18.0 where it was not defined.
git-svn-id: http://voip.null.ro/svn/yate@2956 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-19 15:31:36 +00:00
marian f470999b27 Fixed offline messages delivering bug.
git-svn-id: http://voip.null.ro/svn/yate@2955 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-19 08:07:42 +00:00
paulc 0589439edf Added regexroute function to retrieve Engine runtime parameters.
Better error checking before assuming a regexroute variable is requested.


git-svn-id: http://voip.null.ro/svn/yate@2953 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-18 13:20:52 +00:00
paulc 6a2f995663 Properly handle binary operators if one or both operands are empty strings.
git-svn-id: http://voip.null.ro/svn/yate@2952 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-18 12:56:56 +00:00
marian 6b852b52b1 Added extra query used to fully update a contact (including subscription). Check user existence before updating the roster.
git-svn-id: http://voip.null.ro/svn/yate@2951 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-17 11:29:03 +00:00
paulc 403425fd81 Support for multiple rmanager listeners, each with its own settings.
Support for SSL encrypted connections (needs the openssl module).
Example of connecting with SSL activated: telnet-ssl -z ssl 10.0.0.1 5038


git-svn-id: http://voip.null.ro/svn/yate@2948 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-14 14:38:57 +00:00
marian 098ba03ebc Added local/remote ip to stream detail status.
git-svn-id: http://voip.null.ro/svn/yate@2944 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-13 12:31:43 +00:00
marian aa0b6ec97d Implemented c2s non sasl authentication. Added listener for direct c2s SSL connections. Restrict client resources with the same name while authenticating using non sasl.
git-svn-id: http://voip.null.ro/svn/yate@2943 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-13 11:36:05 +00:00
paulc a6c98d7dbc Lock the connection list while checking if the rmanager module is busy.
git-svn-id: http://voip.null.ro/svn/yate@2938 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-12 15:03:10 +00:00
paulc 4bdb65c58c Added ability to authenticate even observer only (non-admin) connections.
Added initial timeout for non-authenticated connections, default 30s.


git-svn-id: http://voip.null.ro/svn/yate@2937 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-12 15:00:24 +00:00
marian 25b2b8e357 Added resource to jid when sending user.unregister.
git-svn-id: http://voip.null.ro/svn/yate@2932 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-11 16:11:48 +00:00
marian fc6ed47490 Removed incorrect roster check when routing iq stanzas.
git-svn-id: http://voip.null.ro/svn/yate@2931 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-11 14:21:17 +00:00
paulc 359d49bed3 Set the "peerid" parameter in a conference "joined" notification.
git-svn-id: http://voip.null.ro/svn/yate@2929 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-11 13:52:14 +00:00
marian 1105b643ee Create a new user when requested and database query succedded. Handle user add notifications when users are loaded on startup.
git-svn-id: http://voip.null.ro/svn/yate@2928 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-11 13:47:44 +00:00
marian 576dec0fa4 Save entity caps file in user config path when in client mode. Process entity caps responses.
git-svn-id: http://voip.null.ro/svn/yate@2927 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-11 13:46:04 +00:00
paulc efc87639bb Allow reversing the pbxassist channel ID matching condition.
git-svn-id: http://voip.null.ro/svn/yate@2925 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-11 13:36:25 +00:00
paulc d079caaae2 Made Yate 3 build in Visual Studio, fixed some bugs discovered by the VC++ compiler.
git-svn-id: http://voip.null.ro/svn/yate@2923 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-10 18:44:44 +00:00
marian 1e454436f9 Add server items to serviced domains (allow s2s streams on behalf of them).
git-svn-id: http://voip.null.ro/svn/yate@2920 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-10 15:55:09 +00:00
marian 6fa880cebb Added configurable option used to handle (un)subscribe requests and send presence. Fixed responses to disco info requests.
git-svn-id: http://voip.null.ro/svn/yate@2918 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-10 15:31:44 +00:00
paulc d390d2ff89 Added SVN and CVS ignores.
git-svn-id: http://voip.null.ro/svn/yate@2911 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-09 19:06:12 +00:00
paulc 751a073c4d By default ignore ABORT and OVERRUN error bits as they likely are not related to current packet.
Report error bits only if they change.


git-svn-id: http://voip.null.ro/svn/yate@2908 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-09 18:59:56 +00:00
marian 8a20b79a24 The subscription module can now load all user rosters at startup.
git-svn-id: http://voip.null.ro/svn/yate@2907 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-09 14:16:04 +00:00
marian 39e58ed722 Removed user.(un)register message handlers.
git-svn-id: http://voip.null.ro/svn/yate@2906 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-09 14:07:43 +00:00
marian 2b326634dc The number of jabber server stanza workers is now configurable.
git-svn-id: http://voip.null.ro/svn/yate@2905 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-09 14:01:47 +00:00
paulc 5864092eea Actually return the built iq message.
git-svn-id: http://voip.null.ro/svn/yate@2902 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-07 11:52:14 +00:00
marian bdb2bd4ec3 Fixed message parameter name. Add iq namespace to message only for set/get type.
git-svn-id: http://voip.null.ro/svn/yate@2900 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-05 15:40:49 +00:00
marian 73b051b6f5 Route iq stanzas. Implemented chat message handler. Implemented account contact/instance query.
git-svn-id: http://voip.null.ro/svn/yate@2899 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-05 15:39:12 +00:00
marian 49d7c524c4 Added line (account) to jingle session and connection. Fixed jingle channel stanza send. Request resource caps when making an outgoing call.
git-svn-id: http://voip.null.ro/svn/yate@2898 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-05 15:25:33 +00:00
paulc b2239bb8d9 Added next=... and drop=... timer modifiers to fork separators.
git-svn-id: http://voip.null.ro/svn/yate@2896 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-04 17:14:56 +00:00
marian c3612224e9 Fixed protocol check in user.login handler.
git-svn-id: http://voip.null.ro/svn/yate@2894 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-04 15:55:04 +00:00
marian a5a3672ead Added external component support to jabber server.
git-svn-id: http://voip.null.ro/svn/yate@2893 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-04 14:29:28 +00:00
marian d6fceae1dc Fixed mutex lock.
git-svn-id: http://voip.null.ro/svn/yate@2892 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-04 13:52:25 +00:00
marian 9a3703f078 Fixed xdebug compile error.
git-svn-id: http://voip.null.ro/svn/yate@2891 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-04 09:17:44 +00:00
paulc 37213c7aac Removed qualifier from some OpenSSL calls that are sometimes macros.
git-svn-id: http://voip.null.ro/svn/yate@2888 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-03 12:39:28 +00:00
paulc 1c6e7c9a7c Added support for T.38 fax terminal.
Added UDPTL transport in libyrtp and RTP channel.


git-svn-id: http://voip.null.ro/svn/yate@2885 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-03 10:49:12 +00:00
marian 76c182e440 Implemented jabber server. Changed jingle channel to support the new jabber library. Replaced tinyxml with yate own XML library. Added openssl support for server. Work in progress in jabber client support.
git-svn-id: http://voip.null.ro/svn/yate@2882 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-02 16:05:39 +00:00
paulc 36696c0105 Added module that counts calls per user specified cathegory, usually context.
git-svn-id: http://voip.null.ro/svn/yate@2875 acf43c95-373e-0410-b603-e72c3f656dc1
2009-10-28 16:59:25 +00:00
paulc 84b7cefe3d 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://voip.null.ro/svn/yate@2874 acf43c95-373e-0410-b603-e72c3f656dc1
2009-10-21 14:10:47 +00:00
paulc 3624562f55 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://voip.null.ro/svn/yate@2873 acf43c95-373e-0410-b603-e72c3f656dc1
2009-10-20 22:54:56 +00:00
paulc f1db0be716 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://voip.null.ro/svn/yate@2871 acf43c95-373e-0410-b603-e72c3f656dc1
2009-10-20 15:04:28 +00:00
paulc 67a48e6e55 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://voip.null.ro/svn/yate@2869 acf43c95-373e-0410-b603-e72c3f656dc1
2009-10-16 16:52:16 +00:00
paulc 6620daff86 Chain the debugging of the SIP engine to the SIP channels plugin.
git-svn-id: http://voip.null.ro/svn/yate@2867 acf43c95-373e-0410-b603-e72c3f656dc1
2009-10-16 12:04:32 +00:00
paulc b11b08b097 Convert RTP telephone-event 36 (CNG) to a call.fax message, indicate detection method.
git-svn-id: http://voip.null.ro/svn/yate@2866 acf43c95-373e-0410-b603-e72c3f656dc1
2009-10-05 14:50:37 +00:00
paulc c229b73948 It is possible to configure --with-spandsp=static to avoid runtime version trouble.
git-svn-id: http://voip.null.ro/svn/yate@2865 acf43c95-373e-0410-b603-e72c3f656dc1
2009-10-05 10:36:37 +00:00
paulc c9b481c5ba Support for newer versions of spandsp with separate RX and TX pages stats.
git-svn-id: http://voip.null.ro/svn/yate@2864 acf43c95-373e-0410-b603-e72c3f656dc1
2009-10-05 08:53:43 +00:00
paulc b2a0f337d4 Accept some spandsp versions older than 0.0.6, provide wrappers around incompatible member access methods.
git-svn-id: http://voip.null.ro/svn/yate@2861 acf43c95-373e-0410-b603-e72c3f656dc1
2009-10-02 13:13:45 +00:00
paulc cc722c33d0 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://voip.null.ro/svn/yate@2856 acf43c95-373e-0410-b603-e72c3f656dc1
2009-09-23 15:07:50 +00:00
paulc 2371fd409d Mark the RTP session invalid on reception of a termination request.
This allows connected sources to detach early.


git-svn-id: http://voip.null.ro/svn/yate@2855 acf43c95-373e-0410-b603-e72c3f656dc1
2009-09-23 14:53:54 +00:00
paulc 3569826129 Unlock the session mutex while attempting to push the data to the session user.
git-svn-id: http://voip.null.ro/svn/yate@2851 acf43c95-373e-0410-b603-e72c3f656dc1
2009-09-22 11:57:04 +00:00
marian c7780f1165 Always reset I/O blocking on listener and accepted sockets. Added more debug.
git-svn-id: http://voip.null.ro/svn/yate@2847 acf43c95-373e-0410-b603-e72c3f656dc1
2009-09-21 12:41:01 +00:00
paulc f9e2c83d85 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://voip.null.ro/svn/yate@2845 acf43c95-373e-0410-b603-e72c3f656dc1
2009-09-18 11:17:50 +00:00
paulc e02915eeff Moved all code in the Cisco SM module to an anonymous namespace where it belongs.
git-svn-id: http://voip.null.ro/svn/yate@2844 acf43c95-373e-0410-b603-e72c3f656dc1
2009-09-18 10:36:41 +00:00
paulc 95738f5dbf Explicitely join all reflector components to the RTPGroup.
git-svn-id: http://voip.null.ro/svn/yate@2843 acf43c95-373e-0410-b603-e72c3f656dc1
2009-09-16 11:06:17 +00:00
paulc 90f8e2e022 Added a RTP reflector (dumb proxy) that can be used with SDP forwarding to implement a codec transparent SIP ALG.
git-svn-id: http://voip.null.ro/svn/yate@2842 acf43c95-373e-0410-b603-e72c3f656dc1
2009-09-15 16:14:28 +00:00
paulc 60cf47186b Detect and report malformed function calls that caused a forever loop.
git-svn-id: http://voip.null.ro/svn/yate@2841 acf43c95-373e-0410-b603-e72c3f656dc1
2009-09-15 14:18:23 +00:00
paulc fd3ef5f616 Removed superfluous warning when the RTP module receives an unmatched termination message.
git-svn-id: http://voip.null.ro/svn/yate@2840 acf43c95-373e-0410-b603-e72c3f656dc1
2009-09-14 19:05:28 +00:00
paulc 657c2fef63 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://voip.null.ro/svn/yate@2839 acf43c95-373e-0410-b603-e72c3f656dc1
2009-09-14 18:52:53 +00:00
paulc 8e4d850d42 Added default RTP payloads for MPEG media types.
git-svn-id: http://voip.null.ro/svn/yate@2838 acf43c95-373e-0410-b603-e72c3f656dc1
2009-09-14 18:49:04 +00:00
paulc 2d0f41a0e4 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://voip.null.ro/svn/yate@2835 acf43c95-373e-0410-b603-e72c3f656dc1
2009-09-14 11:02:27 +00:00
paulc 257e026bb3 Display consumer construction and destruction when compiled for debugging.
git-svn-id: http://voip.null.ro/svn/yate@2834 acf43c95-373e-0410-b603-e72c3f656dc1
2009-09-14 10:43:26 +00:00
paulc cea5f52b61 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://voip.null.ro/svn/yate@2832 acf43c95-373e-0410-b603-e72c3f656dc1
2009-09-14 09:06:16 +00:00
paulc 402b2f7a03 Call the ThreadedSource::cleanup() from reimplemented method in descendants.
Spaced and moved together the class methods in source code (aestethic).


git-svn-id: http://voip.null.ro/svn/yate@2829 acf43c95-373e-0410-b603-e72c3f656dc1
2009-09-08 13:19:22 +00:00
paulc 2ebf04b2a3 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://voip.null.ro/svn/yate@2827 acf43c95-373e-0410-b603-e72c3f656dc1
2009-09-07 23:49:12 +00:00
paulc e03add590b Key ^O provides handy cycling of output and debug modes in rmanager.
git-svn-id: http://voip.null.ro/svn/yate@2826 acf43c95-373e-0410-b603-e72c3f656dc1
2009-09-07 22:15:42 +00:00
paulc 58ea5179a6 Print the count of forcibly finalized records before doing it as it may take a long time to complete.
git-svn-id: http://voip.null.ro/svn/yate@2825 acf43c95-373e-0410-b603-e72c3f656dc1
2009-09-07 21:22:33 +00:00
paulc 6857c9b34b Use the newly added SIPDialog methods.
Identify the dialogs RFC 3261 style (only by Call-ID, From-tag, To-tag) ignoring the From-URI and To-URI.


git-svn-id: http://voip.null.ro/svn/yate@2824 acf43c95-373e-0410-b603-e72c3f656dc1
2009-09-06 15:00:22 +00:00
oana e6dbb33d71 MySQL connection pool implemented per database account. The "database" message parameter "results" has changed its meaning. For this, please check documentation.
git-svn-id: http://voip.null.ro/svn/yate@2821 acf43c95-373e-0410-b603-e72c3f656dc1
2009-09-03 14:58:57 +00:00
paulc 555f945213 Fixed a few bugs introduced by Rev. 2805: Clear the data endpoints when the transport info changes, use the proper default audio formats when none specified.
git-svn-id: http://voip.null.ro/svn/yate@2818 acf43c95-373e-0410-b603-e72c3f656dc1
2009-09-01 15:18:21 +00:00
paulc c04525cc9a Merge the parent provided parameters to the config file section.
Display parameters used to create the SLT if compiled in DEBUG mode.


git-svn-id: http://voip.null.ro/svn/yate@2813 acf43c95-373e-0410-b603-e72c3f656dc1
2009-08-31 14:44:39 +00:00
paulc 37059faf58 Added configuration parameter "autostart" so MTP2, MTP3 and Cisco SLT may be inhibited at startup.
Fixed the way Cisco SLT notifies the MTP3 about alignment status changes.


git-svn-id: http://voip.null.ro/svn/yate@2810 acf43c95-373e-0410-b603-e72c3f656dc1
2009-08-26 15:58:50 +00:00
andrei 6e28715dea Used Socket::invalidHandle() in tdm device constructor
git-svn-id: http://voip.null.ro/svn/yate@2809 acf43c95-373e-0410-b603-e72c3f656dc1
2009-08-26 10:45:38 +00:00
andrei e2bfb1efaf Fixed bug: close tdm device when destroyed. Use Socket::invalidHandle() for invalid device handle. Changed debug.
git-svn-id: http://voip.null.ro/svn/yate@2808 acf43c95-373e-0410-b603-e72c3f656dc1
2009-08-26 09:35:32 +00:00
paulc aaa1c2048d Use the new SDP library in SIP and MGCP.
The PSTN channel can negotiate RTP forwarding if the circuits are terminated on a MGCP gateway.


git-svn-id: http://voip.null.ro/svn/yate@2805 acf43c95-373e-0410-b603-e72c3f656dc1
2009-08-24 12:09:34 +00:00
paulc d6a1a30987 Create and populate the call.preroute message in the call constructor, use saved message to start routing.
git-svn-id: http://voip.null.ro/svn/yate@2800 acf43c95-373e-0410-b603-e72c3f656dc1
2009-08-20 14:25:24 +00:00
paulc 6c2f3f9fd4 Copy the packet data and append extra zeros for CRC before sending to Zaptel.
Altering a const buffer is a serious violation of the calling convention.


git-svn-id: http://voip.null.ro/svn/yate@2799 acf43c95-373e-0410-b603-e72c3f656dc1
2009-08-20 12:40:58 +00:00
paulc ff4e000005 Once a thread was started for an external module let it do the destruction in its cleanup, only unuse() if thread failed to start.
Bug report and solution by Allan.


git-svn-id: http://voip.null.ro/svn/yate@2797 acf43c95-373e-0410-b603-e72c3f656dc1
2009-08-19 13:55:22 +00:00
paulc 97313228d6 Added parameter "queuetime" for the CDR builder to know how long a call waited in a queue.
All calls in a queue can be dropped by specifying queuename/* as id.
A call to a "single" type queue is dropped when its operator call fails.


git-svn-id: http://voip.null.ro/svn/yate@2795 acf43c95-373e-0410-b603-e72c3f656dc1
2009-08-18 14:55:25 +00:00
paulc aeba470ab8 Fixed the way the remote MTP2 is disconnected.
git-svn-id: http://voip.null.ro/svn/yate@2794 acf43c95-373e-0410-b603-e72c3f656dc1
2009-08-14 18:15:04 +00:00
paulc 492bf3ac57 Added new setting "prerouteall" to bypass context and caller check.
Documented the other global settings in section [priorities].


git-svn-id: http://voip.null.ro/svn/yate@2793 acf43c95-373e-0410-b603-e72c3f656dc1
2009-08-14 16:27:46 +00:00
paulc 645a72b5d7 Process a 2xx answer to a forked SIP call after changing the disalog tag to match.
git-svn-id: http://voip.null.ro/svn/yate@2792 acf43c95-373e-0410-b603-e72c3f656dc1
2009-08-14 12:52:40 +00:00
paulc e2c68cb573 Copy the "maxlen" and "notify" parameters to the conference recording call leg.
git-svn-id: http://voip.null.ro/svn/yate@2789 acf43c95-373e-0410-b603-e72c3f656dc1
2009-08-13 11:57:24 +00:00
paulc 07daf0aa54 In the outbound SIP call legs put the generated Call-ID in chan.startup to be available for CDR building.
git-svn-id: http://voip.null.ro/svn/yate@2788 acf43c95-373e-0410-b603-e72c3f656dc1
2009-08-13 11:39:44 +00:00
paulc 71f34fd5cf Added code and setting to prevent rebuilding the RTP when only the remote port has changed in the SDP offer.
This can prevent a neverending sequence of reINVITEs, each end trying to adjust to the changes of the other.


git-svn-id: http://voip.null.ro/svn/yate@2786 acf43c95-373e-0410-b603-e72c3f656dc1
2009-08-12 15:18:36 +00:00
paulc 4e9abe5c08 Remember the WaveConsumer that must be disconnected, remove it from the proper consumer, call record or peer record.
git-svn-id: http://voip.null.ro/svn/yate@2785 acf43c95-373e-0410-b603-e72c3f656dc1
2009-08-12 14:09:32 +00:00
paulc 764fcf62c2 The rmanager control message can have an arbitrary number of parameters.
git-svn-id: http://voip.null.ro/svn/yate@2782 acf43c95-373e-0410-b603-e72c3f656dc1
2009-08-11 14:29:07 +00:00
paulc 3b368cf60e Improved RUDP debugging messages to include controlling session name.
The default RUDP sequence number is now random.
Preliminary support for RUDP v1 and version guessing from SYN length.


git-svn-id: http://voip.null.ro/svn/yate@2781 acf43c95-373e-0410-b603-e72c3f656dc1
2009-08-11 13:46:05 +00:00
paulc e1fdc93a82 Return socketError() whenever an error code is stored in the SSL socket.
git-svn-id: http://voip.null.ro/svn/yate@2776 acf43c95-373e-0410-b603-e72c3f656dc1
2009-08-03 09:22:37 +00:00
paulc bfb3a55391 Fixed the way disconnected circuits are reported from MGCP.
git-svn-id: http://voip.null.ro/svn/yate@2773 acf43c95-373e-0410-b603-e72c3f656dc1
2009-07-28 13:04:32 +00:00
marian 4453b1906a Added capability to forward circuit events upwards to signalling module.
git-svn-id: http://voip.null.ro/svn/yate@2772 acf43c95-373e-0410-b603-e72c3f656dc1
2009-07-28 12:52:13 +00:00
paulc da81e205c9 Implemented basic control operation for SS7 Layer 2.
git-svn-id: http://voip.null.ro/svn/yate@2771 acf43c95-373e-0410-b603-e72c3f656dc1
2009-07-28 10:51:50 +00:00
paulc 67665e11e0 Added support for issuing generic control operations.
git-svn-id: http://voip.null.ro/svn/yate@2770 acf43c95-373e-0410-b603-e72c3f656dc1
2009-07-27 21:36:02 +00:00