]> git.ipfire.org Git - thirdparty/asterisk.git/log
thirdparty/asterisk.git
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

18 years agoallow codec_zap to build again, now that transcoder support is in zaptel 1.2
Kevin P. Fleming [Wed, 31 Jan 2007 17:28:15 +0000 (17:28 +0000)] 
allow codec_zap to build again, now that transcoder support is in zaptel 1.2

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

18 years agoDon't print a message indicating that we don't know what to do with a proceeding
Russell Bryant [Tue, 30 Jan 2007 19:41:52 +0000 (19:41 +0000)] 
Don't print a message indicating that we don't know what to do with a proceeding
control frame in ast_request_and_dial().  We just need to ignore it.
(reported by JerJer on #asterisk-dev)

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

18 years agoThe SIGHUP handler was implemented to allow admins to send SIGHUP to a running
Russell Bryant [Tue, 30 Jan 2007 17:12:04 +0000 (17:12 +0000)] 
The SIGHUP handler was implemented to allow admins to send SIGHUP to a running
Asterisk process to reload the configuration.  However, doing the actual reload
in the signal handler itself is a very bad thing to do, because the reload
process includes calling non-reentrant functions such as malloc/calloc/etc.
If Asterisk is running in the background, then the reload will happen
immediately.  However, if running in console mode, the reload doesn't work
until something is typed at the console.  That sort of defeats the purpose,
but I don't see an easy way to get around it at this point.

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

18 years agoComment out the parts in the Makefile that make codec_zap get built. It will
Russell Bryant [Tue, 30 Jan 2007 15:35:23 +0000 (15:35 +0000)] 
Comment out the parts in the Makefile that make codec_zap get built.  It will
not yet build against zaptel 1.2, so I am disabling it to prevent further bug
reports until it gets merged.
(issue #8940)

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

18 years agofixed some possible segfaults. also fixed an very important bug which occurs on high...
Christian Richter [Tue, 30 Jan 2007 14:38:08 +0000 (14:38 +0000)] 
fixed some possible segfaults. also fixed an very important bug which occurs on high load (when calls are very fast generated)

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

18 years agoFix the extraction of the timestamp from video frames. It was using the
Russell Bryant [Tue, 30 Jan 2007 00:15:06 +0000 (00:15 +0000)] 
Fix the extraction of the timestamp from video frames.  It was using the
mapping for a mini-frame instead of a video-frame, which caused it to
get invalid data.
(issue #8795, mihai)

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

18 years agoNow that filename is part of the structure and since it comes before postprocess...
Joshua Colp [Mon, 29 Jan 2007 23:39:39 +0000 (23:39 +0000)] 
Now that filename is part of the structure and since it comes before postprocess... we have to add it to our postprocess line. (reported on asterisk-dev by Boris Bakchiev)

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

18 years agoUse the correct zaptel header file location.
Jason Parker [Mon, 29 Jan 2007 16:48:26 +0000 (16:48 +0000)] 
Use the correct zaptel header file location.

Currently, this will not build - transcoder support will be added to zaptel later today.

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

18 years agoMake COMPLETECALLER and COMPLETEAGENT output to queue_log follow documentation. ...
Joshua Colp [Sat, 27 Jan 2007 02:09:10 +0000 (02:09 +0000)] 
Make COMPLETECALLER and COMPLETEAGENT output to queue_log follow documentation. (issue #7677 reported by amilcar)

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

18 years agoMake the last context entry read in the dominant one. (issue #8918 reported by pj)
Joshua Colp [Sat, 27 Jan 2007 00:03:23 +0000 (00:03 +0000)] 
Make the last context entry read in the dominant one. (issue #8918 reported by pj)

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

18 years agoAllow dequeueing of frames with negative timestamp by moving jitterbuffer frames...
Joshua Colp [Thu, 25 Jan 2007 19:15:29 +0000 (19:15 +0000)] 
Allow dequeueing of frames with negative timestamp by moving jitterbuffer frames check to jb_next. (issue #8546 reported by harmen)

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

18 years agoAdd another note about audio files being played back to each bridged party. (issue...
Joshua Colp [Thu, 25 Jan 2007 01:48:52 +0000 (01:48 +0000)] 
Add another note about audio files being played back to each bridged party. (issue #8718 reported by ppyy)

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

18 years agoFix a seg fault when running this application with no arguments from AGI.
Russell Bryant [Thu, 25 Jan 2007 00:39:50 +0000 (00:39 +0000)] 
Fix a seg fault when running this application with no arguments from AGI.
(issue #8905, junky)

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

18 years agoupdated check_expr via 8322 (refactoring of expression checking impl); elfring contri...
Steve Murphy [Wed, 24 Jan 2007 17:43:50 +0000 (17:43 +0000)] 
updated check_expr via 8322 (refactoring of expression checking impl); elfring contributed a nice code reorg, I contributed some time to get it working again, better messages

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

18 years agofixed the busy problem (dialstatus was not busy when we called a busy extension)
Christian Richter [Wed, 24 Jan 2007 10:48:09 +0000 (10:48 +0000)] 
fixed the busy problem (dialstatus was not busy when we called a busy extension)

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

18 years agoFix an issue related to synchronization of recordings when using Monitor().
Russell Bryant [Wed, 24 Jan 2007 00:57:28 +0000 (00:57 +0000)] 
Fix an issue related to synchronization of recordings when using Monitor().
The bug is a miscalculation of the amount to seek the stream for writing to
disk when the number of samples coming in and out of a channel do not match up.
(issue #8298, #8887, report and patch by guillecabeza, patch files created and
 testing done by whoiswes)

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

18 years agoDon't set a new value for the END_ variable on the channel before using the
Russell Bryant [Wed, 24 Jan 2007 00:17:50 +0000 (00:17 +0000)] 
Don't set a new value for the END_ variable on the channel before using the
old value.  If you do, it will lead to accessing a memory address that has
been free()'d.  (issue #8895, arkadia)

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

18 years agoYield before reading from zaptel timing source under Solaris so that other threads...
Joshua Colp [Tue, 23 Jan 2007 01:41:35 +0000 (01:41 +0000)] 
Yield before reading from zaptel timing source under Solaris so that other threads get a chance to do things. (issue #7875 reported by bob)

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

18 years agoMerge codec_zap support for the transcoder card. This is a standalone codec
Russell Bryant [Mon, 22 Jan 2007 19:39:30 +0000 (19:39 +0000)] 
Merge codec_zap support for the transcoder card.  This is a standalone codec
module so it will not affect anything else.

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

18 years agoMove filestream creation to Mixmonitor loop. This will prevent a blank file from...
Joshua Colp [Mon, 22 Jan 2007 19:08:52 +0000 (19:08 +0000)] 
Move filestream creation to Mixmonitor loop. This will prevent a blank file from being created if no frames ever pass through to be recorded. (issue #7589 reported by steve_mcneil)

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

18 years agoExplicitly declare what codecs are supported by default globally since using a bitmas...
Joshua Colp [Mon, 22 Jan 2007 16:23:03 +0000 (16:23 +0000)] 
Explicitly declare what codecs are supported by default globally since using a bitmask for all may include ones we don't need. (issue #8357 reported by gknispel_proformatique)

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

18 years agoFix a memory leak on command line tab completion. The container for the
Russell Bryant [Fri, 19 Jan 2007 16:44:09 +0000 (16:44 +0000)] 
Fix a memory leak on command line tab completion.  The container for the
matches was freed, but the individual matches themselves were not.
(issue #8851, arkadia)

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

18 years agoissue 7877: chan_zap module reload does not use default/initialized values on subsequ...
Dwayne M. Hubbard [Thu, 18 Jan 2007 23:47:10 +0000 (23:47 +0000)] 
issue 7877: chan_zap module reload does not use default/initialized values on subsequent loads.  Reset configuration variables to default values prior to parsing configuration file.

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

18 years agosupport echo cancellers that can handle 64ms or 128ms of echo cancellation
Kevin P. Fleming [Thu, 18 Jan 2007 23:35:35 +0000 (23:35 +0000)] 
support echo cancellers that can handle 64ms or 128ms of echo cancellation

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

18 years agoIf a timezone is not specified, assume localtime (instead of gmtime) (Issue #7748)
Tilghman Lesher [Thu, 18 Jan 2007 21:11:34 +0000 (21:11 +0000)] 
If a timezone is not specified, assume localtime (instead of gmtime) (Issue #7748)

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

18 years agoDocument all the fields, including the indication that "uniqueid" should not be renamed.
Tilghman Lesher [Thu, 18 Jan 2007 17:42:17 +0000 (17:42 +0000)] 
Document all the fields, including the indication that "uniqueid" should not be renamed.

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

18 years agoMove the check for a failure of ast_channel_alloc() to before locking the
Russell Bryant [Wed, 17 Jan 2007 21:17:21 +0000 (21:17 +0000)] 
Move the check for a failure of ast_channel_alloc() to before locking the
pvt structure again.  Otherwise, on a failure, this will cause a deadlock.

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

18 years agoWhen ast_strip_quoted was called with a zero-length string, it would treat a
Tilghman Lesher [Wed, 17 Jan 2007 20:52:21 +0000 (20:52 +0000)] 
When ast_strip_quoted was called with a zero-length string, it would treat a
NULL as if it were the quoting character (and would thus return the string
in memory immediately following the passed-in string).

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

18 years agoAdd documentation walkthrough on getting Postgres to work with voicemail (from Issue...
Tilghman Lesher [Tue, 16 Jan 2007 21:50:04 +0000 (21:50 +0000)] 
Add documentation walkthrough on getting Postgres to work with voicemail (from Issue 8513)

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

18 years agoPostgres driver doesn't like a NULL pointer when retrieving the length (Bug 8513)
Tilghman Lesher [Tue, 16 Jan 2007 21:26:06 +0000 (21:26 +0000)] 
Postgres driver doesn't like a NULL pointer when retrieving the length (Bug 8513)

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

18 years agoReturn previous behavior. ParkedCalls will be able to do DTMF based transfers again...
Joshua Colp [Tue, 16 Jan 2007 17:36:50 +0000 (17:36 +0000)] 
Return previous behavior. ParkedCalls will be able to do DTMF based transfers again. trunk however will get an option to allow this to be set on/off. (issue #8804 reported by nortex)

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

18 years agoAdd none as a valid callgroup/pickupgroup option. I consider it a bug that it would...
Joshua Colp [Tue, 16 Jan 2007 05:53:31 +0000 (05:53 +0000)] 
Add none as a valid callgroup/pickupgroup option. I consider it a bug that it would inherit it all the way down and not have any way to reset it to nothing - so that's why it is in 1.2. (issue #8296 reported by gkloepfer)

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

18 years agoCheck return value before dereferencing (Bug 8822)
Tilghman Lesher [Mon, 15 Jan 2007 23:09:02 +0000 (23:09 +0000)] 
Check return value before dereferencing (Bug 8822)

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

18 years agoSolves issue with forwarding voicemails from folders other than inbox.
Matt O'Gorman [Mon, 15 Jan 2007 20:44:53 +0000 (20:44 +0000)] 
Solves issue with forwarding voicemails from folders other than inbox.
patch by anthonyl.

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

18 years agoBug 8814 - db should look for its header using a relative path, instead of the system...
Tilghman Lesher [Sun, 14 Jan 2007 05:01:16 +0000 (05:01 +0000)] 
Bug 8814 - db should look for its header using a relative path, instead of the system path (Fixes FreeWRT)

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

18 years agominor documentation clarification
Kevin P. Fleming [Fri, 12 Jan 2007 14:34:15 +0000 (14:34 +0000)] 
minor documentation clarification

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

18 years agoIssue #8793 bad response for Unsupported Extension (different fix).
Olle Johansson [Thu, 11 Jan 2007 18:11:09 +0000 (18:11 +0000)] 
Issue #8793 bad response for Unsupported Extension (different fix).

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

18 years agowhen we get L2 UP, the L1 is UP definitely too, so we set the L1 state up as well.
Christian Richter [Thu, 11 Jan 2007 14:45:38 +0000 (14:45 +0000)] 
when we get L2 UP, the L1 is UP definitely too, so we set the L1 state up as well.

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

18 years ago* more additions to make the RESTART message work
Christian Richter [Thu, 11 Jan 2007 13:27:52 +0000 (13:27 +0000)] 
* more additions to make the RESTART message work
* added fix for misdn_call to allow SETUPs with empty
  extensions, replaced the strtok_r functions with strsep for that
  (inspired by Sandro Cappellazzo, thanks)

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

18 years agomore fixes regarding warnings for gcc-4 and first additions for the restart Informati...
Christian Richter [Wed, 10 Jan 2007 09:51:00 +0000 (09:51 +0000)] 
more fixes regarding warnings for gcc-4 and first additions for the restart Information element, in the first step we initiate a restart with a CLI command

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

18 years agoAdd another return value to dial_exec_full that indicates execution is going to conti...
Joshua Colp [Wed, 10 Jan 2007 04:51:06 +0000 (04:51 +0000)] 
Add another return value to dial_exec_full that indicates execution is going to continuing at a new extension/context/priority and to just let it slide. (issue #8598 reported by jon)

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

18 years agoMake the number that represents the major version number a single digit instead
Russell Bryant [Wed, 10 Jan 2007 02:16:45 +0000 (02:16 +0000)] 
Make the number that represents the major version number a single digit instead
of 2.  Using two digits makes it an octal number when put into version.h, which
breaks the compilation of any out of tree module that checks the version for
any version after 1.2.7 (reported by Matteo Brancaleoni on the asterisk-dev
mailing list, who gave credit to vihai for pointing it out)

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

18 years agoThe advent of realtime has enabled people to use commas in the fullname field.
Tilghman Lesher [Tue, 9 Jan 2007 13:30:04 +0000 (13:30 +0000)] 
The advent of realtime has enabled people to use commas in the fullname field.
This could cause an issue with sending voicemails, when the field is unquoted.
(Issue 8595)

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

18 years agomake gcc 4 happy, remove some warnings
Christian Richter [Mon, 8 Jan 2007 08:37:08 +0000 (08:37 +0000)] 
make gcc 4 happy, remove some warnings

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

18 years agoEnsure we use the default refresh value of 60 if the remote server does not send...
Joshua Colp [Mon, 8 Jan 2007 05:10:07 +0000 (05:10 +0000)] 
Ensure we use the default refresh value of 60 if the remote server does not send one. (issue #8746 reported by maethor)

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

18 years agoIf openstream fails, then we crash (Issue 8564)
Tilghman Lesher [Sun, 7 Jan 2007 21:43:10 +0000 (21:43 +0000)] 
If openstream fails, then we crash (Issue 8564)

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

18 years agoensure that threads which are supposed to be detached (because we aren't going to...
Kevin P. Fleming [Fri, 5 Jan 2007 16:56:40 +0000 (16:56 +0000)] 
ensure that threads which are supposed to be detached (because we aren't going to wait on them) are created properly

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