asterisk/asterisk.git
13 years agoDoxygen fixes.
Jason Parker [Mon, 12 Nov 2007 23:44:20 +0000 (23:44 +0000)]
Doxygen fixes.
Also fix a common typo I kept seeing (arguement) in various files.

Closes issue #11222, patch by snuffy (with arguement > argument by me).

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

13 years agoDon't forget the ASTERISK_VERSION for the sake of the mtx_prof stuff.
Steve Murphy [Mon, 12 Nov 2007 23:33:55 +0000 (23:33 +0000)]
Don't forget the ASTERISK_VERSION for the sake of the mtx_prof stuff.

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

13 years agoThanks to snuffy for this doxygen update to hashtab.h; closes issue #11223
Steve Murphy [Mon, 12 Nov 2007 21:50:02 +0000 (21:50 +0000)]
Thanks to snuffy for this doxygen update to hashtab.h; closes issue #11223

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

13 years agoThanks to snuff-work, who brought up that these fixes might need to be made.
Steve Murphy [Mon, 12 Nov 2007 20:49:27 +0000 (20:49 +0000)]
Thanks to snuff-work, who brought up that these fixes might need to be made.

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

13 years agoMerged revisions 89194 via svnmerge from
Jason Parker [Mon, 12 Nov 2007 20:48:57 +0000 (20:48 +0000)]
Merged revisions 89194 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89194 | qwell | 2007-11-12 14:46:52 -0600 (Mon, 12 Nov 2007) | 1 line

Fix a typo pointed out by De_Mon on #asterisk-dev
........

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

13 years agoBlocked revisions 89191 via svnmerge
Tilghman Lesher [Mon, 12 Nov 2007 20:29:38 +0000 (20:29 +0000)]
Blocked revisions 89191 via svnmerge

........
r89191 | tilghman | 2007-11-12 14:16:18 -0600 (Mon, 12 Nov 2007) | 5 lines

If two config writes collide, file corruption could result.  Use a mkstemp() file, instead.
Reported by: paravoid
Patch by: tilghman
Closes issue #10781

........

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

13 years ago(closes issue #11221)
Kevin P. Fleming [Mon, 12 Nov 2007 20:16:13 +0000 (20:16 +0000)]
(closes issue #11221)
Reported by: eliel
Patches:
      utils.Makefile.patch uploaded by eliel (modified by me) (license 64)

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

13 years agoBased on a note in asterisk-dev by Brian Capouch, I determined I too agressive in...
Steve Murphy [Mon, 12 Nov 2007 18:44:36 +0000 (18:44 +0000)]
Based on a note in asterisk-dev by Brian Capouch, I determined I too agressive in not initializing arrays passed to pbx_substitute_variables_xxxx; I reviewed the code (again) and hopefully found every possible spot where substitute_variables is called conditionally, and made sure the char array involved was set to a null string.

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

13 years agoMerged revisions 89184 via svnmerge from
Tilghman Lesher [Mon, 12 Nov 2007 17:44:04 +0000 (17:44 +0000)]
Merged revisions 89184 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89184 | tilghman | 2007-11-12 11:29:17 -0600 (Mon, 12 Nov 2007) | 5 lines

Fix two cases of memory corruption caused by background threads.
Reported by: atis
Patch by: tilghman
Fixes issue #10923

........

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

13 years agoMerged revisions 89173 via svnmerge from
Christian Richter [Mon, 12 Nov 2007 13:36:45 +0000 (13:36 +0000)]
Merged revisions 89173 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89173 | crichter | 2007-11-12 12:26:48 +0100 (Mo, 12 Nov 2007) | 1 line

if we're NT and no number was dialed and overlapdial is set, we wait for the ISDN timeout instead of starting our own timer. added a comment for the misdn.conf.sample for the overlapdial config option.
........

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

13 years agoMerged revisions 89172 via svnmerge from
Christian Richter [Mon, 12 Nov 2007 13:33:13 +0000 (13:33 +0000)]
Merged revisions 89172 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89172 | crichter | 2007-11-12 12:23:57 +0100 (Mo, 12 Nov 2007) | 1 line

added restart all interfaces Restart_Indicator, to automatically send a RESTART after the L2 of a PTP Port comes up. Also fixed some places where we have send a RELEASE without need for it.
........

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

13 years agoFix building on FreeBSD by including/not including some headers.
Joshua Colp [Mon, 12 Nov 2007 13:26:45 +0000 (13:26 +0000)]
Fix building on FreeBSD by including/not including some headers.
(closes issue #11218)
Reported by: ys
Patches:
      trunk89169.diff uploaded by ys (license 281)

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

13 years agoMerged revisions 89171 via svnmerge from
Christian Richter [Mon, 12 Nov 2007 13:22:17 +0000 (13:22 +0000)]
Merged revisions 89171 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89171 | crichter | 2007-11-12 12:13:13 +0100 (Mo, 12 Nov 2007) | 1 line

fixed a state/event issue with overlapdial=yes when no extension matched. removed the general sending of a RELEASE_COMPLETE when we receive a RELEASE, this is done by mISDNuser/mISDN. This makes it possible to use asterisk-1.4 with mISDN trunk, but requires users of mISDN/mISDNuser-1.1.X to upgrade to at least mISDNuser-1.1.6 (when using the NT mode at all)
........

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

13 years agoMerged revisions 89170 via svnmerge from
Christian Richter [Mon, 12 Nov 2007 13:03:00 +0000 (13:03 +0000)]
Merged revisions 89170 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89170 | crichter | 2007-11-12 10:57:23 +0100 (Mo, 12 Nov 2007) | 1 line

fixed the support for CW and therefore for the reject_cause option.
........

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

13 years agoMerged revisions 89169 via svnmerge from
Christian Richter [Mon, 12 Nov 2007 12:49:19 +0000 (12:49 +0000)]
Merged revisions 89169 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89169 | crichter | 2007-11-12 10:45:36 +0100 (Mo, 12 Nov 2007) | 1 line

aded ntkeepcalls option, to avoid droƃpping calls when the L2 goes down on a PTP link. There are some pbx which do turn off the L1 for a very short while and restart it immediately. normally T310 should be started and after 10 seconds or so the calls should be dropped, this is a simple fix wihtout this timer.
........

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

13 years agoAdd usbradio.conf.sample from branches/1.4/configs - r84162.
Jason Parker [Fri, 9 Nov 2007 18:57:21 +0000 (18:57 +0000)]
Add usbradio.conf.sample from branches/1.4/configs - r84162.
It was mistakenly deleted in 1.4 without ever being merged to trunk.

Reported by eliel on #asterisk-dev.

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

13 years agoFix a few potential deadlocks in cdr_sqlite3_custom.
Jason Parker [Fri, 9 Nov 2007 16:32:01 +0000 (16:32 +0000)]
Fix a few potential deadlocks in cdr_sqlite3_custom.
(also rename sample config to .sample)

Closes issue #11208, patch by Laureano.

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

13 years agoThis is the perhaps the biggest, boldest, most daring change I've ever committed...
Steve Murphy [Fri, 9 Nov 2007 16:00:22 +0000 (16:00 +0000)]
This is the perhaps the biggest, boldest, most daring change I've ever committed to trunk. Forgive me in advance any disruption this may cause, and please, report any problems via the bugtracker. The upside is that this can speed up large dialplans by 20 times (or more). Context, extension, and priority matching are all fairly constant-time searches.  I introduce here my hashtables (hashtabs), and a regression for them. I would have used the ast_obj2 tables, but mine are resizeable, and don't need the object destruction capability. The hashtab stuff is well tested and stable. I introduce a data structure, a trie, for extension pattern matching, in which knowledge of all patterns is accumulated, and all matches can be found via a single traversal of the tree. This is per-context. The trie is formed on the first lookup attempt, and stored in the context for future lookups. Destruction routines are in place for hashtabs and the pattern match trie. You can see the contents of the pattern match trie by using the 'dialplan show' cli command when 'core set debug' has been done to put it in debug mode. The pattern tree traversal only traverses those parts of the tree that are interesting. It uses a scoreboard sort of approach to find the best match. The speed of the traversal is more a function of the length of the pattern than the number of patterns in the tree. The tree also contains the CID matching patterns. See the source code comments for details on how everything works. I believe the approach general enough that any issues that might come up involving fine points in the pattern matching algorithm, can be solved by just tweaking things. We shall see. The current pattern matcher is fairly involved, and replicating every nuance of it is difficult. If you find and report problems, I will try to resolve than as quickly as I can. The trie and hashtabs are added to the existing context and exten structs, and none of the old machinery has been removed for the sake of the multitude of functions that use them. In the future, we can (maybe) weed out the linked lists and save some space.

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

13 years agoMerged revisions 89125 via svnmerge from
Jason Parker [Thu, 8 Nov 2007 23:53:00 +0000 (23:53 +0000)]
Merged revisions 89125 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

(closes issue #11203)
........
r89125 | qwell | 2007-11-08 17:52:35 -0600 (Thu, 08 Nov 2007) | 4 lines

Properly say the seconds here..

Issue 11203, fix described by vma.

........

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

13 years agoAdd check_hangup() method to pbx_lua, which can be used to check whether it is time...
Jason Parker [Thu, 8 Nov 2007 23:38:30 +0000 (23:38 +0000)]
Add check_hangup() method to pbx_lua, which can be used to check whether it is time to hangup a channel.

Closes issue #11202, patch by mnicholson

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

13 years agoapp_voicemail failed to build when compiling with IMAP_STORAGE
Mark Michelson [Thu, 8 Nov 2007 22:33:59 +0000 (22:33 +0000)]
app_voicemail failed to build when compiling with IMAP_STORAGE

Now it does not.

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

13 years agoAST_LIST_REMOVE_CURRENT takes only one argument.
Mark Michelson [Thu, 8 Nov 2007 21:31:06 +0000 (21:31 +0000)]
AST_LIST_REMOVE_CURRENT takes only one argument.
Thanks to snuffy for pointing this out on IRC

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

13 years agoMake func_env build again.
Joshua Colp [Thu, 8 Nov 2007 21:27:37 +0000 (21:27 +0000)]
Make func_env build again.

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

13 years agoMerged revisions 89119 via svnmerge from
Mark Michelson [Thu, 8 Nov 2007 21:01:02 +0000 (21:01 +0000)]
Merged revisions 89119 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89119 | mmichelson | 2007-11-08 15:00:08 -0600 (Thu, 08 Nov 2007) | 7 lines

Rework of the commit I made yesterday to use the already built-in
ast_uri_decode function as opposed to my home-rolled one. Also added
comments.

Thanks to oej for pointing me in the right direction

........

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

13 years agoconvert this code to a more efficient idiom
Kevin P. Fleming [Thu, 8 Nov 2007 20:39:41 +0000 (20:39 +0000)]
convert this code to a more efficient idiom

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

13 years agoChange a warning to a notice. Issue #11195, patch by eliel
Jason Parker [Thu, 8 Nov 2007 18:49:08 +0000 (18:49 +0000)]
Change a warning to a notice.  Issue #11195, patch by eliel

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

13 years agoMerged revisions 89115 via svnmerge from
Jason Parker [Thu, 8 Nov 2007 18:48:15 +0000 (18:48 +0000)]
Merged revisions 89115 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

(closes issue #11195)
........
r89115 | qwell | 2007-11-08 12:45:15 -0600 (Thu, 08 Nov 2007) | 4 lines

Avoid warnings on load when using sample configuration files.

Issue 11195, patch by eliel.

........

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

13 years agoAdd the FILE() dialplan function and deprecate ReadFile.
Tilghman Lesher [Thu, 8 Nov 2007 17:32:15 +0000 (17:32 +0000)]
Add the FILE() dialplan function and deprecate ReadFile.

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

13 years agoFix missed conversion to linkedlists macro change
Tilghman Lesher [Thu, 8 Nov 2007 17:28:45 +0000 (17:28 +0000)]
Fix missed conversion to linkedlists macro change

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

13 years agoBlocking changes from previous 1.4 commit
Mark Michelson [Thu, 8 Nov 2007 16:51:08 +0000 (16:51 +0000)]
Blocking changes from previous 1.4 commit

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

13 years agouse %f instead of %lf (the 'l' is ignored anyways).
Luigi Rizzo [Thu, 8 Nov 2007 09:21:02 +0000 (09:21 +0000)]
use %f instead of %lf (the 'l' is ignored anyways).

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

13 years agouse %d and cast to int instead of %zd for size_t object,
Luigi Rizzo [Thu, 8 Nov 2007 09:20:05 +0000 (09:20 +0000)]
use %d and cast to int instead of %zd for size_t object,
this helps portability.

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

13 years agoinitialize a variable to silence compiler.
Luigi Rizzo [Thu, 8 Nov 2007 09:15:05 +0000 (09:15 +0000)]
initialize a variable to silence compiler.
The type of warnings emitted depends on the optimization level,
at the lower levels the compiler doesn't always understand what the
programmer has in mind. In this case I could not understand it either.

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

13 years agoMerged revisions 89105 via svnmerge from
Kevin P. Fleming [Thu, 8 Nov 2007 05:36:28 +0000 (05:36 +0000)]
Merged revisions 89105 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89105 | kpfleming | 2007-11-08 00:26:47 -0500 (Thu, 08 Nov 2007) | 2 lines

fix a glaring bug in the new SRV record handling that would cause incorrect weight sorting

........

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

13 years agoimprove linked-list macros in two ways:
Kevin P. Fleming [Thu, 8 Nov 2007 05:28:47 +0000 (05:28 +0000)]
improve linked-list macros in two ways:
  - the *_CURRENT macros no longer need the list head pointer argument
  - add AST_LIST_MOVE_CURRENT to encapsulate the remove/add operation when moving entries between lists

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

13 years agoMerged revisions 89103 via svnmerge from
Tilghman Lesher [Thu, 8 Nov 2007 05:00:39 +0000 (05:00 +0000)]
Merged revisions 89103 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89103 | tilghman | 2007-11-07 22:55:19 -0600 (Wed, 07 Nov 2007) | 2 lines

Typo

........

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

13 years agoMerged revisions 89101 via svnmerge from
Joshua Colp [Thu, 8 Nov 2007 02:28:15 +0000 (02:28 +0000)]
Merged revisions 89101 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89101 | file | 2007-11-07 22:26:48 -0400 (Wed, 07 Nov 2007) | 4 lines

Do not add a sip: to the beginning of the To URI unless needed.
(closes issue #10756)
Reported by: goestelecom

........

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

13 years agoMerged revisions 89099 via svnmerge from
Joshua Colp [Thu, 8 Nov 2007 01:30:29 +0000 (01:30 +0000)]
Merged revisions 89099 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89099 | file | 2007-11-07 21:28:56 -0400 (Wed, 07 Nov 2007) | 6 lines

Improve the devicestate logic for multiple devices. If any are available then the extension is considered available.
(closes issue #10164)
Reported by: nic_bellamy
Patches:
      sip-hinting-svn-branch-1.4.patch uploaded by nic (license 299)

........

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

13 years agoMerged revisions 89097 via svnmerge from
Joshua Colp [Thu, 8 Nov 2007 01:14:31 +0000 (01:14 +0000)]
Merged revisions 89097 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89097 | file | 2007-11-07 21:11:25 -0400 (Wed, 07 Nov 2007) | 8 lines

Add support for allowing one outgoing transaction. This means if a response comes back out of order chan_sip will still handle it. I dream of a chan_sip with real transaction support.
(closes issue #10946)
Reported by: flefoll
(closes issue #10915)
Reported by: ramonpeek
(closes issue #9567)
Reported by: atca_pres

........

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

13 years agoMerged revisions 89095 via svnmerge from
Joshua Colp [Wed, 7 Nov 2007 23:55:08 +0000 (23:55 +0000)]
Merged revisions 89095 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89095 | file | 2007-11-07 19:53:25 -0400 (Wed, 07 Nov 2007) | 4 lines

If callerid is configured in sip.conf use that for checking the presence of an extension in the dialplan.
(closes issue #11185)
Reported by: spditner

........

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

13 years agoMerged revisions 89093 via svnmerge from
Tilghman Lesher [Wed, 7 Nov 2007 23:47:45 +0000 (23:47 +0000)]
Merged revisions 89093 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89093 | tilghman | 2007-11-07 17:39:37 -0600 (Wed, 07 Nov 2007) | 7 lines

The member refcount must be incremented, to avoid using it after deallocation.
A huge thanks go to lvl- for patiently providing the necessary valgrind output
that was necessary to finding this problem of memory corruption.
Reported by: lvl-
Patch by: tilghman
Closes issue #11174

........

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

13 years agoIf imapfolder has been specified in voicemail.conf, we should not connect to INBOX...
Mark Michelson [Wed, 7 Nov 2007 23:18:22 +0000 (23:18 +0000)]
If imapfolder has been specified in voicemail.conf, we should not connect to INBOX...
ever. It may not exist.

(closes issue #11151, reported by selsky, patched by me)

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

13 years agoMerged revisions 89090 via svnmerge from
Mark Michelson [Wed, 7 Nov 2007 22:42:24 +0000 (22:42 +0000)]
Merged revisions 89090 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89090 | mmichelson | 2007-11-07 16:40:35 -0600 (Wed, 07 Nov 2007) | 6 lines

This patch makes it possible for SIP phones to dial extensions defined with '#' characters
in extensions.conf AND maintain their escaped characters when forming URI's

(closes issue #10681, reported by cahen, patched by me, code review by file)

........

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

13 years agoMerged revisions 89088 via svnmerge from
Steve Murphy [Wed, 7 Nov 2007 22:09:10 +0000 (22:09 +0000)]
Merged revisions 89088 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89088 | murf | 2007-11-07 14:40:28 -0700 (Wed, 07 Nov 2007) | 1 line

In response to 10578, I just ran 1.4 thru valgrind; some of the config leakage I've already fixed, but it doesn't hurt to double check. I found and fixed leaks in res_jabber, cdr_tds, pbx_ael. Nothing major, tho.
........

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

13 years agoMinor change so chan_h323 builds again.
Joshua Colp [Wed, 7 Nov 2007 17:45:31 +0000 (17:45 +0000)]
Minor change so chan_h323 builds again.

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

13 years agoremove enter/exit comments when handling subdirectory.
Luigi Rizzo [Wed, 7 Nov 2007 13:12:28 +0000 (13:12 +0000)]
remove enter/exit comments when handling subdirectory.
If we really want them we can remove the --no-print-directory

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

13 years agoremove a debugging message which i forgot in.
Luigi Rizzo [Wed, 7 Nov 2007 11:33:55 +0000 (11:33 +0000)]
remove a debugging message which i forgot in.

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

13 years agomatch changes in menuselect's Makefile
Luigi Rizzo [Wed, 7 Nov 2007 11:15:42 +0000 (11:15 +0000)]
match changes in menuselect's Makefile

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

13 years agoSuppress erroneous warnings on load.
Tilghman Lesher [Wed, 7 Nov 2007 04:21:27 +0000 (04:21 +0000)]
Suppress erroneous warnings on load.
Reported by: eliel
Patch by: eliel
Closes issue #11177

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

13 years agoMerged revisions 89079 via svnmerge from
Tilghman Lesher [Wed, 7 Nov 2007 04:11:32 +0000 (04:11 +0000)]
Merged revisions 89079 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89079 | tilghman | 2007-11-06 22:07:49 -0600 (Tue, 06 Nov 2007) | 5 lines

Suppress AEL warnings on load.
Reported by: eliel
Patch by: eliel
Closes issue #11178

........

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

13 years agoProvide the ability to directly manipulate the TON/NPI bits in the dialstring.
Tilghman Lesher [Wed, 7 Nov 2007 02:14:40 +0000 (02:14 +0000)]
Provide the ability to directly manipulate the TON/NPI bits in the dialstring.
Reported by: thetatag
Patch by: thetatag/stevens/tilghman
Closes issue #5331

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

13 years agoAdd contributed EAGI proxy, which provides FastAGI functionality for EAGI, while...
Tilghman Lesher [Wed, 7 Nov 2007 01:08:31 +0000 (01:08 +0000)]
Add contributed EAGI proxy, which provides FastAGI functionality for EAGI, while also
buffering the audio stream.
Reported by: devil_slayer
Patch by: devil_slayer
Closes issue #8921

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

13 years agoFix another CLI command so it doesn't run the real code when called for initialization.
Russell Bryant [Wed, 7 Nov 2007 00:16:03 +0000 (00:16 +0000)]
Fix another CLI command so it doesn't run the real code when called for initialization.

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

13 years agoAdding documentation regarding imapfolder, imapgreetings, and greetingsfolder options
Mark Michelson [Wed, 7 Nov 2007 00:04:30 +0000 (00:04 +0000)]
Adding documentation regarding imapfolder, imapgreetings, and greetingsfolder options
in voicemail.conf

(closes issue #11133, reported by selsky, patched by blitzrage)

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

13 years agoPrint out the channel name as a prefix to the "agi debug" output. This makes
Russell Bryant [Wed, 7 Nov 2007 00:00:38 +0000 (00:00 +0000)]
Print out the channel name as a prefix to the "agi debug" output.  This makes
AGI debugging on busy systems much easier.

(closes issue #10730)
Reported by: junky
Patches:
      agi_debug_chan.diff uploaded by junky (license 177)
  20070923_10730.diff uploaded by mvanbaak (license 7)

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

13 years agoAdded the ability to do "meetme concise" with the "meetme" CLI command.
Russell Bryant [Tue, 6 Nov 2007 23:44:39 +0000 (23:44 +0000)]
Added the ability to do "meetme concise" with the "meetme" CLI command.
This extends the concise capabilities of this CLI command to include
listing all conferences, instead of an addition to the other sub commands
for the "meetme" command.

(closes issue #11078)
Reported by: jthomas
Patches:
      meetme-concise.patch uploaded by jthomas (license 293)

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

13 years agoFix up some PBX logic that became broken. The code would exit prematurely when it...
Joshua Colp [Tue, 6 Nov 2007 23:08:36 +0000 (23:08 +0000)]
Fix up some PBX logic that became broken. The code would exit prematurely when it should have been collecting more digits.
(closes issue #11175)
Reported by: pj

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

13 years agoCommit some cleanups to the format type code.
Tilghman Lesher [Tue, 6 Nov 2007 22:51:48 +0000 (22:51 +0000)]
Commit some cleanups to the format type code.
 - Remove the AST_FORMAT_MAX_* types, as these are consuming 3 out of our available 32 bits.
 - Add a native slin16 type, so that 16kHz codecs can translate without losing resolution.
   (This doesn't affect anything immediately, until another codec has wb support.)

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

13 years agoAdding the queue strategy wrandom
Mark Michelson [Tue, 6 Nov 2007 22:36:55 +0000 (22:36 +0000)]
Adding the queue strategy wrandom

(closes issue #10942, reported and patched by julianjm, documentation changes by me)

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

13 years agoAdded the S() and L() options to the MeetMe application. These are pretty
Russell Bryant [Tue, 6 Nov 2007 22:15:32 +0000 (22:15 +0000)]
Added the S() and L() options to the MeetMe application.  These are pretty
much identical to the S() and L() options to Dial().  They let you set
timeouts for the conference, as well as have warning sounds played to
let the caller know how much time is left, and when it is running out.

(closes issue #8030)
Reported by: areski
Patches:
      meetme_timeout_timelimit_v2.patch uploaded by areski (license 29)

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

13 years agoAdded CLI and manager commands for changing a queue member's penalty
Mark Michelson [Tue, 6 Nov 2007 22:05:56 +0000 (22:05 +0000)]
Added CLI and manager commands for changing a queue member's penalty

(closes issue #9374, reported and initially patched by wuwu, intermediate patch by eliel, and final patch by me)

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

13 years agoAdd some more locking as well as API update for libss7 for new transport types
Matthew Fredrickson [Tue, 6 Nov 2007 22:01:10 +0000 (22:01 +0000)]
Add some more locking as well as API update for libss7 for new transport types

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

13 years agoMerged revisions 89036 via svnmerge from
Steve Murphy [Tue, 6 Nov 2007 21:08:38 +0000 (21:08 +0000)]
Merged revisions 89036 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89036 | murf | 2007-11-06 10:52:50 -0700 (Tue, 06 Nov 2007) | 1 line

closes issue #8786 - where the [catname](!) and [catname](othercat1,othercat2,...) notation gets dropped across a ConfigUpdate (or any other thing that would cause a config file to be written). While I was at it, I also cleaned up some of the destroy routines to free up comments, which was not being done. Made sure the new struct I introduced is also cleaned up properly at destruction time. My code handles multiple template inclusions. Many thanks to ssokol for his patch, which, while not literally used in the final merge, served as a foundation for the fix.
........

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

13 years agoRemove native bridging check for DTMF based transfers. Thanks to the last batch of...
Joshua Colp [Tue, 6 Nov 2007 20:55:58 +0000 (20:55 +0000)]
Remove native bridging check for DTMF based transfers. Thanks to the last batch of RTP changes it is no longer required for the media stream to go through Asterisk if DTMF is going over signalling. It will simply reinvite back as needed.
(closes issue #11172)
Reported by: ibc

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

13 years agoInstead of trying to callback a local channel on a failed attended transfer, call
Mark Michelson [Tue, 6 Nov 2007 20:32:49 +0000 (20:32 +0000)]
Instead of trying to callback a local channel on a failed attended transfer, call
the device that made the transfer instead. This makes for much smoother calling back
when queues are involved.

(closes issue #11155, reported by IPetrov)

Tremendous thanks to Russell for pulling me out of my block I was having on this one

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

13 years agoMerged revisions 89053 via svnmerge from
Russell Bryant [Tue, 6 Nov 2007 20:22:50 +0000 (20:22 +0000)]
Merged revisions 89053 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89053 | russell | 2007-11-06 14:18:49 -0600 (Tue, 06 Nov 2007) | 3 lines

Fix init_classes() so that classes that actually do have files loaded aren't
treated as empty, and immediately destroyed ...

........

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

13 years agoFix the memory show allocations CLI command so that it doesn't spew out all
Russell Bryant [Tue, 6 Nov 2007 19:51:37 +0000 (19:51 +0000)]
Fix the memory show allocations CLI command so that it doesn't spew out all
of the current memory allocations when you start Asterisk, when the command's
handler gets called for initialization.

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

13 years agoHoping to avoid a crash in OSX for a problem blitzrage found
Steve Murphy [Tue, 6 Nov 2007 19:40:33 +0000 (19:40 +0000)]
Hoping to avoid a crash in OSX for a problem blitzrage found

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

13 years agoFormatting. Illegaly using some spare spaces from Russell's space-bucket.
Olle Johansson [Tue, 6 Nov 2007 19:23:10 +0000 (19:23 +0000)]
Formatting. Illegaly using some spare spaces from Russell's space-bucket.

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

13 years agoMerged revisions 89045 via svnmerge from
Tilghman Lesher [Tue, 6 Nov 2007 19:16:02 +0000 (19:16 +0000)]
Merged revisions 89045 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89045 | tilghman | 2007-11-06 13:09:06 -0600 (Tue, 06 Nov 2007) | 2 lines

We went to the trouble of creating a method of tracking failed trylocks, then never turned it on (oops).

........

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

13 years agoAdditional TDD changes (preparing for SIP changes - adding TDD support to SIP)
Olle Johansson [Tue, 6 Nov 2007 19:10:26 +0000 (19:10 +0000)]
Additional TDD changes (preparing for SIP changes - adding TDD support to SIP)

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

13 years agoMerged revisions 89046 via svnmerge from
Jason Parker [Tue, 6 Nov 2007 19:10:18 +0000 (19:10 +0000)]
Merged revisions 89046 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89046 | qwell | 2007-11-06 13:09:30 -0600 (Tue, 06 Nov 2007) | 4 lines

Correctly set the total number of channels from a zaptel transcoder board.

SPD-49, patch by Matthew Nicholson.

........

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

13 years ago"show application <foo>" changes for clarity.
Mark Michelson [Tue, 6 Nov 2007 19:04:45 +0000 (19:04 +0000)]
"show application <foo>" changes for clarity.

(closes issue #11171, reported and patched by blitzrage)

Many thanks!

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

13 years agoMerged revisions 89042 via svnmerge from
Olle Johansson [Tue, 6 Nov 2007 19:04:29 +0000 (19:04 +0000)]
Merged revisions 89042 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89042 | oej | 2007-11-06 19:53:37 +0100 (Tis, 06 Nov 2007) | 2 lines

Bug fixes to tdd support in zaptel.

........

(Small changes for trunk)

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

13 years agoAllow gtalk and jingle to use TLS connections again.
Jason Parker [Tue, 6 Nov 2007 18:44:19 +0000 (18:44 +0000)]
Allow gtalk and jingle to use TLS connections again.

Closes issue #9972

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

13 years agoMerged revisions 89037 via svnmerge from
Russell Bryant [Tue, 6 Nov 2007 18:23:36 +0000 (18:23 +0000)]
Merged revisions 89037 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89037 | russell | 2007-11-06 12:20:07 -0600 (Tue, 06 Nov 2007) | 11 lines

If someone were to delete the files used by an existing MOH class, and then
issue a reload, further use of that class could result in a crash due to
dividing by zero.  This set of changes fixes up some places to prevent this
from happening.

(closes issue #10948)
Reported by: jcomellas
Patches:
      res_musiconhold_division_by_zero.patch uploaded by jcomellas (license 282)
  Additional changes added by me.

........

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

13 years agoMerged revisions 89032 via svnmerge from
Joshua Colp [Tue, 6 Nov 2007 17:10:03 +0000 (17:10 +0000)]
Merged revisions 89032 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89032 | file | 2007-11-06 13:08:05 -0400 (Tue, 06 Nov 2007) | 4 lines

Make it so that if a peer is determined to be unreachable using qualify their devicestate will report back unavailable.
(closes issue #11006)
Reported by: pj

........

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

13 years agoFix embedding of modules on FreeBSD:
Luigi Rizzo [Tue, 6 Nov 2007 17:05:13 +0000 (17:05 +0000)]
Fix embedding of modules on FreeBSD:
the constructor for the list of modules was run
after the constructors for the embedded modules
(which appended entries to the list).
As a result, the list appeared empty when it was
time to use it.

On linux the order of execution of constructor
was evidently different (it may depend on the
ordering of modules in the ELF file).

This is only a workaround - there may be other
situations where the execution of constructors
causes problems, so if we manage to find a more
general solution this workaround can go away.

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

13 years agoMerged revisions 88994 via svnmerge from
Joshua Colp [Tue, 6 Nov 2007 16:29:16 +0000 (16:29 +0000)]
Merged revisions 88994 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r88994 | file | 2007-11-06 12:24:56 -0400 (Tue, 06 Nov 2007) | 6 lines

Fix improbable but possible memory leaks in chan_zap.
(closes issue #11166)
Reported by: eliel
Patches:
      chan_zap.c.patch uploaded by eliel (license 64)

........

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

13 years agoUpdate chan_agent documentation. Change a | to , as that is now the required way.
Joshua Colp [Tue, 6 Nov 2007 15:37:17 +0000 (15:37 +0000)]
Update chan_agent documentation. Change a | to , as that is now the required way.
(closes issue #11167)
Reported by: eliel
Patches:
      chan_agent.c.patch uploaded by eliel (license 64)

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

13 years agoSet up detection of IP_PKTINFO in autoconf for chan_unistim
Tilghman Lesher [Tue, 6 Nov 2007 15:01:56 +0000 (15:01 +0000)]
Set up detection of IP_PKTINFO in autoconf for chan_unistim

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

13 years agoconvert uses of LOG_DEBUG to use ast_debug()
Russell Bryant [Tue, 6 Nov 2007 14:17:33 +0000 (14:17 +0000)]
convert uses of LOG_DEBUG to use ast_debug()

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

13 years agoAdd jitterbuffer support to chan_unistim.
Russell Bryant [Tue, 6 Nov 2007 14:11:34 +0000 (14:11 +0000)]
Add jitterbuffer support to chan_unistim.

(closes issue #11168)
Reported by: IgorG
Patches:
      unistimjb-88863-1.patch uploaded by IgorG (license 20)

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

13 years agoMerged revisions 88805 via svnmerge from
Russell Bryant [Tue, 6 Nov 2007 14:08:54 +0000 (14:08 +0000)]
Merged revisions 88805 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r88805 | russell | 2007-11-05 16:07:54 -0600 (Mon, 05 Nov 2007) | 12 lines

After seeing crashes related to channel variables, I went looking around at the
ways that channel variables are handled.  In general, they were not handled in
a thread-safe way.  The channel _must_ be locked when reading or writing from/to
the channel variable list.

What I have done to improve this situation is to make pbx_builtin_setvar_helper()
and friends lock the channel when doing their thing.  Asterisk API calls almost
all lock the channel for you as necessary, but this family of functions did not.

(closes issue #10923, reported by atis)
(closes issue #11159, reported by 850t)

........

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

13 years agoMerged revisions 88931 via svnmerge from
Russell Bryant [Tue, 6 Nov 2007 13:57:16 +0000 (13:57 +0000)]
Merged revisions 88931 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r88931 | russell | 2007-11-06 07:50:15 -0600 (Tue, 06 Nov 2007) | 8 lines

Remove some checks to see if locks are initialized from the non-DEBUG_THREADS
versions of the lock routines.  These are incorrect for a number of reasons:
 - It breaks the build on mac.
 - If there is a problem with locks not getting initialized, then the proper
   fix is to find that place and fix the code so that it does get initialized.
 - If additional debug code is needed to help find the problem areas, then this
   type of things should _only_ be put in the DEBUG_THREADS wrappers.

........

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

13 years agoexplain that the host environment must be used to build gentone;
Luigi Rizzo [Tue, 6 Nov 2007 08:17:42 +0000 (08:17 +0000)]
explain that the host environment must be used to build gentone;
Remove unset variables, they would be misleading.

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

13 years agodon't export variables that can be retrieved from makeopts in child subdirs
Luigi Rizzo [Tue, 6 Nov 2007 07:26:25 +0000 (07:26 +0000)]
don't export variables that can be retrieved from makeopts in child subdirs

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

13 years agoMerged revisions 88862 via svnmerge from
Kevin P. Fleming [Tue, 6 Nov 2007 02:53:13 +0000 (02:53 +0000)]
Merged revisions 88862 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r88862 | kpfleming | 2007-11-05 20:52:05 -0600 (Mon, 05 Nov 2007) | 2 lines

update comment to match the state of the code

........

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

13 years agoMerged revisions 88826 via svnmerge from
Mark Michelson [Mon, 5 Nov 2007 23:31:00 +0000 (23:31 +0000)]
Merged revisions 88826 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r88826 | mmichelson | 2007-11-05 17:29:29 -0600 (Mon, 05 Nov 2007) | 6 lines

Reworked deadlock avoidance in __ast_read. Restored audio to
callback agents.

(closes issue #11071, reported by callguy, patched by me, tested by callguy and Ted Brown)

........

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

13 years agoMove AUDIO_LIBS outside the top level Makefile. This too is used only
Luigi Rizzo [Mon, 5 Nov 2007 21:36:11 +0000 (21:36 +0000)]
Move AUDIO_LIBS outside the top level Makefile. This too is used only
in one place.

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

13 years agoMerged revisions 88768 via svnmerge from
Russell Bryant [Mon, 5 Nov 2007 21:35:51 +0000 (21:35 +0000)]
Merged revisions 88768 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r88768 | russell | 2007-11-05 15:33:56 -0600 (Mon, 05 Nov 2007) | 8 lines

When traversing the list of channel variables here in transmit_invite(), the
asterisk channel must be locked, as this data may change at any time.

(I have seen numerous reports of crashes related to the handling of channel
variables.  There are a couple of issues on the bug tracker related to it,
but it has also been noted on IRC and mailing lists.  So, I am finding and
fixing some places where channel variables are handled improperly.)

........

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

13 years agoMove the last instance of AST_LIBS to the only place it is used,
Luigi Rizzo [Mon, 5 Nov 2007 21:27:04 +0000 (21:27 +0000)]
Move the last instance of AST_LIBS to the only place it is used,
namely main/Makefile .

I am unclear where decisions on the build environment (CFLAGS,
LDFLAGS, LIBS and so on) should be made - right now they are
split here and there.

As a first step in cleaning up this situation, i am trying to at
least collect all instances of each variable in one place.

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

13 years agoMerged revisions 88765 via svnmerge from
Russell Bryant [Mon, 5 Nov 2007 21:23:32 +0000 (21:23 +0000)]
Merged revisions 88765 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r88765 | russell | 2007-11-05 15:21:39 -0600 (Mon, 05 Nov 2007) | 2 lines

Fix up some indentation.

........

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

13 years agocomment out an unused variable. Remove it in a few days
Luigi Rizzo [Mon, 5 Nov 2007 20:50:26 +0000 (20:50 +0000)]
comment out an unused variable. Remove it in a few days
if no problems arise.

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

13 years agoMerged revisions 88719 via svnmerge from
Russell Bryant [Mon, 5 Nov 2007 20:44:05 +0000 (20:44 +0000)]
Merged revisions 88719 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r88719 | russell | 2007-11-05 14:40:01 -0600 (Mon, 05 Nov 2007) | 7 lines

Merge changes from asterisk/team/kpfleming/SRV-priority-handling

Previously, the SRV record support in Asterisk was broken.  There was no
guarantee on what record Asterisk would choose to actually use.  This set of
changes improves the situation by ensuring that Asterisk will choose the
highest priority record.

........

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

13 years agoMerged revisions 88709 via svnmerge from
Russell Bryant [Mon, 5 Nov 2007 20:14:48 +0000 (20:14 +0000)]
Merged revisions 88709 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r88709 | russell | 2007-11-05 14:11:04 -0600 (Mon, 05 Nov 2007) | 20 lines

Merge the last bit of changes from asterisk/team/russell/readq-1.4

The issue here is that the channel frame readq handling got broken when the
code was converted to use the linked list macros.  It caused corruption of the
list head and tail pointers.  So, I fixed up the usage of the linked list
macros and in passing, simplified the code.  I also documented what the code
is doing, as it was a bit difficult to figure out at first.

This bug showed itself with crashes showing messed up head/tail pointers for
the readq.  However, there are a couple of crashes that aren't quite as obvious,
but I think may be related.  So, if your bug gets closed by this commit, but
you still have a problem, please reopen or create a new bug report.

(closes issue #10936)
(closes issue #10595)
(closes issue #10368)
(closes issue #11084)
(closes issue #10040)
(closes issue #10840)

........

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

13 years agoCleanup the installation of samples, avoiding repetitions.
Luigi Rizzo [Mon, 5 Nov 2007 19:22:56 +0000 (19:22 +0000)]
Cleanup the installation of samples, avoiding repetitions.

I am preserving the behaviour on *.adsi files,
i.e. overwrite anything there without making a backup.
However I am not sure that this is the intended behaviour.

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

13 years agoMerged revisions 88671 via svnmerge from
Joshua Colp [Mon, 5 Nov 2007 18:52:12 +0000 (18:52 +0000)]
Merged revisions 88671 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r88671 | file | 2007-11-05 14:47:13 -0400 (Mon, 05 Nov 2007) | 7 lines

If a SIP channel is put on hold multiple times do not keep incrementing the onHold value.
(closes issue #11085)
Reported by: francesco_r
Tested by: blitzrage
(closes issue #10474)
Reported by: acennami

........

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

13 years agoChange wording to that suggested by MasterYoda
Tilghman Lesher [Mon, 5 Nov 2007 18:22:20 +0000 (18:22 +0000)]
Change wording to that suggested by MasterYoda

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

13 years agosimplify (hopefully) the printing of $(MAKE) in aligned output.
Luigi Rizzo [Mon, 5 Nov 2007 18:00:24 +0000 (18:00 +0000)]
simplify (hopefully) the printing of $(MAKE) in aligned output.

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