Olle Johansson [Mon, 11 Sep 2006 18:06:44 +0000 (18:06 +0000)]
Use Timer T1 for dialog timeouts/destruction
(If you have qualify=yes, we will use the actual roundtrip time)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42751
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Mon, 11 Sep 2006 17:02:37 +0000 (17:02 +0000)]
More spelling fixes (issue 7930)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42735
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Mon, 11 Sep 2006 16:41:49 +0000 (16:41 +0000)]
Merged revisions 42716 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r42716 | tilghman | 2006-09-11 11:39:06 -0500 (Mon, 11 Sep 2006) | 2 lines
Spelling/grammar fixes (Issue 7929)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42717
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Anthony LaMantia [Mon, 11 Sep 2006 16:00:53 +0000 (16:00 +0000)]
small fix for issue 007926
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42715
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Mon, 11 Sep 2006 14:41:35 +0000 (14:41 +0000)]
Merged revisions 42697 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r42697 | tilghman | 2006-09-11 09:40:13 -0500 (Mon, 11 Sep 2006) | 2 lines
Two grammar issues (bug 7927)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42698
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Mon, 11 Sep 2006 04:17:23 +0000 (04:17 +0000)]
fix minor typo in coding guidelines
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42684
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Voicetronix Support [Mon, 11 Sep 2006 03:29:08 +0000 (03:29 +0000)]
Board numbers and channel numbers are now 0 based, since vpb driver
version 3.0 (released December 2005)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42671
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Mark Spencer [Sun, 10 Sep 2006 20:28:03 +0000 (20:28 +0000)]
Uhm, make Zap actually work again. Did anybody actually test that code?
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42654
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Sun, 10 Sep 2006 17:35:08 +0000 (17:35 +0000)]
If the leading underscore is not stripped before comparison,
pbx_builtin_getvar_helper() will never find the associated variable.
(Bug 7892)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42638
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Sat, 9 Sep 2006 21:51:07 +0000 (21:51 +0000)]
In trunk, ast_fileexists now returns 0 for failure, instead of -1, as it did
in 1.2. This corrected a longstanding confusion about the return value.
Unfortunately, it broke this app in the process. (Issue 7906)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42621
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Sat, 9 Sep 2006 20:25:45 +0000 (20:25 +0000)]
Merged revisions 42600 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r42600 | file | 2006-09-09 16:24:19 -0400 (Sat, 09 Sep 2006) | 2 lines
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/trunk@42601
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Sat, 9 Sep 2006 19:12:52 +0000 (19:12 +0000)]
Optimize a bit
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42583
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Sat, 9 Sep 2006 18:07:59 +0000 (18:07 +0000)]
It's another round of RTP updates!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42569
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Olle Johansson [Sat, 9 Sep 2006 15:09:16 +0000 (15:09 +0000)]
Add reference to the latest trademark policy on digium.com
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42555
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Olle Johansson [Sat, 9 Sep 2006 12:44:36 +0000 (12:44 +0000)]
Don't destruct sessions prematurely. Especially not when we want reliable retransmissions...
If this works properly, we might have to check 1.2 to implement a backport.
The theory is that if you get a final reply in a session, it is ok to destroy the session.
If you send a final reply, you need to keep the session open for potential retransmits
from the other side. If you send a HANGUP/CANCEL, wait to the other side confirms
or until you have a timeout. If you send HANGUP/CANCEL/ACK reliably, don't destroy
the session so that you cancel the needed retransmits.
I will have to change the timer to 64*T1, but that will be a separate patch. That will
mean that if we know the roundtrip time, we can destroy sessions quicker.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42537
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Olle Johansson [Sat, 9 Sep 2006 12:25:18 +0000 (12:25 +0000)]
importing rev 42535 from 1.2 (which by mistake was actually imported from svn trunk)
- Maybe the first circular commit?
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42536
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Olle Johansson [Sat, 9 Sep 2006 12:01:59 +0000 (12:01 +0000)]
Don't destroy pvt prematurely. Wait for answer or timeout.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42531
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Olle Johansson [Sat, 9 Sep 2006 12:00:19 +0000 (12:00 +0000)]
Clear proper flag
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42521
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Olle Johansson [Sat, 9 Sep 2006 11:45:55 +0000 (11:45 +0000)]
Add warning about res_adsi not being optional to menuselect
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42519
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Kevin P. Fleming [Sat, 9 Sep 2006 03:27:21 +0000 (03:27 +0000)]
more makefile tweaks to keep targets from being run when they don't need to be
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42505
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Matt O'Gorman [Fri, 8 Sep 2006 22:54:28 +0000 (22:54 +0000)]
Get rid of ugly tmp directory, although I really should
fix the way imap accesses its temporary voice files.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42491
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Kevin P. Fleming [Fri, 8 Sep 2006 21:33:32 +0000 (21:33 +0000)]
minor performance improvement
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42477
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Fri, 8 Sep 2006 18:53:41 +0000 (18:53 +0000)]
Merged revisions 42452 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r42452 | file | 2006-09-08 14:50:43 -0400 (Fri, 08 Sep 2006) | 2 lines
Swap spies during masquerading
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42453
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Steve Murphy [Fri, 8 Sep 2006 16:44:38 +0000 (16:44 +0000)]
As per discussion on bug 7862, the problem wasn't the fact that the documentation differed from behavior, but rather that users are used to REGEX having that space after the double quote in 1.2.x. So, in keeping with history, I investigated a little deeper, and discovered that the change in behavior was due to the modification of the function to use the AST_DECLARE_APP_ARGS and AST_NONSTANDARD_APP_ARGS() to parse the args. The code to skip the blank was left out. So, what I did was add code to throw out the first blank (space or tab) after the double quote, IF IT IS THERE. If not, nothing is done.Verbage is added to the function description saying that the space is optional, and skipped if it is there. If a space is desired, then the documentation advises putting two spaces there. This should make it compatible for 1.2 users, and not mess up new users who are used to using it with no space. It WILL mess up new users who WANT a space. Hopefully, they will double check the doc strings for this func and add the extra space. Hopefully, this class of new user is very small.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42423
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Fri, 8 Sep 2006 16:08:36 +0000 (16:08 +0000)]
Merged revisions 42421 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r42421 | tilghman | 2006-09-08 11:06:17 -0500 (Fri, 08 Sep 2006) | 2 lines
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/trunk@42422
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Fri, 8 Sep 2006 04:38:43 +0000 (04:38 +0000)]
Blocked revisions 42402 via svnmerge
........
r42402 | file | 2006-09-08 00:37:07 -0400 (Fri, 08 Sep 2006) | 2 lines
Use ast_best_codec to set the read/write format
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42403
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Fri, 8 Sep 2006 03:51:26 +0000 (03:51 +0000)]
Formatting fixes for chan_oss (issue #7808 reported by Mithraen)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42389
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Fri, 8 Sep 2006 03:46:33 +0000 (03:46 +0000)]
Formatting fixes for chan_alsa (issue #7807 reported by Mithraen with more mods done by myself)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42388
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Fri, 8 Sep 2006 02:54:45 +0000 (02:54 +0000)]
whentohangup is already in seconds, just need to convert to milliseconds
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42374
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Fri, 8 Sep 2006 02:00:45 +0000 (02:00 +0000)]
Destroy msg_cfg after it's used, not before (issue #7618 reported by wvolz with minor mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42373
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Thu, 7 Sep 2006 23:15:43 +0000 (23:15 +0000)]
Merged revisions 42355 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r42355 | tilghman | 2006-09-07 18:12:29 -0500 (Thu, 07 Sep 2006) | 2 lines
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/trunk@42356
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Thu, 7 Sep 2006 21:11:07 +0000 (21:11 +0000)]
Use flags instead of variables on the private structure for things
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42338
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Matthew Fredrickson [Thu, 7 Sep 2006 20:05:37 +0000 (20:05 +0000)]
Make sure we give a little warning about the echotraining option
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42324
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Thu, 7 Sep 2006 19:50:59 +0000 (19:50 +0000)]
Code cleaning/updates/potential bug fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42311
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Thu, 7 Sep 2006 18:54:36 +0000 (18:54 +0000)]
Minor cleanup and make sure the tmp variable is clean
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42298
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Thu, 7 Sep 2006 17:09:55 +0000 (17:09 +0000)]
Use lower case 'x' instead of a UTF-8 character (issue #7888 reported by flefoll)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42284
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Matt O'Gorman [Thu, 7 Sep 2006 17:05:51 +0000 (17:05 +0000)]
protect curhst and curusr
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42283
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Thu, 7 Sep 2006 16:51:11 +0000 (16:51 +0000)]
Convert some warnings into debug messages since they can exist under perfectly normal circumstances that the user shouldn't care about (issue #7894 reported by stephen_dredge)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42264
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Kevin P. Fleming [Thu, 7 Sep 2006 16:42:04 +0000 (16:42 +0000)]
minor wording fix
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42263
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Thu, 7 Sep 2006 16:40:15 +0000 (16:40 +0000)]
Set the variable even if the caller disconnects (issue #7896 reported by jsmith)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42262
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Thu, 7 Sep 2006 16:33:02 +0000 (16:33 +0000)]
Merged revisions 42260 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r42260 | file | 2006-09-07 12:30:44 -0400 (Thu, 07 Sep 2006) | 2 lines
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/trunk@42261
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Matt O'Gorman [Thu, 7 Sep 2006 16:14:53 +0000 (16:14 +0000)]
patch to fix several things wrong with voicemail
imap storage.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42259
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Mark Spencer [Thu, 7 Sep 2006 15:35:52 +0000 (15:35 +0000)]
Comment out default from extensions.ael
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42244
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Steve Murphy [Thu, 7 Sep 2006 04:23:00 +0000 (04:23 +0000)]
With respect to bug 7862, the syntax and description are misleading to users. the syntax included a space after the double quotes between the regex and the data to match. I removed this from the function doc, and added some verbage to make this crystal clear, I hope.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42224
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Steve Murphy [Thu, 7 Sep 2006 03:35:42 +0000 (03:35 +0000)]
Made changes corresponding to those in 1.2 here in main/logger.c for bug 7544.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42208
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Kevin P. Fleming [Thu, 7 Sep 2006 00:41:27 +0000 (00:41 +0000)]
don't try to get the length of the string in the ast_dynamic_str object unless we know there is actually one there
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42185
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Jason Parker [Wed, 6 Sep 2006 21:37:12 +0000 (21:37 +0000)]
Fix a small typo, to make app_followme.c show properly in "show version files"
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42170
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Jason Parker [Wed, 6 Sep 2006 21:00:37 +0000 (21:00 +0000)]
This one's for you, mog
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42154
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Wed, 6 Sep 2006 20:04:17 +0000 (20:04 +0000)]
Merged revisions 42148 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r42148 | file | 2006-09-06 16:02:59 -0400 (Wed, 06 Sep 2006) | 2 lines
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/trunk@42149
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Christian Richter [Wed, 6 Sep 2006 18:02:25 +0000 (18:02 +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/trunk@42126
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Steve Murphy [Wed, 6 Sep 2006 17:14:50 +0000 (17:14 +0000)]
These small app documentation changes to app_dial and app_read will hopefully avert any more 7544 type bug reports\!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42111
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Wed, 6 Sep 2006 17:05:48 +0000 (17:05 +0000)]
Make this module fit the guidelines better
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42109
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Wed, 6 Sep 2006 15:58:21 +0000 (15:58 +0000)]
Merged revisions 42086 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r42086 | file | 2006-09-06 11:55:20 -0400 (Wed, 06 Sep 2006) | 2 lines
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/trunk@42087
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Olle Johansson [Tue, 5 Sep 2006 20:36:27 +0000 (20:36 +0000)]
- Free allocated memory before returning from function
- Fix bad formatting
- Add some comments (more needed to understand what's going on)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42058
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Tue, 5 Sep 2006 20:03:53 +0000 (20:03 +0000)]
Blocked revisions 42054 via svnmerge
........
r42054 | file | 2006-09-05 16:02:48 -0400 (Tue, 05 Sep 2006) | 2 lines
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/trunk@42055
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Tue, 5 Sep 2006 17:23:50 +0000 (17:23 +0000)]
Missing field terminator
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42034
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Tue, 5 Sep 2006 17:01:02 +0000 (17:01 +0000)]
Minor tweak - we need to lock the channel when we are removing the spy from it.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42021
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Jason Parker [Tue, 5 Sep 2006 16:38:22 +0000 (16:38 +0000)]
Merged revisions 42014 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r42014 | qwell | 2006-09-05 09:27:46 -0700 (Tue, 05 Sep 2006) | 4 lines
Small typo in zapata.conf.sample
Reported by ppyy in 7881
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42015
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Olle Johansson [Mon, 4 Sep 2006 15:57:26 +0000 (15:57 +0000)]
Make sure we handle CANCEL/ACK properly (imported with mods from 1.2)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41990
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Mon, 4 Sep 2006 03:18:12 +0000 (03:18 +0000)]
Remove old unused functions
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41974
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Sun, 3 Sep 2006 23:45:03 +0000 (23:45 +0000)]
Use tabs instead of spaces (I <3 tabs -- this is for you Qwell)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41960
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Sun, 3 Sep 2006 23:30:37 +0000 (23:30 +0000)]
Make the difference clear about what the responsibilities of the core and a spy are when it comes to spying on a channel. The core is responsible for adding a spy to a channel, feeding frames into the spy, removing the spy from the channel, and notifying the spy that is has been detached. The spy is responsible for reading frames in, and cleaning itself up. Each side will not try to do the other's job.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41959
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Sun, 3 Sep 2006 23:14:54 +0000 (23:14 +0000)]
Add the ability to specify that a frame should not be considered for caching
for uses in cases where you *know* that it will do no good. This patch was
inspired by file for use in some work of his on mixmonitor/chanspy.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41958
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Sun, 3 Sep 2006 22:56:01 +0000 (22:56 +0000)]
when calling this function to append to a dynamic string and the buffer was not
large enough and had to be reallocated, cut off the partially appended data.
Otherwise, the function will get called over and over again appending to the
end every time and never thinking it has enough room.
Thanks to jmls for access to his machine for debugging!
(issue #7691)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41944
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
BJ Weschke [Sun, 3 Sep 2006 21:26:04 +0000 (21:26 +0000)]
Provide a little more protection to make sure that a MOH class is specified when using the 'm' option with WaitExten, and prevent a segfault in the process.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41930
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
BJ Weschke [Sun, 3 Sep 2006 20:44:14 +0000 (20:44 +0000)]
Fix enum indexing problem with m() in WaitExten. Reported by Pavel J, in asterisk-dev.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41916
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
BJ Weschke [Sun, 3 Sep 2006 20:23:41 +0000 (20:23 +0000)]
Changes/fixes to the app_waitforsilence app to make it behave more the way the author originally intended for it
to function along with an option to keep backward compatible with "old-style" functionality in 1.2.
(#6595 - davetroy reported and patched w/some very minor mods/corrections)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41915
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
BJ Weschke [Sun, 3 Sep 2006 19:32:51 +0000 (19:32 +0000)]
This was added to app_dial a while back, and now it's in app_queue as well. Provide an option to prevent members of the queue from forwarding calls from the queue to somewhere else.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41901
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
BJ Weschke [Sun, 3 Sep 2006 19:07:58 +0000 (19:07 +0000)]
Some changes/fixes for func_curl. curl_global_init is only supposed to be called once, and if it returns non-zero, we need to give up on further executions with that instance. Additionally, let's set absolute timeout values for the CURL connections to try and prevent possible Zap (and possibly other channel tech) channel lockouts.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41900
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
BJ Weschke [Sun, 3 Sep 2006 17:40:08 +0000 (17:40 +0000)]
Merged revisions 41882 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r41882 | bweschke | 2006-09-03 13:38:22 -0400 (Sun, 03 Sep 2006) | 3 lines
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/trunk@41883
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
BJ Weschke [Sun, 3 Sep 2006 17:15:07 +0000 (17:15 +0000)]
Blocking 41880 from coming into /trunk since I already patched it in /trunk first. Ooops!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41881
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
BJ Weschke [Sun, 3 Sep 2006 17:12:30 +0000 (17:12 +0000)]
Don't keep trying the same member in certain strategies when members of the queue are unavailable (#7278 - diLLec reported and patched)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41879
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Sun, 3 Sep 2006 16:44:49 +0000 (16:44 +0000)]
Tweak the if statement a bit
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41865
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Sun, 3 Sep 2006 16:41:02 +0000 (16:41 +0000)]
Don't use ast_frdup() in the AST_LIST_INSERT_TAIL macro directly. That was a
very stupid thing to do. It ends up duplicating the frame twice, linking in
one of them and setting the tail pointer to the other one. Sorry ...
Thanks to file for pointing out the breakage!!! file rocks.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41864
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
BJ Weschke [Sun, 3 Sep 2006 15:21:12 +0000 (15:21 +0000)]
We don't spy on Zap/psuedo channels. Not at all. Never. (#7871 - sxpert reporting)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41850
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Sun, 3 Sep 2006 15:04:26 +0000 (15:04 +0000)]
remove leading space in Packet manager event header
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41849
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
BJ Weschke [Sun, 3 Sep 2006 14:54:02 +0000 (14:54 +0000)]
r41830 isn't going to merge cleanly into /trunk so it is blocked.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41831
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
BJ Weschke [Sun, 3 Sep 2006 14:28:25 +0000 (14:28 +0000)]
Merged revisions 41827 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r41827 | bweschke | 2006-09-03 10:16:08 -0400 (Sun, 03 Sep 2006) | 3 lines
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/trunk@41829
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
BJ Weschke [Sun, 3 Sep 2006 14:26:44 +0000 (14:26 +0000)]
Block 30546 from coming into /trunk. Some old cleanup.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41828
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
BJ Weschke [Sat, 2 Sep 2006 18:36:53 +0000 (18:36 +0000)]
With the somewhat recent addition (from one of the Astridevcon Europe sessions) of more detailed device states, we need to change strategy in app_queue in how we determine whether a queue member is "in use" or not. Basically, instead of specifically looking for that device state as we did previously, now we're going to observe any other device state aside from the two that we know for sure are "not in use" as "in use". This will cause some other states to fall through that we know will never be available (eg - "INVALID","UNAVAILABLE",etc) but there's other code already within to handle those conditions. (#7433 - tgrman reporting)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41810
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Jason Parker [Sat, 2 Sep 2006 01:44:50 +0000 (01:44 +0000)]
It was pointed out to me, that using two frames is silly.
Thanks Josh.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41790
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Jason Parker [Sat, 2 Sep 2006 01:39:42 +0000 (01:39 +0000)]
fix some module loader breakage
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41789
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Jason Parker [Sat, 2 Sep 2006 01:39:15 +0000 (01:39 +0000)]
Fix VLDTMF issues.
It still isn't variable length, but it does let you dial again.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41788
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Fri, 1 Sep 2006 22:51:46 +0000 (22:51 +0000)]
Merged revisions 41768 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r41768 | file | 2006-09-01 18:49:07 -0400 (Fri, 01 Sep 2006) | 2 lines
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/trunk@41769
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Matt O'Gorman [Fri, 1 Sep 2006 22:03:33 +0000 (22:03 +0000)]
get rid of some useless debug messages and raise debug level of others
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41765
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Matt O'Gorman [Fri, 1 Sep 2006 19:23:07 +0000 (19:23 +0000)]
more staticness, and syntax cleaning
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41749
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Fri, 1 Sep 2006 18:57:10 +0000 (18:57 +0000)]
Unbridge the RTP streams at the correct place
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41735
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Fri, 1 Sep 2006 17:54:22 +0000 (17:54 +0000)]
If we are doing video and we can't reinvite, then resort to generic bridging instead of Packet2Packet since video isn't supported there yet. (reported by PCadach in #asterisk-bugs)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41718
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Kevin P. Fleming [Fri, 1 Sep 2006 17:41:52 +0000 (17:41 +0000)]
block this rev... fix is already present in this branch
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41717
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Matt O'Gorman [Fri, 1 Sep 2006 17:20:48 +0000 (17:20 +0000)]
whitespace clean up
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41715
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Fri, 1 Sep 2006 16:50:02 +0000 (16:50 +0000)]
You see nothing...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41696
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Steve Murphy [Fri, 1 Sep 2006 16:48:06 +0000 (16:48 +0000)]
Another formatting update for PCadach.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41695
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Fri, 1 Sep 2006 16:40:18 +0000 (16:40 +0000)]
0 is indeed considered a valid file descriptor (issue #7861 reported by PCadach)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41694
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Fri, 1 Sep 2006 16:34:57 +0000 (16:34 +0000)]
Merged revisions 41690 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r41690 | file | 2006-09-01 12:28:08 -0400 (Fri, 01 Sep 2006) | 2 lines
Don't treat an unexpected control subclass as voice (issue #7858 reported by PCadach)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41693
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Steve Murphy [Fri, 1 Sep 2006 16:33:22 +0000 (16:33 +0000)]
PCadach wanted better formatting of those 'if' conditions for 7859.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41692
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Fri, 1 Sep 2006 16:19:03 +0000 (16:19 +0000)]
If no number is specified in the SIP_HEADER dialplan function, then just use the first one. (issue #7854 reported by sxpert and issue #7863 reported by hristo)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41689
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Steve Murphy [Fri, 1 Sep 2006 15:57:05 +0000 (15:57 +0000)]
This small tweek will hopefully fix 7859, and silence all possible others
along that line.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41674
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Thu, 31 Aug 2006 21:50:55 +0000 (21:50 +0000)]
fix some breakage, MOG DID IT!!!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41651
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Thu, 31 Aug 2006 21:50:07 +0000 (21:50 +0000)]
there is no need for __iax_frame_free ...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41650
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Anthony LaMantia [Thu, 31 Aug 2006 21:12:26 +0000 (21:12 +0000)]
spacing update
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41648
65c4cc65-6c06-0410-ace0-
fbb531ad65f3