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

18 years agoconverted a lot of 256 to PATH_MAX and some white space fixes.
Matt O'Gorman [Thu, 4 Jan 2007 17:45:16 +0000 (17:45 +0000)] 
converted a lot of 256 to PATH_MAX and some white space fixes.

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

18 years agogood catch russell sorry i missed that.
Matt O'Gorman [Thu, 4 Jan 2007 16:48:43 +0000 (16:48 +0000)] 
good catch russell sorry i missed that.
fix magic number with proper sizeof

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

18 years agoWhen using ODBC_STORAGE VoicemailMain doesn't create the
Matt O'Gorman [Wed, 3 Jan 2007 23:22:47 +0000 (23:22 +0000)] 
When using ODBC_STORAGE VoicemailMain doesn't create the
subdirectories for a mailbox such as the INBOX directory.

this patch solves that problem, was written by anthony
be-125

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

18 years ago* Added check for bridging in misdn_call to avoid setting echocancellation
Christian Richter [Wed, 3 Jan 2007 08:24:00 +0000 (08:24 +0000)] 
* Added check for bridging in misdn_call to avoid setting echocancellation
  when 2 mISDN channels are involved and when bridging is set. That lead
  to a kernel panic before under different situations, because we switched
  about 2 times between hardware bridging and echocancelation
* readded MISDN_URATE variable which got lost before, this should make app_v110
  work again
* fixed typo

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

18 years agoadded check for channel ranges in the set/empty channel functions. set pmp_l1_check...
Christian Richter [Tue, 2 Jan 2007 10:07:22 +0000 (10:07 +0000)] 
added check for channel ranges in the set/empty channel functions. set pmp_l1_check default to no. added misdn restart pid cli command. added cleaning of channel when we send a RELEASE_COMPLETE.

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

18 years agolocation of the bug posting guidelines has changed
Kevin P. Fleming [Fri, 29 Dec 2006 00:32:32 +0000 (00:32 +0000)] 
location of the bug posting guidelines has changed

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

18 years agoIssue 8596: Set CAN_BYE flag for 100 trying too
Olle Johansson [Wed, 27 Dec 2006 15:43:52 +0000 (15:43 +0000)] 
Issue 8596: Set CAN_BYE flag for 100 trying too

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

18 years agoFix an error introduced by copying and pasting the handling of the >= operator
Russell Bryant [Mon, 25 Dec 2006 05:19:48 +0000 (05:19 +0000)] 
Fix an error introduced by copying and pasting the handling of the >= operator
for the MATH function.  If a single equal sign was used as an operator, the
function would treat it is as if it were the >= operator.  Now, it properly
handles it as an invalid operator.
(issue #8665, patch by tempest1)

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

18 years agoCheck for the proper return value on an error in a call to mmap().
Russell Bryant [Sun, 24 Dec 2006 07:23:07 +0000 (07:23 +0000)] 
Check for the proper return value on an error in a call to mmap().
This was reported by Andy Wang on the asterisk-dev list.  Thanks!

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

18 years agoRemove a couple of misplaced dots in log messages. This was reported by
Russell Bryant [Sun, 24 Dec 2006 06:47:29 +0000 (06:47 +0000)] 
Remove a couple of misplaced dots in log messages.  This was reported by
Andrea Spadaccini on the asterisk-dev mailing list.

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

18 years agoAdd new silence sound files to the spec for Redhat. (issue #8652 reported by alvaro_p...
Joshua Colp [Thu, 21 Dec 2006 20:25:01 +0000 (20:25 +0000)] 
Add new silence sound files to the spec for Redhat. (issue #8652 reported by alvaro_palma_aste)

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

18 years agoFree localuser structure when we fail to dial (issue #8612 reported by rizzo)
Joshua Colp [Tue, 19 Dec 2006 21:10:26 +0000 (21:10 +0000)] 
Free localuser structure when we fail to dial (issue #8612 reported by rizzo)

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

18 years agowhen we reject a channel, because it's in use already, we shouldn't process the setup...
Christian Richter [Tue, 19 Dec 2006 13:08:51 +0000 (13:08 +0000)] 
when we reject a channel, because it's in use already, we shouldn't process the setup anymore. made the channel allocation a bit easier and more understandable, removed a few unused lines

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

18 years agowhen our PTP Partner sends us a SETUP with a preselected channel we just accept it...
Christian Richter [Mon, 18 Dec 2006 10:19:39 +0000 (10:19 +0000)] 
when our PTP Partner sends us a SETUP with a preselected channel we just accept it, even when we're NT. added some checks for segfaults.

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

18 years agoIssue #8592 - handle 504 as 503 - congestion
Olle Johansson [Fri, 15 Dec 2006 10:51:53 +0000 (10:51 +0000)] 
Issue #8592 - handle 504 as 503 - congestion

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

18 years agoremoved FIXUP state. added check for channel allocation conflict when we create a...
Christian Richter [Thu, 14 Dec 2006 13:03:49 +0000 (13:03 +0000)] 
removed FIXUP state. added check for channel allocation conflict when we create a setup while the other site creates a setup on the same channel, besides the check we resolve this conflict.

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

18 years agoThis small patch fixes bug 8541, where the L option to the Dial app wasn't working...
Steve Murphy [Wed, 13 Dec 2006 04:23:17 +0000 (04:23 +0000)] 
This small patch fixes bug 8541, where the L option to the Dial app wasn't working right. A similar bug (8386) was filed and fixed earlier, but an intervening bug fix to a DTMF problem broke the L() code in a different way. Hopefully, everything is happy now.

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

18 years agoadd silence files
Kevin P. Fleming [Tue, 12 Dec 2006 05:11:13 +0000 (05:11 +0000)] 
add silence files

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

18 years agothe english language can be a tricky beast
Matt O'Gorman [Mon, 11 Dec 2006 23:00:04 +0000 (23:00 +0000)] 
the english language can be a tricky beast

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

18 years agoapp_externalivr needs a real silence file, and additional
Matt O'Gorman [Mon, 11 Dec 2006 21:55:43 +0000 (21:55 +0000)] 
app_externalivr needs a real silence file, and additional
changes to add silence files into core instead of extra
patch provided by bug 8177 with minor additions.

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

18 years agoWhen doing a fork() and exec(), two problems existed (Issue 8086):
Tilghman Lesher [Mon, 11 Dec 2006 00:33:59 +0000 (00:33 +0000)] 
When doing a fork() and exec(), two problems existed (Issue 8086):
1) Ignored signals stayed ignored after the exec().
2) Signals could possibly fire between the fork() and exec(), causing Asterisk
signal handlers within the child to execute, which caused nasty race conditions.

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

18 years agoThis version applies the patch suggested by stevens in bug 7836 (make inbound channel...
Steve Murphy [Sun, 10 Dec 2006 02:14:13 +0000 (02:14 +0000)] 
This version applies the patch suggested by stevens in bug 7836 (make inbound channel RINGING state consistent with other channels).

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

18 years agoUse locking when accessing the registrations list. This list is not actually
Russell Bryant [Sat, 9 Dec 2006 15:45:37 +0000 (15:45 +0000)] 
Use locking when accessing the registrations list.  This list is not actually
used very often, so the likelihood of there being a problem is pretty small,
but still possible.  For example, if the CLI command to list the registrations
was called at the same time that a reload was occurring and the registrations
list was getting destroyed and rebuilt, a crash could occur.

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

18 years agoEnsure that the file position is not incremented beyond the total number of
Russell Bryant [Thu, 7 Dec 2006 18:14:13 +0000 (18:14 +0000)] 
Ensure that the file position is not incremented beyond the total number of
files available for playback.  (issue #8539, ulogic)

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

18 years agoFix the name of the rtignoreregexpire option in the sample configuration file.
Russell Bryant [Wed, 6 Dec 2006 16:05:54 +0000 (16:05 +0000)] 
Fix the name of the rtignoreregexpire option in the sample configuration file.
(issue #8526, arkadia)

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

18 years agoadded the export and import of the MISDN_ADDRESS_COMPLETE Variable to inidcate wether...
Christian Richter [Wed, 6 Dec 2006 15:48:45 +0000 (15:48 +0000)] 
added the export and import of the MISDN_ADDRESS_COMPLETE Variable to inidcate wether the extension is already completely dialed or if there might come additional digits by information elements. also added some docs for that.

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