Commit Graph

14321 Commits

Author SHA1 Message Date
Mark Michelson e1e186471f Fix "core show translation" to not output information for "unknown" codecs.
This fix was made in favor of the proposed patch since it doesn't involve changing
a core codec define.

(closes issue #11722, reported and initially patched by caio1982, final patch by me)



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@98047 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-11 00:54:54 +00:00
Russell Bryant 5c2beee6c3 Add a new global and per-peer option to chan_sip, qualifyfreq, which allows you
to set the qualify frequency.

(closes issue #11597)
Reported by: wilder
Patches:
      qualifyfreq5.patch uploaded by wilder (license 362)
	   -- with some mods by me


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@98027 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-11 00:38:23 +00:00
Russell Bryant c0983033ff Blocked revisions 98025 via svnmerge
........
r98025 | russell | 2008-01-10 18:14:59 -0600 (Thu, 10 Jan 2008) | 3 lines

Simplify this code with a suggestion from Luigi on the asterisk-dev list.
Instead of using is16kHz(), implement a format_rate() function.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@98026 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-11 00:15:58 +00:00
Russell Bryant 7bb6547a71 Simplify this code with a suggestion from Luigi on the asterisk-dev list.
Instead of using is16kHz(), implement a format_rate() function.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@98024 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-11 00:12:22 +00:00
Tilghman Lesher c88f243d8d Merged revisions 97973 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r97973 | tilghman | 2008-01-10 17:08:36 -0600 (Thu, 10 Jan 2008) | 6 lines

1) When we get a translated frame out, clone it, because if the
translator pvt is freed before we use the frame, bad things happen.
2) Getting a failure from ast_sched_delete means that the schedule
ID is currently running.  Don't just ignore it.
(Closes issue #11698)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97978 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-10 23:40:13 +00:00
Russell Bryant 3d47a43ac2 Merged revisions 97976 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r97976 | russell | 2008-01-10 17:30:40 -0600 (Thu, 10 Jan 2008) | 3 lines

Fix various timing calculations that made assumptions that the audio being
processed was at a sample rate of 8 kHz.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97977 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-10 23:33:24 +00:00
Russell Bryant a2c08fe0f0 Fix various issues in codec_g722.
- The most common fix being made here is to fix all of the places where the
   number of output samples and output bytes gets updated in the translator
   state structure.
 - Fix a number of other places where the number of samples provided as an
   initialization value to a struct was incorrect.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97975 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-10 23:16:09 +00:00
Russell Bryant 0a5bfb9eb8 Fix the buffer_samples value. For signed linear, the number of samples needed
to fill the buffer is half the buffer size.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97974 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-10 23:10:00 +00:00
Mark Michelson 45634bab41 Merged revisions 97925 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r97925 | mmichelson | 2008-01-10 15:57:06 -0600 (Thu, 10 Jan 2008) | 6 lines

Let us leave a voicemail for ourself if we have logged into VoiceMailMain and chosen
to leave a message.

(closes issue #11735, reported and patched by jamessan)


........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97933 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-10 21:58:47 +00:00
Steve Murphy 3f152e5ff0 Merged revisions 97889 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r97889 | murf | 2008-01-10 14:37:10 -0700 (Thu, 10 Jan 2008) | 1 line

Applied the same fixes for ael.flex as was done in 97849 for ast_expr2.fl; overrode the normally generate yyfree func with our own version that checks the pointer for non-null before passing to free(). Also takes care of a little problem with 2.5.33 and the use of the __STDC_VERSION__ macro.
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97890 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-10 21:46:56 +00:00
Steve Murphy 33fadcc67c Merged revisions 97849 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r97849 | murf | 2008-01-10 13:21:27 -0700 (Thu, 10 Jan 2008) | 1 line

This is a fix for 2 things: a problem Terry was having in OSX with null pointers, which was my fault, as I probably forgot to run the sed script last time I made mods. So, I moved the fix into the flex input itself. Then, I found when I used flex 2.5.33, that it was using __STDC_VERSION__, and that's not real good; so I added back in a DIFFERENT sed script to fix that little mess. Tested everything, a couple different ways. Hope I did no harm, at the least.
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97850 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-10 20:45:05 +00:00
Jason Parker 54873bdb38 Merged revisions 97847 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r97847 | qwell | 2008-01-10 14:12:37 -0600 (Thu, 10 Jan 2008) | 1 line

Fix a comment that is no longer true.
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97848 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-10 20:13:24 +00:00
Mark Michelson 8f9f9246ce Use the appropriate line ending for the X-Asterisk-VM-Message-Type header.
(closes issue #11734, reported and patched by jaroth)



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97846 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-10 20:05:43 +00:00
Terry Wilson 4a403e3c33 heh, remove patch to generated file.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97826 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-10 19:07:36 +00:00
Terry Wilson e823e89b5a Check pointers before freeing (was getting WARNINGS under MALLOC_DEBUG)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97825 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-10 19:03:04 +00:00
Tilghman Lesher 222917317d Fix problem with timestr going out of scope
(Closes issue #11726, closes issue #11731)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97805 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-10 17:38:36 +00:00
Russell Bryant a82ab5369e minor formatting changes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97804 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-10 17:30:24 +00:00
Russell Bryant cd7a05af2d spaces to tabs
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97769 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-10 16:43:31 +00:00
Russell Bryant de1176ee28 Use AST_EXT_TOOL_CHECK() for the GTK check again. I changed this to an inline
implementation to fix a small bug, but after a discussion with rizzo, I went to
change it back.  Also, it turns out that the implementation of the macro already
supported what was needed to fix the problem.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97767 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-10 16:27:03 +00:00
Russell Bryant 234b856d17 Merged revisions 97753 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r97753 | russell | 2008-01-10 10:19:47 -0600 (Thu, 10 Jan 2008) | 2 lines

Remove other remnants of pbx_kdeconsole

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97758 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-10 16:22:10 +00:00
Russell Bryant c53f95e29f Merged revisions 97734 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r97734 | russell | 2008-01-10 10:10:09 -0600 (Thu, 10 Jan 2008) | 4 lines

Remove pbx_kdeconsole from the tree.  It hasn't worked in ages, and nobody has
complained.
(closes issue #11706, reported by caio1982)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97745 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-10 16:15:43 +00:00
Joshua Colp 8e1f8df431 Merged revisions 97697 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r97697 | file | 2008-01-10 11:07:12 -0400 (Thu, 10 Jan 2008) | 6 lines

Don't try to copy the category from the group if no category exists.
(closes issue #11724)
Reported by: IgorG
Patches:
      group_count.v1.patch uploaded by IgorG (license 20)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97698 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-10 15:12:08 +00:00
Russell Bryant 7258c132bd These prototypes are not supposed to be in asterisk.h. They are already in
version.h.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97657 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-10 00:54:01 +00:00
Steve Murphy 71ad27409c The fixes in this commit are mainly to allow compiling of trunk with --enable-dev-mode, mutex profiling, lock debugging, etc. Mainly, the version.c needs to be in the OBJS line; asterisk.h was chosen to have the prototypes for ast_get_version, ast_get_version_num; and the ASTERISK_FILE_VERSION macro needs to be used after including asterisk.h in a few files. I hope I did the right thing. If not, let me know.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97656 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-10 00:50:39 +00:00
Tilghman Lesher 247ca0a827 oops, missed the case of a 0 permission (which should mean everybody is allowed, not nobody)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97655 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-10 00:39:34 +00:00
Terry Wilson 84e25e15cf Attempt at making lookup_iface work under FreeBSD. Not yet tested, but it compiles under OS X. And still works under linux.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97653 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-10 00:22:50 +00:00
Russell Bryant 0da0033675 Fix this so it doesn't force codec_g722 to get relinked every time
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97652 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-10 00:17:02 +00:00
Tilghman Lesher 857e3412f4 Several manager changes:
1) Add the Dialplan class, for NewExten and VarSet events, which should cut
down on the volume of traffic in the Call class.
2) Permit some commands to be run from multiple classes, such as allowing
DBGet to be run from either the System or the Reporting class.
3) Heavily document each class in the sample config, as there were several
that made no sense to be in the write= line, and two that made no sense to be
in the read= line (since they controlled no permissions there).

(Closes issue #10386)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97651 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-10 00:12:35 +00:00
Russell Bryant cc11e9569d Ensure that libg722.a gets rebuilt if one of the files changes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97650 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-10 00:11:02 +00:00
Russell Bryant 372dd125dc Merged revisions 97645 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r97645 | russell | 2008-01-09 17:01:48 -0600 (Wed, 09 Jan 2008) | 2 lines

Strip terminal sequences from the verbose messages

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97646 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-09 23:02:19 +00:00
Russell Bryant b8e1d9a29d re-gen configure
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97644 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-09 22:53:12 +00:00
Russell Bryant 4bc52d1abe re-add check for gtk1, which is used for pbx_gtkconsole
(related to issue #11706)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97643 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-09 22:51:15 +00:00
Russell Bryant ddc0fbfc98 Merged revisions 97640 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r97640 | russell | 2008-01-09 16:26:33 -0600 (Wed, 09 Jan 2008) | 3 lines

Make pbx_gtkconsole build ... but doesn't actually load on my system still
(related to issue #11706)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97641 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-09 22:27:50 +00:00
Terry Wilson 3570ad103d Added a new module, res_phoneprov, which allows auto-provisioning of phones
based on configuration templates that use Asterisk dialplan function and
variable substitution.  It should be possible to create phone profiles and
templates that work for the majority of phones provisioned over http. It
is currently only intended to provision a single user account per phone.
An example profile and set of templates for Polycom phones is provided.
NOTE: Polycom firmware is not included, but should be placed in
AST_DATA_DIR/phoneprov/configs to match up with the included templates.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97634 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-09 21:37:26 +00:00
Jason Parker 46f4c8946f Merged revisions 97622 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

(closes issue #11718)
........
r97622 | qwell | 2008-01-09 14:28:43 -0600 (Wed, 09 Jan 2008) | 5 lines

Correctly display a message if a command could not be found.
Also fix a comment which may have led to this happening.

Issue 11718, reported by kshumard.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97623 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-09 20:30:54 +00:00
Jason Parker 0c1ded4cb5 Merged revisions 97618 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r97618 | qwell | 2008-01-09 14:05:45 -0600 (Wed, 09 Jan 2008) | 1 line

Fix some locking and return value funkiness.  We really shouldn't be unlocking this lock inside of a function, unless we locked it there too.
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97620 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-09 20:13:14 +00:00
Mark Michelson 87b92b1020 Merged revisions 97575 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r97575 | mmichelson | 2008-01-09 12:48:15 -0600 (Wed, 09 Jan 2008) | 3 lines

Part 2 of app_queue doxygen improvements. Some smaller functions this time


........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97577 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-09 18:53:29 +00:00
Luigi Rizzo 84d4c3d801 remove a wrong 'const'
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97533 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-09 18:12:44 +00:00
Luigi Rizzo 7b319d9d69 add annotations for the two message windows
we use.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97532 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-09 18:04:17 +00:00
Russell Bryant 8ac62a7a59 Merged revisions 97529 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r97529 | russell | 2008-01-09 12:02:08 -0600 (Wed, 09 Jan 2008) | 2 lines

Fix saying the parking space number to the caller doing the parking ...

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97531 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-09 18:04:14 +00:00
Luigi Rizzo cdf6974dea Two changes:
- support scrolling of message window;
- simplify the code for creating a message window,
  and try it using a second one in the top of
  the keypad (where we echo the dialed number).

The 'skin' that supports these two windows will be
committed separately.

 


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97530 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-09 18:03:40 +00:00
Kevin P. Fleming c7ba18820e Merged revisions 97491 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r97491 | kpfleming | 2008-01-09 11:21:14 -0600 (Wed, 09 Jan 2008) | 2 lines

report the same message whether Zaptel does not have transcoder support loaded or no transcoders were found

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97495 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-09 17:30:13 +00:00
Philippe Sultan 55240a4e35 Merged revisions 97489 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r97489 | phsultan | 2008-01-09 17:44:24 +0100 (Wed, 09 Jan 2008) | 7 lines

Set the caller id within the gtalk_alloc function.

As underlined in issue #10437 by Josh, we need to prevent a possible
memory leak. We only set the name part of the caller id, the number
part is not relevant when dealing with JIDs.

Closes issue #11549.
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97490 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-09 16:59:09 +00:00
Luigi Rizzo aaddb77f42 Implement keyboard handling, and use it to enter
a number to dial in the 'message' area under the
keypad.

Now you can make calls using the keypad as a regular phone
(or the keyboard for chars not present on the keypad)



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97488 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-09 16:44:20 +00:00
Joshua Colp 2ad2f92405 Merged revisions 97450 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r97450 | file | 2008-01-09 12:11:17 -0400 (Wed, 09 Jan 2008) | 6 lines

Don't do conferencing totally in Zaptel if Monitor is running on the channel.
(closes issue #11709)
Reported by: BigJimmy
Patches:
      patch-meetmerec uploaded by BigJimmy (license 371)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97451 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-09 16:13:24 +00:00
Kevin P. Fleming dae22c9567 Merged revisions 97448 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r97448 | kpfleming | 2008-01-09 09:43:19 -0600 (Wed, 09 Jan 2008) | 2 lines

pass the right variable to get an error string... oops

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97449 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-09 15:45:34 +00:00
Kevin P. Fleming 1f390863eb Merged revisions 97410 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r97410 | kpfleming | 2008-01-09 09:26:23 -0600 (Wed, 09 Jan 2008) | 2 lines

add error number output to ioctl failure messages to help with debugging

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97421 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-09 15:31:56 +00:00
Luigi Rizzo b4fbb1916d implement the "console startgui" and "console stopgui"
commands so you can start and stop the gui even outside
of a call. This is convenient for testing, and also for
using the keypad to pick up a call, and to dial a number
(the latter not yet implemented, but should be close).



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97390 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-09 12:23:18 +00:00
Luigi Rizzo bbbef73276 make get_video_desc() return the active console if
passed a null argument (channel).



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97389 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-09 12:13:32 +00:00
Tilghman Lesher 9b903da621 New option in trunk, needs strdupa to be safe, too
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97365 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-09 00:58:22 +00:00