Commit Graph

10021 Commits

Author SHA1 Message Date
BJ Weschke
1dd8d10aa9 Merged revisions 43897 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r43897 | bweschke | 2006-09-28 12:37:15 -0400 (Thu, 28 Sep 2006) | 3 lines

 app_queue is comparing the device names incorrectly while checking their statuses. It's internal list of interfaces includes the dial string, while the argument passed to this function does not have the dial string (/n for a local channel). This causes it to ignore the device state changes because it thinks it belongs to none of its members. (#8040 reported and patch by tim_ringenbach)


........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@43899 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-28 16:41:05 +00:00
Kevin P. Fleming
81c8f6b539 Merged revisions 43895 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r43895 | kpfleming | 2006-09-28 11:32:44 -0500 (Thu, 28 Sep 2006) | 2 lines

eliminate compiler warning introduced by recent changes

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@43898 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-28 16:38:25 +00:00
Joshua Colp
a30a5f2f09 Merged revisions 43891 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r43891 | file | 2006-09-28 12:13:55 -0400 (Thu, 28 Sep 2006) | 2 lines

Stop the stream after waitstream returns so that our formats get restored. (issue #7370 reported by kryptolus)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@43893 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-28 16:17:36 +00:00
Paul Cadach
f1ebcc8e34 Fix compiler warning
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@43877 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-28 15:56:21 +00:00
BJ Weschke
675749c706 Merged revisions 43871 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r43871 | bweschke | 2006-09-28 11:18:05 -0400 (Thu, 28 Sep 2006) | 3 lines

 Fix race condion crash with get_member_status (#7864 - tim_ringenbach reported and patched)


........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@43873 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-28 15:29:21 +00:00
BJ Weschke
669bbb6784 Autopause not working for queue members. (#8042 - jmls reported and patch)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@43864 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-28 13:24:10 +00:00
Paul Cadach
89e23aa040 Force remote side to start media on outgoing PROGRESS message
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@43862 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-28 12:58:22 +00:00
Paul Cadach
bfaac1699c Put attribute tag at correct place
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@43861 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-28 12:47:23 +00:00
Christian Richter
a3f43a7dfe Merged revisions 43764 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r43764 | crichter | 2006-09-27 14:51:03 +0200 (Mi, 27 Sep 2006) | 1 line

fixed a bug which led to chan_list zombies, when the call could not be properly established in misdn_call. also removed the ACK_HDLC stuff which is not really needed.
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@43852 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-28 11:03:05 +00:00
Paul Cadach
e2d1986cec Do not open transmit channel until TCS is received
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@43846 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-28 10:51:21 +00:00
Paul Cadach
13663f59cf Don't warn on HOLD/UNHOLD control frames
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@43844 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-28 06:02:45 +00:00
Paul Cadach
8d881f8be0 Don't treat unknown control frames as voice
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@43843 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-28 06:01:37 +00:00
Tilghman Lesher
07317339ce Merged revisions 43815 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r43815 | tilghman | 2006-09-27 15:20:35 -0500 (Wed, 27 Sep 2006) | 2 lines

Avoid inability to lock directory log message by creating the directory ahead of time. (Issue 7631)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@43816 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-27 20:21:54 +00:00
Jason Parker
482c18499e Fix an issue with PLAYBACKSTATUS not being set under certain circumstances.
Fix a minor issue, to make it use the filenames that were parsed, instead of the entire argument string.
Fix Background() to return -1 like Playback(), if no args are specified.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@43803 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-27 19:44:02 +00:00
Jason Parker
a65a888802 Blocking this from 1.4, fix is quite a bit different.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@43801 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-27 19:36:23 +00:00
Joshua Colp
f149686e8b Compensate for out of order packets better if RFC2833 compensation is turned on.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@43798 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-27 19:10:59 +00:00
Joshua Colp
0929a218f3 Get rid of two functions from a time now past (we THINK these are from pre-recursive lock time) that may be contributing to two open issues on the bug tracker (7562/7939) and that has the potential to just make bad things happen if the timing is right.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@43783 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-27 17:00:31 +00:00
Russell Bryant
439f15bdb9 Merged revisions 43778 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r43778 | russell | 2006-09-27 12:54:30 -0400 (Wed, 27 Sep 2006) | 42 lines

Fix a problem that occurred if a user entered a digit that matched a bridge
feature that was configured using multiple digits, and the digit that was
pressed timed out in the feature digit timeout period.  For example, if blind
transfer is configured as '##', and a user presses just '#'.  In this situation,
the call would lock up and no longer pass any frames.
(issue #7977 reported by festr, and issue #7982 reported by michaels and
 valuable input provided by mneuhauser and kuj.  Fixed by me, with testing help
 and peer review from Joshua Colp).

There are a couple of issues involved in this fix:

1) When ast_generic_bridge determines that there has been a timeout, it returned
   AST_BRIDGE_RETRY.  Then, when ast_channel_bridge gets this result, it calls
   ast_generic_bridge over again with the same timestamp for the next event.
   This results in an endless loop of nothing until the call is terminated.
   This is resolved by simply changing ast_generic_bridge to return 
   AST_BRIDGE_COMPLETE when it sees a timeout.

2) I also changed ast_channel_bridge such that if in the process of calculating
   the time until the next event, it knows a timeout has already occured, to
   immediately return AST_BRIDGE_COMPLETE instead of attempting to bridge the
   channels anyway.

3) In the process of testing the previous two changes, I ran into a problem in
   res_features where ast_channel_bridge would return because it determined
   that there was a timeout.  However, ast_bridge_call in res_features would
   then determine by its own calculation that there was still 1 ms before the
   timeout really occurs.  It would then proceed, and since the bridge broke
   out and did *not* return a frame, it interpreted this as the call was over
   and hung up the channels.

   The reason for this was because ast_bridge_call in res_features and
   ast_channel_bridge in channel.c were using different times for their
   calculations.  channel.c uses the start_time on the bridge config, which
   is the time that the feature digit was recieved.  However, res_features
   had another time, 'start', which was set right before calling 
   ast_channel_bridge.  'start' will always be slightly after start_time in the
   bridge config, and sometimes enough to round up to one ms.

   This is fixed by making ast_bridge_call use the same time as 
   ast_channel_bridge for the timeout calculation.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@43779 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-27 16:55:49 +00:00
Christian Richter
cf7b068f58 removed the chan_misdn versioning, since asterisk has it's own
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@43775 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-27 16:24:51 +00:00
Joshua Colp
8459e9a7ac Make rfc2833compensate a global option.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@43774 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-27 16:23:12 +00:00
Russell Bryant
86c80784e0 Backport revision 43754 from the trunk, which removes an unused buffer from
mm_login to close bug 8038, as well as addresses some formatting and coding
guidelines issues in passing.

Originally, I did not commit this to 1.4 since it is not necessarily fixing a
bug.  However, since the IMAP storage code is brand new, I decided it would
be better to make the change here as well, in case someone has to work on this
code to address issues in the very near future.  I don't want to make
unnecessary merge problems going to the trunk.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@43756 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-27 04:35:18 +00:00
Steve Murphy
740233659f This change to extensions.ael was to fix bug 8031; the install scripts are causing it to be copied to /etc/asterisk/extensions.ael, and because it is a fairly direct conversion of the original extensions.conf, the macro and context names clash with the existing extensions.conf. So, I put an ael- in front of all macros and contexts, and checked every goto and macro call. Also, this file compiles under aelparse.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@43739 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-27 02:32:47 +00:00
Russell Bryant
8857675a88 (This was actually BE-65)
Merged revisions 43708 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r43708 | russell | 2006-09-26 16:49:21 -0400 (Tue, 26 Sep 2006) | 7 lines

Back in revision 4798, this message was changed from using ast_cli() to directly
calling write().  During this change, checking if this was a remote console was
removed.  This caused this message about using "exit" or "quit" to exit an
Asterisk console to come up in times where it did not make sense.  This change
restores the check to see if this is a remote console before printing the
message.  (fixes BE-4)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@43710 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-26 20:56:42 +00:00
Joshua Colp
2862b777fe Merged revisions 43705 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r43705 | file | 2006-09-26 16:38:06 -0400 (Tue, 26 Sep 2006) | 2 lines

Use proper type to represent the group variable (issue #8025 reported by makoto)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@43707 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-26 20:47:26 +00:00
Russell Bryant
6a4c92a630 Add missing newline character in the warning message about deprecated TOS values
in configuration.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@43703 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-26 20:30:36 +00:00
Russell Bryant
6cb2b9fedb Merged revisions 43699 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r43699 | russell | 2006-09-26 16:23:15 -0400 (Tue, 26 Sep 2006) | 6 lines

When parsing the sections of voicemail.conf that contain mailbox definitions,
don't introduce a length limit on the definition by using a 256 byte temporary
storage buffer.  Instead, make the temporary buffer just as big as it needs
to be to hold the entire mailbox definition.
(fixes BE-68)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@43700 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-26 20:24:39 +00:00
Joshua Colp
6dc8b23feb Strip options off the argument passed for devicestate in chan_local. (issue #8034 reported by pcardozo)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@43697 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-26 20:19:33 +00:00
Joshua Colp
d95288fdf8 Slight overhaul of the whisper support. 1. We need to duplicate the frame from ast_translate 2. We need to ensure we always have signed linear coming in for signed linear combining. 3. We need to ensure we are always feeding signed linear out. 4. Properly store and restore write format when beeping on the channel we are whispering on. 5. Properly discontinue the stream on the channel for the beep. (issue #8019 reported by timkelly1980)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@43695 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-26 20:09:41 +00:00
Kevin P. Fleming
07e5f6c4b5 update to use 1.4.3 core sounds, with corrected beep/beeperr/tt-monkeys files
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@43676 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-26 18:34:27 +00:00
Jason Parker
49e903f56d Issue #8015, patch by Dan Austin.
Maximum values were incorrect, which is why this is being put in 1.4


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@43674 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-26 18:08:51 +00:00
Jason Parker
955cb53b6b Add proper codec support to chan_skinny. Works with at least ulaw, alaw, and g729a.
This is technically a "new feature", but there are justifications for it.

I found a bug with the recent rtp packetization changes, which caused the media setup to
fail under certain circumstances, particularly when using allow=all, or having no allow=
statements (globally or on the device).

I could have either removed the rtp packetization features, or I could add proper codec
support (which, without, I think most people would consider to be a bug anyways).


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@43650 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-26 15:33:47 +00:00
Tilghman Lesher
314d85326e Should have moved these lines up in the merge, instead of removing them
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@43642 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-25 22:07:44 +00:00
Tilghman Lesher
84f8e88490 Merged revisions 43634 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r43634 | tilghman | 2006-09-25 16:14:41 -0500 (Mon, 25 Sep 2006) | 4 lines

Two bugs when forwarding voicemail (Issue 7824):
1) delete=yes was ignored
2) maxmessages was ignored

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@43640 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-25 22:04:47 +00:00
Paul Cadach
f1018ee8bb Fix ASN1 description of non-standard Cisco extensions
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@43635 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-25 21:26:12 +00:00
Paul Cadach
b2b256eeef Backport changes of trunk:
1) r43540: Avoid possible deadlock on channel destruction
2) r43590: Disable fastStart if requested by remote side


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@43626 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-25 20:28:21 +00:00
Jason Parker
4238648bb6 One more fix for sounds installation - this time for portability.
Reported to asterisk-dev mailing list.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@43616 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-25 15:23:31 +00:00
Steve Murphy
12ed099f07 This tiny fix prevents asterisk from crashing if trying to play an OGG moh file.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@43605 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-25 14:52:28 +00:00
Paul Cadach
4b81fe1d28 Merged revisions 43472,43495 from trunk
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@43582 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-25 06:15:24 +00:00
Russell Bryant
4a8a46a162 Fix a CLI command registration issue where an erroneous message claiming that
"iax2 show provisioning" was already registered.  This was because this command
was registering itself as both the command, as well as the command it is
deprecating.  (issue #8022, reported by bjweeks, fixed by myself)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@43564 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-24 14:58:10 +00:00
Russell Bryant
c259876748 Merged revisions 43552 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r43552 | russell | 2006-09-24 09:50:30 -0400 (Sun, 24 Sep 2006) | 4 lines

Check to see if the channel that is activating the IAXPEER function is actually
an IAX2 channel before proceeding to process it to avoid crashing.
(issue #8017, reported by admott, fixed by myself)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@43553 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-24 13:53:35 +00:00
Kevin P. Fleming
6a27cee242 don't output the 'build complete' message when the target being run is already going to do an installation
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@43524 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-22 23:44:47 +00:00
Jason Parker
e2365e0f0f Allow chan_skinny.so to be unloaded properly.
Remove reload support, since it doesn't actually...work.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@43518 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-22 22:12:12 +00:00
Joshua Colp
2d6134db9c Blocked revisions 43509 via svnmerge
........
r43509 | file | 2006-09-22 17:53:51 -0400 (Fri, 22 Sep 2006) | 2 lines

Yay another 'round of spy fixes! This fixes a small logic flaw with the cleanup function and a memory allocation issue. (issue #7960 reported by jojo & issue #7999 reported by aster1) Special thanks to csum77 for letting me into a box where this issue was happening.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@43510 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-22 21:59:50 +00:00
Steve Murphy
73b0ed54b9 This commits a change to return MODULE_LOAD_FAILURE on error, and SUCCESS (instead of 0) when all goes well for bug 8004
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@43508 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-22 21:36:10 +00:00
Steve Murphy
3836bbd557 If the extensions.ael file not found, or unreadable, we return AST_MODULE_LOAD_DECLINE,
as per bug # 8004.




git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@43505 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-22 21:08:36 +00:00
Jason Parker
408d4b978f Make sure we explicitly set the CLI command to not be deprecated, if it isn't.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@43492 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-22 17:25:05 +00:00
Kevin P. Fleming
b84f7b0518 use rebuilt extra sounds
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@43489 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-22 16:42:46 +00:00
Kevin P. Fleming
53ff7ae7cd all the Linux systems I have don't use '__m_count' for this field, so I don't know where this came from...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@43486 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-22 15:51:13 +00:00
Russell Bryant
eb89724010 backport the compatability fix to use attribute_malloc instaed of
__attribute__ ((malloc))


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@43484 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-22 15:47:14 +00:00
Russell Bryant
0b2dcac484 return AST_MODULE_LOAD_DECLIDE if mISDN could not be configured
(issue #8006, Mithraen)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@43482 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-22 15:42:44 +00:00