asterisk/asterisk.git
13 years agoi dont know how msg_cfg got moved around but its all good again
Matt O'Gorman [Tue, 12 Sep 2006 17:45:42 +0000 (17:45 +0000)]
i dont know how msg_cfg got moved around but its all good again

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

13 years agoIssue #7924 - cmaj - Turn off silence suppression if no channel owner
Olle Johansson [Tue, 12 Sep 2006 14:22:55 +0000 (14:22 +0000)]
Issue #7924 - cmaj - Turn off silence suppression if no channel owner

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

13 years agoIssue #7928 - Don't send both 404 and 503. Fix by phsultan with a small fix by me...
Olle Johansson [Tue, 12 Sep 2006 14:17:33 +0000 (14:17 +0000)]
Issue #7928 - Don't send both 404 and 503. Fix by phsultan with a small fix by me, myself or I.
Thanks, Philippe!
(This was caused by my changes to the transaction handling)

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

13 years agoIf we've found a T38 SDP line, stop looking for more on the very same line
Olle Johansson [Tue, 12 Sep 2006 00:32:18 +0000 (00:32 +0000)]
If we've found a T38 SDP line, stop looking for more on the very same line

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

13 years agoMerged revisions 42783 via svnmerge from
Tilghman Lesher [Mon, 11 Sep 2006 22:17:46 +0000 (22:17 +0000)]
Merged revisions 42783 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r42783 | tilghman | 2006-09-11 16:47:23 -0500 (Mon, 11 Sep 2006) | 4 lines

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/trunk@42788 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoMore formatting fixes and doxygen stuff
Olle Johansson [Mon, 11 Sep 2006 19:49:10 +0000 (19:49 +0000)]
More formatting fixes and doxygen stuff

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

13 years agoAdd comment
Olle Johansson [Mon, 11 Sep 2006 19:27:11 +0000 (19:27 +0000)]
Add comment

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

13 years ago- Use enum for send-request reliability flags
Olle Johansson [Mon, 11 Sep 2006 19:24:35 +0000 (19:24 +0000)]
- Use enum for send-request reliability flags
- Make re-invites CRITICAL

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

13 years agoMore formatting
Olle Johansson [Mon, 11 Sep 2006 19:14:58 +0000 (19:14 +0000)]
More formatting

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

13 years agoMore formatting/doxygen updates to keep me occupied
Olle Johansson [Mon, 11 Sep 2006 19:04:33 +0000 (19:04 +0000)]
More formatting/doxygen updates to keep me occupied

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

13 years agoIgnore this. Only whitespace fixes while being bored.
Olle Johansson [Mon, 11 Sep 2006 18:45:10 +0000 (18:45 +0000)]
Ignore this. Only whitespace fixes while being bored.

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

13 years agoChange from "r" as a variable name to "dialog". "r" is commonly used for registrations,
Olle Johansson [Mon, 11 Sep 2006 18:14:02 +0000 (18:14 +0000)]
Change from "r" as a variable name to "dialog". "r" is commonly used for registrations,
not dialogs, in other places of the code...

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

13 years agoUse Timer T1 for dialog timeouts/destruction
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

13 years agoMore spelling fixes (issue 7930)
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

13 years agoMerged revisions 42716 via svnmerge from
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

13 years agosmall fix for issue 007926
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

13 years agoMerged revisions 42697 via svnmerge from
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

13 years agofix minor typo in coding guidelines
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

13 years agoBoard numbers and channel numbers are now 0 based, since vpb driver
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

13 years agoUhm, make Zap actually work again. Did anybody actually test that code?
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

13 years agoIf the leading underscore is not stripped before comparison,
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

13 years agoIn trunk, ast_fileexists now returns 0 for failure, instead of -1, as it did
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

13 years agoMerged revisions 42600 via svnmerge from
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

13 years agoOptimize a bit
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

13 years agoIt's another round of RTP updates!
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

13 years agoAdd reference to the latest trademark policy on digium.com
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

13 years agoDon't destruct sessions prematurely. Especially not when we want reliable retransmiss...
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

13 years agoimporting rev 42535 from 1.2 (which by mistake was actually imported from svn trunk)
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

13 years agoDon't destroy pvt prematurely. Wait for answer or timeout.
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

13 years agoClear proper flag
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

13 years agoAdd warning about res_adsi not being optional to menuselect
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

13 years agomore makefile tweaks to keep targets from being run when they don't need to be
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

13 years agoGet rid of ugly tmp directory, although I really should
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

13 years agominor performance improvement
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

13 years agoMerged revisions 42452 via svnmerge from
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

13 years agoAs per discussion on bug 7862, the problem wasn't the fact that the documentation...
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

13 years agoMerged revisions 42421 via svnmerge from
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

13 years agoBlocked revisions 42402 via svnmerge
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

13 years agoFormatting fixes for chan_oss (issue #7808 reported by Mithraen)
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

13 years agoFormatting fixes for chan_alsa (issue #7807 reported by Mithraen with more mods done...
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

13 years agowhentohangup is already in seconds, just need to convert to milliseconds
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

13 years agoDestroy msg_cfg after it's used, not before (issue #7618 reported by wvolz with minor...
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

13 years agoMerged revisions 42355 via svnmerge from
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

13 years agoUse flags instead of variables on the private structure for things
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

13 years agoMake sure we give a little warning about the echotraining option
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

13 years agoCode cleaning/updates/potential bug fixes
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

13 years agoMinor cleanup and make sure the tmp variable is clean
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

13 years agoUse lower case 'x' instead of a UTF-8 character (issue #7888 reported by flefoll)
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

13 years agoprotect curhst and curusr
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

13 years agoConvert some warnings into debug messages since they can exist under perfectly normal...
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

13 years agominor wording fix
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

13 years agoSet the variable even if the caller disconnects (issue #7896 reported by jsmith)
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

13 years agoMerged revisions 42260 via svnmerge from
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

13 years agopatch to fix several things wrong with voicemail
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

13 years agoComment out default from extensions.ael
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

13 years agoWith respect to bug 7862, the syntax and description are misleading to users. the...
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

13 years agoMade changes corresponding to those in 1.2 here in main/logger.c for bug 7544.
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

13 years agodon't try to get the length of the string in the ast_dynamic_str object unless we...
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

13 years agoFix a small typo, to make app_followme.c show properly in "show version files"
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

13 years agoThis one's for you, mog
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

13 years agoMerged revisions 42148 via svnmerge from
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

13 years agofixed pipe consuming bug when using chanIsAvail (#7878), also moved a debug log to...
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

13 years agoThese small app documentation changes to app_dial and app_read will hopefully avert...
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

13 years agoMake this module fit the guidelines better
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

13 years agoMerged revisions 42086 via svnmerge from
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

13 years ago- Free allocated memory before returning from function
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

13 years agoBlocked revisions 42054 via svnmerge
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

13 years agoMissing field terminator
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

13 years agoMinor tweak - we need to lock the channel when we are removing the spy from it.
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

13 years agoMerged revisions 42014 via svnmerge from
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

13 years agoMake sure we handle CANCEL/ACK properly (imported with mods from 1.2)
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

13 years agoRemove old unused functions
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

13 years agoUse tabs instead of spaces (I <3 tabs -- this is for you Qwell)
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

13 years agoMake the difference clear about what the responsibilities of the core and a spy are...
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

13 years agoAdd the ability to specify that a frame should not be considered for caching
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

13 years agowhen calling this function to append to a dynamic string and the buffer was not
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

13 years ago Provide a little more protection to make sure that a MOH class is specified when...
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

13 years ago Fix enum indexing problem with m() in WaitExten. Reported by Pavel J, in asterisk...
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

13 years ago Changes/fixes to the app_waitforsilence app to make it behave more the way the autho...
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

13 years ago This was added to app_dial a while back, and now it's in app_queue as well. Provide...
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

13 years ago Some changes/fixes for func_curl. curl_global_init is only supposed to be called...
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

13 years agoMerged revisions 41882 via svnmerge from
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

13 years ago Blocking 41880 from coming into /trunk since I already patched it in /trunk first...
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

13 years ago Don't keep trying the same member in certain strategies when members of the queue...
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

13 years agoTweak the if statement a bit
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

13 years agoDon't use ast_frdup() in the AST_LIST_INSERT_TAIL macro directly. That was a
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

13 years ago We don't spy on Zap/psuedo channels. Not at all. Never. (#7871 - sxpert reporting)
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

13 years agoremove leading space in Packet manager event header
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

13 years ago r41830 isn't going to merge cleanly into /trunk so it is blocked.
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

13 years agoMerged revisions 41827 via svnmerge from
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

13 years ago Block 30546 from coming into /trunk. Some old cleanup.
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

13 years ago With the somewhat recent addition (from one of the Astridevcon Europe sessions)...
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

13 years agoIt was pointed out to me, that using two frames is silly.
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

13 years agofix some module loader breakage
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

13 years agoFix VLDTMF issues.
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

13 years agoMerged revisions 41768 via svnmerge from
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

13 years agoget rid of some useless debug messages and raise debug level of others
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

13 years agomore staticness, and syntax cleaning
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

13 years agoUnbridge the RTP streams at the correct place
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

13 years agoIf we are doing video and we can't reinvite, then resort to generic bridging instead...
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