Commit Graph

3292 Commits

Author SHA1 Message Date
marian 8efe2a829a Added Compressor.cpp source file to Windows project.
git-svn-id: http://voip.null.ro/svn/yate@3424 acf43c95-373e-0410-b603-e72c3f656dc1
2010-07-09 10:30:09 +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
paulc 5770afed26 Made more visible (but still only when compiled for debugging) the periodic circuit restarts.
git-svn-id: http://voip.null.ro/svn/yate@3422 acf43c95-373e-0410-b603-e72c3f656dc1
2010-07-09 09:29:22 +00:00
paulc 8acb310243 Send the correct SLS if sls=cic (ITU style).
Added manual sending of maintenance BLK and UBL requests.


git-svn-id: http://voip.null.ro/svn/yate@3421 acf43c95-373e-0410-b603-e72c3f656dc1
2010-07-08 16:34:58 +00:00
paulc 4cabebdfe5 Answer to circuit (un)blocking messages with the same SLS as the request came.
git-svn-id: http://voip.null.ro/svn/yate@3420 acf43c95-373e-0410-b603-e72c3f656dc1
2010-07-08 15:53:03 +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
marian 8e05c7ed4c Added service discovery support.
git-svn-id: http://voip.null.ro/svn/yate@3416 acf43c95-373e-0410-b603-e72c3f656dc1
2010-07-05 14:35:56 +00:00
paulc 551992e4f7 Use a variable to keep the status of early media.
Add the inband indication to Alerting too, not only to Progress.


git-svn-id: http://voip.null.ro/svn/yate@3415 acf43c95-373e-0410-b603-e72c3f656dc1
2010-07-02 15:42:33 +00:00
paulc e923508918 Set the default Wanpipe TDM circuit idle code according to the default G.711 law.
Added ability to set the circuit number as idle code, helps in identifying problems.


git-svn-id: http://voip.null.ro/svn/yate@3414 acf43c95-373e-0410-b603-e72c3f656dc1
2010-07-02 11:14:42 +00:00
paulc 19e5fc2654 Always add the early media information to relevant PSTN channel messages.
git-svn-id: http://voip.null.ro/svn/yate@3413 acf43c95-373e-0410-b603-e72c3f656dc1
2010-07-01 15:25:54 +00:00
paulc 716a39b488 Deal better with early media information in ISDN (in-band-info in Progress and Alerting).
git-svn-id: http://voip.null.ro/svn/yate@3412 acf43c95-373e-0410-b603-e72c3f656dc1
2010-07-01 15:24:31 +00:00
paulc 49c870ca48 Take into account the "inband" flag in the Optional Backward Call Indicators in ISUP CPR messages.
git-svn-id: http://voip.null.ro/svn/yate@3411 acf43c95-373e-0410-b603-e72c3f656dc1
2010-07-01 15:20:07 +00:00
paulc 1a5b0e1eed Deal better with early media information availability in ISUP (inband during ACM or CPR).
git-svn-id: http://voip.null.ro/svn/yate@3410 acf43c95-373e-0410-b603-e72c3f656dc1
2010-07-01 15:06:52 +00:00
paulc e05f02f51e Added more helper methods to manipulate flags in a flags list.
git-svn-id: http://voip.null.ro/svn/yate@3409 acf43c95-373e-0410-b603-e72c3f656dc1
2010-07-01 15:01:16 +00:00
paulc fa59b60f43 Have a default prefix starting with "i" for setting parameters on incoming call leg from routing.
Avoids confusion with parameters (prefixed with "o...") set for the outgoing call leg.


git-svn-id: http://voip.null.ro/svn/yate@3408 acf43c95-373e-0410-b603-e72c3f656dc1
2010-06-30 10:17:06 +00:00
paulc b58683909b Always copy parameters from Yate messages to signaling messages.
Copy parameters starting with a CapitalLetter in all messages, not just IAM.
Made static several helper functions to avoid symbol pollution.


git-svn-id: http://voip.null.ro/svn/yate@3407 acf43c95-373e-0410-b603-e72c3f656dc1
2010-06-29 19:46:31 +00:00
paulc 2c288088be Fixed the status report of regfile: display proper stats, do not always list registered users, replace disallowed characters.
Display the password length when one is retrieved for an user.


git-svn-id: http://voip.null.ro/svn/yate@3406 acf43c95-373e-0410-b603-e72c3f656dc1
2010-06-29 14:46:46 +00:00
paulc 6b86d3be09 Added support to emit SS7 Management messages (COO,CBD,TFP,TFR,TFA,TRA) with arbitrary fields from chan.control message or rmanager command.
git-svn-id: http://voip.null.ro/svn/yate@3405 acf43c95-373e-0410-b603-e72c3f656dc1
2010-06-29 09:35:02 +00:00
paulc d49b070451 Added a "reset" control command to fast reset ISUP circuits.
Default reset interval for both ISUP and ISDN is 300s with 60s minimum.


git-svn-id: http://voip.null.ro/svn/yate@3404 acf43c95-373e-0410-b603-e72c3f656dc1
2010-06-25 14:48:29 +00:00
marian 0f09c45fb8 Added methods used to set an object's image from raw data and QPixmap. Added extra parameter used to scale the image to target size when applicable.
git-svn-id: http://voip.null.ro/svn/yate@3403 acf43c95-373e-0410-b603-e72c3f656dc1
2010-06-25 09:34:31 +00:00
marian c9ff2d0f69 Use setRowCount(0) to clear a table.
git-svn-id: http://voip.null.ro/svn/yate@3402 acf43c95-373e-0410-b603-e72c3f656dc1
2010-06-25 08:53:31 +00:00
marian e6cc8580d1 Increase table row count when appending rows (faster than adding one by one).
git-svn-id: http://voip.null.ro/svn/yate@3401 acf43c95-373e-0410-b603-e72c3f656dc1
2010-06-25 08:50:18 +00:00
marian 80a95630f8 Fixed bug: check widget type before casting it.
git-svn-id: http://voip.null.ro/svn/yate@3400 acf43c95-373e-0410-b603-e72c3f656dc1
2010-06-25 07:48:41 +00:00
paulc 88cb7cd7bc Use the "direction" parameter with fallback to "status" to decide if guest mode is to be used.
Patch by Allan Sandfeld Jensen.


git-svn-id: http://voip.null.ro/svn/yate@3399 acf43c95-373e-0410-b603-e72c3f656dc1
2010-06-24 14:02:48 +00:00
paulc 0d4a37642b Get onhold source from a channel parameter, making it possible to dynamically change it based on states or routing.
Needs to include "onhold" in the list of "pbxparams" to be stored.
Patch by Allan Sandfeld Jensen modified to use "onhold" as parameter name.


git-svn-id: http://voip.null.ro/svn/yate@3398 acf43c95-373e-0410-b603-e72c3f656dc1
2010-06-24 12:51:14 +00:00
paulc 3ee201a67e Add (dis)connect reason to all PBX operations with overridable defaults.
Default reasons for operReturnHold and operDoTransfer provided by Allan Sandfeld Jensen.


git-svn-id: http://voip.null.ro/svn/yate@3397 acf43c95-373e-0410-b603-e72c3f656dc1
2010-06-24 12:35:40 +00:00
paulc 6ff21bba45 Explicitely initialize the m_running field of ExtModChan too.
This was lost from a previous correct patch of Allan Sandfeld Jensen.


git-svn-id: http://voip.null.ro/svn/yate@3396 acf43c95-373e-0410-b603-e72c3f656dc1
2010-06-24 12:17:11 +00:00
paulc d60f7df5da Retain the external channel connect reason if available in call.execute message.
This is needed for some PBX operations.
Patch by Allan Sandfeld Jensen.


git-svn-id: http://voip.null.ro/svn/yate@3395 acf43c95-373e-0410-b603-e72c3f656dc1
2010-06-24 12:12:34 +00:00
paulc dc8bfca036 Initialize all fields of ExtModChan, clean up safer, use the safer version of getPeerId().
Patch by Allan Sandfeld Jensen.


git-svn-id: http://voip.null.ro/svn/yate@3394 acf43c95-373e-0410-b603-e72c3f656dc1
2010-06-24 12:09:17 +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 4275a9b6d5 Print uptime in days and hh:mm:ss instead of hhhhh:mm:ss so it's easier to read.
git-svn-id: http://voip.null.ro/svn/yate@3392 acf43c95-373e-0410-b603-e72c3f656dc1
2010-06-18 15:05:40 +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 b19d86b8e0 Made several Regexps static const so they are compiled only once, speeds up processing.
One instance spotted by Allan Sandfeld Jensen, others by grep.


git-svn-id: http://voip.null.ro/svn/yate@3389 acf43c95-373e-0410-b603-e72c3f656dc1
2010-06-17 11:08:00 +00:00
paulc 511eddc54e Use the correct table for validating the voice format name.
Fixes setting non-default formats for ISUP call controllers.


git-svn-id: http://voip.null.ro/svn/yate@3388 acf43c95-373e-0410-b603-e72c3f656dc1
2010-06-17 09:56:19 +00:00
paulc 6e7460ed4c Support the ${param$defvalue} syntax in parameter matching similar to parameter expansions.
Original patch by Allan Sandfeld Jensen.


git-svn-id: http://voip.null.ro/svn/yate@3387 acf43c95-373e-0410-b603-e72c3f656dc1
2010-06-16 14:15:44 +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 3878b24178 Fixed a leftover comment.
git-svn-id: http://voip.null.ro/svn/yate@3383 acf43c95-373e-0410-b603-e72c3f656dc1
2010-06-16 10:50:24 +00:00
paulc 6404b73e70 Improved regexroute by allowing multiple extra handlers with different priorities and target contexts.
A match parameter can be specified for such an extra handler.
Original patch (that changed config syntax) by Allan Sandfeld Jensen.


git-svn-id: http://voip.null.ro/svn/yate@3382 acf43c95-373e-0410-b603-e72c3f656dc1
2010-06-16 10:46:22 +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
andrei a522ee0863 Added possibility to modify parameters in call.route message.
Added option to call alternatives for an account.
Improved reload.


git-svn-id: http://voip.null.ro/svn/yate@3378 acf43c95-373e-0410-b603-e72c3f656dc1
2010-06-15 07:32:09 +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 b73742b1e9 Only block the assignment operators of MimeHeaderLine and MimeAuthLine as they already had copy constructors with a default 2nd parameter.
git-svn-id: http://voip.null.ro/svn/yate@3376 acf43c95-373e-0410-b603-e72c3f656dc1
2010-06-11 18:04:25 +00:00
paulc e5e9753e15 Added a YNOCOPY macro that declares private inaccessible assignment operator and copy constructor to prevent using the compiler generated ones.
Fixed a bug exposed by this change.


git-svn-id: http://voip.null.ro/svn/yate@3375 acf43c95-373e-0410-b603-e72c3f656dc1
2010-06-11 15:46:06 +00:00