]> git.ipfire.org Git - thirdparty/asterisk.git/log
thirdparty/asterisk.git
18 years agoFor bug 7776, I have inserted a warning about Macro nesting vs. stack limitations
Steve Murphy [Wed, 4 Oct 2006 16:02:22 +0000 (16:02 +0000)] 
For bug 7776, I have inserted a warning about Macro nesting vs. stack limitations

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

18 years agoif INFORMATION Message come with keypad instead of called party number, we just use...
Christian Richter [Wed, 4 Oct 2006 15:26:59 +0000 (15:26 +0000)] 
if INFORMATION Message come with keypad instead of called party number, we just use the keypad as called party number.

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

18 years agoadded the option 'reject_cause' to make it possible to set the RELEASE_COMPLETE ...
Christian Richter [Wed, 4 Oct 2006 15:13:58 +0000 (15:13 +0000)] 
added the option 'reject_cause' to make it possible to set the RELEASE_COMPLETE - cause on the 3. incoming PMP channel, which is automatically rejected because chan_misdn does not support that kind of callwaiting. Therefore chan_misdn supports now 3 incoming channels on a PMP BRI Port. misdn_lib_get_free_bc now gets the info if the requested channel is incoming or outgoing to make the 3. channel possible

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

18 years agofix a logic error in my previous fix to the queue reload code
Kevin P. Fleming [Tue, 3 Oct 2006 20:14:13 +0000 (20:14 +0000)] 
fix a logic error in my previous fix to the queue reload code

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

18 years agoChange the fd on the I/O context in case it changed during the reload, which is indee...
Joshua Colp [Mon, 2 Oct 2006 20:07:59 +0000 (20:07 +0000)] 
Change the fd on the I/O context in case it changed during the reload, which is indeed possible. (issue #7943 reported by eclubb)

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

18 years agoWe should be using $AST_SBIN instead of hardcoding the path for the error message...
Joshua Colp [Mon, 2 Oct 2006 19:39:59 +0000 (19:39 +0000)] 
We should be using $AST_SBIN instead of hardcoding the path for the error message (issue #7942 reported by eclubb)

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

18 years agoShrink when current_ioc is unused. It is set to -1 when unused, not 0. (issue #7941...
Joshua Colp [Mon, 2 Oct 2006 17:22:27 +0000 (17:22 +0000)] 
Shrink when current_ioc is unused. It is set to -1 when unused, not 0. (issue #7941 reported by eclubb)

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

18 years agofixed the hold/retrieve/transfer issues, removed a useless bc field, added setting...
Christian Richter [Mon, 2 Oct 2006 13:28:14 +0000 (13:28 +0000)] 
fixed the hold/retrieve/transfer issues, removed a useless bc field, added setting of frame.delivery fields, some minor code cleanups

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

18 years agoFix the name of the "eventmemberstatus" option in the sample queues.conf
Russell Bryant [Sun, 1 Oct 2006 15:19:23 +0000 (15:19 +0000)] 
Fix the name of the "eventmemberstatus" option in the sample queues.conf
(issue #8065, adamg)

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

18 years agoproper fix for ast_group_t change
Kevin P. Fleming [Fri, 29 Sep 2006 13:44:12 +0000 (13:44 +0000)] 
proper fix for ast_group_t change

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

18 years agoPut in missing \ns on the end of ast_logs (issue #7936 reported by wojtekka)
Joshua Colp [Thu, 28 Sep 2006 18:00:30 +0000 (18:00 +0000)] 
Put in missing \ns on the end of ast_logs (issue #7936 reported by wojtekka)

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

18 years agofix buggy (and overly complex) loop used during reload of app_queue for static member...
Kevin P. Fleming [Thu, 28 Sep 2006 17:31:57 +0000 (17:31 +0000)] 
fix buggy (and overly complex) loop used during reload of app_queue for static member list updating

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

18 years ago app_queue is comparing the device names incorrectly while checking their statuses...
BJ Weschke [Thu, 28 Sep 2006 16:37:15 +0000 (16:37 +0000)] 
 app_queue is comparing the device names incorrectly while checking their statuses. It's internal list of interfaces includes the dial string, while the argument passed to this function does not have the dial string (/n for a local channel). This causes it to ignore the device state changes because it thinks it belongs to none of its members. (#8040 reported and patch by tim_ringenbach)

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

18 years agoeliminate compiler warning introduced by recent changes
Kevin P. Fleming [Thu, 28 Sep 2006 16:32:44 +0000 (16:32 +0000)] 
eliminate compiler warning introduced by recent changes

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

18 years agoStop the stream after waitstream returns so that our formats get restored. (issue...
Joshua Colp [Thu, 28 Sep 2006 16:13:55 +0000 (16:13 +0000)] 
Stop the stream after waitstream returns so that our formats get restored. (issue #7370 reported by kryptolus)

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

18 years ago Fix race condion crash with get_member_status (#7864 - tim_ringenbach reported and...
BJ Weschke [Thu, 28 Sep 2006 15:18:05 +0000 (15:18 +0000)] 
 Fix race condion crash with get_member_status (#7864 - tim_ringenbach reported and patched)

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

18 years agoAvoid inability to lock directory log message by creating the directory ahead of...
Tilghman Lesher [Wed, 27 Sep 2006 20:20:35 +0000 (20:20 +0000)] 
Avoid inability to lock directory log message by creating the directory ahead of time. (Issue 7631)

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

18 years agoPlayback() wasn't setting PLAYBACKSTATUS under several circumstances.
Jason Parker [Wed, 27 Sep 2006 19:35:09 +0000 (19:35 +0000)] 
Playback() wasn't setting PLAYBACKSTATUS under several circumstances.
Playback() returns -1 on missing args - so should Background()

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

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

There are a couple of issues involved in this fix:

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

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

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

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

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

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

18 years agofixed a bug which led to chan_list zombies, when the call could not be properly estab...
Christian Richter [Wed, 27 Sep 2006 12:51:03 +0000 (12:51 +0000)] 
fixed a bug which led to chan_list zombies, when the call could not be properly established in misdn_call. also removed the ACK_HDLC stuff which is not really needed.

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

18 years agoBack in revision 4798, this message was changed from using ast_cli() to directly
Russell Bryant [Tue, 26 Sep 2006 20:49:21 +0000 (20:49 +0000)] 
Back in revision 4798, this message was changed from using ast_cli() to directly
calling write().  During this change, checking if this was a remote console was
removed.  This caused this message about using "exit" or "quit" to exit an
Asterisk console to come up in times where it did not make sense.  This change
restores the check to see if this is a remote console before printing the
message.  (fixes BE-4)

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

18 years agoI changed the channel structure... let's be sure this gets updated!
Joshua Colp [Tue, 26 Sep 2006 20:38:42 +0000 (20:38 +0000)] 
I changed the channel structure... let's be sure this gets updated!

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

18 years agoUse proper type to represent the group variable (issue #8025 reported by makoto)
Joshua Colp [Tue, 26 Sep 2006 20:38:06 +0000 (20:38 +0000)] 
Use proper type to represent the group variable (issue #8025 reported by makoto)

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

18 years agoWhen parsing the sections of voicemail.conf that contain mailbox definitions,
Russell Bryant [Tue, 26 Sep 2006 20:23:15 +0000 (20:23 +0000)] 
When parsing the sections of voicemail.conf that contain mailbox definitions,
don't introduce a length limit on the definition by using a 256 byte temporary
storage buffer.  Instead, make the temporary buffer just as big as it needs
to be to hold the entire mailbox definition.
(fixes BE-68)

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

18 years agoTwo bugs when forwarding voicemail (Issue 7824):
Tilghman Lesher [Mon, 25 Sep 2006 21:14:41 +0000 (21:14 +0000)] 
Two bugs when forwarding voicemail (Issue 7824):
1) delete=yes was ignored
2) maxmessages was ignored

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

18 years agoCheck to see if the channel that is activating the IAXPEER function is actually
Russell Bryant [Sun, 24 Sep 2006 13:50:30 +0000 (13:50 +0000)] 
Check to see if the channel that is activating the IAXPEER function is actually
an IAX2 channel before proceeding to process it to avoid crashing.
(issue #8017, reported by admott, fixed by myself)

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

18 years agoYay another 'round of spy fixes! This fixes a small logic flaw with the cleanup funct...
Joshua Colp [Fri, 22 Sep 2006 21:53:51 +0000 (21:53 +0000)] 
Yay another 'round of spy fixes! This fixes a small logic flaw with the cleanup function and a memory allocation issue. (issue #7960 reported by jojo & issue #7999 reported by aster1) Special thanks to csum77 for letting me into a box where this issue was happening.

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

18 years agoWhitespace change... really just an excuse to test repotools
Tilghman Lesher [Thu, 21 Sep 2006 17:01:48 +0000 (17:01 +0000)] 
Whitespace change... really just an excuse to test repotools

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

18 years agoTDS 0.64 updates
Tilghman Lesher [Thu, 21 Sep 2006 16:18:19 +0000 (16:18 +0000)] 
TDS 0.64 updates

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

18 years agomake some more functions static
Kevin P. Fleming [Wed, 20 Sep 2006 05:08:05 +0000 (05:08 +0000)] 
make some more functions static

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

18 years agofixes some verbose vs debug issues. patch from bug 2617
Matt O'Gorman [Tue, 19 Sep 2006 16:21:08 +0000 (16:21 +0000)] 
fixes some verbose vs debug issues. patch from bug 2617

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

18 years agocid is passed to a destructive function; thus a copy is needed (issue 7961)
Tilghman Lesher [Tue, 19 Sep 2006 12:28:55 +0000 (12:28 +0000)] 
cid is passed to a destructive function; thus a copy is needed (issue 7961)

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

18 years agoIssue #7682 - don't add contacts to 4xx responses.
Olle Johansson [Mon, 18 Sep 2006 20:08:22 +0000 (20:08 +0000)] 
Issue #7682 - don't add contacts to 4xx responses.
(Ugly fix, not proud at all)

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

18 years agoAdd deprecation notice about app_math (issue #7957 reported by k-egg)
Joshua Colp [Mon, 18 Sep 2006 15:30:26 +0000 (15:30 +0000)] 
Add deprecation notice about app_math (issue #7957 reported by k-egg)

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

18 years agoClarified what "callwaiting" does in zapata.conf.
Steve Murphy [Mon, 18 Sep 2006 15:05:56 +0000 (15:05 +0000)] 
Clarified what "callwaiting" does in zapata.conf.

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

18 years agoAdd number unobtainable tone for New Zealand (issue #7969 reported by nic_bellamy)
Joshua Colp [Mon, 18 Sep 2006 15:05:39 +0000 (15:05 +0000)] 
Add number unobtainable tone for New Zealand (issue #7969 reported by nic_bellamy)

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

18 years agoDirectory used the wrong context for delivery of 0- and *- keypresses
Tilghman Lesher [Sun, 17 Sep 2006 13:54:34 +0000 (13:54 +0000)] 
Directory used the wrong context for delivery of 0- and *- keypresses
(according to Directory's own documentation) - Issue 7965

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

18 years agoWhen a realtime peer expires, reset the ipaddress in the realtime database back to...
Tilghman Lesher [Sat, 16 Sep 2006 07:57:04 +0000 (07:57 +0000)] 
When a realtime peer expires, reset the ipaddress in the realtime database back to 0 (Issue 6656)

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

18 years agoWhen the marked user enters the conference, we should no longer timeout
Tilghman Lesher [Sat, 16 Sep 2006 04:44:02 +0000 (04:44 +0000)] 
When the marked user enters the conference, we should no longer timeout

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

18 years agoError message references wrong argument (Issue 7951)
Tilghman Lesher [Thu, 14 Sep 2006 22:16:31 +0000 (22:16 +0000)] 
Error message references wrong argument (Issue 7951)

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

18 years agoBackport bugfix patch from 7918 to 1.2 - msg_cfg destroyed before used
Tilghman Lesher [Wed, 13 Sep 2006 19:51:24 +0000 (19:51 +0000)] 
Backport bugfix patch from 7918 to 1.2 - msg_cfg destroyed before used

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

18 years agoWhen paging, only wait 5 seconds for the marked user to enter the conference.
Tilghman Lesher [Mon, 11 Sep 2006 21:47:23 +0000 (21:47 +0000)] 
When paging, only wait 5 seconds for the marked user to enter the conference.
After that, assume the paging already completed by the time the channel entered
the conference and drop back out.  (Issue 7275)

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

18 years agoSpelling/grammar fixes (Issue 7929)
Tilghman Lesher [Mon, 11 Sep 2006 16:39:06 +0000 (16:39 +0000)] 
Spelling/grammar fixes (Issue 7929)

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

18 years agoTwo grammar issues (bug 7927)
Tilghman Lesher [Mon, 11 Sep 2006 14:40:13 +0000 (14:40 +0000)] 
Two grammar issues (bug 7927)

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

18 years agoOnly truly consider the channel in the same format if the format matches the raw...
Joshua Colp [Sat, 9 Sep 2006 20:24:19 +0000 (20:24 +0000)] 
Only truly consider the channel in the same format if the format matches the raw format OR if a translation path already exists to translate between them. (issue #7887 reported by softins & issue #7803 reported by alvaro_palma_aste). Thanks goes to stubert for giving me access to a box and showing me a scenario where this occured.

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

18 years ago- Reset proper flag
Olle Johansson [Sat, 9 Sep 2006 12:14:03 +0000 (12:14 +0000)] 
- Reset proper flag
- Don't delete SIP dialog prematurely
Strangely enough imported from svn trunk... It's confusing here in Greenland.

(Committing from 36.000 feet above Greenland, on the way to asterisk@von
http://www.pulver.com/asterisk )

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

18 years agoSwap spies during masquerading
Joshua Colp [Fri, 8 Sep 2006 18:50:43 +0000 (18:50 +0000)] 
Swap spies during masquerading

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

18 years agoJump logic was backwards: goto returns 0 if it succeeds, and we should jump if authe...
Tilghman Lesher [Fri, 8 Sep 2006 16:06:17 +0000 (16:06 +0000)] 
Jump logic was backwards:  goto returns 0 if it succeeds, and we should jump if authentication fails.  (Bug #7907)

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

18 years agoUse ast_best_codec to set the read/write format
Joshua Colp [Fri, 8 Sep 2006 04:37:07 +0000 (04:37 +0000)] 
Use ast_best_codec to set the read/write format

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

18 years agoFormat vulnerability fix - allowing the user to specify a format is not a good idea...
Tilghman Lesher [Thu, 7 Sep 2006 23:12:29 +0000 (23:12 +0000)] 
Format vulnerability fix - allowing the user to specify a format is not a good idea (Bug 7811)

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

18 years agoLet's use the same thing we use in other places to calculate our time for ast_cond_ti...
Joshua Colp [Thu, 7 Sep 2006 16:30:44 +0000 (16:30 +0000)] 
Let's use the same thing we use in other places to calculate our time for ast_cond_timedwait (issue #7697 reported by bn999)

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

18 years agoThis should fix the problem reported in 7564: logger config file errors getting lost...
Steve Murphy [Thu, 7 Sep 2006 02:14:14 +0000 (02:14 +0000)] 
This should fix the problem reported in 7564: logger config file errors getting lost because logging isn't configured yet. The problem was that the code that exists to handle this case was not getting reached, because other tests were causing an early return from ast_log().

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

18 years agoadded hours,minutes,seconds .gsm files to the install portion of the makefile, as...
Steve Murphy [Wed, 6 Sep 2006 20:09:10 +0000 (20:09 +0000)] 
added hours,minutes,seconds .gsm files to the install portion of the makefile, as per bug 7545

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

18 years agoDon't close the second file descriptor if it's the same as the first one, as it will...
Joshua Colp [Wed, 6 Sep 2006 20:02:59 +0000 (20:02 +0000)] 
Don't close the second file descriptor if it's the same as the first one, as it will have already been closed elsewhere and could cause massive panic. (issue #7699 reported by bn999)

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

18 years ago Look ma! No more deadlocks! <sic>
BJ Weschke [Wed, 6 Sep 2006 18:16:41 +0000 (18:16 +0000)] 
 Look ma! No more deadlocks! <sic>

 As posted from #7458 and others similar to it in Mantis:
 p->app_lock was a mutex really designed for use with agents not in callback mode. That being the case, I've tried to code it so that when callback mode is used, the app_lock mutex will not be locked/unlocked at all. Please let me know how you make out - and if you continue to deadlock now, please reproduce the deadlock logging information and post to Mantis.

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

18 years agofixed pipe consuming bug when using chanIsAvail (#7878), also moved a debug log to...
Christian Richter [Wed, 6 Sep 2006 17:10:41 +0000 (17:10 +0000)] 
fixed pipe consuming bug when using chanIsAvail (#7878), also moved a debug log to the very begining of misdn_hangup.

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

18 years agoMake realtime regseconds work as people expected (0 on registration expiration or...
Joshua Colp [Wed, 6 Sep 2006 15:55:20 +0000 (15:55 +0000)] 
Make realtime regseconds work as people expected (0 on registration expiration or release, and actual on normal state) (issue #7684 reported by kshumard)

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

18 years agoMerge in last round of spy fixes. This should hopefully eliminate all the issues...
Joshua Colp [Tue, 5 Sep 2006 20:02:48 +0000 (20:02 +0000)] 
Merge in last round of spy fixes. This should hopefully eliminate all the issues people have been seeing by distinctly separating what each component (core/spy) is responsible for. Core is responsible for adding a spy to a channel, feeding frames to the spy, removing the spy from a channel, and telling the spy to stop. Spy is responsible for reading frames in, and cleaning up after itself.

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

18 years agoSmall typo in zapata.conf.sample
Jason Parker [Tue, 5 Sep 2006 16:27:46 +0000 (16:27 +0000)] 
Small typo in zapata.conf.sample

Reported by ppyy in 7881

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

18 years agoDon't kill the pvt before we have sent ACK on CANCEL (needs more testing before makin...
Olle Johansson [Mon, 4 Sep 2006 15:46:07 +0000 (15:46 +0000)] 
Don't kill the pvt before we have sent ACK on CANCEL (needs more testing before making a release)

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

18 years ago Make sure the forwarded channel inherits variables appropriately when we receive...
BJ Weschke [Sun, 3 Sep 2006 17:38:22 +0000 (17:38 +0000)] 
 Make sure the forwarded channel inherits variables appropriately when we receive a call forward in the queue. (#7867 - raarts reported and patched)

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

18 years ago Don't keep trying the same member in certain strategies when members of the queue...
BJ Weschke [Sun, 3 Sep 2006 17:13:38 +0000 (17:13 +0000)] 
 Don't keep trying the same member in certain strategies when members of the queue are unavailable (#7278 - diLLec reported and patched) - This should have been patched here first and then merged into /trunk. My bad!

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

18 years ago Let's NOT spy on Zap/psuedo channels, mmmmmmmmk?
BJ Weschke [Sun, 3 Sep 2006 14:50:59 +0000 (14:50 +0000)] 
 Let's NOT spy on Zap/psuedo channels, mmmmmmmmk?

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

18 years ago Setting a retry of 0 is generally not a good idea and shouldn't be allowed. (#7574...
BJ Weschke [Sun, 3 Sep 2006 14:16:08 +0000 (14:16 +0000)] 
 Setting a retry of 0 is generally not a good idea and shouldn't be allowed. (#7574 - reported by regin)

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

18 years agoOnly wipe the redirected audio & video IP/port if it's specified, and trigger a reinvite.
Joshua Colp [Fri, 1 Sep 2006 22:49:07 +0000 (22:49 +0000)] 
Only wipe the redirected audio & video IP/port if it's specified, and trigger a reinvite.

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

18 years agoput in proper fix for issue #7294 instead of the broken partial fix that was committe...
Kevin P. Fleming [Fri, 1 Sep 2006 17:35:06 +0000 (17:35 +0000)] 
put in proper fix for issue #7294 instead of the broken partial fix that was committed, and thereby also fix issue #7438

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

18 years agoFinish up the last commit (was worse then originally reported)
Joshua Colp [Fri, 1 Sep 2006 16:33:00 +0000 (16:33 +0000)] 
Finish up the last commit (was worse then originally reported)

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

18 years agoDon't treat an unexpected control subclass as voice (issue #7858 reported by PCadach)
Joshua Colp [Fri, 1 Sep 2006 16:28:08 +0000 (16:28 +0000)] 
Don't treat an unexpected control subclass as voice (issue #7858 reported by PCadach)

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

18 years agoIssue #7572 - Hangup when receiving a buggy 487 response to an INVITE
Olle Johansson [Wed, 30 Aug 2006 19:01:55 +0000 (19:01 +0000)] 
Issue #7572 - Hangup when receiving a buggy 487 response to an INVITE

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

18 years agoRestore original functionality of 1.2 in places where ANI was not set, but was
Russell Bryant [Wed, 30 Aug 2006 18:59:44 +0000 (18:59 +0000)] 
Restore original functionality of 1.2 in places where ANI was not set, but was
changed to be set.  The original change was done to ensure that the behavior of
the "callerid" option in each channel driver was consistent, but it caused an
unexpected behavior change of CDR records for users, so this change is being
reverted in 1.2.  (issue #7695)

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

18 years agoProperly handle an ETIMEDOUT result from pthread_cond_timedwait (issue #7318 reported...
Joshua Colp [Wed, 30 Aug 2006 17:58:31 +0000 (17:58 +0000)] 
Properly handle an ETIMEDOUT result from pthread_cond_timedwait (issue #7318 reported by arkadia)

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

18 years agoIssue 7822 - don't use SRV lookups if it's disabled.
Olle Johansson [Wed, 30 Aug 2006 14:31:47 +0000 (14:31 +0000)] 
Issue 7822 - don't use SRV lookups if it's disabled.

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

18 years agoclean up last commit ... most notably, there is no reason to do heap
Russell Bryant [Tue, 29 Aug 2006 13:33:34 +0000 (13:33 +0000)] 
clean up last commit ... most notably, there is no reason to do heap
allocations here, and it also included a potential memory leak

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

18 years agoFixes for bug 7813, via patch submitted by stevens.
Steve Murphy [Tue, 29 Aug 2006 05:49:12 +0000 (05:49 +0000)] 
Fixes for bug 7813, via patch submitted by stevens.

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

18 years agoRemoved from the docs the mention of the ! and =~ operators, as these
Steve Murphy [Mon, 28 Aug 2006 20:51:08 +0000 (20:51 +0000)] 
Removed from the docs the mention of the ! and =~ operators, as these
were knocked out of ast_expr2 because they were new features. Let's hope
I can keep them from getting knocked out of the trunk, too!

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

18 years agoAccording to a note added to 7731 by mneuhauser, this
Steve Murphy [Mon, 28 Aug 2006 19:06:55 +0000 (19:06 +0000)] 
According to a note added to 7731 by mneuhauser, this
will repair a break caused by the last fix (7731).

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

18 years agoThere, much better.
Matthew Fredrickson [Fri, 25 Aug 2006 15:21:18 +0000 (15:21 +0000)] 
There, much better.

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

18 years agoDon't send proceeding twice (#7800)
Matthew Fredrickson [Fri, 25 Aug 2006 15:13:43 +0000 (15:13 +0000)] 
Don't send proceeding twice (#7800)

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

18 years agoText only - clarify the reason for entry into authentication mode when the skipuser...
Tilghman Lesher [Fri, 25 Aug 2006 15:07:16 +0000 (15:07 +0000)] 
Text only - clarify the reason for entry into authentication mode when the skipuser option is ignored

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

18 years agoFix a few issues related to the handling of channel variables
Russell Bryant [Thu, 24 Aug 2006 19:41:26 +0000 (19:41 +0000)] 
Fix a few issues related to the handling of channel variables
 - in pbx_builtin_serialize_variables(), the variable list traversal would stop
   on a variables with empty name/values, which is not appropriate
 - When removing the GROUP variables, use AST_LIST_REMOVE_CURRENT instead of
   AST_LIST_REMOVE
 - During masquerading, when copying the variables list from one channel to the
   other, using AST_LIST_INSERT_TAIL is not valid for appending a whole list.
   It leaves the tail pointer of the list invalid.  Introduce a new macro,
   AST_LIST_APPEND_LIST that appends a list properly.
(issue #7802, softins)

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

18 years agoI can type english. Honest. Thanks Kenny.
Joshua Colp [Thu, 24 Aug 2006 17:13:04 +0000 (17:13 +0000)] 
I can type english. Honest. Thanks Kenny.

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

18 years agoMinor documentation fix to add the 'dynamic' dialplan option from angler
Joshua Colp [Thu, 24 Aug 2006 16:44:41 +0000 (16:44 +0000)] 
Minor documentation fix to add the 'dynamic' dialplan option from angler

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

18 years agoRevert last change - breaks retrieval of builtin variables
Tilghman Lesher [Wed, 23 Aug 2006 16:05:26 +0000 (16:05 +0000)] 
Revert last change - breaks retrieval of builtin variables

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

18 years agoBug 7779 - Using initstate(3) means that we cannot unload this module once loaded.
Tilghman Lesher [Tue, 22 Aug 2006 02:59:37 +0000 (02:59 +0000)] 
Bug 7779 - Using initstate(3) means that we cannot unload this module once loaded.

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

18 years agoMove the load_modules call so that if a module needs
Matt O'Gorman [Mon, 21 Aug 2006 22:34:26 +0000 (22:34 +0000)] 
Move the load_modules call so that if a module needs
realtime support it will work, none do currently but a good
move none the less.

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

18 years agoReformat to match the contribution style of other contributors
Tilghman Lesher [Sun, 20 Aug 2006 22:09:57 +0000 (22:09 +0000)] 
Reformat to match the contribution style of other contributors

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

18 years agoTurn media level c= parsing on by default (issue #7725 reported by psm)
Joshua Colp [Sun, 20 Aug 2006 04:49:48 +0000 (04:49 +0000)] 
Turn media level c= parsing on by default (issue #7725 reported by psm)

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

18 years agoFix a bug with app_voicemail when trying to use app_directory to leave messages
Jason Parker [Sat, 19 Aug 2006 01:03:22 +0000 (01:03 +0000)] 
Fix a bug with app_voicemail when trying to use app_directory to leave messages
to another user (options 3, 5, 2).

If the context/extension didn't exist in the dialplan (and why should it have to?),
it would fail, saying that it's an "invalid extension".

Fix was different in svn trunk.

(issue BE-71)

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

18 years agomake a feeble attempt to avoid the 'how do I enable my hardware echo canceler' questions
Kevin P. Fleming [Fri, 18 Aug 2006 19:10:51 +0000 (19:10 +0000)] 
make a feeble attempt to avoid the 'how do I enable my hardware echo canceler' questions

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

18 years agorename file per crichter's request
Kevin P. Fleming [Thu, 17 Aug 2006 22:00:37 +0000 (22:00 +0000)] 
rename file per crichter's request

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

18 years agoThis rather small ;-) commit merges the changes from my team branch 0.3.0 into t
Christian Richter [Thu, 17 Aug 2006 21:57:19 +0000 (21:57 +0000)] 
This rather small ;-) commit merges the changes from my team branch 0.3.0 into t
he 1.2 branch.

These changes include the new mISDN mqueue interface which makes it possible to
compile chan_misdn against the current cvs version of mISDN/mISDNuser.

These changes also contain various additions and numerous bugfixes to chan_misdn
.

Each change is documented in the commit logs in the team/crichter/0.3.0 branch.

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

18 years agorevert bogus change to attempt to fix bug 7506 which actually causes half of
Russell Bryant [Thu, 17 Aug 2006 16:36:21 +0000 (16:36 +0000)] 
revert bogus change to attempt to fix bug 7506 which actually causes half of
the channels not to get "Newchannel" events at all (issue #7745)

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

18 years agoUse the last CDR entry instead of the first CDR entry for variable retrieving variabl...
Joshua Colp [Thu, 17 Aug 2006 16:22:58 +0000 (16:22 +0000)] 
Use the last CDR entry instead of the first CDR entry for variable retrieving variables using the CDR dialplan function. (issue #7689 reported by voipgate)

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

18 years agoMake app_macro compile again
Joshua Colp [Thu, 17 Aug 2006 16:18:08 +0000 (16:18 +0000)] 
Make app_macro compile again

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

18 years agoIn app_macro, changed the previously changed upper recursion depth limit to a variabl...
Steve Murphy [Thu, 17 Aug 2006 16:07:21 +0000 (16:07 +0000)] 
In app_macro, changed the previously changed upper recursion depth limit to a variable, default of the original val of 7. MACRO_RECURSION is a channel variable that will override the limit, but until I can understand and fix why this limit is neccessary, I am not advertising this variable in the docs. This fix mirrors the changes made in r40200 in trunk.

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

18 years agodon't allow AUEP responses to overflow the stack during a string copy (reported by...
Kevin P. Fleming [Wed, 16 Aug 2006 18:57:44 +0000 (18:57 +0000)] 
don't allow AUEP responses to overflow the stack during a string copy (reported by Mu Security)

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

18 years agouse pbx_builtin_getvar_helper() so that GET VARIABLE can retrieve global
Russell Bryant [Tue, 15 Aug 2006 22:49:41 +0000 (22:49 +0000)] 
use pbx_builtin_getvar_helper() so that GET VARIABLE can retrieve global
variables (issue #7609)

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

18 years agoThis revision fixes bug 7731, the inability for macros to be called more than one...
Steve Murphy [Tue, 15 Aug 2006 22:13:47 +0000 (22:13 +0000)] 
This revision fixes bug 7731, the inability for macros to be called more than one level deep in the 'h' extension.
It also pushes up the limit of recursion depth from 7 to 20.

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

19 years agoadd explicit listing of anthm's contributions (issue #7683)
Kevin P. Fleming [Tue, 8 Aug 2006 18:39:16 +0000 (18:39 +0000)] 
add explicit listing of anthm's contributions (issue #7683)

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

19 years agoIncrease the buffer size for the callid (issue #7675, reported by pssatcs)
Russell Bryant [Tue, 8 Aug 2006 17:04:10 +0000 (17:04 +0000)] 
Increase the buffer size for the callid (issue #7675, reported by pssatcs)

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