dect
/
asterisk
Archived
13
0
Fork 0
Commit Graph

14237 Commits

Author SHA1 Message Date
russell 806b3cfdd3 I went looking for where we downloaded the g722 implementation and came across
these two links.  So, I'm adding them so they are available for reference later.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94877 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-27 16:11:41 +00:00
russell 5481f9ab8d Blocked revisions 94831 via svnmerge
........
r94831 | russell | 2007-12-27 09:16:56 -0600 (Thu, 27 Dec 2007) | 5 lines

Now that the contexts lock is a read/write lock, it should not be locked here
in ast_hint_state_changed().  This makes it get locked recursively which now
causes a deadlock.
(closes issue #11080, thanks to callguy for the access to a deadlocked machine)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94832 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-27 15:17:31 +00:00
russell 36f2ec39bc Merged revisions 94828-94829 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r94828 | russell | 2007-12-27 08:33:21 -0600 (Thu, 27 Dec 2007) | 9 lines

Change ast_translator_best_choice() to only pay attention to audio formats.
This fixes a problem where Asterisk claims that a translation path can not be
found for channels involving video.

(closes issue #11638)
Reported by: cwhuang
Tested by: cwhuang
Patch suggested by cwhuang, with some additional changes by me.

........
r94829 | russell | 2007-12-27 08:44:29 -0600 (Thu, 27 Dec 2007) | 2 lines

Use the constant that I really meant to use here ...

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94830 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-27 14:52:07 +00:00
oej 086b05e131 This function checks more than just contexts...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94827 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-27 09:13:07 +00:00
oej 417c8d8c97 - Add Copyright
- Doxygen fixes

Note:
- This application needs better documentation and a RESULT code in the
  dialplan.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94826 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-27 09:08:23 +00:00
kpfleming 3c7dd8c954 Merged revisions 94824 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r94824 | kpfleming | 2007-12-26 18:01:47 -0700 (Wed, 26 Dec 2007) | 2 lines

make this comment explain the situation in an even more explicit fashion

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94825 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-27 01:03:16 +00:00
rizzo 3873b83f28 more steps to decouple the gui from the rest of the code.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94823 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-27 00:48:38 +00:00
rizzo 3362e1caef Enable building the code even if SDL is not present (similarly,
SDL is also detected at runtime).
Now we should be able to stream video even without a rendering device
(useful for remote monitoring).



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94822 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-27 00:21:02 +00:00
rizzo 7a2d553924 more localizations around sdl_setup
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94821 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-26 23:40:23 +00:00
rizzo e7bc9bf26e use fread instead of mmap to read in the comment area from the keypad.
fread is simpler and more portable, and there is no performance gain
in using mmap.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94820 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-26 23:00:29 +00:00
rizzo 5715ce80b5 update the region description with an empty line at the beginning.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94819 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-26 22:52:43 +00:00
tilghman 254edbf055 Allow more spans than 32. Also, rearrange compiler flags so the most often
used flags appear closer to the top.
Reported by: tzafrir
Patch by: tzafrir,tilghman
(Closes issue #11528)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94818 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-26 22:38:02 +00:00
rizzo 596c9a8c6a another bunch of gui localizations
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94817 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-26 22:29:45 +00:00
qwell a9a2a75c3d Make 'else' argument to ExecIf optional. Clean up the description and usage text a bit.
Closes issue #11564, patch by pnlarsson (with some extra cleanup by me).


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94814 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-26 22:14:21 +00:00
rizzo 8a2e9c134d more localization of sdl stuff
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94813 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-26 22:10:32 +00:00
rizzo 5972f78166 move more gui stuff into console_gui.c
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94810 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-26 21:10:42 +00:00
tilghman 2d1c262738 Merged revisions 94808 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r94808 | tilghman | 2007-12-26 14:43:38 -0600 (Wed, 26 Dec 2007) | 6 lines

Workaround for what is probably a glibc bug (but we'll see this crop up again
and again, if we don't add the workaround).
Reported by: rolek
Patch by: tilghman
(Closes issue #11601, closes issue #11426)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94809 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-26 20:49:35 +00:00
qwell df53774db6 Use defined return values in load_module in more places.
(closes issue #11096)
Patches:
      pbx_config.c.patch uploaded by moy (license 222)
      pbx_dundi.c.patch uploaded by moy (license 222)
      pbx_gtkconsole.c.patch uploaded by moy (license 222)
      pbx_loopback.c.patch uploaded by moy (license 222)
      pbx_realtime.c.patch uploaded by moy (license 222)
      pbx_spool.c.patch uploaded by moy (license 222)
      app_adsiprog.c.patch uploaded by moy (license 222)
      app_alarmreceiver.c.patch uploaded by moy (license 222)
      app_amd.c.patch uploaded by moy (license 222)
      app_authenticate.c.patch uploaded by moy (license 222)
      app_cdr.c.patch uploaded by moy (license 222)
      app_zapateller.c.patch uploaded by moy (license 222)
      app_zapbarge.c.patch uploaded by moy (license 222)
      app_zapras.c.patch uploaded by moy (license 222)
      app_zapscan.c.patch uploaded by moy (license 222)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94806 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-26 20:02:27 +00:00
rizzo 4d04a3258e more preparation for untangling of the various console_video stuff
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94805 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-26 20:01:16 +00:00
russell 9b60268827 Merged revisions 94801 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r94801 | russell | 2007-12-26 13:04:31 -0600 (Wed, 26 Dec 2007) | 4 lines

Just in case the AST_FLAG_END_DTMF_ONLY flag was already set before starting
autoservice, remember it and ensure that the channel has the same setting when
autoservice gets stopped.  (pointed out by d1mas, patched up by me)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94802 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-26 19:09:17 +00:00
russell 22436a9c1b Add a new dialplan function, DIALPLAN_EXISTS(), which allows you to check for
the existence of a dialplan target.

(closes issue #11579)
Reported by: irroot
Patches: 
      func_dialplan2.c uploaded by irroot (license 52)
	  -- Additional changes by me.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94799 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-26 18:54:21 +00:00
russell 4141321cd6 Merged revisions 94797 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r94797 | russell | 2007-12-26 12:46:39 -0600 (Wed, 26 Dec 2007) | 4 lines

When a channel is in autoservice, mark a flag on the channel that says that
we only care about the END of a digit.  That way, no magic digit emulation stuff
will happen when all we're doing is queueing up END frames.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94798 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-26 18:47:52 +00:00
russell a561878e07 Leave a note for a minor bug that was pointed out by d1mas
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94796 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-26 18:19:46 +00:00
tilghman 14fc36c09d Convert raw bits for callprogress bitfield to use constants, for greater code clarity
Reported by: dimas
Patch by: dimas
(Closes issue #11280)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94795 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-26 18:05:28 +00:00
russell a73c661b03 Merged revisions 94793 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r94793 | russell | 2007-12-26 11:24:17 -0600 (Wed, 26 Dec 2007) | 3 lines

Don't try to send a parked call back to itself.
(closes issue #11622, reported by djrodman, patched by me)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94794 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-26 17:26:04 +00:00
russell 3377f3a6cd Merged revisions 94789 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r94789 | russell | 2007-12-26 11:00:03 -0600 (Wed, 26 Dec 2007) | 5 lines

List include/asterisk/version.h as a .PHONY target because we want the commands
listed for this target to be executed regardless of whether the file exists or
not.  This fixes having the version not up to date when running from svn.
(closes issue #11619, reported by plack, fixed by me)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94792 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-26 17:07:55 +00:00
russell 0b1a2bce95 Merged revisions 94790 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r94790 | russell | 2007-12-26 11:06:26 -0600 (Wed, 26 Dec 2007) | 5 lines

Don't store DTMF BEGIN frames while a channel is in autoservice.  It's just
going to make ast_read() do a lot of extra work when the channel comes back
out of autoservice.
(closes issue #11628, patched by me)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94791 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-26 17:07:12 +00:00
russell 2476ab62b5 Fix a bug in peer handling that caused multiple instances of a peer to end up
in the peers container after a reload.  Somehow, this bug doesn't exist in 1.4 ...
(closes issue #11626)
(reported by pnlarsson, additional info from mvanbaak, fixed by me)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94788 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-26 16:51:16 +00:00
russell 7c43626743 update svn:ignore for astcanary
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94787 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-26 16:31:43 +00:00
mmichelson 06049447cd Adding support for storing the queue log entries in a realtime backend.
(closes issue #11625, reported and patched by sergee)

Thank you very much to sergee for adding this new feature!



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94782 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-26 15:58:17 +00:00
rizzo 7f64f70d63 Split console_video.c so that video codecs and gui functions
are in separate files (still #include'd because of tangling in the data
structures, but this is going to be cleaned up).

The video grabbing functions still need to be moved to a separate file.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94774 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-26 10:14:11 +00:00
tilghman 68d4a88f5f Add pickup by channel
(Closes issue #11161)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94773 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-25 04:10:57 +00:00
tilghman f05ce0bb95 Change the abbreviated TON from 'A' to 'V', since 'A' is a legitimate DTMF
character.  Also, fix the documentation to match the code.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94772 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-25 03:34:09 +00:00
tilghman d98d8ea32f Add channel thread ID to the information passed to AGI.
Reported by: dror99
Patch by: tilghman
(Closes issue #11162)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94771 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-25 02:57:58 +00:00
file ce3def5acb Blocked revisions 94769 via svnmerge
........
r94769 | file | 2007-12-24 22:27:08 -0400 (Mon, 24 Dec 2007) | 2 lines

file says... build on the builders.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94770 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-25 02:28:01 +00:00
tilghman 88f771e447 Merged revisions 94767 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r94767 | tilghman | 2007-12-24 13:36:59 -0600 (Mon, 24 Dec 2007) | 5 lines

Race: we need to wait to queue a NewChannel event until after the channel is
inserted into the channel list.  The reason is because some manager users
immediately queue requests from the channel when they see that event and are
confused when Asterisk reports no such channel. (Closes issue #11632)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94768 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-24 19:43:36 +00:00
tilghman f737f0b29c Blocked revisions 94765 via svnmerge
........
r94765 | tilghman | 2007-12-24 10:17:01 -0600 (Mon, 24 Dec 2007) | 5 lines

More deadlock avoidance code (this time between sip_monitor and sip_hangup)
Reported by: apsaras
Patch by: tilghman
(Closes issue #11413)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94766 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-24 16:26:17 +00:00
tilghman ec9dcfa108 Merged revisions 94763 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r94763 | tilghman | 2007-12-24 09:39:56 -0600 (Mon, 24 Dec 2007) | 5 lines

Another bit of bad logic in realtime_peer
Reported by: dimas
Patch by: dimas
(Closes issue #11631)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94764 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-24 15:45:01 +00:00
rizzo 75eb3fc9cc support sdl_videodriver to send output to x11/aalib/console
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94741 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-23 14:51:00 +00:00
rizzo c745148078 move reading info from the keypad to a separate function.
Remove an unused keypad field and some debugging messages.
Adjust formatting on config file parsing


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94736 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-23 14:34:17 +00:00
rizzo e2d7f8d793 make sure the minimum surface depth is 16bpp so we can create YUVoverlays.
With this change we can do

	setenv SDL_VIDEODRIVER aalib

and output to an ascii window (which is still in an X11 window).
If you also do

	unsetenv DISPLAY

then the output goes into the main asterisk window, unfortunately
it interferes with the normal output so you don't see much.

In any case, i don't think we are very far away from having a working
xterm videophone!




git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94714 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-23 12:36:32 +00:00
rizzo b7e2b87525 avoid rebuilding dependent files if the generated busy.h and ringtone.h
do not change.

Ths masks (but does not solve) a but that i am seeing in doing a
'gmake install' without donig a 'gmake all' first.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94713 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-23 12:29:48 +00:00
tilghman ab1d58647d Merged revisions 94660 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r94660 | tilghman | 2007-12-22 19:21:03 -0600 (Sat, 22 Dec 2007) | 2 lines

Argh... I suppose third time's the charm.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94662 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-23 01:38:46 +00:00
rizzo 7b9f51dd11 Change the name of config file entries for keypad regions
from 'keypad_entry' to 'region'. Fix the example file accordingly.
Also make some fixes in the code do reset entries on reload of the keypad.

The recently committed kpad2.jpg has the correct names.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94638 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-22 22:44:31 +00:00
rizzo f80efb1987 add a sample keypad (with annotations) for console video
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94637 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-22 22:39:55 +00:00
rizzo 86307f549a Build console_video support by linking in, as opposed to including,
console_video.c

This will ease the task of splitting console_video.c into its components
(V4L and X11 grabbers, various video codecs and packetizers, SDL),
as well as ease future extensions (e.g. additional video sources,
codecs and rendering engines).

For the time being nothing changes for users: video support is off by
default, and requires -DHAVE_VIDEO_CONSOLE on the command line to be included
(if SDL and FFMPEG are available).



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94615 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-22 18:28:40 +00:00
mmichelson f5d88738f1 Something I've been itching to do for a while now. A minor optimization in app_voicemail.
Since the dtable in base_encode always gets populated with the same values every time and never
changes, make it static and const and only initialize it once. Also, there's no reason to 
define BASEMAXINLINE twice, so remove the redundant #define.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94593 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-21 21:19:19 +00:00
mattf 83a89cc17e We should only clear this value if we have to
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94551 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-21 20:50:26 +00:00
mattf 1e66fcde41 Commit non TCP transport part of #11506. Includes numerous additional parameters, as well as RLT support for DMS type switches
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94549 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-21 20:48:15 +00:00
mmichelson bbf9585e07 Store dates using local time instead of UTC
(closes issue #11610, reported and patched by rbraun_performatique)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94548 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-21 20:38:18 +00:00