asterisk/asterisk.git
12 years agoMerged revisions 58510 via svnmerge from
Russell Bryant [Thu, 8 Mar 2007 22:08:28 +0000 (22:08 +0000)]
Merged revisions 58510 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r58510 | russell | 2007-03-08 16:06:54 -0600 (Thu, 08 Mar 2007) | 3 lines

Add a missing break statement so that handling the above event does not
incorrectly destroy the channel. (issue #9242, andrew)

........

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

12 years agoMerged revisions 58479 via svnmerge from
Tilghman Lesher [Thu, 8 Mar 2007 21:34:40 +0000 (21:34 +0000)]
Merged revisions 58479 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r58479 | tilghman | 2007-03-08 15:33:03 -0600 (Thu, 08 Mar 2007) | 2 lines

Fix segfault (Issue 9236)

........

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

12 years agoMerged revisions 58474 via svnmerge from
Russell Bryant [Thu, 8 Mar 2007 20:56:57 +0000 (20:56 +0000)]
Merged revisions 58474 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r58474 | russell | 2007-03-08 14:54:56 -0600 (Thu, 08 Mar 2007) | 3 lines

Refactor hold handling a bit so that it does not require keeping the call up
when a call is put on hold.

........

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

12 years agoMerged revisions 58436 via svnmerge from
Joshua Colp [Thu, 8 Mar 2007 18:05:54 +0000 (18:05 +0000)]
Merged revisions 58436 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r58436 | file | 2007-03-08 13:01:00 -0500 (Thu, 08 Mar 2007) | 2 lines

Make early SDP seeding even smarter! We have to check codecs in the make_compatible function too. (issue #9221 reported by marcelbarbulescu)

........

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

12 years agoMerged revisions 58389 via svnmerge from
Joshua Colp [Thu, 8 Mar 2007 16:09:23 +0000 (16:09 +0000)]
Merged revisions 58389 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r58389 | file | 2007-03-08 11:07:10 -0500 (Thu, 08 Mar 2007) | 10 lines

Merged revisions 58388 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r58388 | file | 2007-03-08 11:04:58 -0500 (Thu, 08 Mar 2007) | 2 lines

Only print out debug message if the definition that makes the variables shows up was actually defined. (issue #9233 reported by serginuez)

........

................

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

12 years agoMerged revisions 58354 via svnmerge from
Kevin P. Fleming [Thu, 8 Mar 2007 13:27:02 +0000 (13:27 +0000)]
Merged revisions 58354 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r58354 | kpfleming | 2007-03-08 08:23:46 -0500 (Thu, 08 Mar 2007) | 2 lines

this change was not needed; fclose() handles closing the file descriptor already

........

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

12 years agoMerged revisions 58351-58352 via svnmerge from
Kevin P. Fleming [Thu, 8 Mar 2007 13:21:38 +0000 (13:21 +0000)]
Merged revisions 58351-58352 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r58351 | kpfleming | 2007-03-08 08:17:17 -0500 (Thu, 08 Mar 2007) | 2 lines

fix two cases where HTTP session file descriptors would not be closed

........
r58352 | kpfleming | 2007-03-08 08:17:42 -0500 (Thu, 08 Mar 2007) | 2 lines

fix a compiler warning, and overwriting 'res' value

........

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

12 years agoMerged revisions 58320 via svnmerge from
Russell Bryant [Thu, 8 Mar 2007 01:06:00 +0000 (01:06 +0000)]
Merged revisions 58320 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r58320 | russell | 2007-03-07 19:01:46 -0600 (Wed, 07 Mar 2007) | 6 lines

If we receive ZT_EVENT_REMOVED, destroy the specified channel.
(issue #7256, tzafrir)

Also, update the configure script to make sure that we don't try to build
chan_zap if the installed version of zaptel does not include ZT_EVENT_REMOVED.

........

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

12 years agoAdd the ability to dynamically specify weights for responses to DUNDi queries.
Russell Bryant [Wed, 7 Mar 2007 22:30:52 +0000 (22:30 +0000)]
Add the ability to dynamically specify weights for responses to DUNDi queries.
This can be done using a global variable or a dialplan function.  Using the
SHELL() function will allow you to use an external script to determine what the
weight in the response should be.  This can be very useful in load balancing
applications.
(inspired by discussions with blitzrage and jsmith in #asterisk-bugs)

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

12 years agoMake the loader less noisy under valgrind.
Joshua Colp [Wed, 7 Mar 2007 20:05:05 +0000 (20:05 +0000)]
Make the loader less noisy under valgrind.

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

12 years agoMerged revisions 58243 via svnmerge from
Russell Bryant [Wed, 7 Mar 2007 18:20:51 +0000 (18:20 +0000)]
Merged revisions 58243 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r58243 | russell | 2007-03-07 12:19:19 -0600 (Wed, 07 Mar 2007) | 17 lines

(This bug was reported to me by Kinsey Moore)

Merged revisions 58242 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r58242 | russell | 2007-03-07 12:17:07 -0600 (Wed, 07 Mar 2007) | 7 lines

Fix a problem where the Asterisk channel name could be that of the wrong IAX2
user for a call.  This is because the first step of choosing this name is to
look for an IAX2 peer that happens to have the same IP/port number that this
call is coming from and assuming that is it.  However, this is not always
correct.  So, I have made it change this name after authentication happens
since at that point, we have an exact match.

........

................

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

12 years agoMerged revisions 58240 via svnmerge from
Joshua Colp [Wed, 7 Mar 2007 17:55:11 +0000 (17:55 +0000)]
Merged revisions 58240 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r58240 | file | 2007-03-07 12:52:58 -0500 (Wed, 07 Mar 2007) | 2 lines

Ensure we have (or should have) at least one matching codec before attempting early bridge SDP seeding. (issue #9221 reported by marcelbarbulescu)

........

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

12 years agoAdding reference to ices home page. Anyone that has tested with ices2 ?
Olle Johansson [Wed, 7 Mar 2007 08:08:46 +0000 (08:08 +0000)]
Adding reference to ices home page. Anyone that has tested with ices2 ?

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

12 years agoAdd the format of the file that is currently being played to the verbose message.
Russell Bryant [Wed, 7 Mar 2007 01:07:16 +0000 (01:07 +0000)]
Add the format of the file that is currently being played to the verbose message.
(issue #9105, junky)

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

12 years agoMerged revisions 58165 via svnmerge from
Russell Bryant [Wed, 7 Mar 2007 00:26:01 +0000 (00:26 +0000)]
Merged revisions 58165 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r58165 | russell | 2007-03-06 18:25:19 -0600 (Tue, 06 Mar 2007) | 12 lines

Merged revisions 58164 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r58164 | russell | 2007-03-06 18:20:13 -0600 (Tue, 06 Mar 2007) | 4 lines

If the channels acquired using the manager Redirect action are not up, then
don't attempt to do anything with them.  It could lead to weird behavior,
including crashes.  (issue #8977)

........

................

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

12 years agoAdd some documentation on the arguments to the base64 encode/decode functions.
Russell Bryant [Tue, 6 Mar 2007 23:58:38 +0000 (23:58 +0000)]
Add some documentation on the arguments to the base64 encode/decode functions.
(inspired by issue #9215)

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

12 years agoSend a manager AgentComplete event when the agent transfers the call, in
Russell Bryant [Tue, 6 Mar 2007 23:20:57 +0000 (23:20 +0000)]
Send a manager AgentComplete event when the agent transfers the call, in
addition to where it is already sent if either side hangs up.
(issue #9219, rgollent)
In passing, I put this code in a function so it would not be duplicated
a third time.

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

12 years agoMerged revisions 58121 via svnmerge from
Steve Murphy [Tue, 6 Mar 2007 23:19:59 +0000 (23:19 +0000)]
Merged revisions 58121 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r58121 | murf | 2007-03-06 16:10:14 -0700 (Tue, 06 Mar 2007) | 9 lines

Merged revisions 58115 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r58115 | murf | 2007-03-06 15:52:52 -0700 (Tue, 06 Mar 2007) | 1 line

Fix for 9220: Eyebeam cannot renew subscriptions for presence info. Reason: re-SUBSCRIBE requests don't include Accept headers, which the rfc says are optional (to put it tersely), (it uses MAY), and luckily, the sip_pvt struct has the format info stored, so we simply leave it if the format is set, and the accept header null.
........

................

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

12 years agoMerged revisions 58119 via svnmerge from
Russell Bryant [Tue, 6 Mar 2007 23:01:30 +0000 (23:01 +0000)]
Merged revisions 58119 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r58119 | russell | 2007-03-06 17:00:57 -0600 (Tue, 06 Mar 2007) | 3 lines

Clarify the documentation of the dialout and sendvoicemail options.
(issue #9000, caio1982 and serge-v)

........

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

12 years agoSync codec_zap with the one that is in the 1.4 branch so that it can actually
Russell Bryant [Tue, 6 Mar 2007 22:15:02 +0000 (22:15 +0000)]
Sync codec_zap with the one that is in the 1.4 branch so that it can actually
build here, too.

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

12 years agoMerged revisions 58053 via svnmerge from
Olle Johansson [Tue, 6 Mar 2007 20:45:29 +0000 (20:45 +0000)]
Merged revisions 58053 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r58053 | oej | 2007-03-06 21:37:07 +0100 (Tue, 06 Mar 2007) | 10 lines

Merged revisions 58052 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r58052 | oej | 2007-03-06 21:33:21 +0100 (Tue, 06 Mar 2007) | 2 lines

Change error message to proper message

........

................

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

12 years agoDebug control, debug control.
Olle Johansson [Tue, 6 Mar 2007 20:41:21 +0000 (20:41 +0000)]
Debug control, debug control.

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

12 years agoMerged revisions 58023 via svnmerge from
Russell Bryant [Tue, 6 Mar 2007 18:02:35 +0000 (18:02 +0000)]
Merged revisions 58023 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r58023 | russell | 2007-03-06 12:01:20 -0600 (Tue, 06 Mar 2007) | 3 lines

Return an error of transmit_response is called without a session.
(issue #9002)

........

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

12 years agoBlocked revisions 57591 via svnmerge
Russell Bryant [Tue, 6 Mar 2007 18:02:07 +0000 (18:02 +0000)]
Blocked revisions 57591 via svnmerge

........
r57591 | russell | 2007-03-02 18:02:29 -0600 (Fri, 02 Mar 2007) | 1 line

add missing configuration template.  Thanks to Lacy Moore on asterisk-users for pointing this out\!
........

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

12 years agomove declaration to the beginning of a block
Luigi Rizzo [Tue, 6 Mar 2007 08:51:45 +0000 (08:51 +0000)]
move declaration to the beginning of a block

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

12 years agoremove duplicate const
Luigi Rizzo [Tue, 6 Mar 2007 08:36:28 +0000 (08:36 +0000)]
remove duplicate const

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

12 years agoAdd zap show version CLI command. This pulls the version/echo canceller in use direct...
Joshua Colp [Mon, 5 Mar 2007 20:13:51 +0000 (20:13 +0000)]
Add zap show version CLI command. This pulls the version/echo canceller in use directly using the ZT_GETVERSION ioctl. (issue #9094 reported by tootai)

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

12 years agoMerged revisions 57914 via svnmerge from
Joshua Colp [Mon, 5 Mar 2007 19:20:45 +0000 (19:20 +0000)]
Merged revisions 57914 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r57914 | file | 2007-03-05 14:19:07 -0500 (Mon, 05 Mar 2007) | 2 lines

Since chan_iax2 does not support reception of DTMF with duration ensure that it is set to 0 on the frame. (issue #8521 reported by gdhgdh)

........

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

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

........
r57872 | file | 2007-03-05 13:39:28 -0500 (Mon, 05 Mar 2007) | 2 lines

Don't create a listen channel and record the conference unless the option is turned on. (issue #9204 reported by francesco_r)

........

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

12 years agoI like it when app_meetme builds under dev mode, don't you?
Joshua Colp [Mon, 5 Mar 2007 18:45:28 +0000 (18:45 +0000)]
I like it when app_meetme builds under dev mode, don't you?

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

12 years agoMerged revisions 57870 via svnmerge from
Joshua Colp [Mon, 5 Mar 2007 17:55:29 +0000 (17:55 +0000)]
Merged revisions 57870 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r57870 | file | 2007-03-05 12:52:03 -0500 (Mon, 05 Mar 2007) | 10 lines

Merged revisions 57869 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r57869 | file | 2007-03-05 12:49:18 -0500 (Mon, 05 Mar 2007) | 2 lines

Make create_dirpath use our standard for return values. -1 is failure, 0 is success. (issue #9205 reported by ballares)

........

................

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

12 years agoMerged revisions 57826 via svnmerge from
Steve Murphy [Mon, 5 Mar 2007 15:30:37 +0000 (15:30 +0000)]
Merged revisions 57826 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r57826 | murf | 2007-03-05 08:20:17 -0700 (Mon, 05 Mar 2007) | 9 lines

Merged revisions 57825 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r57825 | murf | 2007-03-05 07:53:57 -0700 (Mon, 05 Mar 2007) | 1 line

Fixed a typo introduced via 9156 (either the gotos or their doc strings are wrong)
........

................

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

12 years agoMerged revisions 57798 via svnmerge from
Joshua Colp [Mon, 5 Mar 2007 04:21:28 +0000 (04:21 +0000)]
Merged revisions 57798 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r57798 | file | 2007-03-04 23:19:53 -0500 (Sun, 04 Mar 2007) | 2 lines

Don't allow a NULL pointer to reach ast_frdup. (issue #9155 reported by cmaj)

........

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

12 years agoRemove no longer present CLI commands from sample extensions.conf. (issue #9193 repor...
Joshua Colp [Mon, 5 Mar 2007 03:41:48 +0000 (03:41 +0000)]
Remove no longer present CLI commands from sample extensions.conf. (issue #9193 reported by junky)

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

12 years agoMerged revisions 57770 via svnmerge from
Joshua Colp [Mon, 5 Mar 2007 03:39:32 +0000 (03:39 +0000)]
Merged revisions 57770 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r57770 | file | 2007-03-04 22:35:03 -0500 (Sun, 04 Mar 2007) | 2 lines

Don't reference a potentially NULL pointer. (issue #9199 reported by klolik)

........

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

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

........
r57768 | file | 2007-03-04 22:22:17 -0500 (Sun, 04 Mar 2007) | 2 lines

Preserve marker bit when P2P bridging. (issue #9198 reported by edgreenberg)

........

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

12 years agoConvert stack apps to use ast_storage channel structure
Tilghman Lesher [Sat, 3 Mar 2007 16:43:36 +0000 (16:43 +0000)]
Convert stack apps to use ast_storage channel structure

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

12 years agoupdated the regression tests
Steve Murphy [Sat, 3 Mar 2007 15:35:44 +0000 (15:35 +0000)]
updated the regression tests

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

12 years agoExpand datastores to add the notion of inheritance. This will be needed for
Tilghman Lesher [Sat, 3 Mar 2007 14:40:18 +0000 (14:40 +0000)]
Expand datastores to add the notion of inheritance.  This will be needed for
the conversion of IAX2 variables from the current custom method to ast_storage.

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

12 years agoMerged revisions 57649 via svnmerge from
Tilghman Lesher [Sat, 3 Mar 2007 06:46:24 +0000 (06:46 +0000)]
Merged revisions 57649 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r57649 | tilghman | 2007-03-03 00:45:00 -0600 (Sat, 03 Mar 2007) | 10 lines

Merged revisions 57648 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r57648 | tilghman | 2007-03-03 00:36:55 -0600 (Sat, 03 Mar 2007) | 2 lines

Memory leak of a list, if call recording was abandoned

........

................

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

12 years agoMerged revisions 57620 via svnmerge from
Dwayne M. Hubbard [Sat, 3 Mar 2007 01:11:36 +0000 (01:11 +0000)]
Merged revisions 57620 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r57620 | dhubbard | 2007-03-02 18:59:24 -0600 (Fri, 02 Mar 2007) | 1 line

submitted patch for Georgian language, issue 9010, submitted by Alexander Shaduri
........

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

12 years agoAdd the missing configuration template to the sample config file.
Russell Bryant [Sat, 3 Mar 2007 00:01:25 +0000 (00:01 +0000)]
Add the missing configuration template to the sample config file.

Thanks to Lacy Moore on the asterisk-users list for pointing out that this
was missing!

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

12 years agoMerged revisions 57556 via svnmerge from
Russell Bryant [Fri, 2 Mar 2007 23:05:25 +0000 (23:05 +0000)]
Merged revisions 57556 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r57556 | russell | 2007-03-02 17:03:01 -0600 (Fri, 02 Mar 2007) | 3 lines

Update the check that is used to determine whether zaptel transcoder support
is present.  The interface has changed.

........

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

12 years agoDon't try to do recursive locking/unlocking when it isn't supported.
Joshua Colp [Fri, 2 Mar 2007 18:05:29 +0000 (18:05 +0000)]
Don't try to do recursive locking/unlocking when it isn't supported.

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

12 years agoMerged revisions 57477 via svnmerge from
Joshua Colp [Fri, 2 Mar 2007 17:09:18 +0000 (17:09 +0000)]
Merged revisions 57477 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r57477 | file | 2007-03-02 12:06:52 -0500 (Fri, 02 Mar 2007) | 10 lines

Merged revisions 57475 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r57475 | file | 2007-03-02 12:02:46 -0500 (Fri, 02 Mar 2007) | 2 lines

If a SIP message comes in and goes to a method handler that requires additional values that may not be present then send back an error.

........

................

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

12 years agoMerged revisions 57473 via svnmerge from
Steve Murphy [Fri, 2 Mar 2007 17:03:47 +0000 (17:03 +0000)]
Merged revisions 57473 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r57473 | murf | 2007-03-02 09:55:16 -0700 (Fri, 02 Mar 2007) | 9 lines

Merged revisions 57458 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r57458 | murf | 2007-03-02 09:39:33 -0700 (Fri, 02 Mar 2007) | 1 line

further refinement in wording of goto documentation, as per 9156, goto not proceeding to next instruction
........

................

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

12 years agoAdd the channel's Language to the "show channel" CLI command and the DumpChan
Russell Bryant [Fri, 2 Mar 2007 16:59:22 +0000 (16:59 +0000)]
Add the channel's Language to the "show channel" CLI command and the DumpChan
application.  (issue #9187, Junky)

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

12 years agoMerged revisions 57426 via svnmerge from
Steve Murphy [Fri, 2 Mar 2007 05:57:06 +0000 (05:57 +0000)]
Merged revisions 57426 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r57426 | murf | 2007-03-01 22:21:36 -0700 (Thu, 01 Mar 2007) | 1 line

I almost had comma escapes right, but 9184 points out the problem-- the escape is removed by pbx_config, and pbx_ael should also, before sending it down into the pbx engine. Also, you have to insert it back in, if you are generating extensions.conf code from the AEL.
........

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

12 years agoMerged revisions 57396 via svnmerge from
Russell Bryant [Fri, 2 Mar 2007 00:22:22 +0000 (00:22 +0000)]
Merged revisions 57396 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r57396 | russell | 2007-03-01 18:20:44 -0600 (Thu, 01 Mar 2007) | 4 lines

Return the correct digit that interrupted the stream.  This fixes exiting the
Background application when using the m option.
(issue #9176, mjagdis)

........

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

12 years agoMerged revisions 57364 via svnmerge from
Russell Bryant [Thu, 1 Mar 2007 23:44:09 +0000 (23:44 +0000)]
Merged revisions 57364 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r57364 | russell | 2007-03-01 17:42:53 -0600 (Thu, 01 Mar 2007) | 16 lines

Merge changes from svn/asterisk/team/russell/sla_updates

* Originally, I put in the documentation that only Zap interfaces would be
  supported on the trunk side.  However, after a discussion with Qwell, we came
  up with a way to make IP trunks work as well, using some things already in
  Asterisk.  So, here it is, this now officially supports IP trunks.
* Update the SLA documentation to reflect how to setup IP trunks.
* Add a section in sla.txt that describes how to set up an SLA system with
  voicemail.
* Simplify the way DTMF passthrough is handled in MeetMe.
* Fix a bug that exposed itself when using a Local channel on the trunk side
  in SLA.  The station's channel needs to be passed to the dial API when
  dialing the trunk.
* Change a WARNING message to DEBUG in channel.h.  This message is of no use
  to users.

........

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

12 years agoMerged revisions 57318 via svnmerge from
Joshua Colp [Thu, 1 Mar 2007 22:23:26 +0000 (22:23 +0000)]
Merged revisions 57318 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r57318 | file | 2007-03-01 17:21:44 -0500 (Thu, 01 Mar 2007) | 10 lines

Merged revisions 57317 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r57317 | file | 2007-03-01 17:19:32 -0500 (Thu, 01 Mar 2007) | 2 lines

Don't even attempt to optimize things when a proxy channel is involved. It will just explode in weird and unexplaineable ways. (issue #9175 reported by clegall_proformatique)

........

................

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

12 years agoConstify the list of codec preferences.
Russell Bryant [Thu, 1 Mar 2007 20:24:59 +0000 (20:24 +0000)]
Constify the list of codec preferences.

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

12 years ago1. Corrected a typo for www.etsi.org. Thank Patrick.
TransNexus OSP Development [Thu, 1 Mar 2007 03:01:11 +0000 (03:01 +0000)]
1. Corrected a typo for etsi.org. Thank Patrick.

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

12 years agoMinor code cleanup... nothing to write home about.
Joshua Colp [Thu, 1 Mar 2007 00:08:18 +0000 (00:08 +0000)]
Minor code cleanup... nothing to write home about.

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

12 years agoMerged revisions 57207 via svnmerge from
Russell Bryant [Wed, 28 Feb 2007 23:02:49 +0000 (23:02 +0000)]
Merged revisions 57207 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r57207 | russell | 2007-02-28 17:01:52 -0600 (Wed, 28 Feb 2007) | 2 lines

minor tweaks to the sla docs

........

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

12 years agoMerged revisions 57203 via svnmerge from
Russell Bryant [Wed, 28 Feb 2007 22:09:33 +0000 (22:09 +0000)]
Merged revisions 57203 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r57203 | russell | 2007-02-28 16:07:05 -0600 (Wed, 28 Feb 2007) | 7 lines

Merge more changes from svn/asterisk/team/russell/sla_updates

* Add support for private hold.  By setting "hold=private" for a trunk, only
  the station that put the call on hold will be able to retrieve it from hold.
  Also, by setting "hold=private" for a station, any call that station puts
  on hold can only be retrieved by that station.

........

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

12 years agoConvert the PBX core to use read/write locks. This yields a nifty performance improve...
Joshua Colp [Wed, 28 Feb 2007 20:46:01 +0000 (20:46 +0000)]
Convert the PBX core to use read/write locks. This yields a nifty performance improvement when it comes to simultaneous calls going through the dialplan. Using murf's test the old mutex based core took an average of 57.3 seconds while the rwlock based core took 31.1 seconds. That's a nifty 26.2 seconds performance improvement. The other good part is that if we do need to switch back then we just have to change the lock/unlock API calls. I converted everywhere that used to touch the mutex locks directly to use them.

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

12 years agoMerged revisions 57146 via svnmerge from
Russell Bryant [Wed, 28 Feb 2007 19:59:26 +0000 (19:59 +0000)]
Merged revisions 57146 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r57146 | russell | 2007-02-28 13:58:56 -0600 (Wed, 28 Feb 2007) | 2 lines

Minor formatting change

........

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

12 years agoMerged revisions 57144 via svnmerge from
Russell Bryant [Wed, 28 Feb 2007 19:57:41 +0000 (19:57 +0000)]
Merged revisions 57144 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r57144 | russell | 2007-02-28 13:56:20 -0600 (Wed, 28 Feb 2007) | 6 lines

Merge changes from svn/asterisk/team/russell/sla_updates

* Add support for the "barge=no" option for trunks.  If this option is set,
  then stations will not be able to join in on a call that is on progress
  on this trunk.

........

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

12 years agoMerged revisions 57139 via svnmerge from
Steve Murphy [Wed, 28 Feb 2007 19:30:58 +0000 (19:30 +0000)]
Merged revisions 57139 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r57139 | murf | 2007-02-28 12:23:05 -0700 (Wed, 28 Feb 2007) | 9 lines

Merged revisions 57118 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r57118 | murf | 2007-02-28 12:12:41 -0700 (Wed, 28 Feb 2007) | 1 line

a small documentation update, to reflect reality in the goto doc strings, as per 9156, Goto does not proceed to next prio if jump fails
........

................

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

12 years agoMerged revisions 57093 via svnmerge from
Joshua Colp [Wed, 28 Feb 2007 19:00:24 +0000 (19:00 +0000)]
Merged revisions 57093 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r57093 | file | 2007-02-28 13:57:52 -0500 (Wed, 28 Feb 2007) | 10 lines

Merged revisions 57092 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r57092 | file | 2007-02-28 13:55:45 -0500 (Wed, 28 Feb 2007) | 2 lines

Fix a few more issues with the agent logoff CLI command. (issue #9123 reported by arbrandes)

........

................

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

12 years agoMerged revisions 57089 via svnmerge from
Russell Bryant [Wed, 28 Feb 2007 18:21:47 +0000 (18:21 +0000)]
Merged revisions 57089 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r57089 | russell | 2007-02-28 12:20:05 -0600 (Wed, 28 Feb 2007) | 8 lines

Merge current set of changes from svn/asterisk/team/russell/sla_updates

* Add support for station ring delays.  Ring delays can be set globally for a
  station or for specific trunks on the station.
* Fix a few bugs in existing code.
* Restructure and Reorganize code to improve readability and maintainability.
* Improve formatting of the "sla show (trunks|stations)" CLI commands.

........

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

12 years agoMerged revisions 57055 via svnmerge from
Joshua Colp [Wed, 28 Feb 2007 17:56:04 +0000 (17:56 +0000)]
Merged revisions 57055 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r57055 | file | 2007-02-28 12:55:03 -0500 (Wed, 28 Feb 2007) | 2 lines

Picky compiler...

........

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

12 years agoMerged revisions 57053 via svnmerge from
Joshua Colp [Wed, 28 Feb 2007 17:47:41 +0000 (17:47 +0000)]
Merged revisions 57053 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r57053 | file | 2007-02-28 12:45:50 -0500 (Wed, 28 Feb 2007) | 2 lines

Better handle timeouts when the individual speaks after everything has been played but before the timeout ends.

........

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

12 years agoMerged revisions 57049 via svnmerge from
Steve Murphy [Wed, 28 Feb 2007 17:22:45 +0000 (17:22 +0000)]
Merged revisions 57049 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r57049 | murf | 2007-02-28 10:15:27 -0700 (Wed, 28 Feb 2007) | 1 line

I was surprised that I had not yet downgraded missing goto targets and macro call defs to a warning, in case they are in extensions.conf; I rectified this problem. Also, A goto in a macro to a target in a catch block was not being found; I fixed this too; the cause was that I needed to treat catch statements like an extension in the find_match code.
........

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

12 years agoProperly hangup the original dialed channel, not the new channel that appeared from...
Joshua Colp [Tue, 27 Feb 2007 22:17:42 +0000 (22:17 +0000)]
Properly hangup the original dialed channel, not the new channel that appeared from the forwarding. (issue #9161 reported by PhilSmith)

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

12 years ago(also issue #9159)
Russell Bryant [Tue, 27 Feb 2007 17:38:57 +0000 (17:38 +0000)]
(also issue #9159)

Merged revisions 56975 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r56975 | russell | 2007-02-27 11:36:09 -0600 (Tue, 27 Feb 2007) | 4 lines

Fix voicemail email attachments.  I missed the conversion of one of the line
endings and there was an extra one where it should not have been.
(issue #9128)

........

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

12 years agoIssue 7789 - some telcos want the TON set based on the number, but without the NANP...
Tilghman Lesher [Tue, 27 Feb 2007 00:11:32 +0000 (00:11 +0000)]
Issue 7789 - some telcos want the TON set based on the number, but without the NANP prefix removed

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

12 years agoBlocked revisions 56922 via svnmerge
Tilghman Lesher [Mon, 26 Feb 2007 22:02:54 +0000 (22:02 +0000)]
Blocked revisions 56922 via svnmerge

........
r56922 | tilghman | 2007-02-26 16:01:23 -0600 (Mon, 26 Feb 2007) | 2 lines

Picky, picky... show deprecation warning in application help, too (reported via list)

........

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

12 years agoMerged revisions 56888 via svnmerge from
Russell Bryant [Mon, 26 Feb 2007 20:43:18 +0000 (20:43 +0000)]
Merged revisions 56888 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r56888 | russell | 2007-02-26 14:42:21 -0600 (Mon, 26 Feb 2007) | 4 lines

Restore the behavior of Asterisk 1.2 where if a device was not specified in
alsa.conf, then we just use the system default, instead of creating our own
default of hw:0,0.  (issue #9139)

........

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

12 years agoMerged revisions 56856 via svnmerge from
Joshua Colp [Mon, 26 Feb 2007 20:09:06 +0000 (20:09 +0000)]
Merged revisions 56856 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r56856 | file | 2007-02-26 15:07:18 -0500 (Mon, 26 Feb 2007) | 10 lines

Merged revisions 56850 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r56850 | file | 2007-02-26 15:05:02 -0500 (Mon, 26 Feb 2007) | 2 lines

Obey the clearglobalvars option in extensions reload (or dialplan reload depending on your version). (issue #9146 reported by ramonpeek)

........

................

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

12 years agoMerged revisions 56847 via svnmerge from
Russell Bryant [Mon, 26 Feb 2007 20:04:53 +0000 (20:04 +0000)]
Merged revisions 56847 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r56847 | russell | 2007-02-26 14:04:13 -0600 (Mon, 26 Feb 2007) | 2 lines

Fix a crash in my last change to iax2_indicate(). (issue #9150)

........

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

12 years agoMerged revisions 56839 via svnmerge from
Joshua Colp [Mon, 26 Feb 2007 19:34:59 +0000 (19:34 +0000)]
Merged revisions 56839 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r56839 | file | 2007-02-26 14:33:48 -0500 (Mon, 26 Feb 2007) | 2 lines

Update app_record documentation to use new CLI command, core show file formats. (issue #9151 reported by junky)

........

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

12 years agoMerged revisions 56805 via svnmerge from
Joshua Colp [Mon, 26 Feb 2007 17:12:18 +0000 (17:12 +0000)]
Merged revisions 56805 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r56805 | file | 2007-02-26 12:09:53 -0500 (Mon, 26 Feb 2007) | 2 lines

Use ast_strlen_zero to see if the language and/or context argument is not present for Background instead of just checking if it is NULL. (issue #9141 reported by mjagdis)

........

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

12 years agoMerged revisions 56785 via svnmerge from
Russell Bryant [Mon, 26 Feb 2007 16:54:17 +0000 (16:54 +0000)]
Merged revisions 56785 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r56785 | russell | 2007-02-26 10:51:18 -0600 (Mon, 26 Feb 2007) | 3 lines

Do more complete locking of the chan_iax2_pvt struct in the indicate callback.
(Problem brought up by Ben Smithurst on the asterisk-dev list)

........

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

12 years agoMerged revisions 56783 via svnmerge from
Joshua Colp [Mon, 26 Feb 2007 16:38:10 +0000 (16:38 +0000)]
Merged revisions 56783 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r56783 | file | 2007-02-26 11:36:08 -0500 (Mon, 26 Feb 2007) | 2 lines

Allow both of the show version files and core show file versions CLI commands to work. (issue #9135 reported by mvanbaak)

........

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

12 years agoMerged revisions 56740 via svnmerge from
Russell Bryant [Mon, 26 Feb 2007 01:05:15 +0000 (01:05 +0000)]
Merged revisions 56740 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r56740 | russell | 2007-02-25 19:04:40 -0600 (Sun, 25 Feb 2007) | 2 lines

Move a comment to be in the correct struct.

........

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

12 years agoRemove redundant check to ensure that LOW_MEMORY is not defined.
Russell Bryant [Mon, 26 Feb 2007 00:38:49 +0000 (00:38 +0000)]
Remove redundant check to ensure that LOW_MEMORY is not defined.
(issue #9136, mvanbaak)

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

12 years agoThere is no need to look in the iaxs array for the pvt struct when we already
Russell Bryant [Mon, 26 Feb 2007 00:37:03 +0000 (00:37 +0000)]
There is no need to look in the iaxs array for the pvt struct when we already
have a pointer to it.

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

12 years agoMerged revisions 56685 via svnmerge from
Tilghman Lesher [Sun, 25 Feb 2007 14:53:40 +0000 (14:53 +0000)]
Merged revisions 56685 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r56685 | tilghman | 2007-02-25 08:46:41 -0600 (Sun, 25 Feb 2007) | 11 lines

Merged revisions 56684 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r56684 | tilghman | 2007-02-25 08:38:03 -0600 (Sun, 25 Feb 2007) | 3 lines

Issue 9130 - If prev is the last item on the channel list, then evaluating
additional conditions (e.g. name prefix) will cause a NULL dereference.

........

................

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

12 years agoDoxygen additions, corrections
Olle Johansson [Sat, 24 Feb 2007 20:29:41 +0000 (20:29 +0000)]
Doxygen additions, corrections

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

12 years agoDoxygen updates and corrections
Olle Johansson [Sat, 24 Feb 2007 19:49:11 +0000 (19:49 +0000)]
Doxygen updates and corrections

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

12 years agoCreating new doxygen macro "\extref" to create page that lists
Olle Johansson [Sat, 24 Feb 2007 19:27:50 +0000 (19:27 +0000)]
Creating new doxygen macro "\extref" to create page that lists
external libraries and URLs to these. Please help me add these
references.

We might want to create a similar macro "\linuxpackage" to list
the needed Linux packages in popular distributions.

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

12 years agoAdd some external references
Olle Johansson [Sat, 24 Feb 2007 18:03:17 +0000 (18:03 +0000)]
Add some external references

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

12 years agoDoxygen updates for AJI - The Asterisk Jabber API
Olle Johansson [Sat, 24 Feb 2007 17:51:23 +0000 (17:51 +0000)]
Doxygen updates for AJI - The Asterisk Jabber API

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

12 years agoAllow a Skinny device to monitor a dialplan hint (w00t!).
Jason Parker [Sat, 24 Feb 2007 02:23:43 +0000 (02:23 +0000)]
Allow a Skinny device to monitor a dialplan hint (w00t!).

See skinny.conf.sample for configuration example.

Note: Some devices (seen on 12SP+/30VIP) will lock up if they monitor too many hints.
This seems to be a hardware limitation - there isn't anything we can do about it.

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

12 years agoSupport devicestate requests.
Jason Parker [Sat, 24 Feb 2007 02:06:44 +0000 (02:06 +0000)]
Support devicestate requests.

Now you should be able to subscribe to a Skinny device/line.

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

12 years agoMerged revisions 56569 via svnmerge from
Jason Parker [Sat, 24 Feb 2007 02:04:34 +0000 (02:04 +0000)]
Merged revisions 56569 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r56569 | qwell | 2007-02-23 20:02:53 -0600 (Fri, 23 Feb 2007) | 4 lines

Make sure to set a speeddials parent on creation.
Don't crash if hold is pressed when no call is active.
Don't return in places that we shouldn't..
Update softkey map when call is connected

........

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

12 years agoMake Meetme build again under dev mode.
Joshua Colp [Sat, 24 Feb 2007 01:56:41 +0000 (01:56 +0000)]
Make Meetme build again under dev mode.

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

12 years agoMerged revisions 56505 via svnmerge from
Russell Bryant [Fri, 23 Feb 2007 23:25:22 +0000 (23:25 +0000)]
Merged revisions 56505 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r56505 | russell | 2007-02-23 17:24:18 -0600 (Fri, 23 Feb 2007) | 16 lines

Merged revisions 56504 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r56504 | russell | 2007-02-23 17:20:55 -0600 (Fri, 23 Feb 2007) | 8 lines

Fix up a couple more signal handlers to not do bad things that could cause
various undesirable results.  The other day, I made Asterisk deadlock by
hitting Control-C because of a bad signal handler.  Now, signal handlers
just set a flag and write to an alert pipe for the flag to be handled.  Then,
there is another thread that is monitoring for these flags.  If being run in
console mode, it is just the main thread.  If Asterisk is in the background,
a thread is created to do it.

........

................

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

12 years agoMake the hashing function calculate something that makes more sense.
Russell Bryant [Fri, 23 Feb 2007 22:26:00 +0000 (22:26 +0000)]
Make the hashing function calculate something that makes more sense.
(Thanks to bmd on #asterisk-dev for pointing out my pointless math).

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

12 years agoMerged revisions 56457 via svnmerge from
Joshua Colp [Fri, 23 Feb 2007 21:57:07 +0000 (21:57 +0000)]
Merged revisions 56457 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r56457 | file | 2007-02-23 16:53:41 -0500 (Fri, 23 Feb 2007) | 2 lines

Change log notice to debug. It is possible for a scheduled item to execute and be deleted at close to the same time and unavoidable. If this happens this message creeps up.

........

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

12 years agoMerge team/russell/iax2_performance.
Russell Bryant [Fri, 23 Feb 2007 21:20:33 +0000 (21:20 +0000)]
Merge team/russell/iax2_performance.

There is not a large amount of code here and the changes are not very invasive.
However, they should significantly improve performance of chan_iax2 under load.

IAX2 media frames only carry the *source* call number.  So, when one arrives,
the correct session that it is a part of has to be matched on IP address, port
number, and call number, instead of just a call number.  Had these frames
carried the *destination* call number, this would not be an issue, because that
would be a unique identifier that would make it easy to immediately identify
the correct session.

The way that chan_iax2 did this matching was extremely inefficient.  It starts
at the first available call number and traverses each call number sequentially,
locking and unlocking a mutex for each one, to try to match against it.  It
would do this regardless of whether the call number was in use or not.  So,
for a call with a local call number of 25000, every single incoming media
frame would require a traversal that required 25000 mutex lock and unlock
operations.  (Note that the max call number is about 32k).

I have introduced a hash table of active IAX2 calls to improve this lookup
process.  The hash is done on the IP address, port number, and call number.
So, for the previous example, a few lock/unlock operations may be done versus
25000 for each frame.

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

12 years agoNote that the entries in the CHANGES file only list functionality changes
Russell Bryant [Fri, 23 Feb 2007 21:12:28 +0000 (21:12 +0000)]
Note that the entries in the CHANGES file only list functionality changes

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

12 years agoAdd GetConfigJSON to the CHANGES file.
Russell Bryant [Fri, 23 Feb 2007 21:08:25 +0000 (21:08 +0000)]
Add GetConfigJSON to the CHANGES file.

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

12 years agoMerged revisions 56407 via svnmerge from
Russell Bryant [Fri, 23 Feb 2007 20:21:35 +0000 (20:21 +0000)]
Merged revisions 56407 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r56407 | russell | 2007-02-23 14:20:00 -0600 (Fri, 23 Feb 2007) | 12 lines

Merged revisions 56406 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r56406 | russell | 2007-02-23 14:17:56 -0600 (Fri, 23 Feb 2007) | 4 lines

Don't destroy mutexes before unregistering all of the entry points from the core.
Also, fix a potential memory leak from not destroying the locks for all of the
possible call numbers (about 32k of them).

........

................

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

12 years agoMerged revisions 56372 via svnmerge from
Kevin P. Fleming [Fri, 23 Feb 2007 19:00:23 +0000 (19:00 +0000)]
Merged revisions 56372 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r56372 | kpfleming | 2007-02-23 12:59:09 -0600 (Fri, 23 Feb 2007) | 2 lines

build special version strings for AADK/S800i builds

........

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

12 years agoMerged revisions 56341 via svnmerge from
Russell Bryant [Fri, 23 Feb 2007 18:01:11 +0000 (18:01 +0000)]
Merged revisions 56341 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r56341 | russell | 2007-02-23 11:58:57 -0600 (Fri, 23 Feb 2007) | 8 lines

The IMAP storage code uses the same code to build the email that is used when
voicemail is sent via email using something like sendmail.  In the patch from
bug 8033 to fix various IMAP storage problems, the line endings in the email
file were changed in the code from "\n" to "\r\n".  However, this breaks
sending regular voicemail to email.  So, this change conditionally sets line
endings to "\r\n" only if IMAP_STORAGE is enabled.
(issue #9128, patch by jarjarbinks, modified by me to not break IMAP storage)

........

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

12 years agoIntroduce a new manager action, GetConfigJSON, which is intended to improve
Russell Bryant [Fri, 23 Feb 2007 00:45:04 +0000 (00:45 +0000)]
Introduce a new manager action, GetConfigJSON, which is intended to improve
performance of the GUI.  This encodes the configuration into the JSON format
in a manager header, "JSON: ".  The encoded information can be directly used
as a javascript object, so no parsing is needed.  For large configuration
files, this can greatly improve loading times in the GUI. Furthermore, the
encoding takes up a lot less space when being transmitted than the other
alternatives.  (Inspired by discussion with Pari)

Here is an example of what you get:
http://localhost:8088/asterisk/rawman?action=getconfigjson&filename=users.conf

Response: Success
JSON: {"general":["hasvoicemail=yes"],"6000":["fullname=russell","secret=1234"]}

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

12 years agoMerged revisions 56277 via svnmerge from
Russell Bryant [Thu, 22 Feb 2007 23:12:26 +0000 (23:12 +0000)]
Merged revisions 56277 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r56277 | russell | 2007-02-22 17:08:36 -0600 (Thu, 22 Feb 2007) | 18 lines

Merge changes from team/russell/sla_updates.

This batch of changes to the SLA code does a few different things.

* I made the SLA code event driven instead of having to act in a lot of busy
  loops while dialing things to wait for state changes.  This makes the code
  more efficient and readable at the same time.

* I have implemented a couple of new features.  The first is inbound trunk
  ringing timeouts.  This is an option that defines how long to let an incoming
  call on a trunk to ring.

* I have also implemented ring timeouts for stations.  They may be specified
  for the entire station, meaning it is how long to let the station ring before
  giving up.  You can also specify a ring timeout for a specific trunk on a
  station.  So, you can say that you only want a specific station to ring 5
  seconds if it is line1 ringing, but otherwise, there is no timeout.

........

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