Commit Graph

5596 Commits

Author SHA1 Message Date
paulc ada481cd34 Fixed removing of -g from CFLAGS, was messing other options containing "-g".
git-svn-id: http://voip.null.ro/svn/yate@5884 acf43c95-373e-0410-b603-e72c3f656dc1
2014-07-28 09:24:00 +00:00
paulc 926733cc3f Bumped version to 5.4.1 devel.
git-svn-id: http://voip.null.ro/svn/yate@5883 acf43c95-373e-0410-b603-e72c3f656dc1
2014-07-28 09:09:32 +00:00
paulc a58e001656 Bumped version to 5.4.0 release.
git-svn-id: http://voip.null.ro/svn/yate@5881 acf43c95-373e-0410-b603-e72c3f656dc1
2014-07-25 14:13:14 +00:00
paulc d715665116 Accept SDP crypto with tag 0.
Fixes bug #367.


git-svn-id: http://voip.null.ro/svn/yate@5880 acf43c95-373e-0410-b603-e72c3f656dc1
2014-07-25 13:28:05 +00:00
paulc 41895f1f20 Allow forcibly closing existing audio device to allow opening a new one.
Fixes audio failure when answering calls on Linux.


git-svn-id: http://voip.null.ro/svn/yate@5879 acf43c95-373e-0410-b603-e72c3f656dc1
2014-07-25 13:19:19 +00:00
paulc 12004691ca Added Message.handlers() function to return list of installed message handlers.
git-svn-id: http://voip.null.ro/svn/yate@5878 acf43c95-373e-0410-b603-e72c3f656dc1
2014-07-24 13:03:16 +00:00
marian 9d04525387 Added A6 (AAAA) resolver availability check. Windows: fixed AAAA DNS query data retrieval and DNS query function call for TXT type.
git-svn-id: http://voip.null.ro/svn/yate@5877 acf43c95-373e-0410-b603-e72c3f656dc1
2014-07-22 14:55:03 +00:00
paulc f8a1811b6c Use the proper JsObject constructor with prototype where applicable.
git-svn-id: http://voip.null.ro/svn/yate@5876 acf43c95-373e-0410-b603-e72c3f656dc1
2014-07-22 11:41:55 +00:00
paulc 1dc820fa44 Added DNS resolver object in Javascript.
git-svn-id: http://voip.null.ro/svn/yate@5875 acf43c95-373e-0410-b603-e72c3f656dc1
2014-07-22 11:04:28 +00:00
paulc a820bdcf8a Added Resolver support for A, AAAA and TXT records.
git-svn-id: http://voip.null.ro/svn/yate@5874 acf43c95-373e-0410-b603-e72c3f656dc1
2014-07-22 11:03:38 +00:00
paulc 4391b6f37c Added JsObject constructor that populates prototype from a context.
Added JsRegExp contructor from existing Regexp.


git-svn-id: http://voip.null.ro/svn/yate@5873 acf43c95-373e-0410-b603-e72c3f656dc1
2014-07-22 11:02:44 +00:00
paulc 583fecb7ce Fixed crash in JSON.stringify() for objects having no "__proto__".
git-svn-id: http://voip.null.ro/svn/yate@5872 acf43c95-373e-0410-b603-e72c3f656dc1
2014-07-21 15:33:46 +00:00
oana 023ff203ce Fixed equal comparison for objects.
git-svn-id: http://voip.null.ro/svn/yate@5871 acf43c95-373e-0410-b603-e72c3f656dc1
2014-07-21 12:29:38 +00:00
paulc 86cecbd5dc Added Javascript Array.isArray()
git-svn-id: http://voip.null.ro/svn/yate@5870 acf43c95-373e-0410-b603-e72c3f656dc1
2014-07-18 11:07:19 +00:00
paulc d92a383e0f Added native JSON parser and stringifier.
git-svn-id: http://voip.null.ro/svn/yate@5869 acf43c95-373e-0410-b603-e72c3f656dc1
2014-07-14 08:06:41 +00:00
paulc 08e8bec9e3 Extract native function arguments only after recognizing the function name.
This allows falling back to the native JsObject methods.


git-svn-id: http://voip.null.ro/svn/yate@5868 acf43c95-373e-0410-b603-e72c3f656dc1
2014-07-11 16:54:28 +00:00
paulc 5f82525ace When evaluating naked JsObject fields wrap them in an ExpWrapper.
git-svn-id: http://voip.null.ro/svn/yate@5867 acf43c95-373e-0410-b603-e72c3f656dc1
2014-07-11 16:24:15 +00:00
paulc 1f1e27d68a Added configuration option --enable-lib-exec that can remove executable permission from installed shared libraries and Yate modules.
Attempt to detect the proper default to match Debian / Ubuntu install policy.


git-svn-id: http://voip.null.ro/svn/yate@5866 acf43c95-373e-0410-b603-e72c3f656dc1
2014-07-09 13:50:15 +00:00
marian 9650a7890c Added support for (un)hexify functions: btoh and htob.
git-svn-id: http://voip.null.ro/svn/yate@5865 acf43c95-373e-0410-b603-e72c3f656dc1
2014-07-07 07:52:42 +00:00
paulc a0a8ab9e3f Moved XML classes to the main library.
git-svn-id: http://voip.null.ro/svn/yate@5864 acf43c95-373e-0410-b603-e72c3f656dc1
2014-07-04 15:18:11 +00:00
marian 43d07fe13f Allow calls to be directed from dumb: check for 'direct' parameter, use it as target (skip routing) if present.
git-svn-id: http://voip.null.ro/svn/yate@5863 acf43c95-373e-0410-b603-e72c3f656dc1
2014-07-02 14:14:43 +00:00
paulc 630aa6156b Support forcing to generate a SIP reINVITE.
git-svn-id: http://voip.null.ro/svn/yate@5862 acf43c95-373e-0410-b603-e72c3f656dc1
2014-07-02 07:38:16 +00:00
paulc a70481639e Increment the SDP session version only if the hash of the body (except version) has changed.
This helps with some SIP endpoints that reject any SDP change.


git-svn-id: http://voip.null.ro/svn/yate@5861 acf43c95-373e-0410-b603-e72c3f656dc1
2014-07-02 07:37:11 +00:00
paulc bef3f229d0 Added hashing support for MimeSdpBody.
Speed up MimeSdpBody::addLine() and made it return the added line.


git-svn-id: http://voip.null.ro/svn/yate@5860 acf43c95-373e-0410-b603-e72c3f656dc1
2014-07-02 07:34:19 +00:00
paulc 3f68863afd Made static String::hash() capable of incremental hashing.
git-svn-id: http://voip.null.ro/svn/yate@5859 acf43c95-373e-0410-b603-e72c3f656dc1
2014-07-02 07:30:37 +00:00
paulc a3c3a9be77 Fixed cleanup for TCP connections where same stream is used for In and Out.
git-svn-id: http://voip.null.ro/svn/yate@5858 acf43c95-373e-0410-b603-e72c3f656dc1
2014-06-30 16:07:15 +00:00
paulc d7d4f7a20d Fixed assignment operation changed in Rev. 5856.
Report the ExpOperation types in Engine.print_r().


git-svn-id: http://voip.null.ro/svn/yate@5857 acf43c95-373e-0410-b603-e72c3f656dc1
2014-06-25 16:04:00 +00:00
oana c07e3cc6f3 Fix loss of boolean type information through assignment due to changes in commit 5854.
Do proper cloning on ExpOperation when resolving fields and do proper detection for number conversion on boolean values.



git-svn-id: http://voip.null.ro/svn/yate@5856 acf43c95-373e-0410-b603-e72c3f656dc1
2014-06-25 14:09:32 +00:00
paulc 06353655f8 Implement independent CSeq generators for INVITE dialogs and REGISTER sessions.
Always parse CSeq in base 10, some implementations left pad with zeros.


git-svn-id: http://voip.null.ro/svn/yate@5855 acf43c95-373e-0410-b603-e72c3f656dc1
2014-06-25 12:27:56 +00:00
oana 48c3ed7154 Do proper number conversion for arithmetic operations.
git-svn-id: http://voip.null.ro/svn/yate@5854 acf43c95-373e-0410-b603-e72c3f656dc1
2014-06-24 13:36:53 +00:00
paulc a92946bf0e Use AC_TRY_LINK to check if the PostgreSQL library is linkable.
git-svn-id: http://voip.null.ro/svn/yate@5853 acf43c95-373e-0410-b603-e72c3f656dc1
2014-06-24 12:35:11 +00:00
paulc 200931fdfb Use dpkg-architecture to find multiarch directory name on Debian.
git-svn-id: http://voip.null.ro/svn/yate@5852 acf43c95-373e-0410-b603-e72c3f656dc1
2014-06-24 12:33:33 +00:00
paulc d9e8231ae8 Fixed build on 32 bit systems.
git-svn-id: http://voip.null.ro/svn/yate@5851 acf43c95-373e-0410-b603-e72c3f656dc1
2014-06-23 10:39:35 +00:00
paulc 73a49d139f Terminate I/O streams instead of deleting them when an external module exits.
This prevents a race condition causing random memory corruption.


git-svn-id: http://voip.null.ro/svn/yate@5850 acf43c95-373e-0410-b603-e72c3f656dc1
2014-06-23 10:18:21 +00:00
oana 3cafeac432 Bug fix: do proper resolving for null object in object and array initializers.
Do not copy the singleton null object, provide a clone instead.
While doing object parameter resolving, do not alter prototypes for frozen objects.



git-svn-id: http://voip.null.ro/svn/yate@5849 acf43c95-373e-0410-b603-e72c3f656dc1
2014-06-20 11:27:12 +00:00
paulc eef0e0f798 Minor typo fix.
git-svn-id: http://voip.null.ro/svn/yate@5848 acf43c95-373e-0410-b603-e72c3f656dc1
2014-06-18 13:27:27 +00:00
paulc bde1fa8e54 Added coders for GSM L3 Handover Complete and Handover Failure.
git-svn-id: http://voip.null.ro/svn/yate@5847 acf43c95-373e-0410-b603-e72c3f656dc1
2014-06-18 08:41:35 +00:00
paulc 303e9abc0e Allow retrieving and setting more SIP dialog components.
git-svn-id: http://voip.null.ro/svn/yate@5846 acf43c95-373e-0410-b603-e72c3f656dc1
2014-06-18 08:38:30 +00:00
marian cfa8ec23c8 Fixed bug: set request uri from connection uri if none given when sending a method.
git-svn-id: http://voip.null.ro/svn/yate@5845 acf43c95-373e-0410-b603-e72c3f656dc1
2014-06-17 11:52:07 +00:00
paulc 8dd206b9a2 Allow controlling the number of (re)transmission per SIP transaction.
git-svn-id: http://voip.null.ro/svn/yate@5844 acf43c95-373e-0410-b603-e72c3f656dc1
2014-06-12 09:50:50 +00:00
marian 39cd37a17e Use a boolean parameter to indicate hexified data in Hasher update and hmac methods.
git-svn-id: http://voip.null.ro/svn/yate@5843 acf43c95-373e-0410-b603-e72c3f656dc1
2014-06-11 12:59:46 +00:00
marian 2c49317fd0 Added Hasher object exposing Engine Hasher class methods.
git-svn-id: http://voip.null.ro/svn/yate@5842 acf43c95-373e-0410-b603-e72c3f656dc1
2014-06-11 12:18:01 +00:00
paulc ecf3477dcb Generate monotonic per-dialog Command Sequence numbers (CSeq) derived from the global sequence.
git-svn-id: http://voip.null.ro/svn/yate@5841 acf43c95-373e-0410-b603-e72c3f656dc1
2014-06-11 12:02:40 +00:00
paulc 2d0a99ccb5 Ignore final commas in Array and Object initializers.
Handle successive commas in Array initializers by inserting undefined.


git-svn-id: http://voip.null.ro/svn/yate@5840 acf43c95-373e-0410-b603-e72c3f656dc1
2014-06-11 10:39:34 +00:00
paulc a926551c36 Added missing apostrophe in sample user.register query.
git-svn-id: http://voip.null.ro/svn/yate@5839 acf43c95-373e-0410-b603-e72c3f656dc1
2014-06-10 09:01:03 +00:00
oana a290f37b09 Replaced commentary with a shorter version.
git-svn-id: http://voip.null.ro/svn/yate@5838 acf43c95-373e-0410-b603-e72c3f656dc1
2014-06-06 15:02:56 +00:00
oana 6338b40148 Bug fix: avoid returning arbitrary values for functions that have no return value. Return undefined instead.
git-svn-id: http://voip.null.ro/svn/yate@5837 acf43c95-373e-0410-b603-e72c3f656dc1
2014-06-06 11:57:05 +00:00
marian 9bca484b24 Unlock driver before hangup to avoid deadlock when disconnecting the channel.
git-svn-id: http://voip.null.ro/svn/yate@5836 acf43c95-373e-0410-b603-e72c3f656dc1
2014-06-04 08:31:29 +00:00
oana 0cda06eedc Leave Javascript array data untouched if sorting fails. Slightly optimized the native sort procedure for Javascript array.
git-svn-id: http://voip.null.ro/svn/yate@5835 acf43c95-373e-0410-b603-e72c3f656dc1
2014-05-19 15:01:29 +00:00
oana 509ea7fc7b Bug fix: keep the ObjList autodelete flag when doing ObjList::sort().
git-svn-id: http://voip.null.ro/svn/yate@5834 acf43c95-373e-0410-b603-e72c3f656dc1
2014-05-19 14:34:42 +00:00