Commit Graph

31454 Commits

Author SHA1 Message Date
George Joseph
93997f9698 CI: Explicitly pass BRANCH_NAME to buildAsterisk and installAsterisk
Change-Id: I652f4a0ea5107c778e27a78bccb67b18b0c4e087
2018-07-25 09:21:19 -06:00
George Joseph
0baf660bde CI: Add options to initialize and cleanup database to runTestsuite.sh
Change-Id: I352333233bab5377723bf37d490ba84fc55bc853
2018-07-25 09:12:59 -06:00
Corey Farrell
74cbeabb97 CI: Do not mkdir 2.
Change-Id: Ib7377d26a6c98b38bad463f47c84f1875ac84eb7
2018-07-25 10:07:51 -04:00
Corey Farrell
adf3c569a2 Build System: Silence build of bundled jansson.
Change-Id: I7392c79c0173057f5378010bf1fe65e300e8fc56
2018-07-25 08:34:54 -04:00
George Joseph
e4b0f09bcc CI: RefDebug: Fix reference to testsuite URL
Change-Id: I0ee41d95a87f0d97b01f2757012b846bcfe6443d
2018-07-25 06:14:35 -06:00
Corey Farrell
5537048d60 Build System: Fix bundled jansson install.
Update the bundled jansson Makefile to do nothing during Asterisk
install, use a target that is not phony to initiate the jansson make and
install.

Change-Id: I7643cc3d39af9feba8fc0da676b646efc5f8b3bb
2018-07-24 15:28:04 -04:00
Jenkins2
18a074e540 Merge "CI: Use bundled jansson if needed." into 16 2018-07-24 10:51:24 -05:00
George Joseph
cecff1f7ab Merge "Enable bundling of jansson, require 2.11." into 16 2018-07-24 10:50:41 -05:00
Corey Farrell
9f3620a578 CI: Use bundled jansson if needed.
Use pkg-config to determine if jansson is at least 2.11, enabled bundled
version otherwise.

Change-Id: Ib555a8b72ff6f6925f9280ef035caa0b91ca4bd2
2018-07-24 10:47:43 -05:00
George Joseph
835489f76d Merge "res_pjsip: Update default keepalive interval to 90 seconds." into 16 2018-07-24 08:30:34 -05:00
Florian Floimair
1f46e2e91c res_pjsip: Change log message from error to warning for valid use cases
If a SIP MESSAGE is triggered for an endpoint that is currently not registered
- and therefore has no valid contact associated - an error message was logged.
Since this is a valid request in a valid use cases this is now changed to a
warning, as discussed with Matt Fredrickson on the asterisk-dev mailing list.

Change-Id: I55eb62d2712818a58c7532119dec288bd98cf0c0
2018-07-24 07:20:06 -05:00
Jenkins2
b9630a9591 Merge "CI: Add --privileged flag to docker options" into 16 2018-07-24 06:03:02 -05:00
Jenkins2
9913a4fcca Merge "CI: Set correct user:group when publishing docs" into 16 2018-07-24 06:02:59 -05:00
George Joseph
393428be7b Merge "build_tools/make_version: Get MAINLINE_BRANCH from .gitreview." into 16 2018-07-24 05:40:41 -05:00
George Joseph
8550fad21a CI: Add --privileged flag to docker options
Change-Id: If92d55f15306e55dd7091ac3c47b13ebbbb03488
2018-07-24 04:40:31 -06:00
George Joseph
f2580d037f CI: Set correct user:group when publishing docs
Change-Id: Ibabeb9ac730d9755cf54318d0da74771c939b86b
2018-07-24 04:32:03 -06:00
Richard Mudgett
35d06e46ae core: AST_DEVMODE no longer affects ABI.
Remove AST_DEVMODE from the AST_BUILDOPTS list and the AST_BUILDOPTS_SUM
calculation as it no longer affects API/ABI compatibility.

Change-Id: Id5bd6dfade173a53b3a49f715586b86e3fb24acb
2018-07-23 13:48:18 -05:00
Jenkins2
fb6af6dbd2 Merge "CI: Split --test-command argument." into 16 2018-07-23 13:45:21 -05:00
George Joseph
03b1078117 Merge "sched: Make ABI compatible between dev mode and non-dev mode." into 16 2018-07-23 13:32:24 -05:00
Corey Farrell
09b258fd69 CI: Split --test-command argument.
The --test-command argument has now been split, unit tests now use
`--unittest-command` and the testsuite uses --testsuite-command.

This will make it easier to create a script which run everything by
forwarding the same arguments to all CI scripts.

Change-Id: Ia54aa4848eaffbdf13175fcda40fc0b23080ad71
2018-07-23 10:34:35 -05:00
George Joseph
648541fe89 Merge "asterisk.c: Update displayed copyright year for v16 release." into 16 2018-07-23 09:40:28 -05:00
George Joseph
ebbc29f9f5 Merge "res_pjsip: Update endpoint transport option documentation." into 16 2018-07-23 09:15:39 -05:00
Jenkins2
bd879a6c28 Merge "CI: Fix mkdir CACHE_DIR." into 16 2018-07-23 08:39:12 -05:00
Jenkins2
549aa07265 Merge "CI: Fix logger.conf for unit tests." into 16 2018-07-23 08:37:31 -05:00
George Joseph
460ef41f7a xmldoc.c: Fix dump of xml document
The "xmldoc dump" cli command was simply concatenating xml documents
into the output file.  The resulting file had multiple "xml"
processing instructions and multiple root elements which is illegal.
Normally this isn't an issue because Asterisk has only 1 main xml
documentation file but codec_opus has its own file so if it's
downloaded and you do "xmldoc dump", the result is invalid.

* Added 2 new functions to xml.c:
    ast_xml_copy_node_list creates a copy of a list of children.
    ast_xml_add_child_list adds a list to an existing list.

* Modified handle_dump_docs to create a new output document and
  add to it the children from each input file.  It then dumps the
  new document to the output file.

Change-Id: I3f182d38c75776aee76413dadd2d489d54a85c07
2018-07-23 06:47:31 -05:00
Jenkins2
4f1953da7e Merge "CI: Add wiki doc publish to periodics" into 16 2018-07-23 06:46:53 -05:00
Corey Farrell
fd1f74af40 CI: Fix mkdir CACHE_DIR.
Change-Id: Ic9f9a61e230047836c836206731f8ff7eb3538c9
2018-07-22 12:35:42 -04:00
Corey Farrell
9b3267641f build_tools/make_version: Get MAINLINE_BRANCH from .gitreview.
Use .gitreview defaultbranch setting to determine the mainline branch.
This allows the script to be used against other directories which might
not be on the same defaultbranch.  This can be used by CI scripts to
report the testsuite version being used:
./build_tools/make_version ${TESTSUITE_DIR}

Change-Id: Ifdad4a9d8a26138c41bc6b630ecc3e34ea1c2758
2018-07-22 12:21:05 -04:00
Joshua Colp
0f999a834f sched: Make ABI compatible between dev mode and non-dev mode.
In the past there was an assertion in the ast_sched_del function
and in order to ensure it was useful the calling function name,
line number, and filename had to be passed in. This cause the ABI
to be different between dev mode and non-dev mode.

This assertion is no longer present so the special logic can be
removed to make it the same between them both.

Change-Id: Icbc69c801e357d7004efc5cf2ab936d9b83b6ab8
2018-07-22 10:46:21 -05:00
Richard Mudgett
aea0a0294d asterisk.c: Update displayed copyright year for v16 release.
Change-Id: I60622731d928ee9506b1d28934095f0dc3e5306e
2018-07-20 15:52:12 -05:00
Kevin Harwell
a459b560c5 Merge "pjsip_resolver.c: Use replacement function" into 16 2018-07-20 14:43:49 -05:00
Corey Farrell
d2dace81d4 Enable bundling of jansson, require 2.11.
Change-Id: Ib3111b151d37cbda40768cf2a8a9c6cf6c5c7cbd
2018-07-20 13:35:57 -04:00
Corey Farrell
c8bd8f6ce9 CI: Fix logger.conf for unit tests.
Change-Id: Idea59d60eab20105de50b34f0f0d506e6ef55d5c
2018-07-20 09:30:00 -05:00
George Joseph
0f82db82cb CI: Add wiki doc publish to periodics
Change-Id: I29ba26134e5083bc6788ede235f1a5d4383c148a
2018-07-20 06:55:42 -06:00
Joshua Colp
a2a3ad2438 res_pjsip: Update default keepalive interval to 90 seconds.
A change recently went in which disabled the built-in PJSIP
keepalive. This defaulted to 90 seconds and kept TCP/TLS
connections alive. Disabling this functionality has resulted
in a behavior change of not doing keepalives by default resulting
in TCP/TLS connections dropping for some people.

This change makes our default keepalive interval 90 seconds
to match the previous behavior and preserve it.

ASTERISK-27978

Change-Id: Ibd9a45f3cbe5d9bb6d2161268696645ff781b1d6
2018-07-20 06:55:37 -05:00
Richard Mudgett
dbffcdc561 res_pjsip: Update endpoint transport option documentation.
Change-Id: I5394fdff6a296efc8e1695a156e616acd932ae52
2018-07-19 16:40:13 -05:00
Richard Mudgett
709b795cb0 pjsip_resolver.c: Use replacement function
* Use the replacement function ast_sip_push_task_wait_servant() instead of
the deprecated ast_sip_push_task_synchronous().

Change-Id: I145b550ba7054640c7faa3b644e63137f505c612
2018-07-19 13:54:20 -05:00
Corey Farrell
c40412bd13 contrib: Update systemd README.txt.
Mention need to compile Asterisk with systemd development package
installed.

ASTERISK-27968

Change-Id: Ib3a973be403c61cbe09572b0f912fb1aa1bff026
2018-07-19 09:52:35 -05:00
George Joseph
0353c34c61 Merge "Update mainline version for the 16 branch." into 16 2018-07-19 06:14:27 -05:00
Joshua Colp
0b3bc4852f Update mainline version for the 16 branch.
Change-Id: I4d36277d10335349d83ae218fa10fee99c3e4c14
2018-07-19 11:09:53 +00:00
George Joseph
f7a89ea428 Merge "Update ARI version for master/16." 2018-07-18 15:20:29 -05:00
George Joseph
bbef48671f Merge "pjproject_bundled: Repair ./configure --with-ssl=PATH." 2018-07-18 15:19:40 -05:00
George Joseph
fa71763853 Merge "res_sorcery_config: Allow configuration section to be used based on name." 2018-07-18 14:47:22 -05:00
George Joseph
85a95b8a29 Merge "res_rtp_asterisk: Add support for sending NACK requests." 2018-07-18 14:46:28 -05:00
George Joseph
c8e4cd8bce Merge "res_pjsip_sdp_rtp: include ice in ANSWER only if offered" 2018-07-18 14:29:19 -05:00
Joshua Colp
e7a76ffee1 Update ARI version for master/16.
ARI goes from 3.0.0 to 4.0.0

Change-Id: I0649fa34926dc4fc89a166f1d2e3bbd965ef9ebe
2018-07-18 19:18:13 +00:00
George Joseph
56740c6a57 Merge "module: Remove deprecated modules and update support levels." 2018-07-18 14:13:45 -05:00
Alexander Traud
fe78d374b0 pjproject_bundled: Repair ./configure --with-ssl=PATH.
Previously, Asterisk did not tell its bundled PJProject about this configure
parameter. Therefore, PJProject used the platform provided OpenSSL always.

ASTERISK-27880

Change-Id: Iea545aec854dd0e2c061c69bb118a76ce56c5dc6
2018-07-18 13:56:03 -05:00
Ben Ford
5bacde37a2 res_rtp_asterisk: Add support for sending NACK requests.
Support has been added for receiving a NACK request and handling it.
Now, Asterisk can detect when a NACK request should be sent and knows
how to construct one based on the packets we've received from the remote
end. A buffer has been added that will store out of order packets until
we receive the packet we are expecting. Then, these packets are handled
like normal and frames are queued to the core like normal. Asterisk
knows which packets to request in the NACK request using a vector
which stores the sequence numbers of the packets we are currently missing.

If a missing packet is received, cycle through the buffer until we reach
another packet we have not received yet. If the buffer reaches a certain
size, send a NACK request. If the buffer reaches its max size, queue all
frames to the core and wipe the buffer and vector.

According to RFC3711, the NACK request must be sent out in a compound
packet. All compound packets must start with a sender or receiver
report, so some work was done to refactor the current sender / receiver
code to allow it to be used without having to also include sdes
information and automatically send the report.

Also added additional functionality to ast_data_buffer, along with some
testing.

For more information, refer to the wiki page:
https://wiki.asterisk.org/wiki/display/AST/WebRTC+User+Experience+Improvements

ASTERISK-27810 #close

Change-Id: Idab644b08a1593659c92cda64132ccc203fe991d
2018-07-18 13:37:03 -05:00
Joshua Colp
59323121f3 res_sorcery_config: Allow configuration section to be used based on name.
A problem I've seen countless times is a global or system section
for PJSIP not getting applied. This is inevitably the result of
the "type=" line missing. This change alleviates that problem.

The ability to specify an explicit section name has been
added to res_sorcery_config. If the configured section
name matches this and there are no unknown things configured
the section is taken as being for the given type.

Both the PJSIP "global" and "system" types now support this
so you can just name your section "global" or "system" and it
will be matched and used, even without a "type=" line.

ASTERISK-27972

Change-Id: Ie22723663c1ddd24f869af8c9b4c1b59e2476893
2018-07-18 13:20:49 -05:00