]> git.ipfire.org Git - thirdparty/asterisk.git/log
thirdparty/asterisk.git
18 years agoUse the more generic check for "sed -r" support that was already present in 1.4.
Russell Bryant [Tue, 3 Apr 2007 23:00:10 +0000 (23:00 +0000)] 
Use the more generic check for "sed -r" support that was already present in 1.4.
(related to issue #9399)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@60014 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoOn Darwin, the -r argument to sed is not valid. It has to be -E.
Russell Bryant [Tue, 3 Apr 2007 22:54:49 +0000 (22:54 +0000)] 
On Darwin, the -r argument to sed is not valid.  It has to be -E.
(issue #9399, reported by jcovert)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@60012 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoDon't attempt to report configuration errors in build_user(). oej pointed out
Russell Bryant [Tue, 3 Apr 2007 19:15:04 +0000 (19:15 +0000)] 
Don't attempt to report configuration errors in build_user().  oej pointed out
that for a "friend" entry, this won't work, because all user options are valid
for peers, but not the other way around.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59938 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoMake chan_sip report when it encounters an unknown option.
Russell Bryant [Tue, 3 Apr 2007 18:43:54 +0000 (18:43 +0000)] 
Make chan_sip report when it encounters an unknown option.
(issue #9440, reported by nightcrawler)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59916 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoWhen doing a built-in blind or attended transfer, restore the ability to use '#'
Russell Bryant [Tue, 3 Apr 2007 17:58:19 +0000 (17:58 +0000)] 
When doing a built-in blind or attended transfer, restore the ability to use '#'
to terminate the number and immediately do the transfer instead of having to
dial the number and just wait for the feature digit timeout.
(issue #8366, xueliangliang)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59886 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoptp is the 5th bit, not the 4th.
Nadi Sarrar [Tue, 3 Apr 2007 10:40:58 +0000 (10:40 +0000)] 
ptp is the 5th bit, not the 4th.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59803 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoUse the new sysfs way of mISDN 1.2 to check if a port is NT or not.
Nadi Sarrar [Tue, 3 Apr 2007 09:37:00 +0000 (09:37 +0000)] 
Use the new sysfs way of mISDN 1.2 to check if a port is NT or not.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59788 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoIncrease the maximum size for a string of mailboxes to 1024. (issue #9270 reported...
Joshua Colp [Mon, 2 Apr 2007 18:55:25 +0000 (18:55 +0000)] 
Increase the maximum size for a string of mailboxes to 1024. (issue #9270 reported by rtucker)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59723 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoadded option which allows us to accept incoming SETUP Messages without automatically...
Christian Richter [Mon, 2 Apr 2007 12:08:12 +0000 (12:08 +0000)] 
added option which allows us to accept incoming SETUP Messages without automatically sending Proceeding or Setup Acknowledge, this is useful with some broken switches and if you want to Release incoming calls without previously having acknowledged them. The new option is noautorespond_on_setup=yes|no default is no, so we don't break the existing behaviour

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59639 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agodon't be verbose if no need
Christian Richter [Mon, 2 Apr 2007 07:25:54 +0000 (07:25 +0000)] 
don't be verbose if no need

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59624 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agowe can now make 30 channels on a PRI (before we forgot chan 31..)
Christian Richter [Mon, 2 Apr 2007 07:12:24 +0000 (07:12 +0000)] 
we can now make 30 channels on a PRI (before we forgot chan 31..)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59623 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoAdd the SO_REUSEADDR flag to sockets handled by netsock. This is needed by
Russell Bryant [Sun, 1 Apr 2007 22:35:25 +0000 (22:35 +0000)] 
Add the SO_REUSEADDR flag to sockets handled by netsock.  This is needed by
the patch that went in for issue 7874.  chan_iax2 needs to be able to create
socket that is lisetning on INADDR_ANY, but also be able to bind sockets to
specific addresses.  (Thanks to Stevenson on the asterisk-dev mailing list
for explaining why this flag was needed.)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59608 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoKeep a global array of variables indicating whether certain conference rooms are...
Joshua Colp [Thu, 29 Mar 2007 17:33:58 +0000 (17:33 +0000)] 
Keep a global array of variables indicating whether certain conference rooms are in use. This ensures that two people going into a new dynamic conference when the 'e' option is set don't go into the same conference room. (issue #8835 reported by eliel)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59360 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoIf an error occurs when reading from an RTP socket, and the error code does not
Russell Bryant [Thu, 29 Mar 2007 17:14:33 +0000 (17:14 +0000)] 
If an error occurs when reading from an RTP socket, and the error code does not
indicate that we should try again, then return NULL instead of a "null frame".
This will prevent Asterisk from trying over and over again, and eventually
causing the system to crash.  (issue #8285, john)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59357 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoBackport the change to chan_iax2 to return NULL instead of a "null frame"
Russell Bryant [Thu, 29 Mar 2007 17:10:28 +0000 (17:10 +0000)] 
Backport the change to chan_iax2 to return NULL instead of a "null frame"
from its read callback.  See revision 59341 to the 1.4 branch for more info.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59355 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoIssue 9415 - No point to getting a diagnostic field if we aren't doing anything with...
Tilghman Lesher [Thu, 29 Mar 2007 16:04:46 +0000 (16:04 +0000)] 
Issue 9415 - No point to getting a diagnostic field if we aren't doing anything with the information.
(Plus, it tends to crash the Postgres ODBC driver.)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59301 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoChange ENV section to use setenv, instead of putenv (Alexandru Pirvulescu <sigxcpu...
Tilghman Lesher [Thu, 29 Mar 2007 15:33:10 +0000 (15:33 +0000)] 
Change ENV section to use setenv, instead of putenv (Alexandru Pirvulescu <sigxcpu@gmail.com>, reported via -dev list)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59299 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoOops
Tilghman Lesher [Tue, 27 Mar 2007 23:36:49 +0000 (23:36 +0000)] 
Oops

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59283 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFix a few remaining bad mmap(2) return values
Tilghman Lesher [Tue, 27 Mar 2007 23:31:20 +0000 (23:31 +0000)] 
Fix a few remaining bad mmap(2) return values

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59280 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFix the check of the return value from mmap(). Thanks to Corydon for catching
Russell Bryant [Tue, 27 Mar 2007 23:19:41 +0000 (23:19 +0000)] 
Fix the check of the return value from mmap().  Thanks to Corydon for catching
this one.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59277 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFix the use of the "sourceaddress" option when "bindaddr" is set to 0.0.0.0
Russell Bryant [Tue, 27 Mar 2007 18:04:02 +0000 (18:04 +0000)] 
Fix the use of the "sourceaddress" option when "bindaddr" is set to 0.0.0.0
instead of having each interface explicitly listed.
(issue #7874, patch by stevens)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59258 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agofixed #9355
Christian Richter [Tue, 27 Mar 2007 13:56:15 +0000 (13:56 +0000)] 
fixed #9355

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59252 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agomISDN >= 1.2 provides a dsp pipeline for i.e. echo cancellation modules, make chan_mi...
Nadi Sarrar [Mon, 26 Mar 2007 10:21:56 +0000 (10:21 +0000)] 
mISDN >= 1.2 provides a dsp pipeline for i.e. echo cancellation modules, make chan_misdn use it.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59199 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoOnly try to handle a response if it has a response code. (ASA-2007-011)
Joshua Colp [Sat, 24 Mar 2007 01:35:49 +0000 (01:35 +0000)] 
Only try to handle a response if it has a response code. (ASA-2007-011)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59194 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoUgh. that was dumb. Fixed an error.
Steve Murphy [Fri, 23 Mar 2007 16:07:45 +0000 (16:07 +0000)] 
Ugh. that was dumb. Fixed an error.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59187 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoAdded a few words in the Macro doc strings about the behavior of macros with hangups...
Steve Murphy [Fri, 23 Mar 2007 15:57:26 +0000 (15:57 +0000)] 
Added a few words in the Macro doc strings about the behavior of macros with hangups (et al.), as per 9337

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59186 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoIndicate the filename changed when it is changed. (issue #9311 reported by jsmith)
Joshua Colp [Wed, 21 Mar 2007 18:03:20 +0000 (18:03 +0000)] 
Indicate the filename changed when it is changed. (issue #9311 reported by jsmith)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59086 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agomodified a loglevel
Christian Richter [Tue, 20 Mar 2007 09:23:22 +0000 (09:23 +0000)] 
modified a loglevel

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59063 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoavoid sending a disconnect when we already received one.
Christian Richter [Tue, 20 Mar 2007 09:18:06 +0000 (09:18 +0000)] 
avoid sending a disconnect when we already received one.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59062 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoAdd a note to the security file that the Asterisk CLI and log files may contain
Russell Bryant [Wed, 14 Mar 2007 16:38:48 +0000 (16:38 +0000)] 
Add a note to the security file that the Asterisk CLI and log files may contain
sensitive information, and that people should keep this in mind.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@58896 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agofixed the crypt_keys stuff
Christian Richter [Tue, 13 Mar 2007 12:58:32 +0000 (12:58 +0000)] 
fixed the crypt_keys stuff

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@58850 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoadded method standard_dec for dialing out on groups, to avoid conflicts, which caused...
Christian Richter [Tue, 13 Mar 2007 11:58:16 +0000 (11:58 +0000)] 
added method standard_dec for dialing out on groups, to avoid conflicts, which caused issues with some ISDN providers

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@58849 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoIssue #9229 - No port in request URI on register to non default SIP ports (neelakantan)
Olle Johansson [Tue, 13 Mar 2007 11:45:52 +0000 (11:45 +0000)] 
Issue #9229 - No port in request URI on register to non default SIP ports (neelakantan)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@58847 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoWe can't use the assembler version of fetchadd_int under Intel Macs. (issue #9254...
Joshua Colp [Mon, 12 Mar 2007 16:49:49 +0000 (16:49 +0000)] 
We can't use the assembler version of fetchadd_int under Intel Macs. (issue #9254 reported by darrell budic)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@58832 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoIf we are unable to lookup the host in a c line we have to abort, otherwise the previ...
Joshua Colp [Fri, 9 Mar 2007 20:46:43 +0000 (20:46 +0000)] 
If we are unable to lookup the host in a c line we have to abort, otherwise the previous data is gone and we will (potentially) have no data when all is said and done.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@58579 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agowe can free channel 31 as well, since we can occupy it
Christian Richter [Fri, 9 Mar 2007 14:43:58 +0000 (14:43 +0000)] 
we can free channel 31 as well, since we can occupy it

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@58558 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoOnly print out debug message if the definition that makes the variables shows up...
Joshua Colp [Thu, 8 Mar 2007 16:04:58 +0000 (16:04 +0000)] 
Only print out debug message if the definition that makes the variables shows up was actually defined. (issue #9233 reported by serginuez)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@58388 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFix a problem where the Asterisk channel name could be that of the wrong IAX2
Russell Bryant [Wed, 7 Mar 2007 18:17:07 +0000 (18:17 +0000)] 
Fix a problem where the Asterisk channel name could be that of the wrong IAX2
user for a call.  This is because the first step of choosing this name is to
look for an IAX2 peer that happens to have the same IP/port number that this
call is coming from and assuming that is it.  However, this is not always
correct.  So, I have made it change this name after authentication happens
since at that point, we have an exact match.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@58242 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFix a misplaced block of code in the 1.2 version of the patch to fix issue #8977
Russell Bryant [Wed, 7 Mar 2007 00:27:04 +0000 (00:27 +0000)] 
Fix a misplaced block of code in the 1.2 version of the patch to fix issue #8977

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@58167 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoIf the channels acquired using the manager Redirect action are not up, then
Russell Bryant [Wed, 7 Mar 2007 00:20:13 +0000 (00:20 +0000)] 
If the channels acquired using the manager Redirect action are not up, then
don't attempt to do anything with them.  It could lead to weird behavior,
including crashes.  (issue #8977)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@58164 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFix for 9220: Eyebeam cannot renew subscriptions for presence info. Reason: re-SUBSCR...
Steve Murphy [Tue, 6 Mar 2007 22:52:52 +0000 (22:52 +0000)] 
Fix for 9220: Eyebeam cannot renew subscriptions for presence info. Reason: re-SUBSCRIBE requests don't include Accept headers, which the rfc says are optional (to put it tersely), (it uses MAY), and luckily, the sip_pvt struct has the format info stored, so we simply leave it if the format is set, and the accept header null.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@58115 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoChange error message to proper message
Olle Johansson [Tue, 6 Mar 2007 20:33:21 +0000 (20:33 +0000)] 
Change error message to proper message

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@58052 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years ago Cleanup the Makefile so that we only attempt to include a file when we're building...
BJ Weschke [Tue, 6 Mar 2007 15:17:16 +0000 (15:17 +0000)] 
 Cleanup the Makefile so that we only attempt to include a file when we're building and not 'clean'ing so 'make clean' completes successfully. chan_h323 maintainer: please check to make sure I haven't broken your build target. From: jsmith in #asterisk-dev

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@58008 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agosubdirs like misdn and h323 should be cleaned by the clean target from channels/Makef...
Christian Richter [Mon, 5 Mar 2007 23:18:49 +0000 (23:18 +0000)] 
subdirs like misdn and h323 should be cleaned by the clean target from channels/Makefile as well

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@57962 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoMake create_dirpath use our standard for return values. -1 is failure, 0 is success...
Joshua Colp [Mon, 5 Mar 2007 17:49:18 +0000 (17:49 +0000)] 
Make create_dirpath use our standard for return values. -1 is failure, 0 is success. (issue #9205 reported by ballares)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@57869 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFixed a typo introduced via 9156
Steve Murphy [Mon, 5 Mar 2007 14:53:57 +0000 (14:53 +0000)] 
Fixed a typo introduced via 9156

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@57825 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agofixed another place where the out_cause was hardcoded to 16
Christian Richter [Sun, 4 Mar 2007 10:39:50 +0000 (10:39 +0000)] 
fixed another place where the out_cause was hardcoded to 16

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@57753 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoMemory leak of a list, if call recording was abandoned
Tilghman Lesher [Sat, 3 Mar 2007 06:36:55 +0000 (06:36 +0000)] 
Memory leak of a list, if call recording was abandoned

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@57648 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agofixed typo
Christian Richter [Fri, 2 Mar 2007 18:32:51 +0000 (18:32 +0000)] 
fixed typo

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@57523 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoIf a SIP message comes in and goes to a method handler that requires additional value...
Joshua Colp [Fri, 2 Mar 2007 17:02:46 +0000 (17:02 +0000)] 
If a SIP message comes in and goes to a method handler that requires additional values that may not be present then send back an error.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@57475 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agofurther refinement in wording of goto documentation, as per 9156, goto not proceeding...
Steve Murphy [Fri, 2 Mar 2007 16:39:33 +0000 (16:39 +0000)] 
further refinement in wording of goto documentation, as per 9156, goto not proceeding to next instruction

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@57458 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoDon't even attempt to optimize things when a proxy channel is involved. It will just...
Joshua Colp [Thu, 1 Mar 2007 22:19:32 +0000 (22:19 +0000)] 
Don't even attempt to optimize things when a proxy channel is involved. It will just explode in weird and unexplaineable ways. (issue #9175 reported by clegall_proformatique)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@57317 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoa small documentation update, to reflect reality in the goto doc strings, as per...
Steve Murphy [Wed, 28 Feb 2007 19:12:41 +0000 (19:12 +0000)] 
a small documentation update, to reflect reality in the goto doc strings, as per 9156, Goto does not proceed to next prio if jump fails

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@57118 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFix a few more issues with the agent logoff CLI command. (issue #9123 reported by...
Joshua Colp [Wed, 28 Feb 2007 18:55:45 +0000 (18:55 +0000)] 
Fix a few more issues with the agent logoff CLI command. (issue #9123 reported by arbrandes)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@57092 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agofixed bugs.digium.com bugs: #9157 and bugs.beronet.com bugs: #302, #303, #304
Christian Richter [Wed, 28 Feb 2007 16:09:27 +0000 (16:09 +0000)] 
fixed bugs.digium.com bugs: #9157 and bugs.beronet.com bugs: #302, #303, #304

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@57034 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoObey the clearglobalvars option in extensions reload (or dialplan reload depending...
Joshua Colp [Mon, 26 Feb 2007 20:05:02 +0000 (20:05 +0000)] 
Obey the clearglobalvars option in extensions reload (or dialplan reload depending on your version). (issue #9146 reported by ramonpeek)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@56850 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoEnsure that lock.h is included in utils.c with AST_API_MODULE defined so that
Russell Bryant [Mon, 26 Feb 2007 00:34:31 +0000 (00:34 +0000)] 
Ensure that lock.h is included in utils.c with AST_API_MODULE defined so that
the implementations will be properly included when the AST_INLINE_API functions
are not going to be inlined.  (issue #9124, festr)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@56729 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoIssue 9130 - If prev is the last item on the channel list, then evaluating
Tilghman Lesher [Sun, 25 Feb 2007 14:38:03 +0000 (14:38 +0000)] 
Issue 9130 - If prev is the last item on the channel list, then evaluating
additional conditions (e.g. name prefix) will cause a NULL dereference.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@56684 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFix up a couple more signal handlers to not do bad things that could cause
Russell Bryant [Fri, 23 Feb 2007 23:20:55 +0000 (23:20 +0000)] 
Fix up a couple more signal handlers to not do bad things that could cause
various undesirable results.  The other day, I made Asterisk deadlock by
hitting Control-C because of a bad signal handler.  Now, signal handlers
just set a flag and write to an alert pipe for the flag to be handled.  Then,
there is another thread that is monitoring for these flags.  If being run in
console mode, it is just the main thread.  If Asterisk is in the background,
a thread is created to do it.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@56504 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoDon't destroy mutexes before unregistering all of the entry points from the core.
Russell Bryant [Fri, 23 Feb 2007 20:17:56 +0000 (20:17 +0000)] 
Don't destroy mutexes before unregistering all of the entry points from the core.
Also, fix a potential memory leak from not destroying the locks for all of the
possible call numbers (about 32k of them).

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@56406 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoAlways defer Agent logoff if any channels are up until they hang up. (issue #9123...
Joshua Colp [Thu, 22 Feb 2007 23:19:25 +0000 (23:19 +0000)] 
Always defer Agent logoff if any channels are up until they hang up. (issue #9123 reported by arbrandes)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@56279 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoOnly change the original or clone channel if it's the channel behind the proxy channe...
Joshua Colp [Thu, 22 Feb 2007 18:44:24 +0000 (18:44 +0000)] 
Only change the original or clone channel if it's the channel behind the proxy channel, not if it's just a regular bridged channel.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@56230 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoIf we receive a frame that is not in any of the negotiated formats, then drop
Russell Bryant [Thu, 22 Feb 2007 00:53:25 +0000 (00:53 +0000)] 
If we receive a frame that is not in any of the negotiated formats, then drop
it.  (potentially issue #8781 and SPD-12)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@56010 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoChange naughty warning message to provide useful information. If a write now fails...
Joshua Colp [Wed, 21 Feb 2007 20:32:16 +0000 (20:32 +0000)] 
Change naughty warning message to provide useful information. If a write now fails on a channel in meetme it will tell you the channel name instead of spitting out the wrong error message.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@55956 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agouse new tag version script
Kevin P. Fleming [Wed, 21 Feb 2007 14:03:11 +0000 (14:03 +0000)] 
use new tag version script

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@55868 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFix random crashes when using the MeetMe application. This patch converts list
Russell Bryant [Wed, 21 Feb 2007 00:19:14 +0000 (00:19 +0000)] 
Fix random crashes when using the MeetMe application.  This patch converts list
handling to use the linked list macros and most importantly, implements
reference counting on the ast_conference objects.  The reference counting was
first backported from 1.4.  However, that code has some problems that caused
the reference count to never hit zero.  Those problems are fixed in this patch
and will be resolved in 1.4 and trunk next, with a different patch.

(issues #7647, #9073, #9106, BE-115).

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@55750 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoDefer clearing callback information if channels are up until they are hung up. This...
Joshua Colp [Tue, 20 Feb 2007 22:39:14 +0000 (22:39 +0000)] 
Defer clearing callback information if channels are up until they are hung up. This ensures the hangup process goes smoothly and no channels get hung in limbo. (issue #8088 reported by kebl0155)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@55669 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoConvert a tab to spaces so that the documentation is printed out properly
Russell Bryant [Tue, 20 Feb 2007 19:49:50 +0000 (19:49 +0000)] 
Convert a tab to spaces so that the documentation is printed out properly
aligned.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@55588 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoforcename and forcegreetings options should check to see if the recording already...
Tilghman Lesher [Mon, 19 Feb 2007 18:09:09 +0000 (18:09 +0000)] 
forcename and forcegreetings options should check to see if the recording already exists

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@55434 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoDocumentation update (#9053, jsmith)
Olle Johansson [Sun, 18 Feb 2007 12:32:13 +0000 (12:32 +0000)] 
Documentation update (#9053, jsmith)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@55277 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoIssue #9020 - SIP message retransmission time too short.
Olle Johansson [Sun, 18 Feb 2007 10:36:11 +0000 (10:36 +0000)] 
Issue #9020 - SIP message retransmission time too short.

Backporting fix implemented in 1.4, where we have a minimum level
for the T1 timer.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@55249 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoAnswer the channel before recording privacy information. (issue #8926 reported by...
Joshua Colp [Sat, 17 Feb 2007 03:53:45 +0000 (03:53 +0000)] 
Answer the channel before recording privacy information. (issue #8926 reported by lmamane)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@55153 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoAllow chan_sip to handle attended transfers from a SIP phone that is sitting behind...
Joshua Colp [Sat, 17 Feb 2007 01:09:50 +0000 (01:09 +0000)] 
Allow chan_sip to handle attended transfers from a SIP phone that is sitting behind chan_agent. Yes folks, all it took was one line of code. (issue #8784 reported by pzieba)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@55073 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoRevert the change I did in revisions 54955, 54969, and 54970, in 1.2, 1.4,
Russell Bryant [Fri, 16 Feb 2007 22:48:22 +0000 (22:48 +0000)] 
Revert the change I did in revisions 54955, 54969, and 54970, in 1.2, 1.4,
and trunk.  I decided that once a conference is created from meetme.conf,
it is acceptable behavior that the pin can not be changed until the
conference goes away.  I also added a note in meetme.conf to describe this
behavior.

We still have another issue in 1.4 and trunk where some conferences with no
users don't go away.  That is the real bug that needs to be addressed here.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@55005 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoDo not send indications through ast_indicate in chan_agent but instead go directly...
Joshua Colp [Fri, 16 Feb 2007 22:13:45 +0000 (22:13 +0000)] 
Do not send indications through ast_indicate in chan_agent but instead go directly to the technology. This way when indications are emulated they happen on the Agent channel and do not screw up formats on the channels. (issue #8439 reported by punkgode)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@54999 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFor conferences that are configured in meetme.conf, check the configuration
Russell Bryant [Fri, 16 Feb 2007 20:56:58 +0000 (20:56 +0000)] 
For conferences that are configured in meetme.conf, check the configuration
file every time someone joins the conference instead of only when the
conference is first created.  This is to ensure that changes to the pin
numbers in the config file are always honored.  (issue #9073)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@54955 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoIssue #9069 - If we open with TH we should not close with /TD. (seanbright)
Olle Johansson [Fri, 16 Feb 2007 11:38:03 +0000 (11:38 +0000)] 
Issue #9069 - If we open with TH we should not close with /TD. (seanbright)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@54771 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoUse a separate variable to indicate execution should continue instead of the return...
Joshua Colp [Thu, 15 Feb 2007 16:14:40 +0000 (16:14 +0000)] 
Use a separate variable to indicate execution should continue instead of the return value. (issue #8842 reported by pluto70)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@54622 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agogit-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@54438 65c4cc65-6c06...
Olle Johansson [Wed, 14 Feb 2007 18:40:44 +0000 (18:40 +0000)] 
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@54438 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoWhen handling glare on a PRI, move the requested channel rather than hang up the...
Matthew Fredrickson [Wed, 14 Feb 2007 16:25:49 +0000 (16:25 +0000)] 
When handling glare on a PRI, move the requested channel rather than hang up the old one. Fix for 8957 and 9011.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@54373 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoMake sure that outbound calls are applied to the peer.
Olle Johansson [Tue, 13 Feb 2007 18:35:43 +0000 (18:35 +0000)] 
Make sure that outbound calls are applied to the peer.
This fixes some issues with "hints not working", but only in 1.2.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@54179 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoensure channelcount is cleared before we enumerate transcoders, so 'reload' doesn...
Kevin P. Fleming [Thu, 8 Feb 2007 22:17:49 +0000 (22:17 +0000)] 
ensure channelcount is cleared before we enumerate transcoders, so 'reload' doesn't double the channel count

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@53658 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoIssue 9003 - If fullname is empty, quote() passes back "\""
Tilghman Lesher [Thu, 8 Feb 2007 13:36:10 +0000 (13:36 +0000)] 
Issue 9003 - If fullname is empty, quote() passes back "\""

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@53529 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFix a few potential memory leaks with realtime users and peers. (issue #8999 reported...
Joshua Colp [Wed, 7 Feb 2007 15:38:48 +0000 (15:38 +0000)] 
Fix a few potential memory leaks with realtime users and peers. (issue #8999 reported by bsmithurst)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@53357 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoIssue 7440 - Macro called from Macro from the h extension exits prematurely
Tilghman Lesher [Wed, 7 Feb 2007 15:30:02 +0000 (15:30 +0000)] 
Issue 7440 - Macro called from Macro from the h extension exits prematurely

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@53354 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoIssue 8987 - Status could return two responses (mnicholson)
Tilghman Lesher [Tue, 6 Feb 2007 06:58:28 +0000 (06:58 +0000)] 
Issue 8987 - Status could return two responses (mnicholson)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@53245 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoAdd a proper newline at the end of this sample config file.
Jason Parker [Tue, 6 Feb 2007 00:08:34 +0000 (00:08 +0000)] 
Add a proper newline at the end of this sample config file.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@53224 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoRevert some changes that accidentally got committed as a part of another fix.
Russell Bryant [Sat, 3 Feb 2007 20:39:45 +0000 (20:39 +0000)] 
Revert some changes that accidentally got committed as a part of another fix.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@53134 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoset the DIALSTATUS variable to contain "INVALIDARGS" when the dial application
Russell Bryant [Sat, 3 Feb 2007 20:38:13 +0000 (20:38 +0000)] 
set the DIALSTATUS variable to contain "INVALIDARGS" when the dial application
exits early because of invalid arguments instead of just leaving it empty.
(issue #8975)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@53133 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoPass the glob expanded filename to process_text_line so that error messages contain...
Joshua Colp [Fri, 2 Feb 2007 16:58:09 +0000 (16:58 +0000)] 
Pass the glob expanded filename to process_text_line so that error messages contain the actual filename, not the original include one. (issue #8959 reported by tzafrir)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@53117 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFix a small typo. Synopsis lines shouldn't have a newline
Jason Parker [Thu, 1 Feb 2007 23:14:09 +0000 (23:14 +0000)] 
Fix a small typo.  Synopsis lines shouldn't have a newline

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@53107 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoCopy noncodeccapability over to the joint variable so that telephone-event will get...
Joshua Colp [Thu, 1 Feb 2007 22:21:56 +0000 (22:21 +0000)] 
Copy noncodeccapability over to the joint variable so that telephone-event will get transmitted in the sent INVITE.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@53103 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoDon't negotiate RFC2833 when not configured to do so. (issue #8799 reported by mdu113)
Joshua Colp [Thu, 1 Feb 2007 21:47:11 +0000 (21:47 +0000)] 
Don't negotiate RFC2833 when not configured to do so. (issue #8799 reported by mdu113)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@53095 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years ago- Make sure we release call from call counter before we destroy call (maybe #7744...
Olle Johansson [Thu, 1 Feb 2007 21:12:52 +0000 (21:12 +0000)] 
- Make sure we release call from call counter before we destroy call (maybe #7744 and more)
- Backported by accident from 1.4

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@53090 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoReturn previous behavior of having MOH pick up where it was left off. (issue #8672...
Joshua Colp [Thu, 1 Feb 2007 21:03:10 +0000 (21:03 +0000)] 
Return previous behavior of having MOH pick up where it was left off. (issue #8672 reported by sinistermidget)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@53084 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoBug 8965 - Allow FIELDQTY to work with both variables and dialplan functions
Tilghman Lesher [Thu, 1 Feb 2007 20:07:35 +0000 (20:07 +0000)] 
Bug 8965 - Allow FIELDQTY to work with both variables and dialplan functions

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@53074 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoNo wonder FIELDQTY doesn't work with functions... the documentation in pbx.c was...
Tilghman Lesher [Thu, 1 Feb 2007 19:13:53 +0000 (19:13 +0000)] 
No wonder FIELDQTY doesn't work with functions... the documentation in pbx.c was wrong

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@53069 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFix a bunch of places where pthread_attr_init() was called, but
Russell Bryant [Wed, 31 Jan 2007 21:25:11 +0000 (21:25 +0000)] 
Fix a bunch of places where pthread_attr_init() was called, but
pthread_attr_destroy() was not.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@53045 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoupdate to match modified transcoder API
Kevin P. Fleming [Wed, 31 Jan 2007 18:58:47 +0000 (18:58 +0000)] 
update to match modified transcoder API

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@53044 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoUse the proper format string to print unsigned values in the rtp debug output.
Russell Bryant [Wed, 31 Jan 2007 17:41:51 +0000 (17:41 +0000)] 
Use the proper format string to print unsigned values in the rtp debug output.
(issue #8954, wmis)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@53039 65c4cc65-6c06-0410-ace0-fbb531ad65f3