Commit Graph

14137 Commits

Author SHA1 Message Date
Mark Michelson
f4f7637e62 Allow PLC to function properly when channels use SLIN for audio.
If a channel involved in a bridge was using SLIN audio, then translation
paths were not guaranteed to be set up properly since in all likelihood
the number of translation steps was only 1.

This patch enforces the transcode_via_slin behavior if transcode_via_slin
or generic_plc is enabled and one of the formats to make compatible is
SLIN.

AST-352



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@278618 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-22 14:55:04 +00:00
Tilghman Lesher
7df9bcf5e7 Delete IMAP messages in reverse order, to ensure reordering after each expunge does not cause deletion of the wrong message.
(closes issue #16350)
 Reported by: noahisaac
 Patches: 
       20100623__issue16350.diff.txt uploaded by tilghman (license 14)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@278261 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-20 22:23:13 +00:00
Tilghman Lesher
8618bacfd8 Do not queue up DTMF frames while a call is on hold.
(Fixes ABE-2110)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@278167 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-20 20:59:06 +00:00
Tilghman Lesher
b765278efe Off-by-one error
(closes issue #16506)
 Reported by: nik600
 Patches: 
       20100629__issue16506.diff.txt uploaded by tilghman (license 14)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@278023 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-20 16:37:18 +00:00
Paul Belanger
b48d6c3dbe Regression with T.38 negotiation
Prior to 1.4.26.3 T.38 negotiation worked properly, in the case
of the reporter.  

(issue #16852)
Reported by: cfc

(closes issue #16705)
Reported by: mpiazzatnetbug
Patches:
      issue16705_2.diff uploaded by ebroad (license 878)
Tested by: vrban, ebroad, c0rnoTa, samdell3

Review: https://reviewboard.asterisk.org/r/754/


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@277944 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-19 20:56:07 +00:00
Jean Galarneau
20c9dd4aef Avoid trying to pickup a parked extension before the park operation is completed.
A crash could occur if the extension is picked up while the parking extension is
being announced. Testing pu->notquiteyet while searching for a parked extension
resolves this crash.

(ABE-2418)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@277906 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-19 20:16:36 +00:00
Tilghman Lesher
891555ad4a Remove uclibc cross-compile triplet, as uclibc has a working fork()... it's only uclinux that does not.
(closes issue #17616)
 Reported by: pprindeville


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@277738 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-17 16:59:11 +00:00
Tim Ringenbach
99202cbc03 Save and restore AST_FLAG_BRIDGE_HANGUP_DONT on attended transfer.
ast_bridge_call() clears AST_FLAG_BRIDGE_HANGUP_DONT. But during an attended
transfer, ast_bridge_call() is called for a second bridge on the same channel,
and it clears that flag, which still needs to get set for when the original
ast_bridge_call() gets control back and checks it.

Review: https://reviewboard.asterisk.org/r/741


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@277625 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-16 22:43:39 +00:00
Tilghman Lesher
d38b8e2674 Since we split values at the semicolon, we should store values with a semicolon as an encoded value.
(closes issue #17369)
 Reported by: gkservice
 Patches: 
       20100625__issue17369.diff.txt uploaded by tilghman (license 14)
 Tested by: tilghman


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@277568 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-16 21:54:29 +00:00
Matthew Nicholson
1c8d76145b Default to no udptl error correction so that error correction will be disabled in the event that the remote end indicates that they do not support the error correction mode we requested.
FAX-128


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@277497 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-16 21:18:38 +00:00
Richard Mudgett
308d812403 priexclusive in chan_dahdi.conf ignored when reloading dahdi module
During a reload, the priexclusive and outsignalling parameters are not
read in from the config file as intended.  Unfortunately, they get set to
defaults as a result.  This patch makes sure that they do not get set to
defaults during a reload.

(closes issue #17441)
Reported by: mtryfoss
Patches:
      issue17441_v1.4.patch uploaded by rmudgett (license 664)
      issue17441_v1.6.2.patch uploaded by rmudgett (license 664)
      issue17441_trunk.patch uploaded by rmudgett (license 664)
Tested by: rmudgett


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@277419 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-16 20:18:54 +00:00
Matthew Nicholson
9f51a79d88 Interpret device state AST_DEVICE_UNKNOWN as extension state AST_EXTENSION_NOT_INUSE.
(closes issue #16035)
Reported by: francesco_r
Patches:
      pbx.c.patch uploaded by viniciusfontes (license 978)
Tested by: francesco_r, agx, lawbar


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@277327 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-16 18:30:22 +00:00
Tilghman Lesher
7ac1e8e9c7 If variable gotten is not set, will segfault on Solaris.
(closes issue #17636)
 Reported by: bklang


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@277261 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-16 18:04:11 +00:00
Matthew Nicholson
cc8a3986cf For pass through DTMF tones, measure the actual duration between the begin and end packets on the wire. If it is detected to be less than AST_MIN_DTMF_DURATION, trigger dtmf emulation.
AST-362


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@277247 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-16 17:29:57 +00:00
Paul Belanger
d9e34da4ae Total analysis time error with SIP and silence suppression
When using app_amd with SIP providers that have silence
suppression on, the iTotalTime count increases exponentially.

(closes issue #17656)
Reported by: juls


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@277182 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-16 17:10:36 +00:00
Jeff Peeler
4fbc487659 In a perfect world, the frame source would never be NULL. In the meantime, don't crash when it is.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@276652 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-15 13:48:58 +00:00
Leif Madsen
65cad38b6b Update documentation for voicemail.conf externpass option.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@276267 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-14 11:49:01 +00:00
Russell Bryant
26706f51b4 Only reset a CDR that exists.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@276126 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-13 19:14:54 +00:00
Russell Bryant
dca56377a4 Use chan->cdr instead of chan_cdr (just like peer->cdr instead of peer_cdr in the last commit).
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@276123 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-13 19:06:53 +00:00
Russell Bryant
2a19af50e8 Access peer->cdr directly instead of through a saved off reference.
At this point in the code, it is possible that peer_cdr may be invalid.
Specifically, in the blind transfer code, CDRs are swapped between channels.
So, peer_cdr is no longer == peer->cdr.

The scenario that exposed a crash in this code was a blind transfer that hit
the system call limit, causing the transferee channel to get destroyed after
the transfer attempt failed.  Even if it succeeds and this code doesn't crash,
this code was still trying to reset a CDR on a channel that was now owned by
a different thread, which is a BadThing(tm).

(ABE-2417)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@275994 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-13 16:51:18 +00:00
Tilghman Lesher
6dc0a3b80e Move SQL scripts into their own database-specific directories.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@275909 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-13 14:47:30 +00:00
Jeff Peeler
c66d95c8e5 Make user removals and traversals thread safe in meetme.
Race conditions present in meetme involving the user list where a lack of
locking has the potential for a user to be removed during a traversal or as in
the case of the reporter after checking if the list is empty could cause a
crash. Fixing this was done by convering the userlist to an ao2 container.

(closes issue #17390)
Reported by: Vince

Review: https://reviewboard.asterisk.org/r/746/


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@275773 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-12 20:34:51 +00:00
Jeff Peeler
cd054ab3b4 Change ast_write to not stop generator when called from ast_prod.
For SIP channels configured with the progressinband option on, the ringback was
being immediately stopped. This problem was due to ast_prod being moved for a
deadlock fix in 259858. Prodding the channel after setting up the generator
triggered the check in ast_write to stop the generator. The fix here should
write the frame the same as was done before the call to ast_prod was moved.

(closes issue #17372)
Reported by: tech_admin


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@275665 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-12 16:58:39 +00:00
Paul Belanger
ea332c39bf fix tab-completion for unload command.
(closes issue #17536)
Reported by: junky
Patches:
      unload_vs_mod_unload.diff uploaded by junky (license 177)
Tested by: pabelanger


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@275290 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-09 19:28:48 +00:00
Paul Belanger
dca914c43b Fix logging message for stale nonce.
(closes issue #17582)
Reported by: kenner
Patches:
      chan_sip.c.diff uploaded by kenner (license 1040)
Tested by: lmadsen


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@275241 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-09 19:20:00 +00:00
Matthew Nicholson
de1dd975e6 give a better error message when attempting to unload a module that is not loaded
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@275182 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-09 18:23:23 +00:00
Matthew Nicholson
4654483d6b don't unload modules that returned AST_MODULE_LOAD_DECLINE when they were loaded
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@275143 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-09 17:50:05 +00:00
Matthew Nicholson
fa79e11a91 Clear the AST_CDR_FLAG_DIALED flag for channels going into the pbx via the G option in app_dial
(closes issue #17592)
Reported by: jamicque
Patches:
      G-flag-cdr-fix1.diff uploaded by mnicholson (license 96)
Tested by: jamicque, mnicholson


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@275027 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-09 16:04:21 +00:00
Russell Bryant
938b6264ff Document that a leading and trailing slash is expected for test categories.
Also, emit a warning if a test is registered without one of these.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@275021 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-09 15:33:08 +00:00
Richard Mudgett
8c1f4940eb Close the DAHDI FD on error when processing chan_dahdi toneduration config parameter.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@274579 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-07 18:12:41 +00:00
Tilghman Lesher
5a80e36794 Correct how 100, 200, 300, etc. is said. Also add the crazy British numbers.
(closes issue #16102)
 Reported by: Delvar
 Patches: 
       say.conf.fix.patch uploaded by Delvar (license 908)
       (plus a few additional fixes and simplifications by me)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@274417 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-07 06:13:54 +00:00
Jeff Peeler
c9818a396f Ensure file.o is built correctly.
(related to issue #15250)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@274359 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-06 22:46:37 +00:00
Jeff Peeler
c833141336 Correct sip.conf.sample comments for prematuremedia option.
(closes issue #17513)
Reported by: festr
Patches: 
      patch uploaded by festr (license 443)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@274283 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-06 22:15:21 +00:00
Terry Wilson
79d795c383 Add option to not do a call forward on 482 Loop Detected
Asterisk has always set up a forwarded call when receiving a 482 Loop Detected.
This prevents handling the call failure by just continuing on in the dialplan.
Since this would be a change in behavior, the new option to disable this
behavior is forwardloopdetected which defaults to 'yes'.

Review: https://reviewboard.asterisk.org/r/764/


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@274280 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-06 22:08:20 +00:00
Mark Michelson
5724d8f905 Fix problem with RFC 2833 DTMF not being accepted.
A recent check was added to ensure that we did not erroneously
detect duplicate DTMF when we received packets out of order.
The problem was that the check did not account for the fact that
the seqno of an RTP stream will roll over back to 0 after hitting
65535. Now, we have a secondary check that will ensure that the
seqno rolling over will not cause us to stop accepting DTMF.

(closes issue #17571)
Reported by: mdeneen
Patches: 
      rtp_seqno_rollover.patch uploaded by mmichelson (license 60)
Tested by: richardf, maxochoa, JJCinAZ



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@274157 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-06 14:29:23 +00:00
Matthew Nicholson
989ecebcb0 Make get_member_status return QUEUE_NO_MEMBERS instead of QUEUE_NO_REACHABLE_MEMBERS to make joinempty=no work again. This regression was introduced in 273639. Also fixed whitespace.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@274093 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-06 13:52:28 +00:00
Tilghman Lesher
b0202ce6d1 Command 'stop gracefully' doesn't.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@273981 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-05 19:48:42 +00:00
Paul Belanger
9fc9b42295 Remove extra line breaks from 'core show config mappings'
(closes issue #17583)
Reported by: pabelanger
Patches:
      issue17583.patch uploaded by pabelanger (license 224)
Tested by: lmadsen


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@273884 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-05 13:51:29 +00:00
Tilghman Lesher
14550f93d0 Have the DEADLOCK_AVOIDANCE macro warn when an unlock fails, to help catch potentially large software bugs.
(closes issue #17407)
 Reported by: pdf
 Patches: 
       20100527__issue17407.diff.txt uploaded by tilghman (license 14)
 
Review: https://reviewboard.asterisk.org/r/751/


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@273793 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-02 21:36:39 +00:00
Tilghman Lesher
01af082769 Autoservice loop optimization causes a busy loop, when channels are serviced while in hangup.
(closes issue #17564)
 Reported by: ramonpeek
 Patches: 
       20100630__issue17564.diff.txt uploaded by tilghman (license 14)
 Tested by: ramonpeek


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@273717 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-02 17:09:47 +00:00
Tzafrir Cohen
97f61244f9 Fix various typos, reported by Lintian
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@273640 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-02 15:54:17 +00:00
Tilghman Lesher
358159c2b0 If all members are paused, the wrong status is indicated.
(closes issue #17576)
 Reported by: ramonpeek
 Patches: 
       diff.txt uploaded by ramonpeek (license 266)
 Tested by: ramonpeek


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@273639 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-02 15:46:27 +00:00
Russell Bryant
2a18c6627d Don't return a partially initialized datastore.
If memory allocation fails in ast_strdup(), don't return a partially
initialized datastore.  Bad things may happen.

(related to ABE-2415)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@273565 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-01 22:09:19 +00:00
Jeff Peeler
9bae102b7c Allow admin user to join conference without using admin mode and no user pin.
Configuring the conference in meetme.conf like the following:
conf => 2345,,6666 
did not prompt for pin when used without admin mode. This meant that the
conference could not be joined as an admin even if the user knew the correct
pin. The original bug report was submitted claiming that the blank user pin
should deny entry into the conference. I think a better way to handle this
would be with a feature enhancement that used the following syntax:
conf => 2345,X,6666 - where X denotes no acceptable pin allowed

(closes issue #15704)
Reported by: modelnine


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@273474 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-01 20:19:16 +00:00
Jeff Peeler
f5310e3bc7 Ensure channel placed in meetme in ringing state is properly hung up.
An outgoing channel placed in meetme while still ringing which was then hung up
would not exit meetme and the channel was not properly destroyed. Specifically
checking for this scenario by looking at the appropriate control frames resolves
the issue.

(closes issue #15871)
Reported by: Ivan
Patches: 
      meetme_congestion_trunk_v2.patch uploaded by Ivan (license 229)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@273354 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-01 15:05:43 +00:00
Tilghman Lesher
65458abbe8 Allow the "useragent" value to be restored into memory from the realtime backend.
This value is purely informational.  It does not alter configuration at all.

(closes issue #16029)
 Reported by: Guggemand
 Patches: 
       realtime-useragent.patch uploaded by Guggemand (license 897)
 Tested by: Guggemand


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@273060 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-06-29 23:15:28 +00:00
Tilghman Lesher
96e6915e83 _Really_ skip the channel... don't just retry for another 200 cycles.
(Closes issue SWP-1652, ABE-2240)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@273057 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-06-29 22:58:58 +00:00
Russell Bryant
0fdf89a73c Remove properties that were erroneously merged to 1.4 from one of my branches.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@273017 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-06-29 21:36:41 +00:00
Tilghman Lesher
7258f41a2b Don't change ownership/group/permissions on run directory, if it already exists.
(closes issue #17076)
 Reported by: stuarth
 Patches: 
       20100324__issue17076.diff.txt uploaded by tilghman (license 14)
 Tested by: stuarth


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@272925 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-06-28 21:50:02 +00:00
Tilghman Lesher
8f2e2863be Also trim trailing blanks on #includes
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@272922 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-06-28 21:38:49 +00:00