Commit Graph

6207 Commits

Author SHA1 Message Date
Harald Welte ebd14fc45e iax: ENCRYPTION IE is 2 bytes, not 1 byte
yiax wrongly assumed that the ENCRYPTION IE is a single byte,
while in reality it is 16bit / 2 bytes.

It has been two bytes ever since it was introduced in Asterisk in 2004.

This misunderstanding probably arose from RFC5456 which erroneosly
states that the length of this IE is 0x01 while its body is 2 bytes
long (See Section 8.6.34 at https://datatracker.ietf.org/doc/html/rfc5456)
2022-09-11 14:11:57 +02:00
Harald Welte aae94bd46d iax: Support the new CALLINGANI2 IE
This was introduced in Asterisk IAX2 in
3072c540bb
2022-09-11 14:07:02 +02:00
Harald Welte f186162ba0 HACK: various debug statements / local changes 2022-03-08 14:16:29 +01:00
Harald Welte 677ecb0b38 q931: If we're the network, channelID in SETUP ACK is mandatory
The user may suggest a given channel in the SETUP, but it's not legal
for the network to return a non-mandatory ChannelID.

See Q.931 Section 5.1.2 (B-channel selection - Originating):

The selected B-channel is indicated in the Channel identification information
element coded as "channel is indicated, no acceptable alternative" in the first
message returned by the network in response to the SETUP message (i.e. a SETUP
ACKNOWLEDGE or CALL PROCEEDING message)
2022-03-08 14:16:29 +01:00
Harald Welte a08843baf4 preserve transfer-capability in Q.931 -> Q.931 calls
This is important so udi/rdi doesn't get converted to speech.
2022-03-08 13:03:43 +01:00
Harald Welte 79cc69729e q931: sendSetupAck: Don't encode a BRI channel selection in PRI
If yate is operating in the 'network' role of a PRI interface,
it must send a valid ChannelID InformationElement in the SETUP ACK.

However, current yate code is encoding the channel selection field
of said information element wrong, as it unconditionally looks up
the s_dict_channelIDSelect_BRI (instead of _PRI).

This fixes a regression introduced in 2009 in the following commit:

commit 05b717e0b9
Author: paulc <paulc@acf43c95-373e-0410-b603-e72c3f656dc1>
Date:   Mon Mar 2 18:51:30 2009 +0000

ISDN BRI support, most Andrei's (andrei@null.ro) work.
Fixes and new features throughout the signalling engine.
it-svn-id: http://yate.null.ro/svn/yate/trunk@2505 acf43c95-373e-0410-b603-e72c3f656dc1
2022-03-08 08:28:36 +01:00
Harald Welte 99127c72c0 debian: Remove H.323 and wanpipe dependencies 2021-12-30 19:06:40 +01:00
Harald Welte 28a8d569f9 import debian pacakging rules from https://github.com/vir/yate
https://github.com/vir/yate seems to be unmaintained for more than
a year.  This copy of the debian rules reflects 4ed2ebb3b1c48277f69339345e2ac8af90a4bf62
2021-12-30 19:06:40 +01:00
marian 0e019e9d35 Added functions used to set/add a list of parameters in configuration and section.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6532 acf43c95-373e-0410-b603-e72c3f656dc1
2021-12-22 07:03:35 +00:00
marian 2bcacf9525 Added extra parameter used to set relay filter in module install relay.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6531 acf43c95-373e-0410-b603-e72c3f656dc1
2021-12-16 11:37:39 +00:00
marian ded00a075b Added dump_t/print_t support to handle field name mapping. Added parameter to allow printing empty results (header only).
git-svn-id: http://yate.null.ro/svn/yate/trunk@6530 acf43c95-373e-0410-b603-e72c3f656dc1
2021-12-13 07:29:32 +00:00
marian 76f34963e6 Replaced usage of curly brackets with square brackets in string element access.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6529 acf43c95-373e-0410-b603-e72c3f656dc1
2021-12-06 09:10:12 +00:00
marian 26ee35ea63 Fixed JSON reference resolve string comparison bug revealed by new compiler.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6528 acf43c95-373e-0410-b603-e72c3f656dc1
2021-11-25 18:02:25 +00:00
marian 5432a414aa Added support to enable REFER handling per call leg. Added configurable support (default:disabled) to send a call.update message with operation=transfer before internal handling on REFER.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6527 acf43c95-373e-0410-b603-e72c3f656dc1
2021-11-15 14:19:43 +00:00
marian a95f965a0c Fixed JSON replaceReferences bug: check if object was already found when no replacements are done in it. Improved debug.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6526 acf43c95-373e-0410-b603-e72c3f656dc1
2021-10-27 12:43:59 +00:00
marian dead60e861 Added support for JSON Path (find value in object by path). Fixed JSON.stringify(): avoid crashing on circular references, replace already found objects by their path reference. Report path in Engine.dump_r for already found objects.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6525 acf43c95-373e-0410-b603-e72c3f656dc1
2021-10-27 10:22:53 +00:00
marian 876a884cfd Fixed help command handling: don't return commands if not matched the requested one.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6524 acf43c95-373e-0410-b603-e72c3f656dc1
2021-10-08 07:54:37 +00:00
marian 69ab733dbd Fixed dump_t bug: wrong field handling for late added columns. Added support to dump array of rows with first element array containing header names.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6523 acf43c95-373e-0410-b603-e72c3f656dc1
2021-10-07 12:49:07 +00:00
marian 2a6cc0c2fe Added trackname and filter to msgdelay message handler.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6522 acf43c95-373e-0410-b603-e72c3f656dc1
2021-09-28 11:05:45 +00:00
marian de95fc5171 Added support to create arbitrary named lists of shared vars (separate from Engine's global). Added extra functions to shared vars list. Export in javascript.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6521 acf43c95-373e-0410-b603-e72c3f656dc1
2021-09-28 10:55:08 +00:00
oana ca208774e0 Added msleep function that permits sleeping when handling a message.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6520 acf43c95-373e-0410-b603-e72c3f656dc1
2021-09-24 13:24:10 +00:00
oana 808bc77a0f Add support for multi-threaded access to regexroute.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6519 acf43c95-373e-0410-b603-e72c3f656dc1
2021-09-24 13:14:51 +00:00
marian 8f3ea0c53c Fixed bug: put parantheses in regexp matching full application mime body.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6518 acf43c95-373e-0410-b603-e72c3f656dc1
2021-09-02 07:23:58 +00:00
marian e93830a824 Fixed bug: don't reset honored DTMF detected method to properly report failed DTMF method(s) in debug message.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6517 acf43c95-373e-0410-b603-e72c3f656dc1
2021-09-02 06:41:41 +00:00
oana 9596ad76c3 Bug fix for issue introduced in revision 6510: if filter is not present, match all messages instead of matching none.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6516 acf43c95-373e-0410-b603-e72c3f656dc1
2021-08-17 14:47:46 +00:00
paulc 16462dbbd1 Changed priority of the JS specific operators.
Fixes problems introduced by Rev. 6511


git-svn-id: http://yate.null.ro/svn/yate/trunk@6515 acf43c95-373e-0410-b603-e72c3f656dc1
2021-08-16 10:52:48 +00:00
marian 8dd9177f88 Report time spent in queue in message sniffer.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6514 acf43c95-373e-0410-b603-e72c3f656dc1
2021-08-16 08:06:49 +00:00
marian a27e7f1b9e Added support to track message enqueue/dispatch time. Added support to track the time spent by a message in handler.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6513 acf43c95-373e-0410-b603-e72c3f656dc1
2021-08-16 08:02:49 +00:00
marian d476e43a2a Added String::insert().
git-svn-id: http://yate.null.ro/svn/yate/trunk@6512 acf43c95-373e-0410-b603-e72c3f656dc1
2021-08-16 06:40:44 +00:00
paulc a964723b52 Added missing precedence of the nullish operator.
Aligned operators precedence with JS.


git-svn-id: http://yate.null.ro/svn/yate/trunk@6511 acf43c95-373e-0410-b603-e72c3f656dc1
2021-08-11 10:52:33 +00:00
marian 9770def8f3 Added support to match message parameter(s) in sniffer.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6510 acf43c95-373e-0410-b603-e72c3f656dc1
2021-08-05 13:27:55 +00:00
marian 62217132de Improved debug.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6509 acf43c95-373e-0410-b603-e72c3f656dc1
2021-08-04 07:35:53 +00:00
paulc 49e4ee3ead Bumped version to 6.4.1 devel.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6508 acf43c95-373e-0410-b603-e72c3f656dc1
2021-08-02 15:13:48 +00:00
paulc 4a5bb0cfb6 Bumped version to 6.4.0 release.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6506 acf43c95-373e-0410-b603-e72c3f656dc1
2021-08-02 12:12:11 +00:00
oana 68d62cbac2 Put path where the library is found before the linked library.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6505 acf43c95-373e-0410-b603-e72c3f656dc1
2021-07-26 09:01:33 +00:00
paulc 11bcd6a7f8 Implemented the nullish concatenation and assignment operators.
Implemented the missing logical operation plus assignment.


git-svn-id: http://yate.null.ro/svn/yate/trunk@6504 acf43c95-373e-0410-b603-e72c3f656dc1
2021-07-08 14:53:44 +00:00
paulc 885ed0b8ae Be systemmatic in adding the Param_ prefix to unknown parameters.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6503 acf43c95-373e-0410-b603-e72c3f656dc1
2021-07-06 11:54:01 +00:00
marian de17affd13 Added support for multiple non SDP/ISUP bodies.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6502 acf43c95-373e-0410-b603-e72c3f656dc1
2021-06-23 07:07:04 +00:00
paulc 05b643dc6f Allow up to 12 bits for the node ID.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6501 acf43c95-373e-0410-b603-e72c3f656dc1
2021-06-16 10:10:00 +00:00
paulc 600610a6a3 Added support for resetting the Engine's maxqueue and maxmsgrate after returning them in status.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6500 acf43c95-373e-0410-b603-e72c3f656dc1
2021-06-04 13:00:07 +00:00
oana f078f77cf1 Handle possible missing declaration of MySQL type my_bool as its definition was removed in version > 8.0.1.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6499 acf43c95-373e-0410-b603-e72c3f656dc1
2021-06-01 14:04:29 +00:00
oana b5999abac7 Invalidate a SSLSocket in constructor if building a new SSL context fails.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6498 acf43c95-373e-0410-b603-e72c3f656dc1
2021-06-01 14:00:14 +00:00
marian 39bd797dc0 Fixed bugs. Avoid adding an executed slave which already lost its master, avoid adding a slave to list if it is going to be destroyed (avoid re-entering in call continue). Made ForkMaster and ForkSlave debug enablers, allow setting a debug level in master. Improved debug.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6497 acf43c95-373e-0410-b603-e72c3f656dc1
2021-05-28 11:50:18 +00:00
paulc d0ce160167 Added own PID and if applicable supervisor's PID to the runtime parameters.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6496 acf43c95-373e-0410-b603-e72c3f656dc1
2021-05-24 13:47:03 +00:00
paulc e64b94990c Set the name for the JS scheduler thread so it can be identified.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6495 acf43c95-373e-0410-b603-e72c3f656dc1
2021-05-21 15:26:13 +00:00
marian a233486719 Fixed bug: clear timer events before engine and runner to make sure all objects are released while script context is valid.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6494 acf43c95-373e-0410-b603-e72c3f656dc1
2021-05-20 12:24:31 +00:00
marian ac7293cfa6 Fixed bug: re-insert time events in list before calling the callback to allow scripts to safely remove the event in callback.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6493 acf43c95-373e-0410-b603-e72c3f656dc1
2021-05-19 14:16:06 +00:00
paulc 8e46e881e4 Avoid a crash in some very slow shutdown race condition.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6492 acf43c95-373e-0410-b603-e72c3f656dc1
2021-05-19 14:15:17 +00:00
paulc 5feab5d0fc Fixed bug in usually ignored settime operation response.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6491 acf43c95-373e-0410-b603-e72c3f656dc1
2021-05-18 18:17:49 +00:00
paulc 9dd5107bf4 Added Javascript method to set the engine congestion.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6490 acf43c95-373e-0410-b603-e72c3f656dc1
2021-05-18 18:07:43 +00:00