Commit Graph

14204 Commits

Author SHA1 Message Date
Russell Bryant
1c72a8ab49 Reset visible indication after answer.
(closes issue #17641)
Reported by: klaus3000
Patches:
      ast1.6.2.9-app_dial-visible_indication.patch.txt uploaded by klaus3000 (license 65)
Tested by: schmidts


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@281566 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-08-10 17:45:45 +00:00
Jeff Peeler
5be00864ee Prevent loss of Caller ID information set on local channel after masquerade.
Caller ID set on the channel before a masquerade occurs when using a local
channel would cause the information to be lost. The problem was that the
information was set on a channel destined to be hung up. The somewhat confusing
fix is to detect if any Caller ID has been set on the channel and if so 
preswap the Caller ID data so that basically the masquerade puts the data back.

(closes issue #17138)
Reported by: kobaz

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@281390 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-08-09 20:04:30 +00:00
David Vossel
4f90553a45 chan_sip: fixes provisional keepalive scheduled item crash
There is a scheduler item in chan_sip that keeps sending the
last provisional message in response to an INVITE Request for
a period of time until a final response to that INVITE is
sent.  Because of the way this scheduler item works, it requires
a reference to a sip_pvt pointer to work properly.  The problem
with this is that it is currently possible (but rare) for the
sip_pvt to get destroyed and that scheduler item to still
exist.  When this occurs, the scheduler event fires and attempts
to access a freed sip_pvt which causes a crash.

(closes issue #17497)
Reported by: anonymouz666
Patches:
      keepalive_diff_1.4_v2.diff uploaded by dvossel (license 671)

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



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@281185 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-08-06 21:34:38 +00:00
Tilghman Lesher
b7cb184823 Change context lock back to a mutex, because functionality depends upon the lock being recursive.
(closes issue #17643)
 Reported by: zerohalo
 Patches: 
       20100726__issue17643.diff.txt uploaded by tilghman (license 14)
 Tested by: zerohalo


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@280982 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-08-05 07:28:33 +00:00
Russell Bryant
5ec4ea248c Copy astcli back to 1.4 so it's available for automated testing purposes.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@280944 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-08-04 18:54:35 +00:00
Tilghman Lesher
996a394a7d Prevent DAHDI channels from overriding the callerid, once it's been set by the user.
(closes issue #16661)
 Reported by: jstapleton
 Patches: 
       20100414__issue16661.diff.txt uploaded by tilghman (license 14)
       20100415__issue16661__1.6.2.diff.txt uploaded by tilghman (license 14)
 Tested by: jstapleton


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@280811 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-08-03 20:49:10 +00:00
David Vossel
27c86f1e9a fixes issue with translator frame not getting freed
A translator frame even if it local storage so the translation path
can be freed.  This issue prevented g729 licenses from being freed up.

(closes issue #17630)
Reported by: manvirr
Patches:
      encoder_fix.diff uploaded by dvossel (license 671)
Tested by: manvirr, dvossel



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@280448 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-29 19:04:23 +00:00
Jean Galarneau
cf0d36226d Fix a dsp structure leak occuring when a local channel is put into a meetme
conference, then masquaraded away.
ABE-2422


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@280341 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-29 15:52:31 +00:00
Leif Madsen
d41395c6bf Update help text to be less confusing.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@280088 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-28 13:50:38 +00:00
David Vossel
0ebd53bba8 remove empty audiohook write list on channel
If a channel has an audiohook write list created on it, that
list stays on the channel until the channel is destroyed.  There
is no reason to keep that list on the channel if it becomes empty.
If it is empty that just means we are doing needless translating
for every ast_read and ast_write.  This patch removes the audiohook
list from the channel once it is detected to be empty on either a
read or write.  If a audiohook is added back to the channel after
this list is destroyed, the list just gets recreated as if it never
existed to begin with.

(closes issue #17630)
Reported by: manvirr

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




git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@279945 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-27 20:33:40 +00:00
Bradley Latus
13e5091b72 Minor update to man page
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@279346 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-24 23:57:38 +00:00
Jeff Peeler
20454a45d2 Provide a default value for DAHDI_TRANSCODE so when DAHDI is not installed
menuselect doesn't get confused:
Unknown value '' found in build_tools/menuselect-deps for DAHDI_TRANSCODE


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@279344 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-24 23:27:22 +00:00
Richard Mudgett
08883af231 SIP promiscuous redirect could fail to dial the redirect.
The ast_channel was created with one variable to ast_request() but the
call to ast_call() that initiates the outgoing call was using a different
variable.  The two variables are not equivalent if the call_forward string
included a channel technology specifier.  e.g., SIP/200


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@279206 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-23 21:56:44 +00:00
Mark Michelson
7bc66e1d77 Backport fixes for sip_uri_params_cmp() from trunk.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@279053 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-23 18:04:05 +00:00
Tilghman Lesher
6a367c5674 Establish a maximum version for openh323 (i.e. not opal), because chan_h323 will fail to load, even if it links.
(issue #17679)
Reported by: am


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@278984 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-23 17:04:15 +00:00
Tilghman Lesher
307d1b7888 Avoid race with consolethread on shutdown (on parallel processors).
(closes issue #17080)
 Reported by: sybasesql
 Patches: 
       20100721__issue17080.diff.txt uploaded by tilghman (license 14)
 Tested by: sybasesql


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@278981 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-23 16:42:25 +00:00
Richard Mudgett
8f60bcf42f DNID does not get cleard on a new call when using immediate=yes with ISDN signaling.
When you are using chan_dahdi ISDN signaling with immediate=yes and a call
comes in without a DNID then you get the DNID of a previous call.
Chan_dahdi does not touch the DNID field on a new call if it does not have
a DNID.

Made always copy the DNID from the new call.

The patches backport the relevant changes from trunk -r210387.

(closes issue #17568)
Reported by: wuwu
Patches:
      issue17568_v1.4.patch uploaded by rmudgett (license 664)
      issue17568_v1.6.2.patch uploaded by rmudgett (license 664)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@278701 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-22 19:31:34 +00:00
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