Commit Graph

27887 Commits

Author SHA1 Message Date
George Joseph
cd8a1dacf7 .lastclean: Update for 13.11.1 2016-09-08 10:55:13 -05:00
George Joseph
3fd208aafc realtime: Add database scripts for 13.11.1 2016-09-08 10:55:13 -05:00
Joshua Colp
58c4b9671f chan_sip: Don't allocate new RTP instances on top of old ones.
In some scenarios dialog_initialize_rtp can be called multiple times on
the same dialog.  This can cause RTP instances to be leaked along with
multiple file descriptors for each instance.

This change makes it so the existing RTP instances are destroyed and
not overwritten, stopping the memory leak.

ASTERISK-26272 #close
patches:
  ASTERISK-26272-13.patch submitted by Corey Farrell (license 5909)

Change-Id: Id529de1184c68f2f4d254ab41a1f458dafdb5f73
2016-09-08 08:22:07 -06:00
Mark Michelson
aeb14872e2 res_pjsip: Do not crash on ACKs from unknown endpoints.
The endpoint identification PJSIP module is intended to identify which
endpoint an incoming request is from. If an endpoint is not identified,
then an artificial endpoint is used in its place when proceeding.

The problem is that the ACK request type is an exception to the rule.
The artificial endpoint is not used when processing an ACK. This results
in the possibility of having a NULL endpoint being used further on.

The reason ACK is an exception is an attempt not to spam security logs
with unidentified requests. Presumably, you've already logged the
unidentified request on the preceeding INVITE.

Up until Asterisk 13.10, retrieving a NULL endpoint in this fashion
didn't cause an issue. A new change in 13.10 added endpoint ACL checking
shortly after endpoint identification. Because we are accessing a NULL
endpoint, this ACL check resulted in a crash.

The fix here is to be sure to retrieve the artificial endpoint for all
request types. ACKs still do not generate unidentified request security
events.

ASTERISK-26264 #close
Reported by nappsoft

AST-2016-006

Change-Id: Ie0c795ae2d72273decb972dd74b6a1489fb6b703
2016-09-08 08:21:52 -06:00
Kevin Harwell
a6ac89c740 ChangeLog: Updated for 13.11.0 13.11.0 2016-09-01 11:23:34 -05:00
Kevin Harwell
ca795030aa Release summaries: Add summaries for 13.11.0 2016-09-01 11:23:19 -05:00
Kevin Harwell
7d843d0bb5 Release summaries: Remove previous versions 2016-09-01 11:20:59 -05:00
Kevin Harwell
e29b6f0326 .version: Update for 13.11.0 2016-09-01 11:20:59 -05:00
Kevin Harwell
7b5be70a53 .lastclean: Update for 13.11.0 2016-09-01 11:20:59 -05:00
Kevin Harwell
e22edb0481 realtime: Add database scripts for 13.11.0 2016-09-01 11:20:59 -05:00
Kevin Harwell
9cb51fb550 ChangeLog: Updated for 13.11.0 2016-09-01 11:14:51 -05:00
Kevin Harwell
5c3bffce09 Release summaries: Add summaries for 13.11.0 2016-09-01 11:14:41 -05:00
Kevin Harwell
7b9cb3c450 Release summaries: Remove previous versions 2016-09-01 11:12:03 -05:00
Kevin Harwell
ebd944a54d .version: Update for 13.11.0 2016-09-01 11:12:03 -05:00
Kevin Harwell
fa7feca7dd .lastclean: Update for 13.11.0 2016-09-01 11:12:03 -05:00
Kevin Harwell
dcb70dfaea realtime: Add database scripts for 13.11.0 2016-09-01 11:12:03 -05:00
Kevin Harwell
35fd61b9dc ChangeLog: Updated for 13.11.0-rc2 13.11.0-rc2 2016-08-30 13:12:19 -05:00
Kevin Harwell
3d2ed81c1b Release summaries: Add summaries for 13.11.0-rc2 2016-08-30 13:11:59 -05:00
Kevin Harwell
313683b96d Release summaries: Remove previous versions 2016-08-30 13:11:39 -05:00
Kevin Harwell
2a99049ea4 .version: Update for 13.11.0-rc2 2016-08-30 13:11:39 -05:00
Kevin Harwell
620046255f .lastclean: Update for 13.11.0-rc2 2016-08-30 13:11:39 -05:00
Kevin Harwell
09647449e4 realtime: Add database scripts for 13.11.0-rc2 2016-08-30 13:11:39 -05:00
George Joseph
e64170e493 res_rtp_multicast: Fix SEGV in ast_multicast_rtp_create_options
ast_multicast_rtp_create_options now checks for NULL or empty options

Change-Id: Ib845eae46a67a9787e89a87ebd1027344e5e0362
(cherry picked from commit c9e83f6d0b)
2016-08-30 11:42:36 -05:00
Kevin Harwell
91e415b970 ChangeLog: Updated for 13.11.0-rc2 2016-08-30 09:53:28 -05:00
Kevin Harwell
9c8a7bf1e9 Release summaries: Add summaries for 13.11.0-rc2 2016-08-30 09:53:12 -05:00
Kevin Harwell
c29eb6cad1 Release summaries: Remove previous versions 2016-08-30 09:53:01 -05:00
Kevin Harwell
53ab4718ac .version: Update for 13.11.0-rc2 2016-08-30 09:53:01 -05:00
Kevin Harwell
98b7b9e101 .lastclean: Update for 13.11.0-rc2 2016-08-30 09:53:01 -05:00
Kevin Harwell
9de68f3d44 realtime: Add database scripts for 13.11.0-rc2 2016-08-30 09:53:01 -05:00
Mark Michelson
6da8511a6a res_pjsip: Default endpoints to the "offline" status.
A recent change attempted to optimize startup by not updating contact
status. Instead, code responsible for qualifying contacts updates the
status as it becomes known. The code even accounts for contacts/AORs
that are not set to be qualified.

The problem, though, is when there are no contacts associated with an
endpoint. A common case is when an endpoint is set to register its
contacts but has not done so yet. In this case, prior to registration,
the endpoint's device state will appear to be "not in use" and hints
associated with that device will appear to be "idle". In actuality, the
device state and hint should both appear as "unavailable". The reason
for the failure is that the optimization change made all persistent
endpoint states set to "unknown".

The fix here is to change the hard-coded "unknown" to be "offline"
instead. The default state will be offline until the qualifying code
determines that the contact is actually online. This way, if there are
no contacts at all, then the state stays as offline, and device state
and hints appear correctly.

ASTERISK-26269 #close
Reported by nappsoft

Change-Id: Ie99b84169393983453076f5e9c0d35ff313a456a
(cherry picked from commit c16ef02318)
2016-08-30 05:13:17 -05:00
Joshua Colp
884db40142 app_queue: Ensure member is removed from pending when hanging up.
When dialing channels it is possible that they may not ever
leave the not in use state (Local channels in particular) by
the time we cancel them. If this occurs but we know they were
dialed we explicitly remove them from the pending members
container so that subsequent call attempts occur.

ASTERISK-26299 #close

Change-Id: I6ad0d17c36480c92cebf840626228ce3f7e4bd65
2016-08-29 09:57:42 -05:00
George Joseph
ba7582ba75 pjproject_bundled: Update for pjproject 2.5.5
Add more --disable-* switches to Makefile.rules including
--disable-opus which was causing bundled pjproject to fail with
"undefined reference" errors in libasteriskpj.

Changed PJ_ENABLE_EXTRA_CHECK to 1.

Removed 2 obsolete patches and added a new one.
The new one was merged by Teluu on 6/27/2016.

ASTERISK-26148 #close

Change-Id: Ib8af6c6a9d31f7238ce65b336134c2efdc855063
(cherry picked from commit 972cee2e4c)
2016-08-15 08:27:11 -05:00
Mark Michelson
e6c2a29ad2 Remove SILK payload mappings from Asterisk core.
SILK is a bit of a hog when it comes to using up our limited number of
dynamic payload types in the RTP engine. By freeing up four slots, it
allows for other codecs to potentially take the place.

Now, codec_silk.so will dynamically use the payload slots in the RTP
engine when it loads.

A better fix would be make RTP dynamic payload types actually
dynamic. However, at this stage of Asterisk 14 development, this is a
risky move that would be imprudent.

Change-Id: I5774e09408f9a203db189529eabdc0d3f4c1e612
(cherry picked from commit d50895c7b0)
2016-08-02 10:50:50 -05:00
Mark Michelson
9f083db88b ChangeLog: Updated for 13.11.0-rc1 13.11.0-rc1 2016-07-28 09:32:17 -05:00
Mark Michelson
3bfaf6b172 Release summaries: Add summaries for 13.11.0-rc1 2016-07-28 09:29:59 -05:00
Mark Michelson
ca145e1807 .version: Update for 13.11.0-rc1 2016-07-28 09:27:38 -05:00
Mark Michelson
918ebf79ff .lastclean: Update for 13.11.0-rc1 2016-07-28 09:27:38 -05:00
Mark Michelson
d7afc1cf9d realtime: Add database scripts for 13.11.0-rc1 2016-07-28 09:27:38 -05:00
Richard Mudgett
159e437e5a dsp.c: Fix erroneous fax tone detection.
The Goertzel calculations get less accurate the lower the signal level
being worked with becomes because there is less resolution remaining.
If it is too low we can erroneously detect a tone where none really
exists.  The searched for fax frequencies not only need to be so much
stronger than the background noise they must also be a minimum strength.

* Add needed minimum threshold test to tone_detect().

* Set TONE_THRESHOLD to allow low volume frequency spread detection.

ASTERISK-26237 #close
Reported by: Richard Mudgett

Change-Id: I84dbba7f7628fa13720add6a88eae3b129e066fc
2016-07-25 23:20:41 -05:00
zuul
7ec9819403 Merge "Fix sqlalchemy error regarding identifier length." into 13 2016-07-23 16:54:27 -05:00
zuul
17e0e058ca Merge "chan_sip: Enable Session-Timers for SIP over TCP (and TLS)." into 13 2016-07-22 16:55:13 -05:00
Mark Michelson
eda95236d1 Fix sqlalchemy error regarding identifier length.
sqlalchemy was complaining:

sqlalchemy.exc.IdentifierError: Identifier
'ps_contacts_qualifyfreq_exptime' exceeds maximum length of 30
characters

This fixes the problem by changing the index name to be
"ps_contacts_qualifyfreq_exp" instead.

ASTERISK-26227 #close
Reported by Mark Michelson

Change-Id: I0ed784f87504be2a59ee8d3242ef6f625d5ed1a9
2016-07-22 14:44:50 -05:00
zuul
8d6a7b89bd Merge "res_pjsip: Whitespace and comment cleanup." into 13 2016-07-22 07:13:13 -05:00
Alexander Traud
66c9dfb272 chan_sip: Enable Session-Timers for SIP over TCP (and TLS).
Asterisk defaults to timers=accept/refresher=uas. In that scenario, only in that
scenario, Sessions-Timers (RFC 4028) had no effect via TCP. This change enables
Session-Timers for SIP over TCP (and for SIP over TLS).

However with longer international calls via TCP, the SIP channel might break,
because all hops on the Internet route must stay online (have not a single power
outage, for example). Therefore with Session-Timers enabled (which are enabled
at default), you might see dropped calls. Consequently even with this change,
you might be better-off going for session-timers=refuse in your sip.conf.

ASTERISK-19968 #close

Change-Id: I1cd33453c77c56c8e1394cd60a6f17bb61c1d957
2016-07-22 12:50:12 +02:00
Joshua Colp
0de05c2938 Merge "chan_sip: Prevent deadlock when issuing "sip show channels"" into 13 2016-07-22 04:47:13 -05:00
zuul
e3fbb4e099 Merge "res_pjsip_pubsub: fixed a bug when pjsip_tx_data_dec_ref is called twice." into 13 2016-07-22 02:22:03 -05:00
Richard Mudgett
33716106e0 res_pjsip: Whitespace and comment cleanup.
Change-Id: I11139a4a95df34e223ba622aa6227e33ab8f6c38
2016-07-21 23:30:57 -05:00
zuul
80a9899100 Merge "chan_dahdi.c: Fix deadlock potential in fax redirection." into 13 2016-07-21 19:27:12 -05:00
zuul
2b001fd6aa Merge "chan_sip.c: Fix deadlock potential in fax redirection." into 13 2016-07-21 19:18:20 -05:00
zuul
00ed6b74ea Merge "chan_pjsip.c: Fix deadlock potential in fax redirection." into 13 2016-07-21 19:07:05 -05:00