Compare commits

...

3751 Commits

Author SHA1 Message Date
Kevin P. Fleming
507f46ba1a Convert all release tags to Opsound music-on-hold.
For more details:
http://blogs.digium.com/2009/08/18/asterisk-music-on-hold-changes/



git-svn-id: https://origsvn.digium.com/svn/asterisk/tags/1.2.0-beta1@212958 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-08-18 20:42:51 +00:00
Kevin P. Fleming
14ebf2b57b remove extraneous svn:executable properties
git-svn-id: https://origsvn.digium.com/svn/asterisk/tags/1.2.0-beta1@7221 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-29 18:24:39 +00:00
Kevin P. Fleming
f7c60fc6b2 remove remaining .cvsignore files
git-svn-id: https://origsvn.digium.com/svn/asterisk/tags/1.2.0-beta1@7220 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-29 18:09:49 +00:00
Kevin P. Fleming
a9e7c65f90 manual tag renames
git-svn-id: https://origsvn.digium.com/svn/asterisk/tags/1.2.0-beta1@7200 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-27 16:26:40 +00:00
Admin Commit
4a368916e6 This commit was manufactured by cvs2svn to create tag 'v1-2-0-beta1'.
git-svn-id: https://origsvn.digium.com/svn/asterisk/tags/v1-2-0-beta1@6430 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-26 23:04:20 +00:00
Kevin P. Fleming
601e4bb78a ensure that 'Events: On' enables all event types (issue #5016)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6429 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-26 23:04:20 +00:00
Kevin P. Fleming
8084c8d9d7 add Russian support to say_number (issue #4781)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6428 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-26 20:29:11 +00:00
Kevin P. Fleming
ffe23eb007 add AgentCallbackLogin and AgentLogoff manager actions (issue #4766)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6427 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-26 20:24:16 +00:00
Kevin P. Fleming
8e3af106db update to use Speex 1.1.x features and doc cleanups (issue #4755)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6426 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-26 20:14:06 +00:00
Kevin P. Fleming
27dda09b0f work around parsing problem by using GotoIf() (issue #4876)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6425 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-26 20:10:17 +00:00
Kevin P. Fleming
ad21be9cc7 ignore equals-signs inside parens (issue #5022)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6424 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-26 20:08:28 +00:00
Kevin P. Fleming
da627fc643 use case-insensitive comparisons for headears (issue #5023)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6423 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-26 20:04:28 +00:00
Kevin P. Fleming
ed63297dfd convert Cut() into CUT() function (issue #4892)
add SORT() function (issue #4892)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6422 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-26 20:01:22 +00:00
Kevin P. Fleming
6319baba24 remove extra dependencies
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6421 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-26 19:55:11 +00:00
Kevin P. Fleming
66e69e0143 switch to 'new' expression parser, remove support for old parser
provide parser files in source tree, so flex/bison are not need to build
update Makefile to use simpler techniques to build parser
update README to remove references to old vs. new parsers
remove version comparison tool used for flex/bison programs


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6420 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-26 19:21:57 +00:00
Russell Bryant
7fa558c71e fix format string (inspired by issue #4945)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6415 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-26 15:59:00 +00:00
Russell Bryant
f64c91537a updates for extensions.txt (bug #5028)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6413 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-26 15:24:38 +00:00
Kevin P. Fleming
fcc3a3ac32 don't install moh functions if no classes are configured (issue #5025 with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6412 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-25 23:29:30 +00:00
Kevin P. Fleming
7085e27835 doc updates and copyright header cleanup (issue #5026)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6411 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-25 23:23:26 +00:00
Kevin P. Fleming
866ae3cd53 doc updates and copyright header cleanup (issue #5027)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6410 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-25 23:21:01 +00:00
Kevin P. Fleming
39e8d87476 minor doc fixes and copyright header cleanup (issue #5029 with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6409 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-25 23:17:47 +00:00
Kevin P. Fleming
239d0bf4f7 fix race condition
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6408 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-25 18:30:02 +00:00
Russell Bryant
9f13284f02 change sample ip
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6407 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-25 16:11:46 +00:00
Kevin P. Fleming
f51d313a94 ensure that Random() can support priority labels as targets (issue #5013)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6406 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-25 04:04:14 +00:00
Kevin P. Fleming
529fcab374 add T1 timer support for NOTIFY dialogs (issue #5017)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6405 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-25 03:44:22 +00:00
Kevin P. Fleming
37930961e1 add optional 'extended ODBC storage' mode (issue #4403)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6404 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-25 03:15:18 +00:00
Kevin P. Fleming
aad6fbb85e add madplay example for Solaris users (issue #4929)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6403 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-25 02:40:08 +00:00
Kevin P. Fleming
1cb8d00523 ensure Asterisk won't segfault during re-registration (issue #5011)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6402 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-25 02:33:21 +00:00
Kevin P. Fleming
bf6bc6d4fd clean up rtcaching config options (issue #4075)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6401 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-25 02:25:30 +00:00
Kevin P. Fleming
5c4fa40a8f add documentation of new parameters to sample config file (issue #5021)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6400 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-25 02:22:04 +00:00
Kevin P. Fleming
60718ec80b handle INVITEs that are asking for authentication that we cannot supply more intelligently (issue #4995)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6399 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-25 02:19:42 +00:00
Kevin P. Fleming
20e887d708 make some messages show up only under debugging and other minor cleanups (issue #5018)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6398 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-25 02:16:25 +00:00
Kevin P. Fleming
fa4b3f8416 fix 'sip debug' vs. reload properly
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6397 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-25 02:12:49 +00:00
Kevin P. Fleming
e979e32374 clean up code, fix a few bugs
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6396 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-24 23:10:55 +00:00
Kevin P. Fleming
0bd1861df8 clear out memory allocated by LOCAL_USER_ADD/LOCAL_USER_ACF_ADD
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6395 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-24 23:10:24 +00:00
Kevin P. Fleming
7950e4216e make AST_LIST_REMOVE_HEAD safer to use
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6394 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-24 23:10:06 +00:00
Russell Bryant
a07997b961 fix build for OpenBSD (bug #5019)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6393 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-24 17:23:44 +00:00
Kevin P. Fleming
0d7115e65c protocol upgrades
shorter timeout during wait() calls
log channel name in all log messages


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6391 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-24 14:24:55 +00:00
Kevin P. Fleming
6aeb93a629 handle whitepace around expression
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6390 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-23 22:03:24 +00:00
Kevin P. Fleming
87f2acf15d don't reset sipdebug to zero during reload (issue #5000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6389 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-23 17:59:26 +00:00
Kevin P. Fleming
61ef3c1c7c make the warning message be LOG_WARNING (issue #4960)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6388 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-23 17:55:59 +00:00
Kevin P. Fleming
81c127758b ensure buffer is adequately sized for frames with lots of elements (issue #4974)
various minor formatting/cleanup changes


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6386 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-23 17:38:58 +00:00
Kevin P. Fleming
d86ce557ef allow more adjustability in peer qualification system (issue #4192 with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6385 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-23 17:11:44 +00:00
Kevin P. Fleming
8a52a7cf10 add counter to 'show formats' (issue #5001)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6384 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-23 15:43:47 +00:00
Kevin P. Fleming
4c6693f39d add count to 'show keys' (issue #5002)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6383 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-23 15:41:17 +00:00
Kevin P. Fleming
f52192183c fix build on FreeBSD (issue #5003)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6382 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-23 15:36:01 +00:00
Kevin P. Fleming
98563fdb73 formatting fixes and compile fix for FreeBSD (issue #5004)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6381 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-23 15:33:27 +00:00
Kevin P. Fleming
f07adb44c0 fix buglets in new authentication code (issue #4860)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6380 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-23 15:21:48 +00:00
Kevin P. Fleming
5473ad640b make MALLOC_DEBUG build work properly (issue #4970 with additional changes)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6379 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-23 15:08:55 +00:00
Kevin P. Fleming
9a6618e8d8 show global vmexten in 'sip show settings' (issue #5005)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6378 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-23 14:41:51 +00:00
Kevin P. Fleming
3442368b28 ensure that features are not duplicated during reload (issue #3764, take two)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6377 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-23 14:40:03 +00:00
Russell Bryant
460e8fc8b7 add indications for es (bug #4939)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6376 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-23 12:38:48 +00:00
Kevin P. Fleming
477f581889 don't require 'make samples' to require code to be built (issue #4997)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6375 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-23 02:30:30 +00:00
Kevin P. Fleming
9e9f3ace21 add ability to map feature sequences to applications (issue #3764)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6374 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-23 02:22:33 +00:00
Kevin P. Fleming
eb805b409f do expensive 'next message number' calculation before playing sounds (issue #4955)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6373 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-23 02:01:37 +00:00
Kevin P. Fleming
fd781b3174 use memmove() when memory regions might overlap (issue #4957)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6372 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-23 01:52:38 +00:00
Kevin P. Fleming
0a3502b592 handle on-/off-hold properly with RTP reinvited streams (issue #3974)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6371 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-23 01:50:11 +00:00
Kevin P. Fleming
a5b640cb40 add 'sip show settings' CLI command (issue #4806)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6370 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-23 01:44:28 +00:00
Kevin P. Fleming
8b1077669e don't try to change run priority, EUID or EGID on restart if they were already set (issue #4734 with minor mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6369 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-23 01:37:26 +00:00
Kevin P. Fleming
2cde73fddb make sure realtime/high scheduling priority is relinquished before executing an AGI script (issue #4930)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6368 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-23 01:30:22 +00:00
Kevin P. Fleming
dde23d5d0f reverse commit due to lack of disclaimer
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6367 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-23 01:09:49 +00:00
Kevin P. Fleming
a0ebefc915 make Record() properly timeout even if no input is received from the channel (issue #4899)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6366 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-23 01:08:07 +00:00
Kevin P. Fleming
0bf1d48e40 support configurable Message-Account value in NOTIFY messages (issue #4801)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6365 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-23 00:50:38 +00:00
Kevin P. Fleming
6755f0b642 make SIGURG handler message more obvious (issue #4878)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6364 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-22 23:06:14 +00:00
Kevin P. Fleming
d69e96de11 allow custom dialplan functions to be called from AGI (issue #4855)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6363 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-22 23:00:23 +00:00
Kevin P. Fleming
3480297607 add preliminary support for SIP timers (issue #4359)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6362 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-22 22:55:06 +00:00
Kevin P. Fleming
c9287324ea make pager messages configurable (issue #4829)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6361 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-22 22:43:47 +00:00
Kevin P. Fleming
3315ea79b9 add CONTROL STREAM FILE AGI command (issue #4738)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6360 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-22 21:59:24 +00:00
Kevin P. Fleming
fda760f7bd add text status variable output to SendText() application (issue #4808)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6359 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-22 21:55:46 +00:00
Kevin P. Fleming
dffade452c add a LOG_DTMF logging channel and send all bridged DTMF events out that channel (issue #4835)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6358 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-22 21:19:59 +00:00
Kevin P. Fleming
09bd4cfb95 add SIPCHANINFO function to retrieve information about the current connected SIP endpoint (issue #4698)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6357 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-22 21:13:37 +00:00
Kevin P. Fleming
26ed14a7e4 add file to ignore list
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6356 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-22 20:53:53 +00:00
Kevin P. Fleming
9d899a2075 add status output to Transfer() application (issue #4810, with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6355 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-22 20:53:38 +00:00
Kevin P. Fleming
97b45d5d6d handle BYE instead of CANCEL from callers (issue #4994)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6354 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-22 19:47:00 +00:00
Kevin P. Fleming
ff971379f4 support new format for musiconhold.conf (issue #4908)
support non-SLINEAR moh streams (issue #4908)
add external app to feed TCP stream into Asterisk for moh (issue #4908)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6353 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-22 19:29:29 +00:00
Kevin P. Fleming
69f9c479e7 add 'restart' character to ast_control_playback function and ControlPlayback() application (issue #4693)
rework app_controlplayback.c to take into account all Asterisk 1.2 coding style requirements


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6352 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-22 19:06:42 +00:00
Kevin P. Fleming
26ea6ea391 add count to 'show functions' CLI command (issue #4991)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6351 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-22 18:47:19 +00:00
Kevin P. Fleming
971091a17c add count of files used to build Asterisk/modules (issue #4992 with text mod)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6350 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-22 18:45:41 +00:00
Kevin P. Fleming
1b420b7696 make 'show modules like' not case sensitive (issue #4990)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6349 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-22 18:43:32 +00:00
Jim Dixon
6b2ff5db90 Added support for Yaesu FT-897 HF/VHF/UHF radio and other improvements
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6346 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-22 02:38:37 +00:00
Mark Spencer
e6732b52d8 Document AGI SIGHUP changes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6345 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-21 16:54:43 +00:00
Mark Spencer
f76171a643 Fix IAX2 Provisioning
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6344 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-19 20:04:58 +00:00
Russell Bryant
6e9eaaf217 fix execiftime and include some code cleanup while we're at it (bug #4380)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6343 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-19 07:12:53 +00:00
Mark Spencer
47334c3193 Fix language in d-channel (bug #4979)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6342 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-19 04:23:23 +00:00
Kevin P. Fleming
8a2b540f0a protect PRI-specific code with ifdefs
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6341 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-17 17:52:14 +00:00
Mark Spencer
71fcf66d1e Fix password change bug (bug #4976)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6340 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-17 15:49:34 +00:00
Kevin P. Fleming
8253780716 temporarily revert aggressive native bridge attempts
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6339 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-16 20:37:27 +00:00
Matthew Fredrickson
d39d277ada Don't catch digits from zaptel during overlap dialing
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6338 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-16 16:12:22 +00:00
Mark Spencer
b353b1d6fb Allow Asterisk to start even when eventlog is turned off (bug #4938)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6337 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-15 19:35:25 +00:00
Josh Roberson
88ea13f07e Fix description text for IF function. (Bug #4966)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6336 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-15 17:06:30 +00:00
Mark Spencer
3b12e18473 Fix PRI against masquerade
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6335 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-15 14:57:58 +00:00
Josh Roberson
4e153882d7 Fix usage text for AGI recieve text (bug #4948)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6334 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-15 02:45:34 +00:00
Josh Roberson
ccb3b5d1d4 Fix misspelling of "Launching" in pbx.c (Bug #<4964)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6333 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-15 01:56:40 +00:00
Mark Spencer
6f07e6cc4f Reorder dnsmgr to before other modules (bug #4927)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6332 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-14 23:47:40 +00:00
Ben Kramer
5cd67220f4 / fixed bug introduced during bridge code cleanups
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6331 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-14 22:56:34 +00:00
Mark Spencer
1dfc0af171 Fix build on OpenBSD (bug #4951)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6330 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-14 03:16:06 +00:00
Mark Spencer
129fd190a9 Make sure "now" is initialized (bug #4961)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6329 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-14 03:08:08 +00:00
Mark Spencer
f448fd7703 Whe make_valgrind_happy, initialize dns to 0 before passing to res_ninit (bug #4959)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6328 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-14 02:23:33 +00:00
Mark Spencer
079b24c53c Build safe_asterisk script substituting the proper path in (bug #4952, patch not used)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6327 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-14 02:19:16 +00:00
Mark Spencer
436353205a Fix cli matchstr initialization (bug #4958)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6326 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-14 01:48:14 +00:00
Mark Spencer
8b7e1054fe Fix accidental RTCP/RTP linkage
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6325 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-12 18:59:43 +00:00
Mark Spencer
e65f1c2a95 Fix CLI formatting typo (bug #4945)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6324 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-12 18:29:41 +00:00
Kevin P. Fleming
ab7ae00513 fix bug
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6323 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-11 18:34:03 +00:00
Mark Spencer
86c7ad9217 Extend enum buffer sizes (bug #4943)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6322 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-11 18:05:25 +00:00
Mark Spencer
f2c72aca7b Fix potential deadlock in asterisk
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6321 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-11 16:43:36 +00:00
Mark Spencer
766acde0dc Build dependencies first
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6320 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-11 15:47:41 +00:00
Mark Spencer
081aa86b0d Fix acl compile on solaris (bug #4932)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6319 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-11 05:39:09 +00:00
Kevin P. Fleming
82453465f0 correct error Makefile
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6318 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-10 23:25:55 +00:00
Kevin P. Fleming
d0ec4b9e94 add ExternalIVR() application
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6317 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-10 23:24:39 +00:00
Russell Bryant
f3c9715947 fix a little oopsie
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6316 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-09 19:31:54 +00:00
Mark Spencer
97e1ede292 Centralize and fix tos for IAX (bug #4850 inspired)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6315 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-09 16:41:28 +00:00
Mark Spencer
95cf08ee92 Allow ToS to be set in hex (bug #4923)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6314 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-09 16:20:32 +00:00
Kevin P. Fleming
957eed7682 eliminate compiler warnings when DEBUG_THREADS is enabled
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6313 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-09 15:37:33 +00:00
Kevin P. Fleming
ce7a1e4768 bridging code cleanups:
code style, formatting
	use enum/symbolic constants for return codes
	efficiency improvements
	(zaptel) only disable DTMF detection once per bridge, not every frame
	(zaptel) ensure VPM DTMF detector is turned off during native bridge


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6312 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-09 01:59:59 +00:00
Mark Spencer
d9cb23cc90 Don't wait longer than our timeout for something to happen (bug #4653)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6309 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-08 06:54:36 +00:00
Mark Spencer
ce49016c96 Show callerid in meetme show list (bug #4851 with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6308 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-08 02:32:37 +00:00
Mark Spencer
0462b845e2 Better alignment/truncation of show channels output (bug #4741 with extensive mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6307 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-08 01:45:29 +00:00
Russell Bryant
99d6c05f13 more pointer signedness fixes for gcc4 warnings
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6306 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-08 01:16:44 +00:00
Mark Spencer
6dde38ed52 Be consistent with User/Username (bug #4916)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6305 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-08 00:15:37 +00:00
Mark Spencer
13a0bec612 Merge steve's busy detect stuff (bug #4830)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6304 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-08 00:08:48 +00:00
Mark Spencer
195a36afac Fix poll error condition causing memory corruption (bug #4915)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6303 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-07 22:59:04 +00:00
Mark Spencer
ef753b53bd Fix lookup to use proper API call...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6302 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-07 22:32:30 +00:00
Mark Spencer
0e411496e1 Default paths properly when building for solaris (bug #4902)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6301 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-07 14:59:41 +00:00
Mark Spencer
4f37e6b4b0 Allow enumlookup to return a status variable (bug #4788)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6300 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-07 14:45:31 +00:00
Mark Spencer
e415ff3f87 Don't record all calls as abandoned (bug #4575) (fixes damage inadvertently added by bug #4644)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6299 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-07 14:11:48 +00:00
Russell Bryant
82883698cc more fixes for gcc4 warnings ...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6298 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-07 06:47:20 +00:00
Russell Bryant
b870642ee9 more fixes for gcc4 warnings
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6297 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-07 06:34:26 +00:00
Mark Spencer
f4a1a05205 Revert improperly applied patch from bug #4771
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6296 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-07 04:56:39 +00:00
Russell Bryant
149168f4a5 remove some sillyness
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6295 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-06 17:09:18 +00:00
Mark Spencer
6b6ecee06d Properly handle | within ()'s when doing app arg parsing... (bug #4911)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6294 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-06 16:52:56 +00:00
Mark Spencer
51c390db61 Fix timestamp + trunking (bug #4891)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6293 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-06 14:53:14 +00:00
Russell Bryant
7564500552 formatting fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6292 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-06 06:40:05 +00:00
Mark Spencer
f08acd7b45 Fix newline issue (bug #4632)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6291 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-05 21:44:19 +00:00
Russell Bryant
52594b6b12 fix a bunch of gcc4 warnings realted to pointer signedness
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6290 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-05 16:29:30 +00:00
Russell Bryant
c2b31d45df fix seg fault if no variable is specified (bug #4907)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6289 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-05 15:19:51 +00:00
Russell Bryant
d0cec3dd99 fix seg fault
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6288 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-05 07:03:35 +00:00
Russell Bryant
0a87b55fe8 ensure that strings.h has va_list defined (bug #4900)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6280 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-04 20:13:55 +00:00
Russell Bryant
c65f1a04ab there is no reason to check the channeltype of the channel calling SIPAddHeader
because it really only matters what the channeltype is of the *created* channel
in the subsequent dial (bug #4896)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6279 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-04 20:03:45 +00:00
Russell Bryant
c3c496512f 'outgress' should be 'egress'
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6278 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-04 17:33:21 +00:00
Russell Bryant
6e2aa7c62a only check for an existing cdr when about to set an arbitrary cdr variable (bug #4848)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6277 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-03 21:34:48 +00:00
Mark Spencer
3c6e6c9c96 Be sure not to leak frames in certain cases
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6275 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-03 20:17:53 +00:00
Mark Spencer
d8a7545a82 Fix documentation of overridecontext (bug #4379)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6274 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-03 19:58:34 +00:00
Mark Spencer
a9a91571a1 Remove queue/session co-locking until deadlocks are properly resolved
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6273 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-03 18:25:23 +00:00
Mark Spencer
73e21b0ccc Add extra aliases from RFC4028 and RFC3841 (bug #4889)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6272 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-03 18:05:40 +00:00
Mark Spencer
d07c47bac8 Fix solaris vasprintf (don't free the memory, duh) (bug #4890)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6271 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-03 17:36:46 +00:00
Mark Spencer
a384e30271 Improve RTP comments (bug #4792 with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6270 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-03 05:00:42 +00:00
Mark Spencer
11258c02cb Fix some astmm formatting and path issues (bug #4753)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6269 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-03 04:50:09 +00:00
Mark Spencer
8712d1d7f1 Fix timestamp issue with features (bug #4760 with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6268 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-03 04:42:59 +00:00
Mark Spencer
6e825f933d Revert a portion of oej's patch...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6267 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-03 04:32:09 +00:00
Mark Spencer
c57bfc55cf Don't ignore ACk packets (bug #4861)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6266 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-03 04:26:10 +00:00
Mark Spencer
6afb367b96 Fix issue with say digit str (bug #4883)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6265 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-03 04:23:58 +00:00
Mark Spencer
4f0d1b8428 Fix sighup with AGI (bug #4854)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6264 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-03 04:17:12 +00:00
Mark Spencer
033d64ba42 Move to rizzo's new chan_oss, but leave the old one just in case... (bug #4379 with changes)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6263 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-03 04:11:52 +00:00
Mark Spencer
3a362c7839 Reduce number of calls to get method (bug #4863)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6262 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-03 03:50:53 +00:00
Mark Spencer
e0b57f1fae Fix voicemail crash (bug #4800)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6261 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-03 02:45:30 +00:00
Mark Spencer
50087d3467 Fix qop syntax (bug #4822)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6260 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-03 02:34:57 +00:00
Mark Spencer
d5a51058cc Fix AEL max character bug (bug #4837)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6259 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-03 02:26:19 +00:00
Mark Spencer
2d108b8826 Fix vasnprintf emulation (bug #4882)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6258 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-03 02:07:25 +00:00
Mark Spencer
5c9027a293 Remove from maekfile, too
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6257 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-02 11:57:29 +00:00
Mark Spencer
57fcfceddf This script is now useless...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6256 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-02 11:57:06 +00:00
Jeremy McNamara
65f426169d Fix newsignal/newcontrol compile issue. Bug #4867
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6255 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-02 03:25:28 +00:00
Russell Bryant
11a1ecabdb fix warning (bug #4807)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6254 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-01 15:01:11 +00:00
Russell Bryant
e6f1ea2782 add info on asterisk.ctl (bug #4864)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6253 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-01 14:55:06 +00:00
Russell Bryant
6f312133ac make sure that iaxs gets initialized (bug #4856)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6251 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-01 14:46:14 +00:00
Mark Spencer
5d350297b6 Make sure we don't close a mailbox if we didn't open one (bug #4800)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6250 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-01 11:09:03 +00:00
Mark Spencer
8efba1c127 Minor voicemail fixup (related to 4800, but not the fix yet)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6249 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-01 11:03:09 +00:00
Mark Spencer
5a7a8666a1 Add periodic announcement (bug #4677 with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6248 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-31 22:07:58 +00:00
Mark Spencer
f49ff59c3f Fix monitoring when channel redirected (bug #3809, patch redone)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6247 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-31 21:27:21 +00:00
Russell Bryant
a5f0c99bb3 fix netbsd compilation issue
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6246 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-30 19:12:30 +00:00
Russell Bryant
654ff10f8e make GROUP set group@categroy instead of category@group
ensure that GROUP_COUNT still returns "0", even if no group was found


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6245 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-28 21:16:02 +00:00
Mark Spencer
86ec024624 Fix music on hold leak (bug #4842)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6244 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-28 18:37:55 +00:00
Mark Spencer
9f136f57fe Don't delete RTP if there is a channel, even if we get REGISTER/SUBSCRIBE (bug #4534)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6243 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-28 18:24:04 +00:00
Mark Spencer
716a669818 Remove per-context maxmsg which should never have made it in (bug #4843)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6242 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-28 18:14:13 +00:00
Russell Bryant
9d880dd2b2 remove useless call to time() and an extra variable when we can just use the
one we already have


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6239 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-27 23:05:52 +00:00
Russell Bryant
50a1d758d5 the time must be initialized for the 'n' option to actually work (bug #4834)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6238 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-27 22:55:48 +00:00
Russell Bryant
bbb33e5c41 don't crash if no group is specified (bug #4836)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6237 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-27 22:43:18 +00:00
Russell Bryant
80af1153bc fix warning
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6236 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-27 22:19:49 +00:00
Russell Bryant
5196d60538 use Set instead of SetVar in the sample so that we don't get warnings when
running the demo :-)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6235 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-27 05:45:52 +00:00
Jeremy McNamara
adae4181f0 Stomp on deadlock. Bug #4555
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6234 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-27 04:45:11 +00:00
Jeremy McNamara
2fc8abd8ae one-way-audio problem on multihomed host with bind to secondary address. Bug #4505
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6233 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-27 04:39:53 +00:00
Kevin P. Fleming
11891d28da and now we know why #define-ing constants and trying to keep them in sequence is a bad idea...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6232 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-27 02:17:06 +00:00
Kevin P. Fleming
9080884688 fix breakage that was causing PUBLISH to be sent instead of CANCEL
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6231 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-27 00:58:54 +00:00
Kevin P. Fleming
f99dcb7586 add a few const's
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6230 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-27 00:32:37 +00:00
Kevin P. Fleming
b774d41660 enhance SIP_PEER function to return additional items (bug #4816)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6229 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-26 22:13:31 +00:00
Kevin P. Fleming
531554d835 additional documentation of options (bug #4811)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6228 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-26 22:05:50 +00:00
Kevin P. Fleming
bafebbd909 warn users about voicemail menu structure change
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6227 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-26 21:57:32 +00:00
Kevin P. Fleming
c4c9401efd make queue and interface name matching case-insensitive (bug #4815)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6226 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-26 21:53:56 +00:00
Kevin P. Fleming
2c0f42361e correct comment
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6225 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-26 21:49:07 +00:00
Kevin P. Fleming
5cc0413c54 add a global option to disable priority jumping in applications (when they get updated), settable in extensions.conf
change app_dial to use 'j' to _ENABLE_ priority jumping if it has been globally disabled


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6224 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-26 16:29:56 +00:00
Russell Bryant
a657d3a7fa fix build issue for FreeBSD (bug #4802)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6221 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-26 14:40:41 +00:00
Kevin P. Fleming
4df19fa1c2 clean up SIP response and pedantic REGISTER matching (bug #3663)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6218 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-25 23:26:47 +00:00
Kevin P. Fleming
8703628608 add explanatory comment about timestamp compensation (bug #4763)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6217 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-25 23:13:20 +00:00
Kevin P. Fleming
f6c059d451 process asterisk.conf in a single pass, instead of twice (bug #4689)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6216 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-25 23:09:13 +00:00
Russell Bryant
0d695659ca don't set the event mask if the given eventmask was not valid
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6215 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-25 23:01:39 +00:00
Russell Bryant
eb7f5e8d0b make sure a reponse is sent when setting the EventMask to on (bug #4799)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6214 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-25 22:58:34 +00:00
Kevin P. Fleming
f358db3d43 use CDR API calls instead of re-implementing them (bug #4726)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6213 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-25 22:56:18 +00:00
Kevin P. Fleming
307566933f more extensive documentation (bug #4444)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6212 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-25 22:52:25 +00:00
Kevin P. Fleming
e355c40279 add some basic documentation about asterisk.conf (bug #4758, rewritten)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6211 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-25 22:38:54 +00:00
Kevin P. Fleming
ae95c5d7e1 allow longer file version strings (bug #4765)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6210 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-25 22:19:13 +00:00
Kevin P. Fleming
9b8ee1f3e4 set the 'number complete' bit properly (bug #4771)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6209 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-25 22:16:35 +00:00
Kevin P. Fleming
8b3f4e3022 formatting cleanups (bug #4782)
fill out some Manager events with additional headers (bug #4782)
re-word some log messages to be clearer (bug #4782)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6208 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-25 22:13:32 +00:00
Kevin P. Fleming
1a5aa9c836 add dedicated function for adding Content-Length header (bug #4795)
use ast_build_string to build large text bodies (bug #4795)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6207 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-25 21:58:32 +00:00
Russell Bryant
829a14ed07 remove the need to have the BUSYDETECT routine defined in the CFLAGS unless
you want to use one other than the default


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6206 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-25 21:57:14 +00:00
Kevin P. Fleming
6596f8496e _really_ rewrite get_in_brackets to do the right thing (including skipping escaped double-quote characters)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6205 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-25 21:40:17 +00:00
Russell Bryant
8223580a4a formatting and callingpres support (bug #4787)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6204 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-25 20:04:46 +00:00
Kevin P. Fleming
6d7b939467 ensure translators don't generate old timestamps when silent periods end (bug #4707 with formatting fixes)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6203 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-25 19:41:39 +00:00
Kevin P. Fleming
ff5409507c minor updates (bug #4777)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6202 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-25 19:17:43 +00:00
Kevin P. Fleming
a0acccffa5 fix line-ending style (bug #4778)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6201 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-25 19:13:21 +00:00
Kevin P. Fleming
654f3909e2 minor updates (bug #4779)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6200 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-25 19:11:19 +00:00
Russell Bryant
f34930313c get rid of potential memory leak
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6199 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-25 19:10:38 +00:00
Kevin P. Fleming
6074f3441a add MD5-hash matching (bug #4764, with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6198 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-25 18:59:11 +00:00
Kevin P. Fleming
1aa875b656 combine bracket-removing functions (bug #4794, with compiler warning mod)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6197 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-25 18:36:58 +00:00
Russell Bryant
cdf79750c0 squash a warning
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6196 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-25 18:34:40 +00:00
Kevin P. Fleming
1e9beaa1d2 ensure that port number in URI is presented when needed (bug #4784)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6194 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-25 18:11:19 +00:00
Kevin P. Fleming
a953eb06c3 formatting cleanups (bug #4786, with minor mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6193 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-25 18:09:04 +00:00
Kevin P. Fleming
1153f74259 add plain-text hangup cause private header to outbound BYE/CANCEL (bug #4783 with minor mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6192 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-25 17:39:48 +00:00
Russell Bryant
eeb34ffd63 more formatting fixes! (bug #4780)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6191 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-25 17:31:53 +00:00
Kevin P. Fleming
5238d544e9 ensure socket address family is copied (bug #4789)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6190 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-25 17:31:50 +00:00
Russell Bryant
36093d24f7 get rid of a warning
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6189 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-25 17:27:36 +00:00
Russell Bryant
76b6344760 add ability to set or read both callerid name and num in one call to the function
This one is for you, Mark :-p


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6188 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-25 17:26:59 +00:00
Kevin P. Fleming
dd1cd37f11 ensure SIP_HEADER does not segfault when called on hung-up channels (bug #4756, different fix than posted patch)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6187 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-25 17:13:24 +00:00
Russell Bryant
cd17218e59 add line break after show agents output (bug #4768)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6186 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-25 16:53:28 +00:00
Russell Bryant
32a267db40 formatting fixes (bug #4770)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6185 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-25 15:32:06 +00:00
Russell Bryant
4f007c8192 formatting fixups (bug #4769)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6184 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-25 15:23:47 +00:00
Matthew Fredrickson
6eb0ec533e More minor cleanups
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6183 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-22 18:28:19 +00:00
Matthew Fredrickson
0577cdd35f Fixed little oops with DTMF tone duration
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6182 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-22 18:07:53 +00:00
Matthew Fredrickson
23d05a2ebb Get rid of DSP after we don't need it anymore in MF mode
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6181 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-21 15:06:50 +00:00
Kevin P. Fleming
3f5035dce4 _really_ fix IAX2 crazy timestamp problem (bug #4747)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6180 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-20 22:46:58 +00:00
Russell Bryant
bd18858411 more formatting fixes from oej :-) (bug #4757)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6179 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-20 17:05:18 +00:00
Russell Bryant
5589a1e387 put ast_recvchar under its desc, add desc for ast_senddigit, don't use a
length limited copy for a static copy into a buffer that we *know* is big
enough


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6178 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-20 16:39:49 +00:00
Kevin P. Fleming
075a8ad21c add slinfactory object, and change app_chanspy to use it (bug #4724)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6177 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-20 00:53:21 +00:00
Kevin P. Fleming
91e8442629 add SIPPEER dialplan function (bug #4728)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6176 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-20 00:44:35 +00:00
Kevin P. Fleming
dc648f7334 add ActionID output and lock CLI fd for Manager action DBGet (bug #4727)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6175 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-20 00:38:20 +00:00
Kevin P. Fleming
1c30af0622 add English device state output (bug #4733, with minor mod)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6174 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-20 00:34:01 +00:00
Kevin P. Fleming
3db82d8597 add OGG/Vorbis file format support (bug #4296)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6173 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-20 00:25:54 +00:00
Kevin P. Fleming
9ecdab9452 add warning about enabling debug channels in logger (bug #4732)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6172 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-20 00:16:15 +00:00
Kevin P. Fleming
a6b0f6074f move strtoq into new string files (bug #4740)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6171 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-20 00:13:15 +00:00
Kevin P. Fleming
3677a861c8 formatting cleanup (bug #4752)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6170 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-20 00:09:39 +00:00
Kevin P. Fleming
0be59a11de simple fix for bug #3638
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6169 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-19 23:55:43 +00:00
Kevin P. Fleming
63b6795055 ensure account code is not overwritten when none is supplied (bug #4743)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6168 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-19 23:45:21 +00:00
Kevin P. Fleming
ddf5da66f7 formatting cleanup (bug #4750)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6167 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-19 23:35:45 +00:00
Kevin P. Fleming
be8e1d2381 restore proper difference calculation (bug #4746)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6166 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-19 23:28:12 +00:00
Kevin P. Fleming
4dd4428204 split acl and netsock code into separate files, in preparation for new netsock implementation
various minor cleanups


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6165 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-19 23:17:02 +00:00
Russell Bryant
c8f5c38f66 let the compiler learn the types for the elements of a struct timeval to fix
portability issues


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6164 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-19 19:06:24 +00:00
Russell Bryant
11fae70fca update guidelines to explain indent parameteres (bug #4742)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6163 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-19 17:59:27 +00:00
Russell Bryant
324f7d150f formatting fixes (bug #4736)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6162 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-19 15:54:17 +00:00
Russell Bryant
4817bc599d restore warning about negative timestamps now that it is fixed
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6161 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-19 15:32:03 +00:00
Russell Bryant
de905a632a fix negative timestamp issue
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6160 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-19 15:30:31 +00:00
Russell Bryant
b134548d79 suppress timestamp message until we can figure out where it is coming from,
since it appears that this isn't causing a real problem


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6159 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-19 14:08:19 +00:00
Russell Bryant
4c5fbc1583 formatting fixes (bug #4739)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6158 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-19 13:44:42 +00:00
Matthew Fredrickson
0a4dd9a6b3 Fix for DSP code on 411/406. (Bug 4712). Also a settable tone length
option.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6157 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-19 13:30:37 +00:00
Ben Kramer
c3f1c4da4f / fixed typo bug introduced in fix for bug #4504
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6156 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-19 02:33:46 +00:00
Russell Bryant
088da8a0ab actually install the demo sounds ...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6155 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-18 20:09:09 +00:00
Russell Bryant
5f04f09e5a also include /etc/asterisk.makeopts, but have file in home directory override
it if present


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6154 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-18 18:34:52 +00:00
Josh Roberson
2c85f4862c fix smoothfade for osx.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6153 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-18 15:51:09 +00:00
Russell Bryant
7f88c9549f get rid of warning
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6152 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-18 14:31:21 +00:00
Russell Bryant
5af1098063 get rid of unused variable
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6151 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-18 05:00:23 +00:00
Josh Roberson
d7fdaa1f37 and last but not least, fix my email address.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6150 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-18 04:30:33 +00:00
Josh Roberson
e380aa7452 Forgot to remove printf() used in debugging
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6149 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-18 04:23:33 +00:00
Josh Roberson
25041974ef Update muted for operation on OSX. :)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6148 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-18 04:22:08 +00:00
Russell Bryant
a9c7f50a09 Allow manager originate to specifiy more than one variable to be set.
Allow manager originate and spool files to set writable dialplan functions,
including those that use the pipe symbol to seperate arguments.
Allow CDR dialplan function to be able to set the account code and userfield.
This deprecates the use of the Account header in manager originate and spool
files, as well as the SetAccount and SetCDRUserField applications.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6147 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-15 23:24:51 +00:00
Kevin P. Fleming
22b0f5d306 add a library of timeval manipulation functions, and change a large number of usses to use the new functions (bug #4504)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6146 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-15 23:00:47 +00:00
Kevin P. Fleming
60cd1fa57d clean up scheduler debugging and expose defines in the Makefile (bug #4703)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6145 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-15 22:21:31 +00:00
Kevin P. Fleming
11486c084a re-enable SIGHUP and SIGCHLD after they fire on platforms that require it (bug #4720)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6144 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-15 22:12:55 +00:00
Kevin P. Fleming
9d8d86e19d phase two of string portability stuff:
don't need ast_ prefixes on functions
  use individual #defines for function presence
  add vasprintf to portability library


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6143 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-15 22:06:15 +00:00
Russell Bryant
da1d0363ca get rid of compiler warning
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6142 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-15 16:32:44 +00:00
Kevin P. Fleming
38598f57b4 make 'Agents' manager action conform to protocol (bug #4723)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6141 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-15 16:21:41 +00:00
Kevin P. Fleming
ee568be647 revert unneeded change and add comment to avoid it in the future
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6140 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-15 16:15:57 +00:00
Kevin P. Fleming
904beec507 ensure that format string macros are undef'd after use (bug #4716)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6139 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-15 16:13:26 +00:00
Kevin P. Fleming
7070dafdbf don't use %i for scanf unless non-base-10 input is needed (bug #4717)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6138 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-15 16:10:21 +00:00
Kevin P. Fleming
17fee8dc68 various code formatting changes and cleanups related to bug #4706
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6137 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-15 16:03:02 +00:00
Kevin P. Fleming
7dfba67f7d ensure that channels that are busy/congested are marked AST_STATE_BUSY (bug #4706)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6136 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-15 16:02:37 +00:00
Kevin P. Fleming
494d253efe more ifdef cleanup to match proper Linux macros
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6135 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-15 15:37:58 +00:00
Josh Roberson
937740bd89 Fix breakage caused by bug #4669. Next time let's test the build on
linux before commiting a portability patch ;)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6134 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-15 02:28:10 +00:00
Kevin P. Fleming
b6486df40e first phase of proper fix for portable string function problems (bug #4669)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6133 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-15 00:39:01 +00:00
Kevin P. Fleming
dcfabce0e4 restore count_messages for ODBC storage to proper behavior (bug #4711)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6132 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-15 00:27:41 +00:00
Kevin P. Fleming
86e17a7487 clean up maxmsg parsing, and ensure default applies to Realtime voicemail users
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6131 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-15 00:18:58 +00:00
Russell Bryant
3c7779c766 fix some indentation
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6130 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-15 00:15:14 +00:00
Kevin P. Fleming
990bba90a7 ensure we record the last seqno we transmitted (bug #4659)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6129 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-14 23:58:36 +00:00
Russell Bryant
1d731c6d2a clarify comment
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6128 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-14 20:08:31 +00:00
Russell Bryant
ad1858bebc add ability to have a file, ~/.asterisk.makeopts, that will be included in
the makefile so that every time you checkout Asterisk, you don't have to
edit the makefile to set all of your common options


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6127 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-14 19:40:15 +00:00
Kevin P. Fleming
f50c27c355 don't ignore hardcoded CLID from zapata.conf when usecallerid=no
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6126 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-13 20:22:29 +00:00
Kevin P. Fleming
9a7a5d5623 fix up lock breakage from bug #4245
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6125 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-13 19:27:09 +00:00
Russell Bryant
f62a613d24 fix big endian compilation issue
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6124 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-13 19:21:04 +00:00
Kevin P. Fleming
aaa057778c add create_addr_from_peer, to use an existing peer reference
(solves a deadlock where create_addr was called with the peer already locked)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6123 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-13 18:06:49 +00:00
Kevin P. Fleming
1432749293 add QueueStatusComplete event (bug #4694 with minor mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6121 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-13 16:44:55 +00:00
Matthew Fredrickson
91f84f9098 Update variable name to match docs
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6120 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-13 15:13:12 +00:00
Russell Bryant
709689f76e fix typo in app description (bug #4697)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6119 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-13 14:07:29 +00:00
Kevin P. Fleming
5b11473088 send final 3 RFC2833 packets with same seqno (bug #4659)
don't reprocess incoming RFC2833 event when packets received out of order (bug #4659)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6116 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-12 23:36:00 +00:00
Russell Bryant
38717a75c6 add a dialplan function to get and set the music on hold class
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6115 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-12 22:50:45 +00:00
Kevin P. Fleming
79760d4802 add support for multiple-digit extensions in queue exit contexts (bug #4690)
add QUEUEAGENTCOUNT dialplan function (bug #4690)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6114 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-12 22:28:51 +00:00
Kevin P. Fleming
85eb4c9afb support DTX and CNG in speex (bug #4608)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6113 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-12 22:20:16 +00:00
Kevin P. Fleming
676116f2e2 add UTC tag to date string so users are aware of the time offset
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6112 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-12 19:41:25 +00:00
Kevin P. Fleming
37184c4244 revert patch from bug #4532 until CPU consumption problem can be resolved
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6111 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-12 18:57:20 +00:00
Kevin P. Fleming
4bcf6f7806 fix logic error in searching for channel by name (bug #4684)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6110 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-12 16:00:23 +00:00
Russell Bryant
b62623fdaa convert ast_copy_string to use AST_INLINE_API macro (bug #4682)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6108 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-12 15:26:24 +00:00
Russell Bryant
4f64fe03f0 get rid of compiler warning (bug #4682)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6107 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-12 15:22:55 +00:00
Kevin P. Fleming
24f9f8586b cast constants into the proper type (bug #4686)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6106 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-12 15:13:39 +00:00
Kevin P. Fleming
7276c684c4 clean up and reorganize vm_intro_it (bug #4683, with formatting changes)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6105 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-12 15:10:31 +00:00
Kevin P. Fleming
c59c42e166 don't declare variables inside a code block (bug #4681)
fix formatting


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6104 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-12 14:58:25 +00:00
Mark Spencer
3916b7e41b Fix IAX2 encryption (really, bug #4500 for reference)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6103 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-12 14:46:20 +00:00
Kevin P. Fleming
0313d0b9c5 add privacy/screening functionality to app_dial (bug #752)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6102 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-12 03:23:31 +00:00
Kevin P. Fleming
9985055fd7 add support for say_number in Hebrew (bug #4420)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6101 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-12 03:00:49 +00:00
Kevin P. Fleming
2c79cc2fc6 correct arguments being passed to external notify function (bug #4595)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6100 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-12 02:57:50 +00:00
Kevin P. Fleming
99c29d7053 support a configurable number of mailboxes per folder (bug #4229)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6099 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-12 02:53:56 +00:00
Kevin P. Fleming
1ea58b4517 support military-style time announcing ('hundred' instead of 'o-clock') (bug #4605)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6098 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-12 02:36:53 +00:00
Kevin P. Fleming
a803ef7af0 pick up calling ANI information from libpri (bug #4571)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6097 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-12 02:33:57 +00:00
Kevin P. Fleming
d7e09f233f allow explicit source address/port selection for peers (bug #4257, with minor mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6096 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-12 02:19:41 +00:00
Kevin P. Fleming
b06daf5859 make 'webvmail' installation directories more configurable (bug #4649)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6095 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-12 02:08:03 +00:00
Kevin P. Fleming
97671a2b05 add 'exit context' and 'only stop on match' options to Background app (bug #4511)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6093 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-12 01:34:06 +00:00
Russell Bryant
e2d42d2551 update the password in memory as well when using externpass (bug #4602)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6092 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-12 01:30:55 +00:00
Kevin P. Fleming
16c5ee5d56 fix voicemail path locking problems (bug #4245)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6091 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-12 01:04:54 +00:00
Kevin P. Fleming
58d1d59cab simplify (and document!) macro for inlinable API functions (inspired by bug #4603, with slightly different implementation)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6090 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-11 23:25:31 +00:00
Russell Bryant
3cfa36143e properly handle the return of the rowcount from ast_update_realtime (bug #4452)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6089 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-11 23:13:11 +00:00
Kevin P. Fleming
771f699cdd fix threading portability problem with FreeBSD (bug #4532)
ensure that all mpg123 child processes get killed when the parent is killed (bug #4532)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6086 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-11 21:42:25 +00:00
Kevin P. Fleming
be9d72b11d remove complex malloc-avoidance (bug #4601)
remove resetting of variables during unload that will only be freed or set to known values on reload


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6085 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-11 21:06:27 +00:00
Russell Bryant
e24821e1cf fix off by one errors in calls to ast_copy_string (bug #4600)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6084 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-11 21:05:35 +00:00
Kevin P. Fleming
eb397f08df reverse arguments to ast_tvdiff_ms, so they match the 'raw' math being used between the arguments
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6083 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-11 20:46:25 +00:00
Kevin P. Fleming
8079f53c01 don't hangup the channel when a RECEIVE TEXT command times out (bug #4607)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6082 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-11 20:40:02 +00:00
Matthew Fredrickson
e67bc60c40 Make PRI debug easier to read if you're not using NFAS
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6081 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-11 19:23:02 +00:00
Kevin P. Fleming
9f210028d1 fix compiler warning about ast_copy_string
remove double-include of asterisk.h


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6080 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-11 00:00:11 +00:00
Russell Bryant
5df2640539 use AST_MAX_CONTEXT
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6079 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-10 23:58:33 +00:00
Kevin P. Fleming
5bf8872b42 more thoughts
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6078 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-10 23:58:07 +00:00
Kevin P. Fleming
312122c113 minor fixes, and more topics covered
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6077 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-10 23:51:10 +00:00
Russell Bryant
4c531ca8c0 define an AST_MAX_CONTEXT for use instead of AST_MAX_EXTENSION
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6076 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-10 23:49:57 +00:00
Russell Bryant
c18fd5cd8c more ast_copy_string conversions
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6075 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-10 23:21:39 +00:00
Russell Bryant
206f712599 more ast_copy_string conversions
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6074 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-10 23:12:25 +00:00
Russell Bryant
edbc500b77 more ast_copy_string conversions
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6073 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-10 22:56:21 +00:00
Mark Spencer
80f67ad1fa Pass along proceeding and progress even when overlap mode is not on
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6072 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-10 16:05:59 +00:00
Mark Spencer
45895f6fa7 You must have version.h before building dependencies!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6071 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-10 15:53:05 +00:00
Kevin P. Fleming
87231c34a1 simplify locking (use a single lock, no deadlock possible)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6070 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-10 13:06:54 +00:00
Mark Spencer
3c8dfe099d Fix lock ordering in devicestate
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6069 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-10 12:09:40 +00:00
Jim Dixon
b4f7592ebb Fixed iobase specification in rpt.conf and put in check for 'keyed' for
main system rx DTMF.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6068 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-10 03:13:42 +00:00
Anthony Minessale II
fb4106f357 Typo Fix (per corydon76)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6067 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-09 20:37:59 +00:00
Malcolm Davenport
47edc64ecd D'oh
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6066 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-09 15:36:59 +00:00
Malcolm Davenport
fe7c0b0cce Bug #4652 - Take two
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6065 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-09 12:18:59 +00:00
Malcolm Davenport
d36d51f732 Bug #4652 - Require libstrfunc for FreeBSD. Thanks Corydon
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6064 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-08 21:54:07 +00:00
Kevin P. Fleming
a913a5ce23 add the new files for the last commit :-)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6063 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-08 21:15:41 +00:00
Kevin P. Fleming
c13d601fb4 queue device state changes and handle them serially in a background thread
optimize device state related functions
add ast_get_channel_by_name_prefix to allow searching for matching channels in O(1) operation


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6062 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-08 21:14:34 +00:00
Kevin P. Fleming
0111a38e4b ensure globals are all static
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6061 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-08 21:09:38 +00:00
Matthew Fredrickson
f6f9cac028 Change level of message in case of write on hung up channel (Bug #4651)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6060 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-08 19:10:39 +00:00
Kevin P. Fleming
f64717b556 clean up compiler warnings during build on 64-bit systems
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6059 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-08 17:06:54 +00:00
Russell Bryant
ea346597bb update sample to reflect new nodir option
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6058 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-08 15:04:01 +00:00
Russell Bryant
b8e8cdc968 make this call to socket() consistent with the rest of them in Asterisk
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6057 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-08 14:27:39 +00:00
Russell Bryant
c65d75dac5 super crazy ast_copy_string conversion madness!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6056 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-07 23:46:10 +00:00
Kevin P. Fleming
349a64ef8f add path-locking to voicemail CGI app (bug #4304)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6055 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-07 23:34:59 +00:00
Russell Bryant
91ee5d5ddd more fun with ast_copy_string
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6054 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-07 23:32:37 +00:00
Kevin P. Fleming
25f2cb8ec9 ensure that "completed calls" counter is updated properly (bug #4575)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6053 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-07 23:29:48 +00:00
Kevin P. Fleming
bebab80538 ast_copy_string conversion
replace unnecessary length-limited copies with direct copies


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6052 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-07 23:17:22 +00:00
Russell Bryant
089e021868 more ast_copy_string conversions
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6051 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-07 23:17:04 +00:00
Kevin P. Fleming
64cf50c8e1 allow user-configurable date formats in voicemail message body (bug #4554)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6050 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-07 22:56:49 +00:00
Kevin P. Fleming
608eec66d6 ensure that mailbox numbers are read correctly from password files (bug #4655)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6049 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-07 22:42:06 +00:00
Kevin P. Fleming
d39c932f20 ensure that conference created by new caller who fails to enter a PIN is destroyed (bug #4613)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6048 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-07 22:36:40 +00:00
Kevin P. Fleming
f268ea2b3c make CLI output use singular/plural when appropriate (bug #4654)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6047 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-07 22:32:20 +00:00
Malcolm Davenport
f1a18b8066 Hardcode urgent messages option in Voice-Message to 0
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6046 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-07 19:51:33 +00:00
Kevin P. Fleming
6b72557890 ensure that AGENTBYCALLERID is set for agents being reloaded from persistent storage
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6039 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-06 14:47:25 +00:00
Kevin P. Fleming
1bd88c387e don't segfault when peer doesn't send Referred-By (bug #4588)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6038 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-06 01:45:23 +00:00
Kevin P. Fleming
8b19bdba36 ensure buffer policy is restored after RAS is done with a channel (bug #4589, slightly simpler fix)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6037 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-06 01:41:54 +00:00
Kevin P. Fleming
9403a6e027 remember CallerID in AgentCallbackLogin, so it can be used at logoff time
use stored CallerID when auto-logoff occurs to clear AGENTBYCALLERID variable (bug #4616)
persist stored CallerID into/out of astdb


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6036 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-06 01:29:15 +00:00
Kevin P. Fleming
6797e6334f don't write frames out to channel until after sending them to spies and/or monitor, since the channel driver might modify the frame data in the buffer (bug #4623)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6035 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-05 22:21:54 +00:00
Kevin P. Fleming
054317fb13 add support for 'early loading' modules, so that nearly all configuration files can be read from Realtime storage
add warning for when file mapping is found but the engine is not available
add warning for trying to map 'logger.conf', since it cannot be reliably mapped


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6034 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-05 22:11:43 +00:00
Kevin P. Fleming
18cf6ee46a add new file to ignore
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6033 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-05 22:10:39 +00:00
Kevin P. Fleming
65e52f3ba9 clean up find_engine()
issue a warning when a config file mapping is found but the desired driver is not available (inspired by bug #4628)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6032 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-05 21:17:58 +00:00
Kevin P. Fleming
750e8abd46 ensure that filesize-triggered reloads don't recurse (bug #4621, with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6031 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-05 20:31:34 +00:00
Kevin P. Fleming
386f0e70b3 ensure that text frames are copied correctly even if they are not null-terminated (bug #4615)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6030 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-05 19:52:48 +00:00
Kevin P. Fleming
7d841b1885 make editline build properly on cygwin (bug #4624)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6029 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-05 19:30:18 +00:00
Kevin P. Fleming
232e7869e0 don't force autofallthrough to on (bug #4599)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6028 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-05 19:22:58 +00:00
Kevin P. Fleming
f8b140faa4 ensure that abandoned calls are recorded that way (bug #4644)
show 'available' for member channels that are not known to be in some other state (bug #4644)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6027 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-05 19:22:26 +00:00
Kevin P. Fleming
8f8d190b46 add man pages for autosupport and safe_asterisk scripts (bug #4642)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6026 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-05 19:04:49 +00:00
Kevin P. Fleming
83878abdc7 actually _install_ the astgenkey man page
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6025 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-05 19:02:25 +00:00
Russell Bryant
52ef5c7d30 add function to convert a cause code to a string
create MAX_MUSICCLASS instead of using MAX_LANGUAGE


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6024 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-05 17:16:17 +00:00
Kevin P. Fleming
3c91556d2d reset regattempts counter after successful registration (bug #4634)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6023 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-05 15:08:34 +00:00
Kevin P. Fleming
3abe796aa8 fix up warnings (bug #4638)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6022 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-05 14:45:48 +00:00
Kevin P. Fleming
253377c208 use proper shebang line in autosupport script, at proper location (bug #4640)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6021 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-05 14:41:28 +00:00
Kevin P. Fleming
ca2f18839d don't unlink files just because they can't be opened (bug #4641)
clean up and reformat ast_readfile and ast_writefile


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6020 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-05 14:37:24 +00:00
Russell Bryant
bcc5eb829d print out which format was bigger than MAX_FORMAT
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6019 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-05 14:00:03 +00:00
Jim Dixon
4cac951c1c Added fix so that wctdm interface will start out in correct state
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6018 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-04 00:52:18 +00:00
Anthony Minessale II
de87676975 Apply NODIR Patch (Bug #4619)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6017 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-30 18:08:27 +00:00
Matthew Fredrickson
cb8ba75284 Fix for bug 4347. Also breaking redirectingreason interpretation routine into function
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6015 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-29 21:47:44 +00:00
Matthew Fredrickson
220e24584a UK discconnect tone detection support. Need to enable callprogress in
zapata.conf and set progzone=uk


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6010 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-28 14:36:56 +00:00
Kevin P. Fleming
b83175862e add new header files
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6009 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-24 22:50:07 +00:00
Kevin P. Fleming
3e44b65090 split up string/time functions into separate header files
make more LOW_MEMORY optimizations, and ensure that a non-inline version of each inlinable function is always available (for external modules)
move compiler-specific stuff into a separate header file


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6008 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-24 22:45:15 +00:00
Kevin P. Fleming
3ddc33f674 un-break three-way calling
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6002 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-24 19:15:51 +00:00
Russell Bryant
436a8474b0 '9' doesn't fall there anymore ...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6001 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-24 17:19:26 +00:00
Russell Bryant
f3e538205b no need to call srand() when it is already called in asterisk.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6000 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-24 04:38:59 +00:00
Kevin P. Fleming
6bf31cae9e add man pages (bug #4515)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5999 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-24 03:02:55 +00:00
Kevin P. Fleming
19c1ac82a4 actually get the host's name for the code that needs it (bug #4569)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5998 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-24 02:56:15 +00:00
Kevin P. Fleming
d8cea2c8d4 add conditional operator to expression parser, and various cleanups (bug #4459)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5997 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-24 02:51:47 +00:00
Kevin P. Fleming
9f4ad3363d ensure that 'zap show status' always generates output, even when there are no interfaces present (bug #3585)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5996 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-24 02:37:32 +00:00
Kevin P. Fleming
5769e90427 update to current loader API (bug #4574)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5995 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-24 02:33:14 +00:00
Kevin P. Fleming
4803ab0bb2 don't use locks when reading usecounts (reading only, not writing)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5994 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-24 02:15:04 +00:00
Kevin P. Fleming
8db7830293 fix outgoing format selection breakage
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5993 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-24 01:37:15 +00:00
Kevin P. Fleming
8ed59c10e4 make inlinable functions only need the function body in one file, and respond properly to LOW_MEMORY being defined
make ast_copy_string inlinable, and ast_tvdiff_ms LOW_MEMORY aware


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5992 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-23 23:07:55 +00:00
Kevin P. Fleming
061caa34c1 support cancellation of attended transfers using the defined disconnect code (bug #3729 with minor mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5991 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-23 22:12:01 +00:00
Russell Bryant
d6715842fb fix typo in description
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5990 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-23 22:00:10 +00:00
Kevin P. Fleming
7ec4d28296 optimize ast_recvchar/ast_recvtext (bug #4591)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5989 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-23 21:28:09 +00:00
Kevin P. Fleming
dfe71e885e let's try allocating the proper amount of memory...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5987 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-23 19:11:49 +00:00
Mark Spencer
2f39b2c5ab Okay ;)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5986 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-23 18:37:27 +00:00
Kevin P. Fleming
34adab5d08 support Swedish grammar for voicemail message counts (bug #4227)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5985 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-23 17:44:20 +00:00
Kevin P. Fleming
1f784b32d8 don't repeat a command during 'make install' (bug #4582)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5984 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-23 17:32:36 +00:00
Kevin P. Fleming
6a0fdb312f don't take locks when reading usecounts, they are not necessary (bug #4585)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5983 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-23 17:30:56 +00:00
Kevin P. Fleming
442f3b15a1 make 'transfer to busy' support a configurable option, and make it _only_ short-circuit AST_STATE_BUSY
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5982 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-23 14:51:52 +00:00
Mark Spencer
d69b5c74e5 Fix debugging to not print warnings
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5981 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-23 01:17:00 +00:00
Ben Kramer
32741dc1c6 / fix for bug 4550
/ cleaned up most of the warning messages


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5979 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-22 23:54:47 +00:00
Russell Bryant
9a56a10379 fix a typo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5978 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-22 23:45:34 +00:00
Russell Bryant
170c422a5e it's actually the parser for the language, not a configuration file ... :)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5977 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-22 22:19:31 +00:00
Russell Bryant
bd87915222 add some information on what the user must do to start using AEL
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5976 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-22 22:18:02 +00:00
Mark Spencer
4358089aa7 Fix SIP with OSP
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5975 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-22 21:10:02 +00:00
Kevin P. Fleming
eb19519c86 fix macro usage examples (bug #4579)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5974 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-22 20:08:43 +00:00
Kevin P. Fleming
f764db2e5b fix goto examples (bug #4578)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5973 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-22 19:20:31 +00:00
Kevin P. Fleming
5a80cd988f correct goto examples (bug #4576)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5972 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-22 19:18:02 +00:00
Kevin P. Fleming
d50d485c49 clean up macro example (bug #4572)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5971 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-22 19:15:02 +00:00
Kevin P. Fleming
369b421b78 make SIP registration accept RFC non-compliant Digest headers (bug #4577)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5970 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-22 19:10:39 +00:00
Kevin P. Fleming
b898cdcefb allow PROC to be supplied on the make command line (bug #4570)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5966 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-22 00:09:27 +00:00
Kevin P. Fleming
3e03366140 correct callwaiting tones for de and dk zones (bug #4519)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5965 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-21 23:53:16 +00:00
Kevin P. Fleming
21332e531e various speex fixes (bug #4253)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5964 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-21 23:16:32 +00:00
Kevin P. Fleming
85091ab68d add channel CLID info in manager Link event (bug #4548 with minor mod)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5963 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-21 23:10:29 +00:00
Kevin P. Fleming
d66913bea2 fix segfault when no CLID number is present (bug #4566)
clean up CLID/CNAM display generation code
suppress compiler warnings for unused items


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5962 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-21 23:06:44 +00:00
Kevin P. Fleming
da4cf4e3e1 use Solaris-compatible shell syntax (bug #4567)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5961 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-21 22:16:30 +00:00
Kevin P. Fleming
efe35e705f update docs for new check_expr tool (don't know why this didn't go in with the other commit)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5960 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-21 22:15:27 +00:00
Kevin P. Fleming
e3ddd96fec enhance check_expr to check for parsing errors in dialplans (bug #4556)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5959 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-21 20:16:51 +00:00
Kevin P. Fleming
eea9249eda correct syntax error
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5958 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-21 19:57:18 +00:00
Kevin P. Fleming
2f5da9a173 make 'show config mapping' show all mappings associated with an engine (bug #4564)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5957 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-21 19:09:35 +00:00
Kevin P. Fleming
b68ffcd38d fix debug output (bug #4562)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5956 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-21 15:33:25 +00:00
Kevin P. Fleming
b7c4aa541a handle resync delay properly (bug #4560)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5953 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-21 01:30:10 +00:00
Kevin P. Fleming
52e26805e7 begin properly supporting 'Supported' and 'Required' headers (bug #4351)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5952 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-21 01:27:54 +00:00
Kevin P. Fleming
54e74ff81b control maximum number of interpolation frames generated during silence by jitterbuffer (bug #4295)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5951 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-21 01:20:14 +00:00
Kevin P. Fleming
767f019264 add AGI 'RECEIVE TEXT' command (bug #4525)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5950 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-21 01:16:18 +00:00
Kevin P. Fleming
4e6d610317 ensure that proper response code is return for unimplemented methods (bug #4512)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5949 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-21 01:07:31 +00:00
Kevin P. Fleming
e49ea06442 ensure script is portable to non-GNU systems (bug #4509)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5948 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-21 01:05:31 +00:00
Kevin P. Fleming
5285af5631 separate IAX2 protocol debugging and jitterbuffer debugging (bug #4523)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5947 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-21 01:02:07 +00:00
Kevin P. Fleming
c4be3dfb53 make query cache time configurable (bug #4524)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5946 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-21 00:58:31 +00:00
Kevin P. Fleming
ede1fcba53 minor cleanups (bug #4526 with text changes)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5945 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-21 00:52:47 +00:00
Kevin P. Fleming
11ea6fe59f use ast_build_string() to build strings into buffers, and general cleanup of variable serializing functions used by 'show channel' (bug #4558)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5944 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-20 23:37:01 +00:00
Mark Spencer
ffebf1f71b Fix OSP stuff
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5943 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-20 17:46:54 +00:00
Kevin P. Fleming
0e9d920a60 move tools used during build into build_tools subdirectory
clean up Makefile headers


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5942 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-20 17:26:08 +00:00
Kevin P. Fleming
a752aeb4e8 fix reply_digest breakage from earlier patch
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5941 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-20 17:01:03 +00:00
Mark Spencer
f80df76143 Fix fd's when we release rtp/vrtp
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5940 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-19 22:00:18 +00:00
Mark Spencer
b6ea1bcb29 Attempt to repair SIP parameter gathering brokenness
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5939 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-18 23:30:40 +00:00
Mark Spencer
0c61fc56be Fix via comparison to be case insensitive
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5938 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-18 18:53:16 +00:00
Mark Spencer
df909bed06 Fix ipaq build (bug #4545)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5937 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-18 17:54:15 +00:00
Mark Spencer
121a4d8c71 Fix timelimit bug (bug #4552)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5936 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-18 17:18:02 +00:00
Mark Spencer
02998cb285 Revert silly "sipura fix" which breaks RFC compatibility (bug #4549)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5935 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-18 17:13:01 +00:00
Mark Spencer
01c96e65f6 Don't try to read from an rtcp if there isn't one
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5934 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-18 16:46:44 +00:00
Mark Spencer
e74c288783 Fix agent recording issue (bug #4551)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5933 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-18 16:38:48 +00:00
Mark Spencer
222b5695e0 Fix up utils nonsense
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5932 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-18 11:54:38 +00:00
Kevin P. Fleming
2f7e984a31 don't generate 'rport' unless RFC3581 support is enabled (bug #4533)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5931 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-17 15:03:56 +00:00
Mark Spencer
33263739ca Oops
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5930 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-17 14:33:29 +00:00
Kevin P. Fleming
e4c22cea6b don't let ast_trim_blanks operate on empty strings or run off the beginning of the string
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5929 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-17 14:27:57 +00:00
Mark Spencer
3b72686994 Merge midi changes (bug #4441)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5928 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-17 14:25:44 +00:00
Mark Spencer
ddaf30b7bd Fix typo in extensions.ael sample
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5927 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-17 14:08:58 +00:00
Kevin P. Fleming
7a8e125ff5 fix 2 bugs (bug #4518)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5926 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-17 13:39:34 +00:00
Kevin P. Fleming
81d1a11ed6 clean up and optimize reply_digest (bug #4447)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5925 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-17 13:29:04 +00:00
Kevin P. Fleming
9a80a7bc2c string/whitespace handling cleanups (bug #4449, with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5924 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-17 13:25:01 +00:00
Kevin P. Fleming
fb6f36387f dueling commits, mark won!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5923 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-17 12:56:35 +00:00
Mark Spencer
3ba6894cd5 AEL minor fixes (bug #4539)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5922 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-17 12:53:26 +00:00
Kevin P. Fleming
9e12e429f6 minor fixes to conform to the newly-posted coding guideline :-)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5921 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-17 12:51:03 +00:00
Mark Spencer
ac4ac37df1 Fix reset cdr (bug #4531)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5920 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-17 00:37:43 +00:00
Mark Spencer
10542f6145 Fix expression handling for string comparisions without quotes (bug #4478)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5919 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-17 00:33:00 +00:00
Mark Spencer
e0f057820a Add Asterisk Extension Language support (AEL) from Astricon talk
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5918 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-16 08:47:06 +00:00
Kevin P. Fleming
80fe4e16b2 ensure proper variables are returned from CDR function (bug #4521)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5916 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-15 15:01:40 +00:00
Jim Dixon
a64d79c196 Fixed transmitter hang problem
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5915 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-15 03:50:29 +00:00
Russell Bryant
b71be71262 fix deadlock message output (bug #4508)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5907 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-14 18:09:56 +00:00
Kevin P. Fleming
86511f89fb don't use pthread_mutex_lock
don't double-include pthread.h in utils.h, which can cause the
pthread_mutex_lock warning to not be generated on some systems


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5906 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-14 14:45:51 +00:00
Mark Spencer
fb12b92a43 Various IAX2 fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5901 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-13 08:48:17 +00:00
Russell Bryant
bef7d9da16 move deprecation warning until after all variable declarations (bug #4514)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5900 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-12 16:43:37 +00:00
Kevin P. Fleming
0aae19259a restructure buggy parse_args routine
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5898 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-10 20:25:23 +00:00
Kevin P. Fleming
0c082e7e62 update editline's config.guess to support platforms made in the last 3 years (bug #4507)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5897 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-10 15:35:32 +00:00
Ben Kramer
20c26996ef / fixes possibility for accessing of struct when null
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5896 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-10 03:18:24 +00:00
Kevin P. Fleming
79392ea53b add MATH() dialplan function (bug #4473, with mods)
deprecate the Math() application


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5895 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-09 22:59:08 +00:00
Kevin P. Fleming
f3efc756ad allow transfer-to number for SIP transfers to contain an '@' (and enforce the max-forwards restriction for these transfers) (bug #4048)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5894 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-09 22:41:18 +00:00
Kevin P. Fleming
4d102efb7a make incoming overlap calls with no number specified use the 's' extension (bug #4317)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5893 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-09 22:34:29 +00:00
Kevin P. Fleming
439002c898 make zap-transfers to busy/congestion channels behave more reasonably (bug #4495)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5892 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-09 22:23:21 +00:00
Kevin P. Fleming
d617e890a6 add countries and reorder file into alphabetical order (bug #4482, part 1)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5891 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-09 21:21:32 +00:00
Kevin P. Fleming
4ec448cc76 add check_expr to 'make clean' and CVS ignore list
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5890 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-09 21:12:03 +00:00
Kevin P. Fleming
5736270107 add 'rtignoreexpire' option to allow Realtime addresses to be used regardless of expiration time (bug #4362)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5889 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-09 21:11:30 +00:00
Kevin P. Fleming
bd325f5219 add WAITSTATUS channel variable output to WaitForSilence() application (bug #4256)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5888 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-09 21:04:16 +00:00
Kevin P. Fleming
ddaa0cc0dd don't call alloca() or alloca()-using functions in parameter lists (bug #4487)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5887 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-09 20:55:07 +00:00
Kevin P. Fleming
d64c3d63fd add tool to check extensions.conf files for problems with new expression parser (bug #4491)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5886 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-09 20:50:48 +00:00
Kevin P. Fleming
aa0608cb34 remove useless code (bug #4492)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5885 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-09 20:43:54 +00:00
Kevin P. Fleming
706bf6d427 ensure CLI commands produce proper terminating output when used with manager interface (bug #4497)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5884 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-09 19:34:12 +00:00
Kevin P. Fleming
8c6c774ab6 fix channel walking problems from recent changes (bug #4494)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5883 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-09 19:27:19 +00:00
Kevin P. Fleming
e18a747172 move timeval-diff function into utils.h from app_alarmreceiver.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5882 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-09 14:39:34 +00:00
Ben Kramer
f70c5e190b / fixed bugs introduced by the fix for bug #4368 by kpfleming
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5881 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-08 00:10:09 +00:00
Kevin P. Fleming
b6ae77bcdf update guidelines to follow their own rules for whitespace (bug #4486)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5880 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-07 21:28:56 +00:00
Kevin P. Fleming
304bc75cf1 fix memory leaks in config loader (bug #4223)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5879 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-07 21:28:04 +00:00
Kevin P. Fleming
178842ec27 save 168 bytes per zaptel channel private structure (using bitfields)
save 28 bytes per zaptel subchannel structure (using bitfields)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5878 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-07 21:13:35 +00:00
Kevin P. Fleming
93f5cbacf0 fix build on Solaris (bug #4476)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5877 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-07 17:27:31 +00:00
Kevin P. Fleming
e5e64bfd41 header ordering fixes for FreeBSD (pending a global merge into asterisk.h) (bug #4484)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5876 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-07 17:06:33 +00:00
Kevin P. Fleming
7584fac64b various compiler warning fixes (bug #4483)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5875 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-07 16:59:20 +00:00
Kevin P. Fleming
0db4cee117 enable version string for this module, since it's standalone
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5874 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-07 16:11:06 +00:00
Kevin P. Fleming
01251090f0 fix version-string builds for non-gcc compilers
don't build version-string stuff for LOW_MEMORY builds


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5873 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-07 16:07:06 +00:00
Kevin P. Fleming
cf5b8dba96 add note about example
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5872 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-07 01:17:07 +00:00
Kevin P. Fleming
fb16b5cb0a add doxygen docs for file version stuff
make doxygen expand __GNUC__ protected code blocks
make doxygen process include/asterisk.h


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5871 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-07 01:13:23 +00:00
Kevin P. Fleming
59a0f860bd fix astman build
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5870 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-07 00:21:01 +00:00
Kevin P. Fleming
adc9c81692 fix version tag macro calls
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5869 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-06 23:12:05 +00:00
Kevin P. Fleming
370e887fbf fix 'make rpm'
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5868 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-06 22:44:37 +00:00
Kevin P. Fleming
c0b1e88e8a the last round of file version tags
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5867 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-06 22:39:32 +00:00
Kevin P. Fleming
2b8338cb52 more file version tags
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5866 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-06 22:12:19 +00:00
Kevin P. Fleming
005e436b57 another round of version tag updates, along with 'show version files' pattern filtering
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5865 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-06 21:09:59 +00:00
Kevin P. Fleming
0e6762dd5f remove experimental module version tags
add per-file revision tags and 'show version files' CLI command


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5864 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-06 20:27:51 +00:00
Kevin P. Fleming
6cbf69981d clean up module version number output
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5863 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-06 18:42:15 +00:00
Kevin P. Fleming
43cf15e339 add support for per-module version numbers
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5862 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-06 18:31:29 +00:00
Kevin P. Fleming
ab206439d8 don't force build.h to be built at 'install' time, if it's already there leave it alone
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5861 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-06 18:29:57 +00:00
Kevin P. Fleming
512a5a47c0 more ignore fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5860 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-06 17:35:17 +00:00
Kevin P. Fleming
eaba80834c update ignore lists
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5859 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-06 15:38:41 +00:00
Kevin P. Fleming
a02f56d8bc more breakage from bug #4116 commit
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5858 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-06 12:50:13 +00:00
Kevin P. Fleming
e26bd40d89 add missing files from bug #4116 commit
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5857 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-06 11:57:50 +00:00
Kevin P. Fleming
8726967435 handle going to 'fax' extension when inside a macro properly (bug #4368)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5856 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-06 03:18:51 +00:00
Kevin P. Fleming
4f299de252 major Makefile and build process improvements, including removal of all hardcoded paths (modules must now use run-time paths as they should) (bug #4116)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5855 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-06 03:04:58 +00:00
Kevin P. Fleming
236c05fc59 let ODBC username/password default to the ones in odbc.ini (bug #4470)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5854 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-06 02:43:01 +00:00
Kevin P. Fleming
1bac31d6bd more efficient (and understandable) ast_channel_walk_locked, and vastly more efficient ast_channel_by_name_locked (bug #4265)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5853 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-06 02:29:18 +00:00
Mark Spencer
bccc1171f0 Fix minor OSP compile issue
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5852 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-06 01:28:54 +00:00
Kevin P. Fleming
8ad230082e make AGI 'TDD MODE' command behave as documented when the channel doesn't support options (bug #4370)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5851 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-05 21:00:33 +00:00
Kevin P. Fleming
8a0ade1fd8 don't call reg_source_db() until after the peer has been added to the peer list
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5850 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-05 20:05:55 +00:00
Kevin P. Fleming
723d6b5be8 more ast_copy_string() conversion
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5849 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-05 16:32:16 +00:00
Kevin P. Fleming
b972421945 don't try to copy NULL appdata (bug #4422)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5848 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-05 16:08:44 +00:00
Kevin P. Fleming
50307c4e80 fix compilation on Darwin (bug #4462, ugh, we need all this stuff moved into endian.h)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5847 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-05 15:40:49 +00:00
Kevin P. Fleming
7a2d5cbb3e make ast_waitstream_* return value compatible with platforms that use unsigned char by default (bug #4455)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5846 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-05 15:04:43 +00:00
Kevin P. Fleming
325602ff2b make format_au compile on FreeBSD (bug #4456)
change out-of-memory messages to LOG_ERROR


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5845 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-05 14:50:21 +00:00
Kevin P. Fleming
090f7d278b more cleanups for outbound registrations (bug #4457)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5844 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-05 14:47:09 +00:00
Kevin P. Fleming
d6a2290eb2 use a struct for long parameter list to transmit_invite (bug #4458)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5843 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-05 14:43:49 +00:00
Kevin P. Fleming
740fabf66f minor cleanups (bug #4460)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5842 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-05 14:40:00 +00:00
Kevin P. Fleming
420737f3ea correct oops in recent outbound registration rework (bug #4461)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5841 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-05 14:36:56 +00:00
Kevin P. Fleming
a273ffa005 make 'show channeltypes' list whether device state is supported (bug #4464)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5840 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-05 14:32:32 +00:00
Kevin P. Fleming
c9004afb94 various improvements to outbound registrations and response handling (bug #3850)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5839 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-03 22:15:20 +00:00
Kevin P. Fleming
68668b602d use ast_cli_register_multiple() for CLI commands
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5838 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-03 22:04:54 +00:00
Kevin P. Fleming
583ff43d60 add support for Sun Microsystems AU audio format (bug #4428 with minor mods)
remove hardcoded format list from app_record help text


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5837 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-03 21:52:00 +00:00
Kevin P. Fleming
b364c1b953 clean up logic functions code and help texts
add IFTIME function (bug #4394, with mods)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5836 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-03 21:04:04 +00:00
Kevin P. Fleming
a198e5af5a use ast_strip_quoted to strip brackets from key secrets
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5835 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-03 21:02:51 +00:00
Kevin P. Fleming
115e45c7b0 handle stale authentication nonces more properly (bug #4343, with formatting fixes)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5834 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-03 19:16:41 +00:00
Kevin P. Fleming
860d7948ba clean up create_addr, and use a structure instead of a large parameter list
make create_addr return the peer's outkey, so dynamic realtime peers can use keys for calls (bug #4431)
add key support for switch connection strings
use a common dial/switch string parser instead of three copies (none of them identical)
make doxygen docs cover the entire source base


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5833 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-03 18:46:58 +00:00
Kevin P. Fleming
37efff4481 correct case of file type for one-touch monitoring (bug #4443)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5832 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-03 12:50:05 +00:00
Mark Spencer
fbe952ccb7 Don't build app_intercom...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5831 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-03 04:16:13 +00:00
Kevin P. Fleming
6107dfe927 use ast_cli_register_multiple() for chan_zap CLI commands
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5830 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-03 03:24:37 +00:00
Kevin P. Fleming
fdbb400a0b use ast_cli_register_multiple() for pbx CLI commands
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5829 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-03 03:09:20 +00:00
Kevin P. Fleming
f09bd8a677 remove deprecated 'quit' and 'exit' commands from console (but not remote connections)
clean up core CLI command registration to use ast_cli_register_multiple()


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5828 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-03 03:04:08 +00:00
Kevin P. Fleming
23f14f839f add indications for Sweden (bug #4231)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5827 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-03 02:51:59 +00:00
Kevin P. Fleming
4e8d2f60b1 don't call poll() with an unitialized structure (bug #4387)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5826 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-03 02:41:59 +00:00
Kevin P. Fleming
ce89d985f2 allow global variables to be reset on reload (defaults to off) (bug #4385)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5825 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-03 02:27:08 +00:00
Kevin P. Fleming
db402ee5d6 allow ast_add_extension2 to accept a NULL destructor (bug #4411)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5824 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-03 02:21:07 +00:00
Kevin P. Fleming
23472dd2c0 support configurable batch posting of CDRs (off by default) (bug #3883)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5823 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-03 01:42:31 +00:00
Kevin P. Fleming
0582912c5d document syntax change for Record() application (bug #4439)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5822 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-02 22:20:59 +00:00
Kevin P. Fleming
30973879c1 add realtime support to app_queue for static members/agents (bug #4037)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5821 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-02 21:42:49 +00:00
Kevin P. Fleming
050416ed29 make 'show channeltypes' output format work properly (bug #4413)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5820 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-02 21:37:09 +00:00
Kevin P. Fleming
c0ff0e340b consolidate API functions for saying numbers/digits/alpha/phonetic into less functions, using more efficient and clearer code (inspired by bug #4414)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5819 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-02 21:26:02 +00:00
Kevin P. Fleming
6cb7849dcb add guidelines for doxygen documentation writing (bug #4417, with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5818 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-02 19:38:55 +00:00
Kevin P. Fleming
5c33b52ced add a minor allocation/zeroing guideline
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5817 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-02 19:17:04 +00:00
Kevin P. Fleming
9f3372e3e3 add missing if statement in say_position (bug #4435)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5816 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-02 18:26:18 +00:00
Mark Spencer
2d76529279 Fix offset calculation for signed linear (bug #4433)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5815 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-02 17:54:09 +00:00
Mark Spencer
c01873574a Blindly merge jitter buffer patch of bug #4342)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5814 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-02 17:45:38 +00:00
Mark Spencer
7b03b102c9 Setup transfer capability properly for outbound calls (bug #4434)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5813 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-02 17:16:49 +00:00
Mark Spencer
df349078da Fix dial to not seg when closing ')' is missing (bug #4410)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5812 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-02 17:12:04 +00:00
Jeremy McNamara
9950df1b49 Add button templates for 7902, 7935, 7940, 7960, 7970, support big endian machines with proper byte ordering, fixed caller*id on 7910 (others?) and more. Bug #4398
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5811 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-02 09:11:46 +00:00
Jeremy McNamara
59e98b5540 fix wordwrap
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5810 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-02 00:50:38 +00:00
Jeremy McNamara
ed447c9cfe Spell noise correctly
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5809 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-02 00:49:41 +00:00
Russell Bryant
367fd1d3cf fix the one digit exit extension for RetryDial
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5807 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-01 18:02:46 +00:00
Russell Bryant
9d379a36d0 fix timeout option
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5806 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-01 17:23:50 +00:00
Jeremy McNamara
fc0f505c5f Apply a proper solution to resolve AST_MAX_ACCOUNT_CODE
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5805 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-01 16:00:13 +00:00
Mark Spencer
af9903eb05 Fix cdr.h ordering issue (bug #4401)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5789 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-30 14:30:47 +00:00
Mark Spencer
04be319867 Fix small sizeof bug (#4407)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5788 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-30 13:57:51 +00:00
Mark Spencer
5b55f3600b Fix attended transfer crash (bug #4404 with changes)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5787 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-30 13:51:04 +00:00
Mark Spencer
586c677bc2 Fix memory leak and remove useless coe (bug #4318, with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5786 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-30 13:34:23 +00:00
Mark Spencer
db99849187 Fix reply digest selection of size (bug #4409)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5785 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-30 13:27:12 +00:00
Mark Spencer
ed233f7e82 Fix the ordering fo some checks (bug #4406)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5784 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-30 13:23:10 +00:00
Mark Spencer
f4d629f4ca Fix language handling (bug #4399)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5783 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-30 13:16:29 +00:00
Russell Bryant
4e329973eb use DEFAULT_SIP_PORT (bug #4408)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5782 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-29 23:08:12 +00:00
Russell Bryant
8791d21995 hopefully the last commit to make things happy
across various versions of newt (bug #4388)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5780 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-28 01:37:47 +00:00
Mark Spencer
a67bb4c8fc Fix cast to int from pointer (duh!)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5779 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-27 21:10:06 +00:00
Malcolm Davenport
e596f53c9e Whoopsie :)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5778 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-26 20:31:40 +00:00
Mark Spencer
2f1e6379b3 Fix agent deadlock and remove braindead tags dependency
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5777 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-26 20:24:56 +00:00
Jeremy McNamara
8adbac17df Define AST_MAX_ACCOUNTCODE because chan_h323.h does not link to the Asterisk headers
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5776 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-26 16:21:22 +00:00
Russell Bryant
8b81d9e384 fix seg fault when the app is called on an invalid url (bug #4389)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5775 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-26 16:15:58 +00:00
Russell Bryant
dc21f68a95 don't play any sounds when using the quiet option (bug #4348)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5774 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-26 16:05:07 +00:00
Russell Bryant
2cd9d4c676 fix return value for ExecIfTime when time is outside of the specified range (bug #4380)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5773 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-26 15:50:50 +00:00
Mark Spencer
a6f2f031b3 Fix typo about maddr (bug #4386)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5772 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-26 15:06:24 +00:00
Russell Bryant
89de7daba9 fix usage of const char (bug #4388)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5770 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-26 12:01:55 +00:00
Josh Roberson
43866b0ef2 Change define __OSX__ to more appropriate __Darwin__ (in light of Darwin being open sourced, and able to run on x86, OSX isn't really suitable)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5769 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-25 21:56:50 +00:00
Josh Roberson
70b3b8730e Fix typo in chan_sip. (Bug #4376).
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5768 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-25 20:03:09 +00:00
Mark Spencer
2df83a9298 Fix SIP registration (bug #4138)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5767 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-25 17:45:31 +00:00
Mark Spencer
9d9ec72719 Fix sayunixtime for Danish (bug #3239)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5766 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-25 17:28:32 +00:00
Mark Spencer
41e7cc8154 Use defined AST_MAX_ACCOUNT_CODE (bug #4350)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5765 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-25 17:18:05 +00:00
Russell Bryant
9644f1dcfe various code cleanups (bug #4353)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5764 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-25 10:57:15 +00:00
Jeremy McNamara
5d5c4c97c7 Document model usage
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5763 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-24 22:43:34 +00:00
Jeremy McNamara
fa46a46ec1 Correctly implement the button templates in hopes to support more 79XX series phones. Needs testing, please report. Bug #4366
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5762 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-24 22:24:04 +00:00
Matthew Fredrickson
c055fcc9a7 (Hopefully!) last remaining changes for NFAS.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5761 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-24 15:30:10 +00:00
Matthew Fredrickson
e92b07d372 More updates for NFAS span/channel mapping
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5760 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-24 14:19:27 +00:00
Russell Bryant
4fcf27b681 print out appropriate message when no help text is available for a command
fix a seg fault when astmm is enabled (bug #4356)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5758 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-24 10:23:51 +00:00
Russell Bryant
5a1d81ac57 get rid of some compilation warnings
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5757 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-24 10:22:26 +00:00
Russell Bryant
d08dd1e1d8 remove seemingly useless write (bug #4299)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5756 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-23 23:16:43 +00:00
Matthew Fredrickson
91bfc89301 Bug in pri_find_principle
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5755 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-23 17:07:32 +00:00
Matthew Fredrickson
840a2ba5b4 Updates for new libpri set_message api
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5754 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-23 16:56:06 +00:00
Jeremy McNamara
2353f5925c Optimize global/user/peer configuration call options. Bug #4336
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5753 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-21 17:09:30 +00:00
Jeremy McNamara
39f884aaff Make debug output more precise. Bug #4345
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5752 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-21 16:27:57 +00:00
Matthew Fredrickson
ed76520002 Mods for IMPLICIT/EXPLICIT channel id selection support
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5751 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-20 19:09:21 +00:00
Kevin P. Fleming
102c76a9c8 make IF dialplan function handle quoted strings properly (bug #4322, with API mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5750 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-20 16:30:13 +00:00
Kevin P. Fleming
dd0c01fc2f clarify comments even more
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5749 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-20 13:58:39 +00:00
Kevin P. Fleming
e65df4cc67 add a little comment to keep someone else from having the same misunderstanding I had :-)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5748 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-20 03:52:27 +00:00
Kevin P. Fleming
77284bfaa6 fix Solaris compatibility issues (bug #4339)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5747 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-20 03:18:35 +00:00
Kevin P. Fleming
17e476378a make 'sip debug' work again (commands must be registered shortest-first when they start with the same words) (bug #4341)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5746 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-20 03:14:41 +00:00
Mark Spencer
f3cbf61cbf Add SET function (bug #4335)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5745 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-19 20:38:51 +00:00
Mark Spencer
ebd2196ab7 Revert improper patch from bug #4294
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5744 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-19 20:33:55 +00:00
Kevin P. Fleming
9ebf63696a minor doc fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5743 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-19 20:31:39 +00:00
Jeremy McNamara
ec9ce8db9d Make capbilities be connection specific versus for the whole endpoint. Bug #4334
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5742 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-19 19:13:19 +00:00
Mark Spencer
9c83ec2f25 Cache result from database function reads (conf call)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5741 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-19 17:49:14 +00:00
Kevin P. Fleming
db988c5b3a ensure that objects in docs are sorted alphabetically (bug #4333)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5740 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-19 17:08:39 +00:00
Jeremy McNamara
793182ea7d Fix memory leak, avoid uncessary abuse of memory and formatting tweaks. Bug #4282
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5739 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-19 16:17:08 +00:00
Kevin P. Fleming
b051cccb89 more Makefile tweaks
ensure mkdep can handle creating rules for files that are using double-colon rules


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5738 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-19 15:20:06 +00:00
Kevin P. Fleming
d5b50fc83d formatting cleanup (bug #4330)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5737 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-19 15:19:42 +00:00
Kevin P. Fleming
6ac98c6724 make version-testing and echo constructs more shell-portable
add proper attribution to vercomp.c


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5736 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-19 14:53:56 +00:00
Kevin P. Fleming
58a530eba8 remove unnecessary conditional logic (bug #4313, take two)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5735 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-19 12:51:58 +00:00
Kevin P. Fleming
041147243c ensure that peer-level RTP settings are actually used (bug #4313)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5734 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-19 04:49:12 +00:00
Kevin P. Fleming
c8889e6563 add IAXPEER function (bug #4310, with minor formatting and doc changes)
add note to CODING-GUIDELINES about minimizing indentation in function bodies


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5733 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-19 04:31:02 +00:00
Kevin P. Fleming
3dce570998 add more expr-related files to ignore
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5732 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-19 04:09:50 +00:00
Kevin P. Fleming
813f0b9653 use new C-coded version comparison program for bison and flex (bug #2058, with different Makefile changes)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5731 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-19 04:08:01 +00:00
Kevin P. Fleming
d83eec795f support labels as targets of SET PRIORITY command (bug #4057)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5727 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-19 02:57:45 +00:00
Kevin P. Fleming
3e7675e728 properly check for debug and verbose messages to suppress (bug #4294)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5726 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-19 02:54:23 +00:00
Kevin P. Fleming
a1779650de move variable declarations to top of function where they belong (bug #4303)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5724 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-19 02:49:34 +00:00
Russell Bryant
3c98814bb5 add 'dontwarn' option to asterisk.conf to appease the whining masses :p (bug #4320)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5723 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-19 01:57:19 +00:00
Mark Spencer
53d655cf0a Yet another set of jitter buffer changes (this time some scheduling improvements) (bug #4319)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5722 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-19 01:24:09 +00:00
Russell Bryant
364e179b78 check to see if a comma or an open paren came first when splitting the application
from the application arguments (bug #4306)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5721 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-19 01:18:37 +00:00
Russell Bryant
9d0a1ce4a8 fix moh option in conjunction with intro option (bug #4298)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5720 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-19 01:09:46 +00:00
Mark Spencer
9272e1f68a More jitter buffer fixes for large resync (bug #4311)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5719 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-19 00:34:28 +00:00
Russell Bryant
334fcaa369 note the change from "port" to "bindport"
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5718 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-19 00:24:31 +00:00
Mark Spencer
503be4c93a Merge skew reduction (bug #4222)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5717 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-19 00:01:11 +00:00
Mark Spencer
ee8cbfa872 Add IAX2 testing code (bug #4242)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5716 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-18 23:43:13 +00:00
Russell Bryant
85d809903b add DB_EXISTS function to be able to check if a key exists in the database
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5715 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-18 23:38:25 +00:00
Mark Spencer
28e5165284 Actually apply timestamp bug (bug #3961)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5714 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-18 23:33:06 +00:00
Russell Bryant
d07421064b provide a more explicit explination as to what the 'iaxcompat' option does
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5713 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-18 21:05:13 +00:00
Mark Spencer
38b7f7b4a4 Add optional call limit
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5712 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-18 01:49:13 +00:00
Russell Bryant
9f9fcca6c0 print out the IAX DATETIME IE in 'iax2 debug' in human readable form
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5711 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-17 19:41:09 +00:00
Russell Bryant
f03896d1fc remove call to pall on unitialied fds
This function assumes that the fd is nonblocking (bug #4053)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5710 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-17 18:30:44 +00:00
Russell Bryant
5477aca22d remove extra LOCAL_USER_REMOVE (bug #4308)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5709 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-17 17:19:53 +00:00
Russell Bryant
376bc46af5 prevent copying of NULL (bug #4307)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5708 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-17 16:45:42 +00:00
Russell Bryant
c4ebf00d48 correct syntax on DB function example
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5707 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-17 14:29:31 +00:00
Russell Bryant
5c1bad1114 fix description of length parameter
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5706 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-16 20:58:35 +00:00
Matthew Fredrickson
ee296ae8a9 Turn on the DSP for the channel after an ANSWER so that we get DTMF detected
properly


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5705 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-16 19:15:56 +00:00
Matthew Fredrickson
9b89127c75 Additions to chan_zap.c to receive PRI_EVENT_KEYPAD_DIGIT properly. Bug #4286
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5704 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-16 18:48:09 +00:00
Kevin P. Fleming
252bf2d652 SIP hold improvements (bug #4290)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5702 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-16 16:16:41 +00:00
Kevin P. Fleming
507ceb1a29 add 'zap show status' CLI command to display card/span status (bug #3585)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5701 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-16 14:41:05 +00:00
Kevin P. Fleming
ab0c02acfb correct file names to ignore
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5700 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-16 14:30:13 +00:00
Kevin P. Fleming
27a551a0eb temporarily suppress usage of vercomp.sh script until it can be fixed
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5699 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-16 13:51:56 +00:00
Kevin P. Fleming
1eecc81838 clean up message duration writing code (bug #4285)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5698 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-16 13:36:35 +00:00
Russell Bryant
0dc3f6ee76 add comments, fix typos, and add note on default values (bug #4284)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5696 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-16 13:22:34 +00:00
Kevin P. Fleming
361109c377 add ability to control output format for one-touch-record feature (bug #4190)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5693 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-16 00:43:16 +00:00
Kevin P. Fleming
68f6db3104 CVS ignore output files from building new expression parser
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5692 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-16 00:36:26 +00:00
Kevin P. Fleming
2a7d309deb add upgraded expression parser (bug #2058)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5691 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-16 00:35:38 +00:00
Kevin P. Fleming
0858dad2ad return CHANUNAVAIL for unregistered peers, not CONGESTION (bug #4276)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5690 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-16 00:09:09 +00:00
Kevin P. Fleming
2638192439 add EVAL function, deprecate Eval application (bug #4277)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5689 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-15 23:53:11 +00:00
Kevin P. Fleming
9cea81b035 rename SetVar application to Set, deprecate SetVar
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5688 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-15 23:32:38 +00:00
Kevin P. Fleming
9bf21dbf58 more strncpy -> ast_copy_string conversions, fixing some buglets along the way
add recommendation to CODING-GUIDELINES to use ast_copy_string instead of strncpy in new code


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5686 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-15 23:26:45 +00:00
Kevin P. Fleming
eaececc920 add ast_build_string library function (from bug #3644)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5684 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-15 22:33:02 +00:00
Kevin P. Fleming
fb59e4a857 combine two lines of code to make the logic clearer (bug #4273)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5683 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-15 22:05:16 +00:00
Jim Dixon
882eea1390 Fixed transmit/link hang problem and autopatch wierdness
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5682 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-15 21:49:35 +00:00
Kevin P. Fleming
e4e9f26cf0 update sample extensions.conf for new dialplan functions (bug #4279)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5681 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-15 20:04:05 +00:00
Kevin P. Fleming
ea4c054123 fix segfaults in realtime_peer/realtime_user when wrong-type realtime entry is loaded (bug #4266)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5680 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-15 20:00:08 +00:00
Kevin P. Fleming
fa60672d58 add dialplan functions for Caller ID, language and timeouts (bug #4219, with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5679 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-15 17:45:30 +00:00
Russell Bryant
bb1f05fba7 update Mark's email address
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5678 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-15 17:22:41 +00:00
Kevin P. Fleming
15f3cb303f support Swedish and Norwegian mailbox intros (bug #4227)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5677 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-15 17:03:08 +00:00
Kevin P. Fleming
f57d2825bc minor cleanups (bug #4158)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5674 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-15 05:46:34 +00:00
Kevin P. Fleming
131ace2d70 allow caller to exit during position announcement by pressing valid exit key (bug #3821, with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5673 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-15 05:42:51 +00:00
Kevin P. Fleming
ed223f7f90 add silent option to VMAuthenticate application (bug #4157)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5672 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-15 05:23:05 +00:00
Kevin P. Fleming
99f890b746 add script for grabbing core dump from running Asterisk process (bug #4174)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5671 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-15 05:07:14 +00:00
Kevin P. Fleming
3fbdf210ce fix up help text and output for 'iax2 trunk debug' CLI command (bug #4191)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5670 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-15 04:51:13 +00:00
Kevin P. Fleming
4910637da7 code formatting and comments, plus minor device state fix (bug #4171)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5669 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-15 04:48:30 +00:00
Kevin P. Fleming
7bcaa0caa2 code formatting cleanup (bug #4213)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5668 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-15 04:17:42 +00:00
Kevin P. Fleming
acffa5d930 implement more detailed hangup causes (bug #4214)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5667 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-15 04:11:01 +00:00
Kevin P. Fleming
5c88a00280 fix RTP DTMF for Sipura SPA-3000 (bug #3675, yet again)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5666 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-15 04:06:16 +00:00
Kevin P. Fleming
0f6315b6b2 fix build with older popt.h (bug #4225)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5665 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-15 03:32:20 +00:00
Kevin P. Fleming
6cd4f9a8d3 correct some signed/unsigned issues found by GCC 4 (bug #4237)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5664 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-15 03:21:51 +00:00
Kevin P. Fleming
977fd5a157 don't define a local function with the same name as a library function (bug #4239)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5663 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-15 03:18:16 +00:00
Kevin P. Fleming
0356b70224 add functions to register/unregister multiple CLI commands in a single operation (bug #4255, with minor mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5662 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-15 03:03:48 +00:00
Kevin P. Fleming
b5272684ee fix for dead manager connections to avoid deadlock (bug #4053)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5661 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-15 02:54:47 +00:00
Kevin P. Fleming
c382394360 add counters to 'show agents' CLI command (bug #4232)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5660 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-15 02:48:16 +00:00
Kevin P. Fleming
219541b5e0 various fixes:
use linked list macros for managing backend list (inspired by bug #4258)
  use ast_copy_string instead of strncpy when appropriate
  minor fixes and formatting cleanup
  add AST_LIST_HEAD_STATIC and AST_LIST_REMOVE_CURRENT macros


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5659 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-15 02:42:59 +00:00
Kevin P. Fleming
4515e94c39 various minor formatting changes and code cleanups (bug #4262)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5658 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-15 00:27:18 +00:00
Mark Spencer
e37adfa243 Add netstats option (bug #4175)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5657 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-15 00:15:14 +00:00
Mark Spencer
01424f1f05 Fix one way audio problem with iax trunking (bug #4221)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5656 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-15 00:07:42 +00:00
Mark Spencer
11aa5825fd Initialize target properly (bug #4167, take 2)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5655 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-15 00:03:17 +00:00
Mark Spencer
c936fc827c Add remainder of rtp fixes, iax2 patch (bug #3961)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5654 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-14 23:57:44 +00:00
Mark Spencer
060b71e52f Fix incorrect variable (bug #4243)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5653 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-14 23:45:22 +00:00
Kevin P. Fleming
23d7376f4d properly strip incoming padded RTP frames (bug #4264)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5652 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-14 23:41:12 +00:00
Kevin P. Fleming
d825e581f3 minor fix for refcount/flags to be unsigned
explicitly test refcount as a logical value for builtin_expect (thanks to rizzo for the cluebat!)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5651 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-14 23:32:31 +00:00
Mark Spencer
251e6bc2ed Fix logger check (bug #4260)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5650 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-14 23:28:47 +00:00
Mark Spencer
81643ec9c3 Remove double fout++ and comment on flag (bug #4267)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5649 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-14 23:26:37 +00:00
Russell Bryant
15623c07d1 clarify docs on ImportVar (that's for you, mog :p)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5647 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-14 00:36:55 +00:00
Jeremy McNamara
5af8df2b98 Formatting fixes and sanity checks Bug #4263
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5646 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-13 20:24:30 +00:00
Matthew Fredrickson
ef254b7819 Makefile update for codec_gsm.c to cross compile for powerpc (bug #4228)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5645 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-13 14:59:01 +00:00
James Golovich
7d26776adc Fix typo in chan_zap.c faclityenable != facilityenable
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5644 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-12 21:11:42 +00:00
Russell Bryant
7d3f5785e9 fix some more typos and clarity issues
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5643 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-12 20:47:23 +00:00
Malcolm Davenport
04274f46c3 Resolve Bug #4248
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5642 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-12 20:45:32 +00:00
Russell Bryant
e82344f7e0 fix a little typo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5641 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-12 20:36:40 +00:00
Russell Bryant
3a63967554 fix some lines that should not have been removed (bug #4251)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5640 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-12 19:21:41 +00:00
Russell Bryant
65a7d2ac76 fixes for the new jitter buffer (bug #4249)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5639 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-12 19:01:03 +00:00
Matthew Fredrickson
1febd6c72d Memory leak fixes Bug #4216
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5638 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-12 17:40:44 +00:00
Matthew Fredrickson
ba736889bf enable/disable facility ies
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5637 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-12 15:05:25 +00:00
Matthew Fredrickson
eae699533a zapata.conf for enable/disable of facility IEs
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5636 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-12 15:04:55 +00:00
Matthew Fredrickson
567dd8c1ea Set DNID for immediate calls (Bug #4220)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5630 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-11 15:03:11 +00:00
Jeremy McNamara
c224da2948 C++ formatting fixes, Log PWLib assertions, remove uncessary locking and to shut bkw up. Bug #4185
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5629 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-11 13:39:33 +00:00
Jeremy McNamara
e6be0236e5 Formatting fixes, proper locking and to shut bkw up. Bug #4185
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5628 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-11 13:27:49 +00:00
Jeremy McNamara
f3f322c990 Fix one way audio with some broken Endpoints and to shut bkw up. Bug #4164
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5627 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-11 13:20:32 +00:00
Jeremy McNamara
bd8ec48b6a Add specific gcc version to shut bkw up
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5626 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-11 12:45:39 +00:00
Matthew Fredrickson
31d5fab9cd chan_zap.c portion of PRI show debug command (Bug #3985)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5621 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-10 21:52:43 +00:00
Matthew Fredrickson
2bdce17b5a Fix to bug 4118
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5620 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-10 19:05:50 +00:00
Matthew Fredrickson
e70d3db697 Fix 'make clean' bug in for app (Bug 4230)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5619 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-10 18:52:09 +00:00
Russell Bryant
5f54bf2230 revert this patch ... THIS IS NORMAL OPERATION, see the bugnotes for details (bug #4107)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5618 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-10 04:26:34 +00:00
Mark Spencer
4bb4df2e94 Fix features + astmm interaction (bug #4217)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5613 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-09 14:28:53 +00:00
Mark Spencer
af65be5a59 Fix jitter issues with out-of-order audio (bug #4163)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5612 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-09 14:24:58 +00:00
Mark Spencer
6f76e2b705 Fix to makefile (bug #4215)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5611 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-09 14:20:11 +00:00
Mark Spencer
ea03a11e25 Jitter buffer improvements (bug #4167)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5610 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-09 13:56:43 +00:00
Mark Spencer
8b308bdb50 Provide proper code attribution for public domain gethostbyname_r
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5609 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-09 13:50:38 +00:00
Mark Spencer
49a7a4809a Removed unnecessary strip (bug #4181)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5608 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-08 18:11:55 +00:00
Mark Spencer
ee79fe4036 Fix improper config dir path (bug #4184)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5607 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-08 17:31:09 +00:00
Mark Spencer
b33a3aa3e2 Update groupcount / db documentation (bug #4200, etc)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5606 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-08 17:17:34 +00:00
Mark Spencer
fa2381c19c Fix formatting of functions (bug #4196, with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5605 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-08 17:10:58 +00:00
Mark Spencer
0e57cede55 Convert app_db to function variables (bug #4201)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5604 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-08 17:08:25 +00:00
Mark Spencer
f9417375dc Fix chan_spy on Solaris (bug #4204)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5603 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-08 17:01:42 +00:00
Mark Spencer
087eb40b76 Fix double unlock of hintlock (bug #4205)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5602 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-08 16:54:53 +00:00
Mark Spencer
82d52ffe35 Use maxdomainlen in chan_sip (bug #4212)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5601 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-08 16:49:28 +00:00
Mark Spencer
00bcbaaa05 Fix gethostname calls (bug #4198, with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5600 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-08 16:44:25 +00:00
Mark Spencer
fa0f44a347 Allow transfer to work without a tech (bug #4199)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5599 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-08 16:35:54 +00:00
Mark Spencer
45a92ba5c2 Fix French time (bug #4197)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5598 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-08 16:34:10 +00:00
Russell Bryant
7e83b3a4b1 now fix the formatting part (bug #4207)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5597 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-07 19:51:39 +00:00
Russell Bryant
6ce084b7e2 remove unreachable block of code (bug #4207)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5596 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-07 19:49:32 +00:00
Russell Bryant
fbbac7cd26 use ast_strcasestr (bug #4203)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5595 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-07 12:49:36 +00:00
Russell Bryant
a48f36c3c5 fix header description
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5594 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-07 06:01:30 +00:00
Russell Bryant
cccca96058 add my name for the functions I wrote
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5593 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-07 05:33:44 +00:00
Russell Bryant
852d05d94a add missing newline to warning message (bug #4183)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5591 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-06 07:15:08 +00:00
Mark Spencer
cd6ad266b5 Build as a single executable, work around Makefile issue
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5590 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-05 17:39:18 +00:00
Anthony Minessale II
6b7677e842 expose function execution routines and warn about trying to set a read-only cdr var
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5589 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-05 15:07:49 +00:00
Kevin P. Fleming
b0685838db oej deserves to be in CREDITS as much as anyone else :-)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5588 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-05 12:52:18 +00:00
Kevin P. Fleming
7cd4ac0ee1 clean up file headers
restore appropriate copyrights for functions that came from files with copyrights listed


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5587 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-05 12:48:52 +00:00
Kevin P. Fleming
6ec28c9f98 correct build on platforms that require PIC objects (bug #4179)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5586 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-05 12:43:04 +00:00
Kevin P. Fleming
59bc293d15 ensure generated files are ignored by CVS
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5585 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-05 05:56:34 +00:00
Kevin P. Fleming
f01e832eef add STRFTIME dialplan function (bug #4098, modified to use new funcs subdirectory)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5584 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-05 05:50:11 +00:00
Kevin P. Fleming
4d2537ae11 major re-work of dialplan functions, including:
- locking of functions list during registration/unregistration/searching
 - rename of function description structure to be consistent with the rest of the API
 - addition of 'desc' element to description structure, for detailed description (like applications)
 - addition of 'show function' CLI command to show function details
 - conversion of existing functions to use uppercase names to match policy
 - creation of new 'pbx_functions.so' module to contain standard 'builtin' functions
 - removal of all builtin functions from pbx.c and apps and placement into new 'funcs' directory


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5583 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-05 05:39:33 +00:00
Russell Bryant
e8bd5968ff function formatting and header order cleanup
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5582 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-05 03:16:07 +00:00
Kevin P. Fleming
0fddec0421 remove obsolete module (still available in CVS history if needed) (inspired by bug #4127)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5581 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-05 01:03:24 +00:00
Mark Spencer
824763970b Fix minor doc issue (bug #4145)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5580 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-04 19:50:36 +00:00
Kevin P. Fleming
358238b170 add app_dictate (bug #3893)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5579 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-04 19:33:33 +00:00
Mark Spencer
0575c11d72 Merge formatting changes (bug #4172)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5578 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-04 19:22:45 +00:00
Mark Spencer
2fcda7000b Minor protocol fixes (bug #4169)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5577 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-04 19:17:09 +00:00
Kevin P. Fleming
582b0b0711 document Zap dial string options in sample config (bug #4165)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5576 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-04 17:05:42 +00:00
Kevin P. Fleming
44b95a88d6 add doxygen docs for astobj.h (bug #4145, with minor mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5575 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-04 17:02:32 +00:00
Kevin P. Fleming
a0f2a2e7c4 remove hardcoded CDR() support from pbx_builtin_setvar_helper in favor of already-implemented CDR() function
make SetVar() options actually work as documented
remove SetVar() 'c' and 'r' options, since the CDR() function can provide this functionality
add 'r' option to CDR() function to control recursive retrieval/storage
(inspired by bug #4143, but without the SetVar syntax changes)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5574 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-04 15:56:44 +00:00
Kevin P. Fleming
ba9b384f58 fix obvious fault in ast_separate_app_args
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5573 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-04 15:26:03 +00:00
Kevin P. Fleming
6f118fe66a remove extraneous manual string termination
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5572 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-04 14:03:47 +00:00
Kevin P. Fleming
7d6ba573e5 move some debugging output to a higher debug level (bug #4119)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5571 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-04 04:49:32 +00:00
Kevin P. Fleming
9bd5c1d95b don't report EAGAIN as an error (bug #4128)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5570 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-04 04:43:30 +00:00
Kevin P. Fleming
aba598c26f fix build on FreeBSD (bug #4125)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5569 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-04 04:35:27 +00:00
Kevin P. Fleming
2be3c7ab57 add GROUP_COUNT and GROU_MATCH_COUNT functions, deprecate GroupCount and GroupMatchCount apps, remove GROUPCOUNT variable from README.variables (bug #4133, with doc update)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5568 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-04 04:13:31 +00:00
Kevin P. Fleming
b9bda6aa41 add MD5 and CHECK_MD5 functions, deprecate MD5 and MD5Check apps (bug #4123)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5567 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-04 04:05:34 +00:00
Kevin P. Fleming
523911c9b0 re-implement ast_separate_app_args with clearer code and in a way that doesn't fail with certain combinations of array size and delimiter count
add doxygen docs for ast_separate_app_args


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5566 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-04 03:43:10 +00:00
Kevin P. Fleming
135f392c62 solve memory leak and allow chan_mgcp to be unloaded (bug #4148)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5565 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-04 00:40:14 +00:00
Kevin P. Fleming
54da34ff0a return proper string from description function (bug #4150)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5564 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-04 00:33:46 +00:00
Kevin P. Fleming
1518301885 update doxygen configuration file to current version (bug #4144)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5563 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-04 00:18:35 +00:00
Kevin P. Fleming
38c513fd02 ensure the SIP socket is closed on module unload (bug #4149)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5562 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-04 00:14:58 +00:00
Kevin P. Fleming
50b9f0e970 fix breakage when ast_copy_string is used to copy substrings (bug #4146, but a different fix)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5561 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-03 23:51:20 +00:00
Jeremy McNamara
09ed70fcaf Fix one-way audio issues with CCM and possibly other [broken] endpoints. Bug #4135
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5560 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-03 18:58:50 +00:00
Jeremy McNamara
f0c47a88ba Fix one-way audio issues with CCM and possibly other [broken] endpoints. Bug #4135
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5559 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-03 15:47:35 +00:00
Kevin P. Fleming
a813234dcd simplify argument parsing in sip_prune_realtime
don't force register expiration when pruning realtime peers
provide feedback for successful single item prune operations


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5558 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-03 03:22:14 +00:00
Kevin P. Fleming
ba04eb12ef use symbolic constants for RTP method flags, and add debugging output to sip_alloc to indicate when RTP is/is not allocated (bug #3986)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5557 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-03 02:32:50 +00:00
Kevin P. Fleming
deb3c32a49 correct documentation for ast_sched_add (bug #4136)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5556 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-03 02:21:57 +00:00
Kevin P. Fleming
98a973007d ensure astdb registration entries are parsed properly (bug #4126)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5555 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-03 02:16:45 +00:00
Kevin P. Fleming
cd9a1226b5 ensure buffer size is computed properly for ast_copy_string
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5554 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-03 02:09:16 +00:00
Mark Spencer
7b576dd5cf Update README to discuss file descriptors (bug #4134)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5553 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-02 20:24:57 +00:00
Mark Spencer
f2c734ba04 Add support for native DTMF
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5552 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-02 20:16:21 +00:00
Jeremy McNamara
931e1debff Fix dtmfmode, dtmfcodec capability, Faststart for users and peers. Bug #4112
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5551 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-02 18:46:36 +00:00
Kevin P. Fleming
9a7b3b0347 testing has shown that ast_copy_string is nearly twice as fast as strncpy for the common use cases in Asterisk, so convert chan_sip over...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5550 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-02 13:44:38 +00:00
Kevin P. Fleming
fe6517959e change (iax2,sip) show (peers,users) to use 'like <pattern>' for pattern-matching to be consistent with other CLI commands
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5549 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-02 01:34:21 +00:00
Kevin P. Fleming
f0df8b7172 attempt to not allocate RTP ports for SIP private structures unless they are needed (bug #3986)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5548 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-02 01:15:23 +00:00
Kevin P. Fleming
abec217a1b add experimental ast_copy_string() function to be used in place of strncpy() (see discussion on asterisk-dev)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5547 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-02 00:27:54 +00:00
Kevin P. Fleming
405000c897 ensure that 'static' members of source files are documented too
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5546 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-01 23:57:12 +00:00
Kevin P. Fleming
dfd4f13f55 ensure object reference is removed after unlinking from container
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5545 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-01 23:17:12 +00:00
Kevin P. Fleming
8c087b7d73 make verbosity of function registration match apps/manager events/etc.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5544 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-01 23:09:28 +00:00
Kevin P. Fleming
f07020fa1c clean up reg_source_db
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5543 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-01 23:07:05 +00:00
Kevin P. Fleming
6cd346ebe1 add some notes regarding the distinction between applications and functions
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5542 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-01 19:34:50 +00:00
Kevin P. Fleming
ce6a7846c0 properly check for error from pri_timer2idx (bug #4117)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5541 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-01 18:47:53 +00:00
Kevin P. Fleming
b1826af735 add SIP_HEADER function, mark SIPGetHeader app deprecated (will be removed on 2005-05-31)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5540 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-01 18:37:37 +00:00
Kevin P. Fleming
7d4b53c57a add direct object unlink macro to ASTOBJ api
various minor cleanups in chan_sip


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5539 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-01 18:08:14 +00:00
Anthony Minessale II
fc619c1402 keep 3710 patch in working condition
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5538 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-01 02:35:32 +00:00
Kevin P. Fleming
0a93667e9c ensure that old modules warning does not occur when 'make install' is run directly after 'make clean'
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5537 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-01 01:43:44 +00:00
Kevin P. Fleming
82f888f457 enhance 'sip prune realtime' to support users as well as peers, and regex-based filtering
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5536 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-29 20:42:48 +00:00
Kevin P. Fleming
4319ece167 fix typo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5535 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-29 17:28:27 +00:00
Kevin P. Fleming
9b1eb11a3a fix *BSD breakage from include-order changes (bug #4067)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5534 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-29 17:24:58 +00:00
Kevin P. Fleming
8634ef9e4a don't use '%i' at all, since we have no current use cases that need non base-10 parsing (bug #4110)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5533 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-29 17:00:33 +00:00
Kevin P. Fleming
bef7a3ea37 formatting cleanup (bug #4109)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5532 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-29 16:13:04 +00:00
Kevin P. Fleming
ae90c1a014 make write() failures on Zap channels more prominent than 'debug' messages (bug #4107)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5531 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-29 15:32:44 +00:00
Kevin P. Fleming
57e4310265 support various other formats for Asterisk manual page (bug #4113)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5530 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-29 15:18:10 +00:00
Kevin P. Fleming
bced63033d make 'goto' APIs aware of auto-processing loops, so they know exactly when to set the requested priority or one priority lower
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5529 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-29 15:04:26 +00:00
Jeremy McNamara
8cd6529426 Rework astersk make process to be compatable with the Open H.323 build process. Bug #3981
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5528 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-29 04:37:02 +00:00
Jeremy McNamara
1ebd942a88 Rework astersk make process to be compatable with the Open H.323 build process. Bug #3981
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5527 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-29 04:30:51 +00:00
Jeremy McNamara
45f7567d70 Fix codec negiocation on inbound calls. Bugs 3980, 4021, 4045
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5526 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-29 04:22:47 +00:00
Kevin P. Fleming
b2c3f0464f unregister reload command (bug #4102)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5525 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-28 16:21:00 +00:00
Russell Bryant
c295b46e4b oops
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5524 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-28 16:19:40 +00:00
Matthew Fredrickson
cabd5e105a Add Q.SIG option to zapata.conf
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5523 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-28 03:25:02 +00:00
Jim Dixon
da9a73f4c9 Fixed problem with 'radio' attribute vanishing upon zap reload
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5522 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-27 23:44:24 +00:00
Kevin P. Fleming
7e058413fb allow fine-grained 'insecure' settings (bug #4024)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5521 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-27 17:04:17 +00:00
Kevin P. Fleming
1230770bb6 'make install' will now warn the user if their modules directory contains modules not installed by the newly-installed Asterisk
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5520 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-27 16:27:53 +00:00
Mark Spencer
55a6d4c1b5 Oops :)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5519 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-27 15:11:46 +00:00
Mark Spencer
b99c287ef6 Fix lockup in register timeout
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5518 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-27 15:06:23 +00:00
Kevin P. Fleming
ac639e80c3 during 'make install', remove any headers from the destination include/asterisk directory that are no longer present in the source directory (bug #4035)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5517 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-27 05:46:32 +00:00
Kevin P. Fleming
7acd3abe33 add patch from bug #3710 so it can get wider testing
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5516 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-27 05:22:36 +00:00
Kevin P. Fleming
a9831e75ee perform global variable substitution before splitting extension and cidmatch when reading in dialplan (bug #4035)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5515 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-27 04:52:58 +00:00
Ben Kramer
5c735f4c68 / changed the logging in vpb_call()
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5514 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-27 04:28:24 +00:00
Kevin P. Fleming
22ef00edde add manager events for Zaptel DND state changes (bug #4070, with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5513 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-27 04:03:49 +00:00
Mark Spencer
14fba8d8be Add option to park in the next slot (bug #4028)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5512 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-27 03:58:40 +00:00
Kevin P. Fleming
0fe9884e0b report IP of peer who sent failing registration (bug #4089)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5511 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-27 02:52:14 +00:00
Kevin P. Fleming
fefe2e8b4f protect ResponseTimeout and DigitTimeout apps from crashing when called in non-PBX channels (bug #4078)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5510 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-27 02:48:25 +00:00
Kevin P. Fleming
cd932e2234 reset 'confirm' mode so DTMF can be used by Zap callees after confirming (bug #4083)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5509 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-27 01:59:00 +00:00
Kevin P. Fleming
a1d24f740f help text cleanups (bug #4072, with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5508 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-27 01:50:53 +00:00
Kevin P. Fleming
2d643dbc42 don't use %i for numeric input in scanf (bug #4071)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5507 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-27 01:42:33 +00:00
Kevin P. Fleming
57b1bfcc73 support old single-column options for realtime voicemail (bug #4080)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5506 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-27 01:37:46 +00:00
Kevin P. Fleming
2a4265b406 formatting cleanup (bug #4088)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5505 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-27 01:29:28 +00:00
Matthew Fredrickson
aaee30edcc Missing E911 signaling type in sample zapata.conf
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5504 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-26 22:31:11 +00:00
Mark Spencer
7bedf24c8c If poll returns 0, force *ms to 0
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5502 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-24 22:54:50 +00:00
Kevin P. Fleming
f9876ccfa8 add guideline comment about not using '%i' with scanf
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5501 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-23 15:11:28 +00:00
Matthew Fredrickson
fd4dbd6c5c Support for new signaling type Feature Group D (MF) through a tandem access
point.  Also support for an output file to send your PRI debug information.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5500 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-22 19:10:35 +00:00
Kevin P. Fleming
d22b95c454 minor wording fix
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5499 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-22 14:16:42 +00:00
Kevin P. Fleming
199add9567 phase 1 of header include cleanup (bug #4067)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5498 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-22 13:11:34 +00:00
Kevin P. Fleming
e1dec7cda6 more clarification of time changes and how they affect Asterisk (bug #4020)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5497 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-22 04:39:41 +00:00
Kevin P. Fleming
c2ef8373c7 report the number of rows updated when using RealTime update method (bug #4066)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5496 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-22 03:29:03 +00:00
Kevin P. Fleming
06de953fbc add ability to send transferring party to a dialplan target after they blind transfer another party (bug #4056, with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5495 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-22 02:55:14 +00:00
Kevin P. Fleming
5a6d5c1751 ensure cause code supplied by IAX2 peer is passed up to caller properly (bug #4064)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5494 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-22 02:30:36 +00:00
Kevin P. Fleming
0687688042 ensure that res_config_odbc can handle columns with NULL values (bug #3787)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5493 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-22 01:59:53 +00:00
Kevin P. Fleming
e1d1a962c7 initialize errno and don't report an error when poll() returns without indicating one (bug #4059)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5492 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-22 01:40:23 +00:00
Kevin P. Fleming
a729a57ba1 fix various compiler warnings
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5491 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-21 06:30:23 +00:00
Kevin P. Fleming
1f9ab2380a use double-quotes instead of angle-brackets for non-system include files (bug #4058)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5490 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-21 06:02:45 +00:00
Kevin P. Fleming
35f2e4b8ae ensure that sequential DTMF sent via RTP has some 'dead air' between digits (bug #3675)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5489 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-20 16:46:25 +00:00
Kevin P. Fleming
f6ddf9b971 add count of parked calls to 'show parkedcalls' (bug #4023)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5488 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-20 16:27:44 +00:00
Kevin P. Fleming
6d05d785be correct default language setting for Background() app (bug #4044)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5487 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-20 16:11:16 +00:00
Kevin P. Fleming
e1e893d3b9 enhance documentation for string chopping (bug #4049)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5486 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-20 14:46:54 +00:00
Mark Spencer
f933db8c24 Fix docs for digit/response timeout to mention default values (bug #4050)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5485 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-20 14:40:47 +00:00
Jeremy McNamara
e3db569d62 update so people don't whine any more
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5484 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-19 00:31:56 +00:00
Kevin P. Fleming
3afbc3287f don't force transcoding through SLINEAR when transcoding is not needed at all
clean up formatting and variable names in ast_channel_make_compatible


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5483 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-18 16:26:41 +00:00
Mark Spencer
58172f4ff0 Note that big time changes can cause issues (bug #4020)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5482 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-17 17:39:14 +00:00
Mark Spencer
d3213d7f47 Fix locking issue (bug #4041)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5481 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-17 03:44:19 +00:00
Mark Spencer
4c228c3f7a Remove useless declaration (bug #4040)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5480 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-16 08:50:50 +00:00
Russell Bryant
eea0213fe4 formatting fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5479 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-15 17:34:14 +00:00
Russell Bryant
a3168fdc23 fix potential seg fault in my patch that just went in, oops
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5473 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-15 06:55:21 +00:00
Mark Spencer
fdff1f69b5 Add warning for _. match (bug #4032)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5471 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-15 06:08:47 +00:00
Mark Spencer
b49f1a7dfa Fix "show agents" when name is not present (bug #4030)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5470 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-15 05:51:30 +00:00
Mark Spencer
4b7e548d92 Add MusicOnHold to waitexten, update Background to use newstyle options (bug #4000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5469 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-15 05:47:40 +00:00
Mark Spencer
b5c7781d9f Add 'n' option to dial for "nojump" (bug #4034)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5468 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-15 05:30:27 +00:00
Russell Bryant
7bffc0459c add missing newlines, fix misspelling of nonexistent (bug #4027)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5467 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-13 23:33:47 +00:00
Mark Spencer
8d1744dd29 Add sched_when function (bug #4022)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5466 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-13 18:46:35 +00:00
Russell Bryant
42da18ec5f just formatting
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5465 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-13 16:43:26 +00:00
Matthew Fredrickson
b90f35b24f Fixed chan_alsa.c unload bug (bug #4019)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5464 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-13 16:24:45 +00:00
Matthew Fredrickson
559423d973 Fix so that asterisk continues to build if libcurl is not present or the correct
version. bug #3982.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5463 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-13 15:17:41 +00:00
Kevin P. Fleming
55eee86242 add help text for manager redirect command (bug #4015)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5462 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-13 05:45:53 +00:00
Kevin P. Fleming
30de08c187 support postfix options in voicemail apps (prefix options still supported using old syntax) (bug #4007)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5461 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-13 05:22:51 +00:00
Mark Spencer
b32b3c1e50 Fix dashes, etc
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5460 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-13 05:07:47 +00:00
Kevin P. Fleming
b052fe894b ensure that the random number generator(s) are always seeded with a different value during Asterisk startup
don't reinitialize random number generators in other modules
(bug #4017)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5459 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-13 04:47:39 +00:00
Ben Kramer
18e2c2e468 / updated to get it to use ast indications again after the change to ast_chan_tech stuff
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5458 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-13 04:15:23 +00:00
Russell Bryant
700bf3772a add missing newline (bug #4018)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5456 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-13 03:41:20 +00:00
Ben Kramer
f61b19eda8 / fixed an inverted test
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5455 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-13 03:16:38 +00:00
Russell Bryant
b4cf0acd8e document cdr_manager headers (bug #4016)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5454 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-13 01:52:11 +00:00
Kevin P. Fleming
36833ce138 correct portability problem (don't look inside regex_t)
correct enable/disable option name to match sample config file


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5453 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-12 14:11:59 +00:00
Russell Bryant
7b5e73c7a8 show correct codec in verbose messages (bug #4008)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5452 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-12 02:41:29 +00:00
Russell Bryant
e3e62817fa formatting fixes (bug #4009)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5451 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-12 02:37:37 +00:00
Mark Spencer
71a99bab18 Fix MGCP call waiting (bug #3971, with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5450 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-11 05:48:58 +00:00
Russell Bryant
a915aa4b69 correct descriptions for joinempty options (bug #3979)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5447 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-11 03:33:33 +00:00
Mark Spencer
bb1abed78f Add datetime to AGI (bug #3984)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5446 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-11 03:23:54 +00:00
Mark Spencer
922d62c39d Add calling party DTMF (bug #3994)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5445 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-11 02:46:25 +00:00
Mark Spencer
16661cc58f Add option to mask certain high frequency events (bug #3707)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5444 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-11 02:04:08 +00:00
Mark Spencer
0263e89354 Add documentation for TDS noting compilation problem on 0.63+
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5443 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-11 01:41:27 +00:00
Russell Bryant
700733784f formatting
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5442 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-10 21:43:03 +00:00
Mark Spencer
a3c09af463 Add member/queue filters to queuestatus manager command (bug #3995)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5441 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-09 18:58:44 +00:00
Mark Spencer
e87a53037e Forward text frames before answer (bug #3717)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5440 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-09 18:54:58 +00:00
Mark Spencer
a0fdba74dc Fix needless queue breakage for 2.95 (bug #3993) but this DOES NOT MEAN WE WILL WORK TOWARDS 2.95 IN THE FUTURE!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5439 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-09 18:43:04 +00:00
Matthew Fredrickson
d0bca8cd77 Revert back on incorrect libcurl fix :-(
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5438 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-07 22:20:07 +00:00
Matthew Fredrickson
3a57d2285a Bugfix for old versions of libcurl (#3982)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5437 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-07 21:18:14 +00:00
Mark Spencer
ff42a275f8 Match special case of wav49 behavior (bug #3975)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5436 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-07 19:25:52 +00:00
Mark Spencer
4b03dace5f Fix little formatting thingy
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5435 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-07 14:53:31 +00:00
Mark Spencer
b6f6544f3b Fix issue with global load_module symbol... hint: NEVER call "load_module();"
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5434 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-07 14:53:17 +00:00
Kevin P. Fleming
0e941a8dfc fix thinko in dnsmgr.c (lesson: don't commit while you are rushing to a meeting and then heading out of town...)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5433 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-07 07:41:06 +00:00
Kevin P. Fleming
110560781a preliminary "managed DNS lookup" support
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5432 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-06 21:13:51 +00:00
Kevin P. Fleming
d254db31c8 *** empty log message ***
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5431 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-06 21:12:32 +00:00
Mark Spencer
a7230de79a Correctly choose end of number (i.e. if it ends in 'w' with nothing following)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5430 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-06 19:17:21 +00:00
Kevin P. Fleming
b3613d3e48 re-implement realtime support in app_directory
add support for hiding entries from app_directory using new hidefromdir= option (bug #3950)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5429 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-06 18:55:33 +00:00
Russell Bryant
c66b66e45f actually space out the registrations :) (bug #3104)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5427 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-06 17:03:50 +00:00
Kevin P. Fleming
3fd8f01d7c ensure that successful configuration results in the module staying loaded (bug #3968)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5424 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-06 16:14:21 +00:00
Matthew Fredrickson
ea60d42f67 If an agent still has "wrapuptime" left after he finishes a call and the
wrapuptime is changed on a reload, he still waits his former wrapuptime (instead of
the new wrapuptime).  This reduces his "de facto" wrapuptime immediately to
the new value even if he has wrapuptime remaining from a previous call.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5423 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-06 16:06:05 +00:00
Mark Spencer
9cbc047b6a Fix ADSI 'B' issue (bug #3833)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5422 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-06 05:11:48 +00:00
Kevin P. Fleming
228f03ae87 use more efficient code to produce non-codec-capability list (bug #3960)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5421 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-06 03:43:59 +00:00
Russell Bryant
307f862c23 note that the weight has a special meaning for e164
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5420 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-06 03:36:39 +00:00
Russell Bryant
e6628a8003 document the 'weight' option
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5419 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-06 03:33:30 +00:00
Russell Bryant
1c36c41f1e clarify information on time waited for a response
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5418 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-06 02:54:59 +00:00
Kevin P. Fleming
f5ac6f6c2e correct error in doxygen docs
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5417 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-06 02:06:27 +00:00
Kevin P. Fleming
c7c20f8656 report non-codec capabilities in 'sip debug' properly (bug #3960)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5416 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-05 23:34:56 +00:00
Kevin P. Fleming
45c92426e3 correct queue sample config file (bug #3964)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5415 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-05 21:42:40 +00:00
Kevin P. Fleming
864f6a50b8 ensure that MGCP AMA flags are passed into CDR (bug #3962)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5414 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-05 21:40:37 +00:00
Kevin P. Fleming
2650a7f2ae optimize frame handling in agent_read()
ensure that the call is marked acknowledged when it goes to AST_STATE_UP even if AST_CONTROL_ANSWER is not received (if ackcall is disabled)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5413 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-05 21:30:24 +00:00
Matthew Fredrickson
d41e65cd0d Merging AOC notifications for bug #3843
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5412 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-05 20:23:26 +00:00
Mark Spencer
c8f858f2aa Alerting *can* be sent after proceeding (bug #3963)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5411 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-05 19:40:37 +00:00
Russell Bryant
a7e9416c89 don't define a functioning returning an int inside of a do{...}while(0) (bug #3865)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5409 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-05 17:04:51 +00:00
Kevin P. Fleming
f63923ae29 ensure account code specified in mgcp.conf propagates to CDR (bug #3951)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5390 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-05 04:41:15 +00:00
Kevin P. Fleming
b6151c5141 correct french pronounciation of years between 1900 and 1999 (bug #3949)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5389 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-05 04:26:59 +00:00
Kevin P. Fleming
5b41f40c31 update manager interface documentation (bug #3936)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5388 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-04 23:47:47 +00:00
Kevin P. Fleming
8b2b938b7e correct IAX loading/binding message (bug #3953)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5387 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-04 23:41:34 +00:00
Kevin P. Fleming
f9f59ae89d move start_network_thread to _before_ testing its result :-) (bug #3952)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5386 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-04 23:32:11 +00:00
Kevin P. Fleming
6f86f6766b make the manager interface list the privileges required for each command (bug #3917)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5385 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-04 16:18:11 +00:00
Kevin P. Fleming
72ccf76581 let ast_say_digit_str say 'minus' preceding negative numbers (bug #3948)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5384 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-04 16:10:09 +00:00
Jeremy McNamara
4c736c3600 Better dependancy and version checking method, solve call problems when dealing with a gatekeeper, sanity check call cleanup, in hopes to avoid deadlocks (Bugs #3848 #3643, #3591)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5383 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-04 15:54:34 +00:00
Mark Spencer
e06257cf2e Fix MGCP *67 to automatically reset callerid (bug #3940)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5382 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-04 14:14:19 +00:00
Jeremy McNamara
0efb0da41f Better dependancy and version checking method, solve call problems when dealing with a gatekeeper, sanity check call cleanup, in hopes to avoid deadlocks (Bugs #3848 #3643, #3591)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5379 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-04 07:06:26 +00:00
Kevin P. Fleming
e7bbe31f8f optimize codec selection and format changing code
force all transcode paths to use AST_FORMAT_SLINEAR as the frames pass through the bridge (can be disabled using the 'transcode_via_sln' setting in th 'options' setting in asteris.conf)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5376 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-04 03:28:38 +00:00
Kevin P. Fleming
bbc8c2ce6f fix breakage from slin endianness commit earlier today (sorry :-()
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5375 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-04 02:13:40 +00:00
Kevin P. Fleming
9f5b92a27f one more FreeBSD compile warning fix (bug #3938)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5374 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-03 23:23:36 +00:00
Kevin P. Fleming
b96ae79baa handle AST_FORMAT_SLINEAR endianness properly on big-endian systems (bug #3865)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5373 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-03 22:57:18 +00:00
Kevin P. Fleming
7e3e619497 further thought says '!' is a better early-match wildcard (bug #3889, take 2)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5372 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-03 22:24:17 +00:00
Kevin P. Fleming
be563d29a0 add docs for bug #3889
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5371 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-03 21:34:35 +00:00
Kevin P. Fleming
ee9c852b4d add 'early-match' wildcard for extension patterns (bug #3889)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5370 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-03 21:32:33 +00:00
Kevin P. Fleming
6ae8903fd8 fix obvious coding error from yesterday's fix
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5369 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-03 21:25:45 +00:00
Kevin P. Fleming
b4f4e23000 remaining endian.h fixes for FreeBSD (bug #3867)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5368 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-03 21:25:08 +00:00
Kevin P. Fleming
7438526620 fix various compiler warnings (bug #3938)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5367 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-03 21:16:01 +00:00
Kevin P. Fleming
3c7c893e6e ensure that needed headers are included for chmod() and mkdir() (bug #3937)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5366 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-03 20:25:43 +00:00
Anthony Minessale II
24a710bad2 forgot some code from the last chanspy repass (nothing exciting)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5365 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-03 15:46:22 +00:00
Russell Bryant
d23b94c206 add note about autofallthrough
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5364 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-03 00:25:21 +00:00
Kevin P. Fleming
d2ad9e17c8 clean up formatting (bug #3934)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5363 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-02 23:31:29 +00:00
Kevin P. Fleming
66568b0f66 Resolve app_meetme crash when member tries to mute/unmute (bug #3899)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5362 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-02 23:26:27 +00:00
Kevin P. Fleming
71f2c0c6ec don't unnecessarily open-code strchr()
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5361 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-02 23:20:11 +00:00
Russell Bryant
64ee493b54 remove old iax.h
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5360 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-02 22:42:48 +00:00
Kevin P. Fleming
4597c9a9e8 add VM_MESSAGEFILE channel variable to hold path to message left by caller (bug #3926, plus doc update)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5357 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-02 01:08:55 +00:00
Kevin P. Fleming
6ac2bb1e88 correct 'sync' setting for manager-originated calls (bug #3922)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5356 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-02 00:58:33 +00:00
Kevin P. Fleming
604ebd84aa use local header for transfer definitions instead of libpri.h
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5355 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-01 23:56:32 +00:00
Kevin P. Fleming
4f0e5637a9 strip color code sequences from verbose messages being sent to files/syslog (bug #3929, with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5354 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-01 23:49:57 +00:00
Kevin P. Fleming
565398f5e8 add FIELDQTY function to split variable contents and get any desired field (bug #3731)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5353 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-01 22:03:17 +00:00
Kevin P. Fleming
33801137f8 don't take the channel list lock until we're actually ready to put the new channel into the list in ast_channel_alloc (bug #3928)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5352 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-01 21:38:17 +00:00
Kevin P. Fleming
3da361ee77 optimize file reading in pbx_spool (bug #3927)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5351 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-01 21:31:12 +00:00
Kevin P. Fleming
c4ca6bf492 make CVS ignore tags-related files and Mac OS X object files
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5350 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-01 21:28:40 +00:00
Kevin P. Fleming
c3ecb8741c add tags-related files to .cvsignore
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5349 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-01 21:24:22 +00:00
Kevin P. Fleming
2fb8143f3a add ctags and etags support to Makefile
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5348 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-01 21:18:39 +00:00
Kevin P. Fleming
0403510bbd Fix up formatting and a few typos/poor grammar in pbx.c (bug #3924)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5347 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-01 19:56:35 +00:00
Kevin P. Fleming
793040a782 revert previous commit... was the wrong fix (my first oops)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5346 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-01 19:39:58 +00:00
Kevin P. Fleming
3cc8b20876 ensure that variables supplied to ast_pbx_outgoing_exten are applied to the channel even in 'sync' mode (bug #3922, for HEAD only)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5345 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-01 19:24:29 +00:00
Matthew Fredrickson
e07986caba Forgot to add app_settransfercapability.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5344 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-01 18:46:21 +00:00
Kevin P. Fleming
3ca72cb08a ensure that failure to register the cdr_custom backend results in a module load failure
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5343 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-01 17:31:41 +00:00
Matthew Fredrickson
b81f233e68 Merging in xylome's beaerer capabilty patch (bug 3547)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5342 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-01 17:00:50 +00:00
Kevin P. Fleming
41c684c4a3 clarify licensing text in README
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5341 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-01 17:00:01 +00:00
Anthony Minessale II
aef8538148 Finishing touches and addition of record flag to ChanSpy <pay up jets\!>
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5340 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-01 16:09:52 +00:00
Kevin P. Fleming
2059316463 Put syslog facility/level name into filename field, so it will show in 'logger show channels' (bug #3916)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5339 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-01 16:09:21 +00:00
Kevin P. Fleming
661770497b Allow chan_iax2 to build on systems that don't define SO_NO_CHECK (bug #3908, round 2)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5338 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-01 15:52:26 +00:00
Kevin P. Fleming
2097977b7d Add 'iax2 reload' CLI command and fix peer counting with regex matches (bug #3876)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5337 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-01 04:50:21 +00:00
Kevin P. Fleming
93c8e08989 Update README to reflect modern Asterisk features and requirements
Add note in UPGRADE.txt about compiler requirements
Add note to CODING-GUIDELINES about new policy for CLI command structure


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5335 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-01 04:38:12 +00:00
Mark Spencer
6e764dc097 Fix spool files that lack their last return
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5332 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-01 03:41:08 +00:00
Mark Spencer
07b9a5e800 Add slackware initialization (bug #3900)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5331 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-01 03:39:45 +00:00
Mark Spencer
5ed63ffc87 Add CDR custom config warnings (Borga borga!) :)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5330 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-01 03:38:35 +00:00
Anthony Minessale II
7d2b59410d fix codec timing issues
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5326 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-01 01:03:22 +00:00
Mark Spencer
f0380197a9 Fix jitter buffer for call recording (bug #3826)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5324 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-31 21:52:17 +00:00
Mark Spencer
6ea8bf36f8 Fix IAX2 out of memory failure (bug #3907)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5323 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-31 19:29:54 +00:00
Mark Spencer
1e477ed10f Fix RTP checksums config option (bug #3908 with minor mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5322 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-31 19:09:48 +00:00
Mark Spencer
642059b2e4 Make logger respond better to lack of disk space and add "logger show channels" CLI (bug #3909 with minor mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5321 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-31 19:08:51 +00:00
Mark Spencer
b6fd23d966 Fix build without zaptel (bug #3901)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5320 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-31 19:07:27 +00:00
Mark Spencer
c318a06f14 Fix strict mode for queues (bug #3913)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5319 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-31 19:06:08 +00:00
Anthony Minessale II
3e6f5dfcae more optimizations
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5318 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-31 19:00:40 +00:00
Anthony Minessale II
e03ed12e00 minor tweak and optimization for chanspy
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5317 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-31 18:00:35 +00:00
Anthony Minessale II
318406a0c5 unconfigured cdr_custom should not be fatal
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5316 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-31 15:55:44 +00:00
Mark Spencer
13bdb56867 Fix name of conf file sample
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5315 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-31 15:51:32 +00:00
Mark Spencer
0beb05fac4 Fix load of cdr_custom
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5314 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-31 15:50:15 +00:00
Mark Spencer
d4781cb4d1 Fix custom CDR error (thanks kpfleming)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5313 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-31 05:54:25 +00:00
Mark Spencer
c4ebbd5b2e Use requested extension (bug #3894)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5312 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-31 03:25:55 +00:00
Mark Spencer
886b082880 Make bridging more efficient
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5311 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-31 03:00:37 +00:00
Anthony Minessale II
1c7fef7ece increase queue length of chanspy queue
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5310 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-30 22:09:01 +00:00
Anthony Minessale II
cb80b98c7d fix dial a channel on chanspy
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5309 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-30 16:57:59 +00:00
Anthony Minessale II
c02caf1e91 add missing newlines (part2)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5308 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-30 16:28:28 +00:00
Anthony Minessale II
6afb37c9ae add missing newlines
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5307 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-30 16:20:53 +00:00
Anthony Minessale II
0cc737f9ac increase buffer space
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5306 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-30 16:07:07 +00:00
Mark Spencer
b8a9e7558f Add say date to AGi (bug #3768)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5305 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-30 07:00:49 +00:00
Mark Spencer
cadd117ed0 Add fixup to chan_phone (bug #3825)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5304 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-30 06:39:39 +00:00
Mark Spencer
d3ba986fff Take out unimplemented comment from logger.conf (bug #3890)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5303 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-30 06:33:44 +00:00
Mark Spencer
3784f83bed Fix CC (bug #3895)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5302 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-30 06:31:42 +00:00
Mark Spencer
f3b51061e4 Add option to disable checksums on IAX
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5301 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-29 23:20:31 +00:00
Anthony Minessale II
c5df0c5e49 fix group and arg parsing bug
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5300 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-29 17:46:37 +00:00
Mark Spencer
9a019128c6 Fix beep logic error (bug #3888)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5299 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-29 06:34:50 +00:00
Mark Spencer
6347ced74a Little say numer fix (bug #3884)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5298 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-29 06:21:21 +00:00
Mark Spencer
b02fd7a66d Make sure ExecIf stuff returns properly (bug #3864)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5297 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-29 06:18:58 +00:00
Mark Spencer
eb91006b7c Allow functions to be written to (bug #2278, with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5296 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-29 06:16:49 +00:00
Mark Spencer
f966e5e186 Simplify endianness and fix for unaligned reads (bug #3867)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5295 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-29 04:49:24 +00:00
Mark Spencer
bf940e8928 No need for sizeof (bug #3887)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5294 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-28 20:57:59 +00:00
Mark Spencer
dc9faa21e4 Fix a bunch of const stuff, merge queue changes, add experimental "hybrid" DTMF mode
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5293 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-28 20:48:24 +00:00
Mark Spencer
5c12ec4755 Clear out received tag in 407/401's (bug #3885)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5292 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-28 19:37:34 +00:00
Mark Spencer
200b967871 Delete cross targets for gentone and friends
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5291 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-28 16:28:00 +00:00
Mark Spencer
49ad55b85a Continue with GET_DATA if no file is there (bug #3878)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5290 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-28 07:08:39 +00:00
Mark Spencer
74075be1c4 Don't forget blank header in notify (bug #3877)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5289 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-28 07:06:28 +00:00
Mark Spencer
4fbb1a57c4 Cleanup SIP method stuff a little
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5284 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-28 05:23:04 +00:00
Mark Spencer
edf265741e Fix chanisavail typo that forced "state" mode (bug #3873)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5282 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-27 23:01:55 +00:00
Mark Spencer
4253cfd233 Avoid excessive "PROGRESS" messages (bug #3807)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5281 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-27 22:48:55 +00:00
Mark Spencer
8fa566e5ed Add load tester (bug #3870)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5280 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-27 22:44:09 +00:00
Mark Spencer
ff62953662 Oops, make good on my word :)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5279 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-27 22:39:51 +00:00
Mark Spencer
a0a2592025 Fix cross compiling (bug #3868)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5278 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-27 22:39:17 +00:00
Mark Spencer
b0b916c16c Fix app bug, update skel example, add skel to makefile as option (bug #3869)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5277 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-27 22:29:57 +00:00
Mark Spencer
03da4fbf3b Add VM_CONTEXT for substitution (bug #3872)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5276 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-27 22:13:20 +00:00
Mark Spencer
1ce96b63c0 Repair danish format (bug #3239)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5275 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-27 22:07:39 +00:00
Mark Spencer
df81f135e4 GCC 4 fix (bug #3875)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5274 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-27 21:58:10 +00:00
Russell Bryant
a35dab18bd fix a typo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5273 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-27 07:19:11 +00:00
Mark Spencer
32b3083ba8 Make status update on agents properly
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5272 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-27 02:09:06 +00:00
Mark Spencer
fdc402153d Minor formatting fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5271 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-27 02:08:37 +00:00
Russell Bryant
cd0655bf89 formatting fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5270 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-26 21:01:59 +00:00
Anthony Minessale II
eaa4b200d2 fix volfactor
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5269 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-26 17:40:00 +00:00
Mark Spencer
09d0d0181c Fix upgrade documentation to mention new manager event
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5268 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-26 15:33:52 +00:00
Mark Spencer
41b5832562 Fix discriptions / options (bug #3863)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5267 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-26 15:22:15 +00:00
Mark Spencer
c72d7a5c2c Fix order of priority reading / file reading (bug #3860)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5266 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-26 07:16:18 +00:00
Mark Spencer
2bc067a740 Implement fax detect within i4l (bug #3827)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5265 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-26 07:12:19 +00:00
Mark Spencer
e8a453e89d Fix timeouts when no-password used (bug #3859)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5264 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-26 07:08:47 +00:00
Mark Spencer
e6e2e59b4d Make sure AGI continues even when files aren't there (bug #3862)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5263 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-26 05:33:48 +00:00
Mark Spencer
c4f66c2c33 Fix DTMF formatting (bug #3853)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5261 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-25 21:05:08 +00:00
Mark Spencer
141b2b7d39 Don't use deprecated "2" location for G.726 (rfc3551)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5260 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-25 21:01:11 +00:00
Russell Bryant
85cbfad384 reflect actual format of ${DATETIME} in the docs (bug #3857)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5259 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-25 17:56:26 +00:00
Russell Bryant
6f85337227 remove channel_pvt.h
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5258 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-25 17:12:40 +00:00
Mark Spencer
39ca88f776 Fix fork CDR seggy (bug #3855)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5257 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-25 16:24:12 +00:00
Mark Spencer
03f5290b89 Add SIP real authentication (bug #3782)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5256 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-24 23:06:21 +00:00
Mark Spencer
78d9eee141 Fix OSS endian issues in OSS (bug #3846)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5255 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-24 22:01:56 +00:00
Russell Bryant
1398781ee7 show correct seq no in debug output (bug #3849)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5254 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-24 22:00:23 +00:00
Mark Spencer
122d0d8de6 Add custom CDR (bug #3595)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5253 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-24 21:57:42 +00:00
Mark Spencer
c3b2a120d4 Add missing sounds
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5252 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-24 21:56:58 +00:00
Mark Spencer
8aa722871d Add additional fields for calling parameters per BT request
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5251 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-24 16:38:13 +00:00
Mark Spencer
2a89687393 fix repark of timed out parked calls (bug #3777)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5250 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-24 05:37:59 +00:00
Mark Spencer
e7b18536c4 Fix SIP/IAX caching (bug #3671)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5249 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-24 05:02:49 +00:00
Mark Spencer
070f50ccc7 Fix sound files
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5248 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-24 03:31:53 +00:00
Anthony Minessale II
fee4bb4bab doh channel_pvt.h ?
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5247 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-24 03:31:07 +00:00
Anthony Minessale II
ba6613e769 forgot to fix this
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5246 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-24 03:24:51 +00:00
Anthony Minessale II
4d48644182 Fix the mysterious missing if
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5245 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-24 03:04:45 +00:00
Russell Bryant
e99e1fffde remove header that no longer exists
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5244 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-24 02:47:19 +00:00
Mark Spencer
4264fb193d Fix weird permissions
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5243 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-24 01:19:37 +00:00
Mark Spencer
11e6204974 Add chanspy (bug #3836)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5242 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-24 01:19:02 +00:00
Mark Spencer
d8daf09817 fix endianness of OSS/Alsa (bug #3839)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5241 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-24 00:55:40 +00:00
Mark Spencer
ef6b032456 Add sounds for chanspy
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5240 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-24 00:55:01 +00:00
Mark Spencer
f5b6b2b953 Make sure regtimeout is initialized (bug #3845)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5239 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-24 00:53:18 +00:00
Mark Spencer
29ce32912d Merge API changes for chanspy
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5238 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-23 21:52:31 +00:00
Russell Bryant
f0c880d6f6 silly typo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5237 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-23 21:45:05 +00:00
Mark Spencer
aa25b367d6 Allow resetinterval to be "never"
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5236 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-23 21:12:01 +00:00
Mark Spencer
4e156d3435 Fix portability (Bug #3842)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5235 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-23 20:42:49 +00:00
Mark Spencer
730194d609 Merge Russell's formatting patch (bug #3838)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5234 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-23 05:56:32 +00:00
Mark Spencer
d5455abe17 Fix wav format (bug #3837)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5233 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-23 04:30:31 +00:00
Mark Spencer
ff47b7ec31 Make sure that waitfordigit_full doesn't hangup on -EINTR (bug #3831)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5232 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-22 22:44:55 +00:00
Mark Spencer
e93e62e29b Ignore interrupted system calls (bug #3831)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5231 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-22 20:34:04 +00:00
Mark Spencer
6265cd3125 Fix OpenBSD compile (bug #3824)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5230 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-22 19:24:32 +00:00
Mark Spencer
ea5228686c Fix chan_agent segfault (bug #3590)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5229 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-22 19:10:21 +00:00
Mark Spencer
fea72cb65d Fix SIP realtime bug (somehow didn't get committed yesterday)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5228 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-22 19:09:47 +00:00
Mark Spencer
6e420b3c38 Fix manager declarations
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5227 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-22 19:09:12 +00:00
Mark Spencer
4e70bbc3b2 If the D-channel goes down and comes back up, consider it "up" on any event other than a pri down event.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5226 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-22 16:26:54 +00:00
Mark Spencer
c446ba8b76 Fix queue weight issue (bug #3797, take 2)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5225 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-21 22:08:36 +00:00
Mark Spencer
ceadbd2d91 Make sure we don't accept streams we can't handle (bug #3818)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5224 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-21 15:09:10 +00:00
Mark Spencer
1507997410 Add README for jitter buffer (bug #3812), make src char *src a const
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5223 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-21 04:30:57 +00:00
Mark Spencer
ebc1c06835 Fix channel variables on cloned channels (bug #3804)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5222 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-21 04:18:50 +00:00
Mark Spencer
00ffb24b83 Revert broken portion of 3815 (bug #3816)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5221 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-21 03:23:05 +00:00
Mark Spencer
b0fa3b6450 Update SIP/IAX documentation and code (Bug #3810)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5220 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-21 02:17:36 +00:00
Mark Spencer
8085c618c0 Cleanup side effect sof meetme changes (bug #3815)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5219 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-21 02:06:58 +00:00
Ben Kramer
c6822b3fb1 / changed ast_channel_tech structure init to the GCC-specific format, seems
/ to compile, but havent run it yet


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5218 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-21 00:05:57 +00:00
Ben Kramer
6f5e43a60f / updated ast_channel_tech structure init.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5217 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-20 22:47:12 +00:00
Mark Spencer
9312b0c81c Fix minor formatting issue
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5216 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-20 18:02:45 +00:00
Mark Spencer
e31fd63b35 Add SIPPeers and SIPShowPeer manager events (bug #3693 with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5215 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-20 07:54:05 +00:00
Mark Spencer
51226db44f Fix chopping of voice prompts (bug #3784)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5214 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-20 07:32:03 +00:00
Mark Spencer
d0e9afeb2b Minor sipredirect fixes (bug #3789)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5213 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-20 03:43:37 +00:00
Mark Spencer
87bbe6ee7a Add count of users in conference (bug #3215)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5212 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-20 03:04:46 +00:00
Mark Spencer
6d63970147 Fix PLC for BSD (bug #2532)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5211 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-20 02:53:48 +00:00
Mark Spencer
5c3c5fb65c Fix "," to "." notation.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5210 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-20 02:48:41 +00:00
Mark Spencer
7353c879b0 Comment on sensitivity (bug #3802)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5209 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-20 00:49:31 +00:00
Mark Spencer
2af2747634 icseq increments only on requests, not responses (bug #3798)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5208 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-19 23:40:19 +00:00
Mark Spencer
ef1b495d45 Strengthen RFC conformity with respect to tags and stupid SIP complexities.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5207 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-19 22:47:32 +00:00
Mark Spencer
0d63eccb11 Fix "little crash" in inuse handling (bug #3792)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5206 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-19 22:42:29 +00:00
Mark Spencer
860eb98007 Fix queue stuff (bug #3797)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5205 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-19 17:35:59 +00:00
Mark Spencer
1205aaa664 Fix tag issue (bug #3795)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5204 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-19 17:31:33 +00:00
Anthony Minessale II
a8e79d3830 fix typo per stevek's req
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5201 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-18 00:32:49 +00:00
Mark Spencer
f9cfe60312 Add support for Solaris/x86 (bug #3064)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5199 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-17 23:12:15 +00:00
Mark Spencer
4c4264a448 Reorganize SIP code to make more readable (bug #3781)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5198 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-17 23:03:07 +00:00
Mark Spencer
47979c3e73 Make sip debug easier to read (bug #3785)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5197 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-17 22:58:44 +00:00
Mark Spencer
1719cd39d3 Add 'G' option to dial (bug #3786)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5196 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-17 22:39:04 +00:00
Mark Spencer
e92efc3742 Fix PLC for BSD
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5195 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-17 22:38:10 +00:00
Mark Spencer
0b37575aac Add missing plc.h
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5194 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-17 21:53:42 +00:00
Matthew Fredrickson
f146ecea99 Fixed Parking bug where SIP calls would loose MOH after an attended transfer to
the park extension.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5193 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-17 21:52:57 +00:00
Mark Spencer
7082d0584e Add PLC and jitter buffer and iax2 meta trunk with timestamps (bug #2532, #3400)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5192 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-17 21:30:19 +00:00
Mark Spencer
6546acebfb Add comments for hints (bug #3783)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5191 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-17 21:05:10 +00:00
Mark Spencer
ecec5ad9fc Merge improved announcements for conferences with leader (bug #2382)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5190 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-17 20:29:51 +00:00
Mark Spencer
0b23f4a6a7 Merge builtin If function (bug #3779)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5189 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-17 20:20:37 +00:00
Mark Spencer
488595c759 Cleanup registration expirey with realtime (bug #3751)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5188 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-17 16:11:19 +00:00
Mark Spencer
3fa3e8539d Merge config sample updates mentioning reload (bug #3697)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5187 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-17 15:56:55 +00:00
Josh Roberson
48b6ab921b Fix help and command line completion for "show config mappings" (Bug #3766)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5185 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-17 00:35:06 +00:00
Mark Spencer
f0449777db Fix missing newline to notice (bug #3775)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5183 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-16 18:33:56 +00:00
Mark Spencer
288fc53399 Update spec file
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5182 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-16 16:51:45 +00:00
Ben Kramer
72c039758c / implementing callpickup
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5181 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-16 04:53:30 +00:00
Mark Spencer
6b20a0f5db Inherit variables across local channel (bug #3769)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5180 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-16 04:01:28 +00:00
Mark Spencer
c6c9c0a3ed Merge tony's refactoring code with small mods (bug #3710)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5179 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-15 05:50:58 +00:00
Mark Spencer
5e8a912baf Fix serious typo (code segment was only enabled with verbose!)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5178 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-14 05:51:20 +00:00
Mark Spencer
cb9d518b3e Record read size
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5177 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-14 01:05:34 +00:00
Mark Spencer
31bc43c48b Fix casting error (bug #3681, take 2)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5176 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-12 16:58:04 +00:00
Mark Spencer
2dae49b723 Fix TXTCIDName app (bug #3681)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5175 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-12 06:56:22 +00:00
Mark Spencer
4397ade80e Improve mandrake init files (bug #3699)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5174 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-12 06:50:22 +00:00
Mark Spencer
62efe4f3b0 Cleanup variable name, add restoration of format (bug #3759, with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5173 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-12 06:00:05 +00:00
Mark Spencer
c44349ed1e Fix speex build (bug #3761)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5172 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-12 05:53:32 +00:00
Mark Spencer
2deba424d2 Create experimental new options API, various cleanups
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5171 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-12 05:37:32 +00:00
Russell Bryant
5dc4b018a4 updates from angler
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5169 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-11 17:13:04 +00:00
Mark Spencer
dbd42a645f Apply queuelog patch and perform final test of "test patches" system
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5168 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-11 08:49:01 +00:00
Mark Spencer
2e0cf7a00c Update queue_log example
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5167 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-11 08:33:39 +00:00
Mark Spencer
f0c7729f81 Add sample experimental patch to show "make apply", "make unapply", "make patchlist", and "make update" targets
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5166 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-11 08:24:23 +00:00
Matthew Fredrickson
1220a0e2fb Making 2bct work only if transfer=yes in zapata.conf for the channel
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5164 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-11 07:26:55 +00:00
Mark Spencer
26c7a07735 Add timestamping to console (bug #3653 with minor mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5163 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-11 07:24:10 +00:00
Russell Bryant
c246200ab0 fix compilation issue (bug #3752)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5161 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-11 06:20:08 +00:00
Mark Spencer
a76b90bfef Fix spanish date format (bug #3642)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5159 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-10 08:58:01 +00:00
Mark Spencer
d18b2f29bf Allow playback for multiple files (bug #3749)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5157 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-10 07:47:02 +00:00
Mark Spencer
3334ab2653 Remove duplicate CallerPres application
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5156 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-09 06:42:56 +00:00
Mark Spencer
4fabc80629 Make ACL be what SIP is going to need (bug #2358, just first part)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5155 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-09 05:48:11 +00:00
Mark Spencer
98a3c16be4 Slow down the registrations to space them out
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5154 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-09 04:56:51 +00:00
Josh Roberson
4e395aac8b Fix compilation of chan_h323.c since removal of the private channel structures (Bug # 3738)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5153 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-08 23:11:23 +00:00
Josh Roberson
e1459ede01 Fix compile of utils.c on *BSD (Bug #3724)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5152 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-08 20:47:30 +00:00
Ben Kramer
1a6a17aab8 / updated to work with new fixes for bug #3573
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5151 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-08 04:12:38 +00:00
Mark Spencer
1bb8d52938 Flush out app stuff, make profiling easier to turn on/off
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5150 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-05 21:06:26 +00:00
Mark Spencer
77b8442606 Merge H.263+ support (bug #3709)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5149 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-05 20:57:49 +00:00
Mark Spencer
b9027295d7 Fix meetme flushing stupidity (doh!) (bug #3599)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5148 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-05 15:25:08 +00:00
Mark Spencer
a397a88192 Propagate device state properly when agentlogoff command is issued
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5147 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-05 05:43:15 +00:00
Mark Spencer
d42e070073 Unbreak expression handling from addition of function variables
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5146 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-05 05:21:45 +00:00
Mark Spencer
0eb1f2ec44 If we're only queueing audio, don't queue when we really want to engage the masquerade
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5145 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-05 04:35:23 +00:00
Mark Spencer
6f2ed85340 Don't consider wrapuptime when call was not answered
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5144 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-05 04:17:13 +00:00
Mark Spencer
c6cb8f9239 Allow debug to be enabled on a per-file basis...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5143 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-05 04:04:55 +00:00
Mark Spencer
badc4dec46 Make mpg123 behave more nicely
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5142 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-05 03:20:55 +00:00
Mark Spencer
7f97f0a332 More persistence fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5141 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-05 02:54:49 +00:00
Mark Spencer
fe64d7eca6 Minor persistence fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5140 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-05 02:53:27 +00:00
Mark Spencer
2fbb559a70 Remove accidental libpri dependency (bug #3714)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5139 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-05 02:08:37 +00:00
Mark Spencer
bb3a461b49 Fix stack size for ADSI (needs 128k by itself!)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5138 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-04 22:37:25 +00:00
Mark Spencer
18d9b26cf9 Rework channel structure to eliminate "pvt" portion of channel (bug #3573)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5137 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-04 06:47:24 +00:00
Mark Spencer
fba0b595ab Add registerable functional variables (bug #3636, with doc mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5136 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-04 06:36:18 +00:00
Mark Spencer
c564c601bd Add timeoutrestart option (bug #3656)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5135 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-04 00:59:58 +00:00
Mark Spencer
d0d47362e3 Update documentation on agent groups (bug #3652)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5134 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-04 00:54:22 +00:00
Ben Kramer
9f553ef8ba / added fax detection support
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5133 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-04 00:27:52 +00:00
Mark Spencer
686da4b054 Make stack size be selectable
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5132 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-04 00:01:41 +00:00
Mark Spencer
50ef0504c6 Flush MeetMe at appropriate times (bug #3599)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5131 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-03 23:33:11 +00:00
Mark Spencer
418eefb9dc Member presistance improvements (bug #3647)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5130 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-03 20:31:21 +00:00
Mark Spencer
74a28969a4 Add dynamic dialplan support (bug #3566)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5129 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-03 17:00:57 +00:00
Josh Roberson
50d09049e1 Roll back previous change due to crossing of fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5128 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-03 16:27:28 +00:00
Josh Roberson
2a4ae392f0 Fix AST_STACKSIZE to match utils.h of AST_STACK_SIZE (bug 3706)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5127 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-03 16:21:33 +00:00
Mark Spencer
b9a34d8634 Fix stack size (take 2) (bug #3706)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5126 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-03 16:18:44 +00:00
Mark Spencer
592b27b17a Add realtime support to app_directory (bug #2475)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5125 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-03 05:31:43 +00:00
Mark Spencer
f8fc683adc Add "StartMusicOnHold and "StopMusicOnHold" apps (bug #3703)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5124 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-03 05:03:06 +00:00
Mark Spencer
9f2a6c79c4 Support > 300 threads on x86-32 and other 32-bit systems
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5123 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-03 03:46:41 +00:00
Matthew Fredrickson
7dc293f58f Commiting chan_zap.c patch for 2bct
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5119 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-02 16:09:27 +00:00
Mark Spencer
0bad15d227 Be sure to process SDP if we already have an owner (bug #3701)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5118 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-02 16:02:54 +00:00
Mark Spencer
1ed8dd396f Add manager doxygen docs (bug #3691)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5117 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-02 05:58:13 +00:00
Mark Spencer
dc297cd02a Fix chan_phone error code (bug #3692)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5116 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-02 05:42:38 +00:00
Mark Spencer
a5a45131bb Fix ENUM documentation (bug #3698)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5115 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-02 05:17:13 +00:00
Mark Spencer
0eab1fabcf Add mexican indications (bug #3667)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5112 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-01 06:43:08 +00:00
Mark Spencer
619528a3c3 Update agent manager docs (bug #3687)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5111 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-01 06:24:43 +00:00
Mark Spencer
f41813c782 Add some extra checks & verbosity (bug #3686)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5110 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-01 04:50:52 +00:00
Mark Spencer
dc0bfa2da4 Fix seg in authenticate (bug #3686)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5109 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-01 04:47:33 +00:00
Mark Spencer
9ac81e10ba Include stat.h to fix FreeBSD build (bug #3683)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5108 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-28 23:18:03 +00:00
Mark Spencer
45d7200427 Allow MGCP to use distinctive ring for call wait
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5107 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-28 22:26:41 +00:00
Mark Spencer
3def26a0e4 Add iax2 device state notification (bug #3640)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5106 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-28 06:40:20 +00:00
Mark Spencer
df68d15aba Add Estonian tone zone (bug #3589)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5105 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-28 06:19:57 +00:00
Mark Spencer
34e8ed636d Fix queue URL passing (bug #3543)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5104 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-28 06:06:42 +00:00
Mark Spencer
21e6e48a26 Don't pass agent audio until call is confirmed (bug #3677)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5103 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-28 00:40:35 +00:00
Mark Spencer
b216988746 Look for faxexten in the main context, too (bug #3634)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5100 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-28 00:18:28 +00:00
Mark Spencer
85a0e13c73 Merge mog's ReadFile application (bug #3670)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5099 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-27 19:07:46 +00:00
Mark Spencer
78b9e92af9 Revert earlier timestamp stuff pending contact with Intel over apparent HMP brokenness
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5098 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-27 16:43:32 +00:00
Mark Spencer
618b325d73 Make sure we increase the timestamp between digits (bug #3675)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5097 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-27 05:59:24 +00:00
Mark Spencer
6a79d3a18f Fix build of new IVR stuff for GCC 2.96 and later gcc's too (bug #3639)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5091 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-26 19:06:09 +00:00
Mark Spencer
c021ec56e3 Fix small but big typo in REGISTER/SUBSCRIBE early RTP closing (bug #3673)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5088 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-26 16:29:15 +00:00
Mark Spencer
8295c77e9c Add additional parking events (bug #3620)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5087 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-26 07:54:28 +00:00
Mark Spencer
c96810b9d3 Add new callerpres parsing API (bug #3648)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5086 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-26 07:34:09 +00:00
Mark Spencer
e8b3ac0c6e Improve manager documentation (bug #3645)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5085 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-26 07:15:18 +00:00
Mark Spencer
94800f4521 Show number of meetme users (bug #3661)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5084 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-26 06:49:07 +00:00
Mark Spencer
233e26b112 Fix SetVar (bug #3668) and g + transfer (#3650)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5083 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-26 03:57:10 +00:00
Mark Spencer
3188414261 Release RTP ports early (bug #3655)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5082 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-26 01:16:12 +00:00
Matthew Fredrickson
84ad9b3a8a New iaxy firmware revision. Fixes problems with loss of registration
on iaxys.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5081 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-25 21:18:58 +00:00
Jeremy McNamara
da2ac25552 finally commit vm enhancements for skinny Bug #3511
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5078 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-25 17:43:10 +00:00
Mark Spencer
1764051747 Add realtime README (programmer docs)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5077 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-25 17:41:34 +00:00
Mark Spencer
e330970fb9 Fix GCC 4.0 build (bug #3662)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5076 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-25 17:32:37 +00:00
Mark Spencer
8ea159cc2e Handle SDP *after* authentication (bug #3660)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5075 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-25 16:37:34 +00:00
Mark Spencer
5a9f337de0 Add execiftime, remove duplicate agent logoff CLI
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5074 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-25 00:25:28 +00:00
Matthew Fredrickson
a6a4d44176 Adding support to log off an agent from the console
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5073 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-25 00:00:35 +00:00
Mark Spencer
6eea9479e7 Allow global "qualify" option (bug #3649)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5071 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-24 13:57:45 +00:00
Mark Spencer
927828d4d4 Fix "tohost" logic errors (bug #3654)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5070 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-24 13:54:26 +00:00
Mark Spencer
fdb35c46a4 Fix "oopsie" (bug #3603)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5069 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-23 22:58:11 +00:00
Mark Spencer
b6c4282a03 Merge anthm's CDR updates (bug #3595)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5068 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-23 22:48:47 +00:00
Mark Spencer
7954654d15 Fix silly typo (bug #3646)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5067 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-23 05:09:10 +00:00
Mark Spencer
7279b57216 Add "admin pin" mode (bug #2387)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5066 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-22 15:42:41 +00:00
Russell Bryant
ef864a5cf2 fix terminology
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5065 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-22 07:36:29 +00:00
Mark Spencer
56e13139d4 Add "show hints" to CLI (bug #3631)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5064 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-21 06:31:01 +00:00
Ben Kramer
8df2830434 / added break-for-dtmf=no for native bridging
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5062 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-21 04:30:42 +00:00
Ben Kramer
25a08db0c0 / updated with new config options
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5060 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-21 01:09:51 +00:00
Ben Kramer
37fcb4fc3f / added an option to use the AST vad DSP for DTMF detection
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5059 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-21 00:48:35 +00:00
Mark Spencer
fccd0750b2 Allow 0 retry time (bug #3630)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5058 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-20 19:02:20 +00:00
Mark Spencer
d10878282b Provide more info when native bridge cannot occur (bug #3627)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5057 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-19 20:46:34 +00:00
Mark Spencer
0f10f4119f Make cdr_pgsql gracefully handle restarts (bug #3628)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5056 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-19 20:10:52 +00:00
Mark Spencer
ef19fe6bef Add sip redirect support (bug #3419i, with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5055 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-19 17:34:06 +00:00
Mark Spencer
6360dec439 Fix ODBC storage (bug #3625, with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5054 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-19 16:34:45 +00:00
Mark Spencer
15b6cd5dec Add checking capability to MD5 (bug #3619)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5053 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-19 16:18:19 +00:00
Mark Spencer
e840a63d68 update UPGRADE.txt for new channel name for iax2 format.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5050 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-18 06:17:11 +00:00
Mark Spencer
9529e3ebb0 Make IAX2 channel names use "-" instead of "/" for call number (bug 3594)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5049 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-18 06:14:54 +00:00
Mark Spencer
0126706cac Add OEJ's md5 app (bug #3604)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5048 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-18 05:29:31 +00:00
Mark Spencer
f8aa020b3f Add event for agentlogoff from CLI (bug #3611)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5047 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-18 05:03:01 +00:00
Mark Spencer
f320936bbb Add descriptions for monitor action events (bug #3610)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5046 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-17 23:08:34 +00:00
Mark Spencer
5057e4898f Add atxfer fix (bug #3592)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5045 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-17 20:04:10 +00:00
Mark Spencer
a06c6bf412 Fix ${CALLINGSUBADDR}
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5044 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-17 19:41:23 +00:00
Russell Bryant
5348d0d581 update copyright header
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5043 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-17 18:07:33 +00:00
Mark Spencer
69061dec64 Merge anthm's ODBC sanity check fix (bug #3529)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5042 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-17 16:31:08 +00:00
Mark Spencer
f2f3825130 Make sure we search for url prefix only in format, not in filename (bug #3613)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5041 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-17 15:05:26 +00:00
Mark Spencer
ce18e66db2 Add placeholder IVR application support (static version)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5040 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-17 14:57:36 +00:00
Ben Kramer
367da10e08 / adjusted how the gain settings are implemeted
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5039 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-17 04:58:03 +00:00
Mark Spencer
f12c0bb3aa Fix DBget (bug #3603)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5038 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-16 03:54:08 +00:00
Mark Spencer
d5f8207a21 Make TDS CDR more resilient (bug #3597)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5037 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-16 03:52:47 +00:00
Mark Spencer
2127cf3c7b Begin autoservice while playing enter/leave sounds (bug #3599)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5036 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-16 03:50:41 +00:00
Mark Spencer
b0863c5e31 Optimize vm storage (bug #3605)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5035 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-16 03:46:00 +00:00
Mark Spencer
f9222e7e4b Fix misspellings of separate (bug #3607)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5034 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-16 02:58:18 +00:00
Russell Bryant
ad3558498f fix little typo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5033 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-16 01:05:08 +00:00
Mark Spencer
73a38e14d3 Fix message from WARNING to DEBUG.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5032 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-15 15:57:52 +00:00
Mark Spencer
cea4a8e09e Fix native agent transfer, add UPGRADE.txt for notes about backwards compatibility issues upgrading from Asterisk 1.0 to current CVS head
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5031 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-14 23:20:01 +00:00
Mark Spencer
90267ab0ea Merge OSP udpates
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5029 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-14 19:46:45 +00:00
Mark Spencer
7f5f113968 Remove a couple of peerification bbugs (bug #3576)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5024 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-13 22:40:41 +00:00
Mark Spencer
2887217560 Fix colon expansion (bug #3572)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5023 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-13 20:57:52 +00:00
Mark Spencer
9a43c29ca7 Don't lookup SRV's on IP addresses
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5022 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-13 19:55:28 +00:00
Mark Spencer
1ca9fb19e5 Merge limits patch (bug #3581)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5021 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-13 18:40:50 +00:00
Mark Spencer
062733f106 Fix user=phone stuff (bug #3575)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5020 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-13 17:02:39 +00:00
Mark Spencer
e83c29f281 Add sip show user completion (bug #3574)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5019 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-13 16:56:20 +00:00
Mark Spencer
afc33139c4 Properly differentiate between caller and agent hangups (bug #3578)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5018 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-13 16:53:29 +00:00
Mark Spencer
6a181832bb Add callingpres/calling limit support, small updates (bug #3577 with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5017 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-13 16:40:56 +00:00
Mark Spencer
3af7d5a342 Add additional sanity checks (bug #3548)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5016 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-13 07:45:40 +00:00
Mark Spencer
cecb25eae5 Add sip show user and friends (bug #3571)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5015 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-13 01:16:10 +00:00
Mark Spencer
ddcfe8d3af Fix apparent logic error that causes unregistered non-realtime peers to be destroyed (bug #3569)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5014 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-12 20:15:15 +00:00
Mark Spencer
dd7e4ef47a Merge SIP changes from oej
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5013 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-12 20:14:21 +00:00
Mark Spencer
2b914b7ebf Add support for receiver reports (bug #3236, with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5012 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-12 18:52:14 +00:00
Mark Spencer
54689b2f67 Add support for portugal (PT) (bug #3551)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5011 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-12 01:34:55 +00:00
Mark Spencer
d44286366b Flagify hold (bug #3456)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5010 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-11 21:16:34 +00:00
Mark Spencer
5611ff040e Fix native bridge not to intercept DTMF if it's needed
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5009 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-11 20:07:45 +00:00
Mark Spencer
188fdf9260 Fix "not found" case (bug #3404)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5008 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-11 16:09:01 +00:00
Mark Spencer
41453ebf74 Copy/paste errors (bug #3559, #3560)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5007 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-11 06:53:18 +00:00
Mark Spencer
9cd9198127 Fix silly newline miss (bug #3555)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5006 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-10 23:46:03 +00:00
Mark Spencer
dcee71987e Remove duplicate section (bug #3545)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5005 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-10 21:17:36 +00:00
Mark Spencer
c52f076bca Separate IAX and SIP tables for users/peers
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5004 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-10 21:14:11 +00:00
Mark Spencer
5d9bbe64c8 Merge tony's IAX/SIP realtime cache (bug #3509)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5003 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-10 20:04:42 +00:00
Mark Spencer
d2c0c613c8 Fix zap build for gcc 2.95
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5002 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-10 17:40:06 +00:00
Mark Spencer
3ed0a01068 Fix (in an admittedly icky way) the CALL variable broken issues (bug #3549)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5001 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-10 16:38:39 +00:00
Mark Spencer
6386563560 Update CDR documentation (bug #3525)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5000 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-10 07:28:27 +00:00
Mark Spencer
a175a7c2b7 Add comment information (bug #3537)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4999 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-10 07:21:26 +00:00
Mark Spencer
0a02a13bb2 Variable updates (bug #3525)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4998 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-10 07:16:44 +00:00
Mark Spencer
df460963fc Make agent support sending url (bug #3543)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4997 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-10 06:36:09 +00:00
Ben Kramer
847164efa0 / fixed ring-back on FXS ports
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4996 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-10 00:54:24 +00:00
Mark Spencer
fa48657020 Fix typos in app_dial (bug #3536)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4995 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-09 22:59:46 +00:00
Mark Spencer
07af9aa8f0 Fix minor typo (bug #3534)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4993 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-09 21:17:34 +00:00
Mark Spencer
6776ea7a79 Fix H.323 locking (bug #3540)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4992 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-09 21:15:44 +00:00
Mark Spencer
ad369fa974 Optimize variable lookups (bug #3541)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4991 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-09 21:10:41 +00:00
Mark Spencer
08d9c1a10c Make sure AST_DIGIT_ANY really means any (bug #3538)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4990 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-09 17:15:35 +00:00
Mark Spencer
97f589e6af Handle DNS failures on startup more gracefully (bug #3086)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4989 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-09 03:22:42 +00:00
Mark Spencer
aeaa181d74 Allow debug level to be more than just binary (bug #3524)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4988 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-09 00:13:52 +00:00
Mark Spencer
0d23fed9ab Update documentation (bug #3527, take 2)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4987 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-09 00:11:32 +00:00
Mark Spencer
89131204fd Minor deadlock detect fix (bug #3531)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4986 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-08 18:48:01 +00:00
Mark Spencer
4b485062ee quicky agent formatting fix, merge polarity/answer patch (bug #2847)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4985 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-08 07:49:40 +00:00
Mark Spencer
53060a3a44 Add new README.configuration (bug #3527)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4984 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-07 22:38:19 +00:00
Mark Spencer
cba23534f1 Inherit variables across an agent (bug #3520)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4983 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-07 22:24:11 +00:00
Mark Spencer
73b299843e Add "Dial" event to link callerid, src and destination channel (bug #3494)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4981 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-07 15:19:34 +00:00
Mark Spencer
82a9a22e99 Fix callerid segfault in rare combination (bug #3519)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4980 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-07 14:56:43 +00:00
Mark Spencer
88a49f727b Merge "show features" (bug #3515)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4971 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-06 23:36:35 +00:00
Josh Roberson
9ec6b2a358 Don't crash when pause/stop keys aren't defined on the command line (Bug #3514)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4970 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-06 06:43:32 +00:00
Mark Spencer
d771932983 Add option to disable beep to record (bug #3508, with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4969 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-05 16:52:46 +00:00
Mark Spencer
e414807aaf Allow uptime to be displayed in seconds (bug #3510, with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4968 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-05 16:49:14 +00:00
Mark Spencer
03652112b3 More flagification fixes (bug #3414, round 2)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4967 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-05 16:42:49 +00:00
Mark Spencer
1204348efa Fix callerid split (bug #3507)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4966 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-04 17:45:37 +00:00
Mark Spencer
6345a74c22 Make sure 10 byte read is considered EOF not error (bug #3505)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4965 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-04 15:46:01 +00:00
Mark Spencer
662356e3d8 Fix spanish pronunciation (bug #3121, thanks to David Corredor)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4964 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-04 07:11:28 +00:00
Mark Spencer
e75a91556c Properly handle PRI TON and allow changing number (bug #3493, with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4963 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-04 06:12:32 +00:00
Mark Spencer
403d010294 Optionally store CDR's in GM time (bug #3500, with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4962 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-04 05:52:45 +00:00
Mark Spencer
64f2fb6f2c Create "spec" target (bug #3413)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4961 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-04 05:44:13 +00:00
Mark Spencer
9790f6fa7e Fix big flagification errors (bug #3414)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4960 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-04 05:36:27 +00:00
Josh Roberson
d271dfa7af Fix build on OpenBSD and fix small typo. (Bug #3502)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4959 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-04 00:14:10 +00:00
Mark Spencer
6eca96c657 Fix wav append mode (bug #3498)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4958 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-03 05:35:03 +00:00
Mark Spencer
a678344264 Show last tx/rx command in sip show channels (bug #3499)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4957 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-03 05:31:01 +00:00
Mark Spencer
e95da4b9f7 Oops (first one of these in a while)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4956 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-03 04:21:07 +00:00
Mark Spencer
a43b8ec753 REname 'p' option to 'o' (bug #3490)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4955 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-03 03:30:41 +00:00
Mark Spencer
026c03b527 Add new 'p' flag to Dial for preserve callerid (bug #3490)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4954 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-02 20:35:25 +00:00
Mark Spencer
f286c413c0 Clarify documentation (bug #3495)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4953 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-02 19:48:53 +00:00
Mark Spencer
746dbf2c53 Make sure we always transmit the same from line (bug #3492)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4952 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-02 18:37:36 +00:00
Mark Spencer
d9020bb6fc Warn about setting read only variables (bug #3309)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4951 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-02 04:05:35 +00:00
Mark Spencer
b4f05e2c98 Merge #exec functionality (must be explicitly enabled!)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4950 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-02 03:38:24 +00:00
Mark Spencer
67f3a558e0 Add option to prompt for PIN even if specified (bug #3489)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4949 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-02 02:57:45 +00:00
Mark Spencer
ab0566923b Include uniqueid in response for ManagerOriginate stuff (bug #3439)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4948 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-02 02:54:15 +00:00
Mark Spencer
b96ba5cae3 Fix conferencing of non-zap stuff (bug #3488)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4947 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-02 02:20:34 +00:00
Mark Spencer
c48522110f Fix silly typo (bug #3483)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4946 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-01 20:07:51 +00:00
Mark Spencer
d93cfc416c Fix proper cleanup (bug #3481)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4945 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-01 20:05:30 +00:00
Mark Spencer
e89fb66d79 Only use default callerid if it's specified (bug #3486)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4944 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-01 19:25:40 +00:00
Mark Spencer
3f306552dd Fix agent moh issue (bug #3383)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4943 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-01 07:09:56 +00:00
Mark Spencer
4d92934e6e Fix potential segfault (bug #3479)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4942 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-01 06:48:50 +00:00
Mark Spencer
a6c065816a Make monitoring accept args from both sides (bug #3449, with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4941 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-01 03:49:35 +00:00
Ben Kramer
d77b6a6c8c / fix for when caller hangs up after first ring
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4940 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-01 03:27:36 +00:00
Mark Spencer
9ae7f2430a Add dundi show peers summary stats (bug #3474)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4939 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-01 03:00:28 +00:00
Mark Spencer
6ed8f15260 Allow hints to have names (bug #3471)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4938 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-01 01:53:25 +00:00
Ben Kramer
1be7bf0881 / new config option of dtmf idd time out
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4937 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-31 23:52:26 +00:00
Ben Kramer
f8d6b80b97 / updated so that it can deal with multiple matching in extensions, with
/ configurable dtmf idd time out


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4936 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-31 23:51:19 +00:00
Ben Kramer
08f888a148 / added parameter to change ec suppresion threshhold from config
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4935 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-31 04:51:41 +00:00
Mark Spencer
ca0a0a0daa Merge IAX2 peer completion patch (bug #3462)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4934 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-30 21:32:26 +00:00
Mark Spencer
c1becf7fe5 Fix paths in astxs (bug #3466)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4933 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-30 19:10:40 +00:00
Mark Spencer
9774ddb9b5 Update tdesc
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4932 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-30 18:39:35 +00:00
Mark Spencer
87cf6b3ec2 Fix 'g' flag (bug #3465)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4931 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-30 17:57:44 +00:00
Mark Spencer
7cd91c85fa Fix seg in variable replacement (bug #3464)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4930 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-30 17:34:44 +00:00
Mark Spencer
fda3016dc8 Fix silly typo in indications.conf (bug #3461()
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4929 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-30 17:29:20 +00:00
Mark Spencer
0463f6b649 Remove dead header file
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4928 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-30 17:21:45 +00:00
Mark Spencer
458f165c98 Add agent logon/logoff CLI command (bug #3440)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4927 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-30 06:55:10 +00:00
Mark Spencer
2491d3b75d Improve logging and add summaries (bug #3459)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4926 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-30 06:50:46 +00:00
Mark Spencer
0b04b3dfb2 Add category inheritance (bug #3099)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4925 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-30 06:26:19 +00:00
Mark Spencer
f85cf0138c Add setrdnis app (bug #3460)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4924 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-30 06:09:28 +00:00
Mark Spencer
fe5c5ba3f8 Add meetme talk detector (bug #3364)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4923 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-30 03:07:21 +00:00
Mark Spencer
3f80fd6bcc Add DBGet/DBPut (bug #3455)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4922 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-29 23:33:14 +00:00
Mark Spencer
8f199888d5 Merge callevents etc (bug #3456)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4921 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-29 23:19:01 +00:00
Mark Spencer
48dd0fef1d Add more manager events in queue (if enabled) (bug #3454)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4920 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-29 22:42:40 +00:00
Mark Spencer
aeb1002057 Fix ordering in portugese (bug #3452)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4919 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-29 17:35:12 +00:00
Jim Dixon
b5ecfdc179 Fixed more bugs.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4918 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-29 07:31:17 +00:00
Mark Spencer
259484a570 Update UK tones (bug #3430)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4911 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-29 04:05:09 +00:00
Mark Spencer
ccd7a7ac54 Reduce complexity of check for f->samples / 8 not being 0
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4910 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-28 22:08:24 +00:00
Jeremy McNamara
4e158e372c Force the use of specific versions of OpenH.323 and PWlib (Bug #3386 with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4909 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-28 16:45:06 +00:00
Mark Spencer
c3f8e1fe08 Fix CID name when no CID name is supplied (bug #2795)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4908 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-28 05:38:16 +00:00
Mark Spencer
1be3670efe Fix interation of # transfer and flash hook transfer (bug #3011)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4907 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-28 05:19:06 +00:00
Mark Spencer
b1e0f0f102 Handle oddly sent 'A' to 'D' (bug #3445)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4906 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-28 03:49:08 +00:00
Mark Spencer
976bdba2d1 Fix properly the issue of the verbose level for parsing... (bug #3404 etc)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4900 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-28 00:31:50 +00:00
Anthony Minessale II
dad010329b Fixing "parsing" bug in config.c (AGAIN!)
if you had a verbose of 2 you got the following:
Parsing '/etc/asterisk/cdr_odbc.conf':   == Parsing '/etc/asterisk/confcall.conf': *CLI>   == Parsing '/etc/asterisk/sip_notify.conf':
the carraige return only prints on verbose of 3 or more so i am again moving them to be the same.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4899 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-27 21:10:44 +00:00
Mark Spencer
1f7c871993 Set dialed peer number properly when ringing multiple channels (bug #3437)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4898 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-27 16:33:12 +00:00
Mark Spencer
7a250ebd34 Fix reload on sip peers (bug #3432)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4897 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-27 04:46:31 +00:00
Ben Kramer
17f19d921b / put in ifdef wrapper around routines to save caller ID packet recording
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4896 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-27 04:31:38 +00:00
Mark Spencer
0444580a77 Add festival diffs for 1.95 (bug #3434)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4895 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-27 03:03:58 +00:00
Mark Spencer
d0a80c33d7 Fix parking issue (bug #3396)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4894 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-26 06:19:13 +00:00
Mark Spencer
1d5641fc9a Fix show_codec_n (bug #3427)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4893 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-26 02:46:26 +00:00
Mark Spencer
64127abd5c Fix C++ issues (bug #'s 3425, 3426)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4892 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-26 02:39:22 +00:00
Mark Spencer
a9c26705e0 Make sure registration is taken care of if DNS fails (bug #3424)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4891 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-26 00:11:38 +00:00
Mark Spencer
690bcfada2 Add old config files (bug #3406)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4890 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-25 06:11:11 +00:00
Mark Spencer
5f726ad8c7 Merge config updates (bug #3406)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4889 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-25 06:10:20 +00:00
Mark Spencer
a611ce04f1 Improve skinny display (bug #3416)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4888 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-25 03:41:05 +00:00
Mark Spencer
248c923284 Fix law table (i4l) (bug #3412)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4887 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-24 21:43:35 +00:00
Mark Spencer
b5f5e0762e Fix chan_modem_i4l to be sure we use unsigned (bug #3412)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4886 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-24 14:00:18 +00:00
Mark Spencer
3bafe1a8a5 Fix chan_modem_i4l (bug #3410)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4885 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-24 02:59:17 +00:00
Mark Spencer
91805d8f8e Remove duplicate alaw implementation (bug #3409)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4882 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-23 18:47:51 +00:00
Mark Spencer
4a072a452e Make sure two voicemails can't take the same message space (bug #3394)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4881 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-23 09:05:01 +00:00
Mark Spencer
17c311c9b9 Un-revert in preparation for actual fix
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4880 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-22 22:13:11 +00:00
Anthony Minessale II
28efa96e0d repeal config prototype changes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4879 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-22 21:05:52 +00:00
Anthony Minessale II
d52d919a29 repeal config prototype changes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4878 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-22 21:00:31 +00:00
Mark Spencer
9dfb8aac36 Fix tiny typo (bug #3404)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4877 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-22 17:18:28 +00:00
Mark Spencer
0fcb7c72f8 Add option for recording conference (bug #3393), thanks moc!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4876 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-22 04:51:30 +00:00
Mark Spencer
155af741e5 Merge john's autosupport updates
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4873 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-21 22:30:34 +00:00
Mark Spencer
d95c7d63d0 Copy language, too (bug #3401)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4872 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-21 22:30:16 +00:00
Mark Spencer
e969712c6f Add optional one way playback (bug #3397)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4871 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-21 21:27:17 +00:00
Anthony Minessale II
32ba309c68 Fix this annoying typeo that has been torturing me for weeks now
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4870 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-21 21:26:34 +00:00
Mark Spencer
11cac381b4 Fix res_monitor asterisk issue (bug #3399)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4869 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-21 21:24:26 +00:00
Russell Bryant
0c30452423 update copyright headers for 2005
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4868 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-21 07:06:25 +00:00
Mark Spencer
3758d31fa1 Merge zap PRi call progress fixes (bug #2799)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4865 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-21 04:48:15 +00:00
Mark Spencer
f5458639d4 Install "autosupport" by default...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4864 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-21 04:44:49 +00:00
Mark Spencer
9edab98b2c Warn about wrong version of mpg123 (bug #3392)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4862 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-21 04:16:05 +00:00
Mark Spencer
66cbe07029 Merge mjohnston's pause/unpause (bug #3252)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4861 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-21 04:14:26 +00:00
Mark Spencer
4bd99a2bd2 Fix typo for bug #3142
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4860 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-21 03:57:47 +00:00
Mark Spencer
2184f91230 Add stereoize (bug #3142), faster than soxmix
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4859 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-21 03:56:22 +00:00
Mark Spencer
9fc931366e Add John's autosupport script
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4858 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-21 03:43:03 +00:00
Mark Spencer
361211d401 Minor typo (thanks, angler)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4857 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-21 01:44:16 +00:00
Mark Spencer
b27daee8b0 IAX codec fixes (bug #3387)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4856 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-20 23:42:06 +00:00
Mark Spencer
8a1906619f Fix typos (bug #3381)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4855 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-20 22:59:50 +00:00
Mark Spencer
e3da507a44 Make sure we check for owner even after a queue frame
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4854 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-20 22:53:57 +00:00
Mark Spencer
677eedfe6a Fix mpg123 build on non-linux (bug #3385)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4853 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-20 16:22:59 +00:00
Mark Spencer
fb69d9c88d Fix some typos in the voicemail config (bug #3384)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4852 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-20 05:00:07 +00:00
Mark Spencer
bec6aaf064 Fix ODBC to clear title each time (bug #3379)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4851 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-20 04:53:17 +00:00
Mark Spencer
442747adb6 Fix small typo (bug #3382)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4847 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-20 03:30:52 +00:00
Mark Spencer
f342859fac Add extra variables to voicemail (bug #3382)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4846 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-20 03:27:10 +00:00
Mark Spencer
191bf77082 Fix "send text" crash (bug #3378)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4845 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-19 14:51:02 +00:00
Anthony Minessale II
01a2a2a19f Modify code example suggestion
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4844 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-19 02:34:59 +00:00
Mark Spencer
581ae73586 Additional coding guidelines (bug #3374)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4840 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-18 23:35:30 +00:00
Mark Spencer
2a1dff7ba2 Add missing cvs ignore (bug #3373)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4839 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-18 21:32:26 +00:00
Mark Spencer
bd29d3ccb6 Fix agentcallback login (bug #3293)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4838 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-18 20:43:53 +00:00
Mark Spencer
e983edd221 Fix small app_dial issue (bug #3368)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4837 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-18 16:47:33 +00:00
Mark Spencer
d4c553c202 Make sure we ring queues properly and know busy vs. no answer (bug #3114)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4836 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-18 16:40:56 +00:00
Jeremy McNamara
ee456ae10d use PROC instead of OSARCH
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4835 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-18 16:21:54 +00:00
Mark Spencer
a9bbac93a2 Send a few more rfc2833 events on hte "down" (bug #3339)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4834 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-18 14:16:04 +00:00
Mark Spencer
5373fc0d2b Fix bindaddr on IAX (bug #3366)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4833 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-18 13:58:33 +00:00
Mark Spencer
b2c110329f Fix compiler warnings (bug #3367)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4832 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-18 11:40:44 +00:00
Mark Spencer
8b0d0923b4 Fix recently introduced zap crash from HOLD/UNHOLD patch (bug #3365)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4831 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-18 11:37:08 +00:00
Ben Kramer
5914c791bb / trimmed down caller ID collect time for vpb cid.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4830 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-18 03:28:39 +00:00
Ben Kramer
44fbf78d78 / patched for bug 3350
/ also cleaned up the caller ID stuff a bit
/ should now also forward caller ID from a trunk


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4829 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-18 03:24:41 +00:00
Mark Spencer
cd2ef5b548 Merge anthm's RetryDial with changes (bug #3313)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4828 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-18 03:12:53 +00:00
Josh Roberson
7f887cca90 Misc Grammer/formatting fixes - Thanks Corydon76! (bug #3361)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4827 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-17 22:53:36 +00:00
Mark Spencer
840f035827 Merge hold patch (bug #1840)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4823 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-17 12:37:55 +00:00
Mark Spencer
441c545ccc Allow me to force a "make clean ; make install" on a cvs update (bug #3358)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4822 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-17 04:48:51 +00:00
Mark Spencer
b7178fdce9 Rid us of a silly compiler warning
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4821 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-17 04:47:01 +00:00
Ben Kramer
a00fad7d48 / updated caller ID to use ast_set_callerid
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4820 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-17 03:45:18 +00:00
Mark Spencer
1496da97fb Optimize module loading (bug #3356)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4814 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-16 22:59:30 +00:00
Mark Spencer
261b4a85e1 Fix static db problem
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4813 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-16 22:58:44 +00:00
Mark Spencer
cb55bf96ef Fix ringback on outbound skinny calls (bug #3295)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4812 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-16 08:16:07 +00:00
Mark Spencer
93629a3a89 Don't even attempt to masquerade a channel into itself (bug #3040)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4811 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-16 08:10:12 +00:00
Mark Spencer
b6b393c1b9 Give outbound channels callerid of their extension *after* calling (bug #2489)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4810 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-16 07:58:51 +00:00
Mark Spencer
0b4862c822 Avoid duplicate 200 OK
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4809 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-16 07:22:34 +00:00
Mark Spencer
b0772febde config restructure, sip peer completion (bug #3352, #3327)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4808 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-16 06:01:50 +00:00
Mark Spencer
fd3845293b Add missing sounds
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4807 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-16 00:21:40 +00:00
Mark Spencer
160c04b793 Repair // comments to /* */ comments (bug #3347)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4806 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-15 23:48:12 +00:00
Mark Spencer
df4a69f7ce Fix agent deadlock (bug #3311)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4805 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-15 23:31:19 +00:00
Mark Spencer
488845c2c6 Minor doc fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4804 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-15 22:59:32 +00:00
Mark Spencer
96503a02c1 Make groups be 64-bits (bug #3351, with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4803 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-15 21:51:38 +00:00
Mark Spencer
a0e6229adb Fix H.323 build on ppc (bug #3353)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4801 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-15 19:04:45 +00:00
Mark Spencer
c487ca43e6 ixjuser is not needed as best as I can tell since it comes from /usr/include/linux. I wonder why it was there in the first place...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4800 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-15 17:53:22 +00:00
Mark Spencer
26a40258cc ODBC CDR fixes for bizarre error conditions and small performance improvement (bug #3340)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4799 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-15 09:01:52 +00:00
Mark Spencer
c732690384 Keep dead console from killing asterisk (bu #3331)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4798 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-15 08:53:28 +00:00
Mark Spencer
e2c9887aeb Simplify find_peer usage (bug #3341)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4797 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-15 07:33:17 +00:00
Mark Spencer
122b11ec21 Handle masq properly when clone channel has no vars (bug 3344)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4796 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-15 06:37:51 +00:00
Jim Dixon
99e2b961c2 Fixed another little bug.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4795 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-15 00:53:17 +00:00
Jim Dixon
924bc59162 Fixed some bugs; added re-connect mode
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4794 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-14 21:57:31 +00:00
Mark Spencer
1a8a7ff064 Fix unused debug code (bug #3342)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4793 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-14 21:11:21 +00:00
Mark Spencer
3519110944 Give us more wiggle room on incoming registrations
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4792 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-14 21:10:16 +00:00
Mark Spencer
8eab29c445 Fix small issue with smsq and sub addresses (bug #3338)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4791 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-14 15:20:56 +00:00
Mark Spencer
b1953951ac Change option '6' back to more logical option '3' (bug #2491)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4790 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-14 05:10:00 +00:00
Ben Kramer
185461cfb6 / added a ring timer so that an incoming call will termintate if it hasnt
/ been answered before the caller hangs up, and the telco doesnt provide a
/ loop-drop event on caller hang up.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4787 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-14 04:51:20 +00:00
Josh Roberson
7e209d3edf oops.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4786 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-14 04:32:55 +00:00
Josh Roberson
e4f6ef985e Add meetme option to kick last user (bug #2491 with slight modification)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4785 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-14 04:25:35 +00:00
Mark Spencer
9811d4502f Fix realtime in SIP (bug #3332)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4783 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-13 20:26:33 +00:00
Mark Spencer
278a0a0891 Implement eswitch for evalulating variables at runtime (bug #3168)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4780 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-13 05:14:56 +00:00
Mark Spencer
7c048c0b65 Handle syntax errors in group descriptions more gracefully (bug #3330)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4773 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-13 03:31:58 +00:00
Mark Spencer
5bb53baa0e Send 405 Method Not Allowed when message received outside of call (bug #3324, commited from within the plane to huntsville)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4771 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-12 23:01:44 +00:00
Anthony Minessale II
b730f9435c fix bug 3329 (monitor flags)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4770 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-12 18:14:47 +00:00
Mark Spencer
5a69a332e5 Fix to be sure we have a valid fd on a peer
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4769 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-12 17:28:26 +00:00
Mark Spencer
74deb4f9e0 Restore functionality of "show dialplan" with no arguments
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4768 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-12 16:28:25 +00:00
Mark Spencer
e536f91885 Allow softhangup to work on partial matches if requested (bug #3261)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4767 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-12 15:55:52 +00:00
Mark Spencer
b72da3343c Destroy sip channel when message is sent outside the context of a call...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4766 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-12 15:23:06 +00:00
Mark Spencer
ea8e10e8bc Fix types for character (bug #3255, take 3)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4765 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-11 21:25:21 +00:00
Mark Spencer
820d525ac6 Make ODBC storage as int configurable to be string or int (bug #3255)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4763 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-11 18:56:57 +00:00
Mark Spencer
21f63cd4db shame on oej for submitting a patch which doesn't even compile, shame on me for comitting it...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4762 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-11 18:54:22 +00:00
Mark Spencer
cb06d1d954 Minor configuration fixes/standardizations (bug #3317)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4761 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-11 18:39:48 +00:00
Mark Spencer
010da5943a Fix one touch record (bug #3263, take two)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4760 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-11 18:24:27 +00:00
Mark Spencer
b846c71e0a Fix typo in tone detect (bug #3315)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4759 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-11 18:10:30 +00:00
Mark Spencer
60b57a20b7 Remove unused variable (bug #3318)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4757 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-11 17:35:35 +00:00
Mark Spencer
186e36c403 Allow multiple bindaddrs so asterisk uses the same interface for tx as rx
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4756 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-11 17:08:52 +00:00
Mark Spencer
96271267c9 Add examples for extconfig with alt table
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4755 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-11 17:05:50 +00:00
Mark Spencer
c2bee5d802 When moving PRI channel rename channel properly
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4754 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-11 16:51:57 +00:00
Mark Spencer
ff6c09c775 Revert loader change now that we do it at runtime
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4753 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-10 22:16:42 +00:00
Mark Spencer
2c1f9b84ff Check moh files at runtime (bug #3314)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4752 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-10 22:12:58 +00:00
Ben Kramer
dcd583bbde / checks to if owner is set before using it.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4751 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-10 22:09:19 +00:00
Mark Spencer
41af0f753e Update IAX readme (bug #3310)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4750 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-10 22:07:01 +00:00
Mark Spencer
e4d79daa75 Send "not compatible here" instead of "unavailable" on codec mismatch (bug #3306)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4749 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-10 19:58:35 +00:00
Mark Spencer
92eb0c2018 More flagification, courtesy drumkilla (bug #3280)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4748 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-10 14:46:59 +00:00
Mark Spencer
e7cb975021 Improve object destruction (bug #3286)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4747 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-10 05:46:25 +00:00
Mark Spencer
8c85a8461c Truncate file as appropriate (bug #3304)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4746 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-10 05:29:46 +00:00
Mark Spencer
34ff765820 Merge anthm's monitor fixes (better default path, set variable for monitor) (bug #3266)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4745 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-10 04:29:33 +00:00
Mark Spencer
b629af806e Handle masq properly with music (bug #3235)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4744 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-10 04:23:39 +00:00
Mark Spencer
9a3304c65d Fix voicemail symlinks (bug #3024)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4743 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-10 04:18:18 +00:00
Mark Spencer
77dafbed41 Merge Tony's one touch record improvements (bug #3263)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4742 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-10 04:03:30 +00:00
Mark Spencer
4fc6c2eb0d Fix MGCP when running without verbose (bug #3260)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4741 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-10 00:43:01 +00:00
Ben Kramer
847de38584 / changed mkif to static function so as not to conflict with other modules
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4740 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-09 22:29:55 +00:00
Mark Spencer
a42fe2a4ea Handle speex subdirectories peroperly (bug #3283)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4739 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-09 20:39:31 +00:00
Mark Spencer
ca4c644403 Improve show dialplan support to support patterns and also to select contexts (bug #3230)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4738 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-09 20:28:47 +00:00
Mark Spencer
13f514e143 Improve indications formatting (bug #3298)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4737 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-09 20:17:51 +00:00
Mark Spencer
9aba06cfed Set blind transfer variable (bug #3268)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4736 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-09 20:09:48 +00:00
Mark Spencer
306a8662f7 Remove unused channel fields (bug #3301)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4735 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-09 19:40:01 +00:00
Mark Spencer
82be2f2153 Allow sip show users/peers to filter on regexp (bug #3222)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4734 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-09 18:49:20 +00:00
Mark Spencer
18ff12ba8b Merge regex for iax2 show peers (bug #3223)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4733 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-09 18:35:31 +00:00
Mark Spencer
06292d1cf7 Include utils.h
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4732 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-09 18:34:48 +00:00
Mark Spencer
b705f19938 Fix small sip conf issues (bug #3296)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4731 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-09 18:05:41 +00:00
Mark Spencer
adc9e59e0b Fix privacy manager to "do the right things" with blank, but present, callerid (bug #3294)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4728 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-09 10:37:03 +00:00
Mark Spencer
4038178ccb Merge experimental codec preferences for IAX2 (bug #2971)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4727 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-09 10:32:53 +00:00
Mark Spencer
88979c2a4a Don't allow masquerading into oneself (bug #3040)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4726 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-09 09:42:54 +00:00
Mark Spencer
7af0234fa7 Various small fixups
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4725 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-09 09:01:40 +00:00
Mark Spencer
03458dc73a Various moh fixes (bug #3291)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4724 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-09 09:00:41 +00:00
Mark Spencer
89fb8c1037 Fix Alert-Info for optipoint 400 (bug #3288)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4723 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-09 01:58:45 +00:00
Mark Spencer
0748d47164 Minor externip fixes (bug #3262)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4722 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-09 01:15:43 +00:00
Mark Spencer
2d8160ecd5 AGI formatting fixes (bug #3270)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4715 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-08 19:35:20 +00:00
Mark Spencer
96d17b07a5 Fix typo (bug #3271)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4714 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-08 19:30:40 +00:00
Mark Spencer
87c9e1db33 Warn if flags is signed instead of unsigned (bug #3279)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4713 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-08 19:00:46 +00:00
Mark Spencer
17acbf1e38 Include missing file (bug #3277)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4712 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-08 18:54:30 +00:00
Mark Spencer
e163642ed1 Don't native bridge when needing digits
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4711 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-08 18:52:18 +00:00
Mark Spencer
3a49a959ca Fix macro formatting (bug #3275)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4710 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-08 18:45:13 +00:00
Mark Spencer
51cab9e7cc Make queue support channel variable inheritance (bug #3274)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4709 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-08 17:23:29 +00:00
Mark Spencer
c5aedb3086 Fix "externhost"
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4708 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-07 21:35:50 +00:00
Mark Spencer
e5ad6907c5 Make sure we clear out owner in SUB_REAL when moving a call (bug #3267)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4707 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-07 21:18:00 +00:00
Mark Spencer
e83f71679f Fix typo in moh output (bug #3265)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4706 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-07 14:47:51 +00:00
Mark Spencer
14ed4bdf02 Merge Moc's announcement patch (bug #3219)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4705 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-07 07:23:31 +00:00
Mark Spencer
d3418aa14a Support CNG transmission when on hold (bug #2904)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4704 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-07 07:11:40 +00:00
Mark Spencer
238c12b67e Fix README for variables (bug #3209)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4703 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-07 06:38:00 +00:00
Mark Spencer
11e6ed5eac ODBC CLI improvements (bug #3220)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4702 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-07 06:36:02 +00:00
Mark Spencer
50b11dab9e Add missing schema (bug #3216)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4701 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-07 06:19:37 +00:00
Mark Spencer
094f2cb611 Include lock performance (bug #3234)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4700 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-07 06:14:50 +00:00
Mark Spencer
97ad147395 Add MacroExit application (bug #3045)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4699 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-07 05:42:31 +00:00
Mark Spencer
cd3f85188a Merge weight option (bug #3038)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4698 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-07 04:05:22 +00:00
Mark Spencer
51880b7ddc Fix typo for blind transfer (bug #3259)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4696 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-06 17:19:54 +00:00
Mark Spencer
9ff8416c79 Improve MGCP formatting (bug #3247)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4695 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-06 08:16:43 +00:00
Mark Spencer
71675d14f9 Fix command completion issue (bug #3257)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4694 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-06 08:11:43 +00:00
Mark Spencer
8db8179f97 Fix DUNDi segfault
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4693 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-06 06:07:44 +00:00
Mark Spencer
45b4dbf298 Fix music on hold to quitat hangup rather than during channel destruction (bug #3035)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4691 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-06 04:18:15 +00:00
Mark Spencer
6463533f80 Merge distinctive ring for MGCP (bug #2880, with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4690 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-06 04:02:33 +00:00
Mark Spencer
95e75f4354 More flag on dial tweaks (bug #3254, take two)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4689 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-06 02:59:20 +00:00
Mark Spencer
2cd8a11bf2 If pedantic mode enabled, look for media-level addresses
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4688 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-05 23:43:34 +00:00
Mark Spencer
6097648bf0 Make cdr_odbc store disposition as string not integer (thus matching documentation in doc/cdr.txt) (bug #3255)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4687 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-05 23:25:34 +00:00
Mark Spencer
8a92b798e9 Fix compliance of SIP presence (bug #3251)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4686 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-05 23:18:00 +00:00
Mark Spencer
8e3722ceee More flagification (bug #3254)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4685 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-05 23:05:49 +00:00
Mark Spencer
15307e3978 Use ast_setcallerid instead of manual (bug #3115)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4684 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-05 22:40:42 +00:00
Mark Spencer
87b40b4d14 Stream courtesy tone if appropriate
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4683 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-05 22:38:07 +00:00
Mark Spencer
c31621bbec Calculate tvdiff properly (avoid off-by-one)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4682 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-05 22:29:30 +00:00
Mark Spencer
fd5cf4bdec Make sure time limit is the "backup" one when interpreting features
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4681 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-05 22:13:37 +00:00
Mark Spencer
9f232928dc Various/assundry cleanups
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4680 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-05 21:31:40 +00:00
Mark Spencer
e5b594c0e8 Add beep error sound
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4679 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-05 21:09:50 +00:00
Anthony Minessale II
3092cb538e allow sounds to be configurable
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4678 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-05 21:00:20 +00:00
Mark Spencer
526622d6e0 Merge Tony's attended # transfer with changes (bug #3241)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4677 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-05 19:56:47 +00:00
Mark Spencer
68c634721a Revert Jim's earlier "fix" :)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4676 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-05 19:23:23 +00:00
Anthony Minessale II
5ad345f6b0 add rawplayer applet to contrib/utils
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4675 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-05 19:11:26 +00:00
Mark Spencer
7568d9a4ef Merge OSP updates from matt nicholson (with changes)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4674 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-05 15:15:12 +00:00
Mark Spencer
5db0b8e31a Allow post data, too (bug #3151)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4673 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-05 06:38:39 +00:00
Mark Spencer
8ddb3aba81 Allow connection notifications on manager interface to be hidden (bug #3085)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4672 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-05 06:24:59 +00:00
Mark Spencer
d481e22f29 Merge sip notify fixes (bug #3243)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4666 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-05 05:04:43 +00:00
Ben Kramer
2da38463da / fixed un-initilized variable
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4665 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-05 00:33:40 +00:00
Mark Spencer
127c3c93d0 Load formats first (bug #3242)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4664 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-04 20:55:43 +00:00
Mark Spencer
88721d2e74 Only print message one time (bug #3240)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4663 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-04 20:54:36 +00:00
Jim Dixon
c9d317ba1a Fixed threeway calling disconnect wrong party bug
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4662 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-04 20:28:50 +00:00
Anthony Minessale II
66049c961b tweak to make music load classes more elegantly
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4661 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-04 19:09:00 +00:00
Anthony Minessale II
edd3fe50fb fix bug added to my code so I don
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4659 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-04 18:26:17 +00:00
Mark Spencer
0b0bac6d92 Fix silly extra ! in app_queue (bug #3238)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4657 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-04 14:39:24 +00:00
Mark Spencer
ca40ab4b67 Allow generic sip notify (bug #3231)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4656 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-04 06:21:05 +00:00
Mark Spencer
dfceae320d Allow early exit from traverse (bug #3221)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4655 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-04 06:16:04 +00:00
Mark Spencer
2f2783f231 Document polycom example (bug #3129)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4651 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-04 05:13:32 +00:00
Mark Spencer
e7d4ae8efa Make features configurable and easier to implement
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4650 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-04 04:01:40 +00:00
Ben Kramer
7754314450 / fixed bug when using AST caller ID functions, shouldnt be trying to write
/ samples to file, was only ment to be used for debuging


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4649 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-04 00:38:00 +00:00
Mark Spencer
3e8bdfc9c9 Fix "0" auto deleting messages from voicemail (bug #3057)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4642 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-03 02:01:58 +00:00
Mark Spencer
ef0a57efce Fix various formatting errors (bug #3226)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4641 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-03 01:46:19 +00:00
Mark Spencer
4430b896fa Fix formatting etc in queues (bug #3159)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4640 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-03 01:42:37 +00:00
Mark Spencer
4b5e3caa7d Rename musiconhold option for consistency (bug #3163)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4639 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-03 01:37:44 +00:00
Mark Spencer
75d674dd9b Merge twisted's dsp formatting fixes (bug #3218)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4638 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-03 01:21:15 +00:00
Mark Spencer
056325aca6 Merge josh's strlen fix (thanks!) (bug #2893)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4637 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-03 01:16:00 +00:00
Mark Spencer
0c3cea35f0 Merge OEJ's print groups feature (bug #3228, with changes)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4636 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-03 00:51:57 +00:00
Mark Spencer
7b968f6151 Merge kpflemings moh_files fixes (bug #3224)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4635 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-03 00:38:01 +00:00
Mark Spencer
86dada47fc Remove silly break (bug #3217)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4634 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-02 23:51:33 +00:00
Mark Spencer
1ea2b79b37 Handle group memberships better with masquerade (bug #3067)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4633 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-02 02:07:24 +00:00
Mark Spencer
1e127d75d2 Improve check order
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4632 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-02 00:48:11 +00:00
Mark Spencer
559cae8751 Fix chan_phone for pre-gcc 3.0 (bug #3214)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4630 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-01 23:58:57 +00:00
Mark Spencer
7abe9e6c16 List improvements from kpfleming (bugs #3166,#3140)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4629 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-01 21:26:37 +00:00
Mark Spencer
b87a692804 Remove DOS style newlines (bug #3213)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4628 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-01 20:46:46 +00:00
Mark Spencer
c7306dce2b Make sure to wake up sleeper on sip transfer issue (bug #2938)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4627 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-01 20:17:11 +00:00
Mark Spencer
08f3c195f7 Grab lock in hangup earlier
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4626 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-01 00:59:54 +00:00
Mark Spencer
5924e61b40 Add ability to remember agents
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4625 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-01 00:57:04 +00:00
Mark Spencer
3ead7cdb6e Fix GCC 2.95 build (bug #3211)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4624 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-31 23:26:39 +00:00
Mark Spencer
a2e70340b8 Don't die when a file is missing (bug #3212)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4623 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-31 21:52:56 +00:00
Mark Spencer
974ecf7830 Fix example to reflect that "never" is the default value for progressinband (bug #3129)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4622 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-31 15:38:14 +00:00
Mark Spencer
a3d8377135 Fix astobj to compile against GCC 2.95
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4621 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-31 15:29:22 +00:00
Mark Spencer
71ec46b4e9 Remove comment about update.out
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4620 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-31 15:17:25 +00:00
Mark Spencer
981afbee6e Make voicemail registration apps register (bug #3034)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4619 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-31 01:11:33 +00:00
Mark Spencer
a66d310f8d Agent documentation changes to agents and verbose / debug fixes (bug #3158)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4618 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-31 00:58:44 +00:00
Mark Spencer
658000cc9a Increase max stack size for context searches (bug #3182)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4617 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-31 00:37:55 +00:00
Mark Spencer
9d49aa6573 Merge anthm's senddtmf chagnes (bug #3193)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4616 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-31 00:29:29 +00:00
Mark Spencer
1b3af96143 Phone driver updates (bug #1975)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4615 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-31 00:16:30 +00:00
Mark Spencer
ce2e6b28e8 Merge OEJ's channel type listing (bug #3187) with slight modifications
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4614 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-31 00:04:41 +00:00
Mark Spencer
91e1317f4a Switch more options into flags (bug #3201)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4603 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-30 16:38:17 +00:00
Mark Spencer
2f7b2aad34 Make sure all options get copied from general (bug #3194)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4602 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-30 01:58:07 +00:00
Mark Spencer
ddcac96e9b Fix Speex config issue (bug #3175)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4601 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-30 01:40:47 +00:00
Mark Spencer
d021bc7327 Allow moh class to be specified (bug #3199)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4600 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-30 01:17:07 +00:00
Mark Spencer
cc01517489 Show conflits on make update (bug #3191)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4599 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-29 23:52:42 +00:00
Mark Spencer
ccead56701 Log execution stack if option_debug is enabled (bug #3177)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4598 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-29 23:40:54 +00:00
Mark Spencer
9fd51d4ef6 Remove app_qcall entirely
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4597 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-29 23:18:18 +00:00
Mark Spencer
69d5139b36 Make casts work again properly (bug #3155)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4596 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-29 23:11:51 +00:00
Mark Spencer
90197dbbdc Minor IAX2 fixes, add incomplete-but-very-basically-functional IAX2 encryption
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4595 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-29 23:02:21 +00:00
Anthony Minessale II
5d2654205d let's see how many times we can commit app_read in 1 day =D
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4594 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-29 19:20:18 +00:00
Anthony Minessale II
8ec0f8abf2 fix compiler warnings
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4593 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-29 18:51:33 +00:00
Anthony Minessale II
c19caed171 fix missing proto's missing semi colon
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4592 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-29 18:46:19 +00:00
Anthony Minessale II
f3e9793826 fix missing proto
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4591 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-29 18:43:38 +00:00
Mark Spencer
8aff4b2d95 Various oej fixes (bug #3013)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4590 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-29 13:42:14 +00:00
Mark Spencer
9c35e9a7d1 Stop transmission when sendonly is set (bug #3185)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4589 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-29 13:31:57 +00:00
Mark Spencer
176b1061eb Fix anthm formatting (bug #3013)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4588 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-29 13:24:10 +00:00
Mark Spencer
118b47674f Merge anthm's app_read addition, somewhat modified (bug #3013)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4587 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-29 13:06:53 +00:00
Mark Spencer
ed18567073 Allow Answer(delay) to create delay after answering (bug #3160)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4586 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-29 12:49:35 +00:00
Mark Spencer
8bf932bf27 Fix MWI for SIP when using "friend" type (bug #3004)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4585 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-29 12:43:08 +00:00
Mark Spencer
5559a4c39c Fix registration bug with new astobj (bug #3184)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4584 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-29 12:15:44 +00:00
Mark Spencer
6ffeccbd4c Mildly resurect G.723.1 file format
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4583 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-29 12:12:59 +00:00
Mark Spencer
9aace6da49 Merge remainder of kpfleming's astobj patch (bug #3183)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4582 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-29 07:50:15 +00:00
Mark Spencer
f19f4411e1 Fix additional typos (bug #3162)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4581 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-29 07:46:10 +00:00
Mark Spencer
6884bd9758 Documentation fixes (bug #3170)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4580 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-28 23:58:12 +00:00
Mark Spencer
d3f7d3a958 Formatting fixes, safe_system instead of system, cleanups (bug #3171)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4579 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-28 23:49:46 +00:00
Mark Spencer
59e86b63b0 Merge kpflemings ASTOBJ improvements (bug #3167)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4578 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-28 23:27:44 +00:00
Mark Spencer
526fc0afe9 Set normal clearing for answered calls (bug #3165)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4577 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-28 23:18:31 +00:00
Mark Spencer
0255d5805f Merge gramatical fixes from corydon (bug #3180)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4576 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-28 23:01:22 +00:00
Mark Spencer
eda2d325b7 Fix pbx.c to be able to display hints (bug #3074)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4575 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-28 22:52:40 +00:00
Mark Spencer
ce87d2977f Make cidrings configurable (bug #2889)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4574 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-28 21:32:25 +00:00
Mark Spencer
b1b8802edd Make it possible to configure an externhost and not just an externip (bug #3069)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4573 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-28 21:20:18 +00:00
Anthony Minessale II
886ebab04a fix transfer goto issue
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4572 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-28 20:31:37 +00:00
Mark Spencer
4c1332fb76 Remove duplicate parse (bug #3173)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4571 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-28 16:48:20 +00:00
Mark Spencer
8bb060d8ac Ignore invalid RTP packets (bug #3030)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4570 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-28 16:45:03 +00:00
Mark Spencer
46ffd20c48 Various and assundary formatting fixes (bug #3174)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4569 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-28 16:43:20 +00:00
Mark Spencer
d331358a3b Permit RTP to be reset
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4568 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-28 16:35:31 +00:00
Anthony Minessale II
907ed4d346 tiny tweak to allow pvt config engines to use __ast_load
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4567 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-28 14:53:40 +00:00
Mark Spencer
aa01269484 Fix small typos (bug #3162)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4565 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-28 07:51:25 +00:00
Mark Spencer
cdbb9183d6 Fix leak of file descriptors in odd networking situations
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4564 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-28 07:44:13 +00:00
Russell Bryant
6cd0d316e2 fix logging issue
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4563 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-27 22:41:58 +00:00
Matthew Fredrickson
7488a01ade Housekeeping updates
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4561 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-27 14:51:52 +00:00
Mark Spencer
33d2d312e2 Fix inversion error on addrcmp (bug #3155)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4560 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-27 13:36:34 +00:00
Mark Spencer
a91b07d340 Fix for FreeBSD portability
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4559 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-27 13:08:45 +00:00
Mark Spencer
83728dbd79 Merge Tilghman's cause codes patch (bug #3032)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4558 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-26 22:33:25 +00:00
Russell Bryant
1866e93ff6 fix to work with astobj stuff
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4557 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-26 18:08:06 +00:00
Mark Spencer
a479a033a1 Fix CLI to report "N/A" when appropriate for time, chan_features updates, ALSA and OSS codec fixes (bug #3145)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4556 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-26 11:08:34 +00:00
Anthony Minessale II
10a6e598ac misplaced chdir call on moh DoH\!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4555 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-26 00:33:17 +00:00
Mark Spencer
802dbe4677 Add Asterisk "object model" and update chan_sip to use it for peers/regs/users
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4554 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-25 22:15:32 +00:00
Russell Bryant
a84da8a0b9 fix flag error (bug #3130)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4553 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-24 18:56:57 +00:00
Mark Spencer
713a2eb072 Merge anthm's native MOH patch (bug #2639) he promises me he'll rid it of ast_flag_moh...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4552 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-24 01:40:07 +00:00
Mark Spencer
f72f506f34 Merge anthm's while loop code (thanks tony!) (bug #2907)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4551 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-24 01:18:13 +00:00
Mark Spencer
9dd4fbe85a Document linked lists better (bug #3139)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4550 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-23 22:35:35 +00:00
Mark Spencer
13f9166f7d Small fix for features channel driver
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4549 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-23 22:29:23 +00:00
Mark Spencer
cecda3fb67 Speed up ast_list macros (bug #3135)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4546 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-23 15:11:46 +00:00
Mark Spencer
b9c3f3567a Minor chan_features tweak
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4545 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-23 11:35:21 +00:00
Mark Spencer
d61401cde2 Add "flash" capability to command line
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4544 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-23 11:34:33 +00:00
Mark Spencer
1395d93c0e Add "ast_flags_all" mask (bug #3136)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4543 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-23 11:32:22 +00:00
Jim Dixon
8e1a2d57a6 Fix Divide by zero possibility (ouch!)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4542 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-23 07:04:16 +00:00
Mark Spencer
a2775a6109 fix documentation (bug #3127)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4541 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-23 03:27:29 +00:00
Mark Spencer
4752c18d08 Merge remainder of Greek support (bug 3107)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4540 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-23 03:04:12 +00:00
Mark Spencer
7cda0babd2 Add app_curl from tilghman (bug #3131)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4539 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-23 02:55:53 +00:00
Mark Spencer
3fde2e56b8 Fix AGI to know about "builtin" variables, too (bug #2737)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4538 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-23 02:47:01 +00:00
Mark Spencer
55a24aecad Fix US tones (bug #3132)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4537 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-23 01:46:39 +00:00
Mark Spencer
49eb667a95 Move iax2 to flags, too (thanks drumkilla!) (bug #3124)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4536 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-23 01:42:14 +00:00
Mark Spencer
93bbbc0b66 Use flags for voicemail (bug #3130)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4535 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-23 01:37:48 +00:00
Mark Spencer
822807067f Add missing "minus.gsm" (bug #3128)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4534 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-23 01:30:43 +00:00
Mark Spencer
07c4def47c Make sure users inherit NAT settings properly (bug #3125)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4533 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-23 01:28:41 +00:00
Mark Spencer
7f05fd2620 Fix sip hold bug (#3113)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4532 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-23 01:15:46 +00:00
Jim Dixon
46c3db1169 Fixed ackcall (once again, this time differently) in chan_agent
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4529 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-22 20:50:23 +00:00
Anthony Minessale II
414430d775 update astxs (small tweak)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4527 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-22 18:26:10 +00:00
Jim Dixon
a9ebcff694 Made changes to go with pciradio zaptel driver changes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4525 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-22 05:02:00 +00:00
Mark Spencer
b2981a4430 Merge tilghman's "showkey" patch (bug #2986)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4524 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-22 01:07:02 +00:00
Mark Spencer
ad3c50f656 Merge Steve's timestamp patch (bug #3119)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4523 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-22 00:16:42 +00:00
Mark Spencer
ea8882067e Add partial greek support (bug #3107)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4522 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-22 00:08:53 +00:00
Mark Spencer
a5b05e975b display new/old messages in voicemail event (bug #3117)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4521 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-21 23:11:40 +00:00
Mark Spencer
1d200d55bd Allow '*' to exit the directory (bug #3118)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4520 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-21 22:43:25 +00:00
Mark Spencer
9bf92ad7e4 More OpenBSD fixes (bug #3120)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4519 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-21 21:58:11 +00:00
Mark Spencer
946e66ef0e Make event parameter names consistent for callerid (bug #3116)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4518 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-21 21:46:58 +00:00
Mark Spencer
a519477534 Fix Realtime to work with MySQL and Postgres both (bug #3029)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4510 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-21 01:39:49 +00:00
Mark Spencer
217bc41c7b Allow zapscan to operate on a group (bug #2927)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4509 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-21 01:21:12 +00:00
Jeremy McNamara
f4d1002166 Fix G.729 name annoucement to Open H.323 and inform Asterisk's RTP stack specifically which codec we are expecting.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4508 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-21 00:07:56 +00:00
Mark Spencer
9f6e3aed8a Fix GSM makefile for OpenBSD (bug #3102)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4507 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-21 00:03:59 +00:00
Mark Spencer
11b29650d5 Fix Makefile for ppc64 (bug #3111)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4506 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-20 23:49:22 +00:00
Mark Spencer
e6db9fa895 Update queue to use ast_flags (bug #3108)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4505 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-20 16:20:38 +00:00
Mark Spencer
a0af83a9c4 Minor ACk fix (bug #2687, again)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4504 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-20 09:35:11 +00:00
Mark Spencer
30a4094907 Fix a small typo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4503 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-20 09:30:09 +00:00
Ben Kramer
82a9214dce / changed native bridge checking for playing DTMF's
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4502 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-20 03:18:26 +00:00
Ben Kramer
6516708b9b / fixed "Fix comment issues (bug #3089)" bugs
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4501 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-20 02:34:26 +00:00
Jeremy McNamara
8b679b004a Create string properly and cast peer correctly
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4495 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-20 00:14:19 +00:00
Mark Spencer
d87c4f7008 iax2 typename fix
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4494 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-20 00:10:05 +00:00
Mark Spencer
245541a8d7 Merge optimize options patch (bug #3095)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4493 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-19 22:21:10 +00:00
Mark Spencer
ed2d0a0eb2 Add some more of kpflemings optimizations (bugs #3092, #3094)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4492 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-19 21:44:24 +00:00
Mark Spencer
0570c6305f Additional queue optimization (bug #3093, with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4491 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-19 21:30:55 +00:00
Mark Spencer
c85b38383c Compute queue caller's timeout just once (bug #3091, with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4490 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-19 21:23:36 +00:00
Mark Spencer
f58a5942cb Fix MGCP compile warnings
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4489 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-19 21:18:17 +00:00
Mark Spencer
d6471bec31 Merge Olle's comment patch (bug #3097)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4488 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-19 21:13:41 +00:00
Mark Spencer
d6a415c262 Merge drumkilla's bitfield patch for SIP (bug #3083)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4487 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-19 20:50:55 +00:00
Mark Spencer
bfaa2734a6 Fix little macro (bug #3100)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4486 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-19 18:33:05 +00:00
Mark Spencer
f81cf74784 Make sure read/write format are setup properly.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4485 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-19 18:26:12 +00:00
Mark Spencer
775e0953be SIP locking improvements
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4484 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-19 18:22:47 +00:00
Mark Spencer
61f25c3e92 Merge twisted's OSX compat fix (bug #3090)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4483 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-19 17:33:19 +00:00
Mark Spencer
374c9c1789 SMS fix, pbx optimization (bug #3098)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4482 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-19 17:16:39 +00:00
Mark Spencer
933f3a22f4 Make sure we del any remaining connections (bug #2982)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4480 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-18 23:32:42 +00:00
Mark Spencer
b3a0ef24ed Fix comment issues (bug #3089)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4479 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-18 22:04:07 +00:00
Mark Spencer
750c73a62f Fix SIP ACK for BYE (bug #3087)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4478 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-18 21:58:05 +00:00
Mark Spencer
c14a82f2fe Improve ACL performance (thanks sailer) (bug #3084)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4477 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-18 21:54:58 +00:00
Mark Spencer
a9e69f2753 Merge olle's amazing ACK fix (bug #2687)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4476 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-18 14:26:24 +00:00
Mark Spencer
05e5da6083 Fix silly error in makefile (bug #3081)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4475 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-18 13:38:15 +00:00
Jeremy McNamara
d999f80dbe oopsie
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4474 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-18 07:10:46 +00:00
Jeremy McNamara
d2f64f963d Fix incoming caller*id. Bug #3077
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4473 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-18 04:09:39 +00:00
Mark Spencer
f864477ba8 Fix missing NULL (bug #3078)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4472 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-17 15:08:55 +00:00
Mark Spencer
ab9a5820e8 Fix mkdep to work with /bin/sh on solaris and friends (bug #3050)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4471 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-17 07:59:26 +00:00
Jeremy McNamara
c49adea89c Properly deal with Q.931 cause codes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4470 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-16 04:25:49 +00:00
Mark Spencer
cadb8d010b Merge russell's flag macro patch (with slight mods) (bug #3046)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4469 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-16 03:15:20 +00:00
Mark Spencer
da6073e8c6 Warn when libpri is too old
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4468 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-16 03:14:59 +00:00
Jeremy McNamara
0155dee2fd Properly deal with Caller*ID, document the new RTP Payload setting, remove compiler option that may confuse g++ and force chan_h323.so to be relinked on every compile
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4467 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-16 02:03:19 +00:00
Jeremy McNamara
4082e265d6 Major fixes: Fixed deadlock issue, added support for inband call progress and correct Progress Indicator messages, added configurable RTP payload to send RFC2833 DTMF and correct sending of RFC2833 User Input capability, fixed hostname parsing on peers, preliminary support for correct Q.931 cause codes and fixed bindaddr compile warning
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4466 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-15 23:24:13 +00:00
Ben Kramer
f08b28975b / finished off support for DTMF caller ID (brazil) using patch provided by
/ Daniel Bichara


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4464 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-15 22:59:47 +00:00
Mark Spencer
d1956e855d Don't let you change your password to '#' (bug #3066)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4463 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-15 22:49:37 +00:00
Mark Spencer
6e72bad3af Extra debugging in CDRCSV (bug #3063)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4462 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-15 20:49:33 +00:00
Mark Spencer
e58083c1f9 DISA fix, makefile fix (bug #3049)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4461 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-15 20:29:31 +00:00
Mark Spencer
77b39af6bf Fix DISA with callerid (bug #3058)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4460 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-15 20:20:58 +00:00
Matthew Fredrickson
e399238ee3 Little addition to the redirectionreason stuff
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4459 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-15 20:03:17 +00:00
Matthew Fredrickson
b420a63e73 Add new variable for PRIREDIRECTREASON in dial plan if you a call is redirected
to you.  Also some E&M tweaking parameters.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4458 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-15 19:59:53 +00:00
Mark Spencer
76de8d70a8 Fix it so TARGET always has at least one thing in it (bug #3049)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4456 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-15 16:09:30 +00:00
Mark Spencer
467c5dbf9f Fix quad_t (bug #3048)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4455 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-15 16:07:35 +00:00
Mark Spencer
dd6a232277 Add missing patch
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4454 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-15 16:01:13 +00:00
Mark Spencer
54b418482f Fix glob issue on solaris (bug #3047)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4453 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-15 16:00:10 +00:00
Mark Spencer
5d92e20876 Minor disa fix for 3.4
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4452 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-15 15:40:29 +00:00
Mark Spencer
77617f592e Remove broken "ackcall" fix (bug #3043)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4451 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-15 04:47:12 +00:00
Mark Spencer
706bb6f067 Fix silly read problem which would hang up if nobody called (bug #3042)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4450 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-15 04:27:35 +00:00
Mark Spencer
dc636198ec Small macro fix (bug #3044)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4447 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-15 03:24:39 +00:00
Mark Spencer
9d40b8ee80 Merge slimey's Solaris compatibility (with small mods) (bug #2740)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4446 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-14 23:36:30 +00:00
Mark Spencer
0f205bb079 Add "SAY ALPHA" (matt nicholson)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4445 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-14 18:39:25 +00:00
Mark Spencer
7a5dfd65ba Fix minor makefile issues (bug #3036)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4444 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-13 21:45:03 +00:00
Ben Kramer
ac4b71a0ba / fix for callerid configuration when opening channel driver
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4443 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-13 21:04:12 +00:00
Mark Spencer
c9bc9e135d Fix res_config_mysql crash (thanks drumkilla!) (bug #3009)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4442 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-13 15:26:26 +00:00
Mark Spencer
ff740c1bd8 GR-303 conferencing fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4441 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-13 15:11:36 +00:00
Mark Spencer
7d6a43c2bb Fix PGSQL CDR issue (bug #3028)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4440 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-12 23:34:24 +00:00
Mark Spencer
8c68897d1e smsq issues (bug #3025)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4439 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-12 23:29:47 +00:00
Mark Spencer
0e5cec5e09 fix DIALSTATUS issue (bug #2989)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4438 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-12 04:58:07 +00:00
Mark Spencer
9db0fbf879 Add optional category for voicemail (bug #3022)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4437 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-12 04:52:24 +00:00
Mark Spencer
7e036135be Fix language handling (bug #3023)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4436 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-12 04:30:52 +00:00
Mark Spencer
7d4a46d9d2 Merge SIP authentication reuse patch (bug #2917) aka "The Broadvoice Patch" with modifications
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4435 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-12 04:25:59 +00:00
Mark Spencer
1297800175 Make registertimeout be configurable (bug #2874)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4434 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-12 03:44:17 +00:00
Mark Spencer
fd0b9cc522 Merge privacy enhancements (bug #2091)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4433 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-12 01:24:35 +00:00
Mark Spencer
33cf4bcb0f Expose SIP URI (bug #3017)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4432 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-12 01:15:54 +00:00
Mark Spencer
f88fd2f9e4 Don't send DTMF when there is no owner (partof bug #3011)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4431 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-11 23:00:20 +00:00
Mark Spencer
bbbd682ed6 Revert earlier patch (bug #2825)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4430 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-11 22:46:10 +00:00
Mark Spencer
30bc3eec6e Merge sms stuff and move to "utils" subdir (bug #2973)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4429 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-11 22:36:27 +00:00
Mark Spencer
442e1403a8 Restore ignoring missing include files (bug #2825)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4428 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-11 20:03:42 +00:00
Mark Spencer
bc92c225fb Add iax2 provisioning application for dialplan
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4427 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-11 19:25:10 +00:00
Mark Spencer
be9ec5833d Add support for globbing (bug #2825)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4426 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-11 05:16:30 +00:00
Mark Spencer
c2d98239d2 Fix use count for agent/local (bug #2996 et al)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4425 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-11 04:46:49 +00:00
Mark Spencer
3680db8630 Add polish zones (bug #3016)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4424 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-11 04:31:05 +00:00
Mark Spencer
343ef16d4f Make sure context is passed properly on _exec (bug #2969)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4423 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-11 03:50:19 +00:00
Russell Bryant
9470de1b49 Show some counters with 'show dialplan' (bug #2968)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4422 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-11 03:08:12 +00:00
Mark Spencer
1e51aa13af Reload fixes (bug #2991)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4421 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-11 00:02:08 +00:00
Mark Spencer
8ed07241cb Fix setvar issue (bug #3010)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4419 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-10 23:01:48 +00:00
Jim Dixon
be2505fef8 Added 'c' option to AgentMonitorOutgoing (like in wiki, wiki, wiki) which
changes source channel in CDR to agent id.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4418 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-10 17:37:20 +00:00
Jim Dixon
e245ef4b0d Fix ackcall problem for Zaptel channels
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4417 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-10 13:45:11 +00:00
Russell Bryant
4bbdbf3a79 make table configurable for cdr_odbc (bug #2755)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4416 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-10 11:59:43 +00:00
Jim Dixon
998621f76a Fixed call parking, added separate paramater to allow/disallow call parking on
Zaptel interfaces (canpark=yes/no in zapata.conf), added urlbase paramater to
Monitor so that a url can optionally be included in CDR (user field), cleaned up a couple of minor things


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4413 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-09 22:39:14 +00:00
Mark Spencer
9f1a7379cc Make table for PGSQL CDR's configurable (bug #2951)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4412 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-09 20:34:35 +00:00
Mark Spencer
5789ae4d18 Make music on hold truly optional (bug #2998)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4411 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-09 19:55:01 +00:00
Mark Spencer
78642a3ed2 Add to ignore list
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4410 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-09 19:44:58 +00:00
Mark Spencer
40fbe50662 Update comment for fmtp 16, implement in RTP (bug #2999)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4409 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-09 14:54:13 +00:00
Mark Spencer
6e800f4797 Add Lithuania and Hungary to tone zones (bug #2992)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4408 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-09 06:33:40 +00:00
Mark Spencer
52a39dd8c1 Merge josh's exit dir patch (bug #2995)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4406 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-08 21:24:00 +00:00
Mark Spencer
82a95912e6 Add version 22 firmware for iaxy
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4405 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-08 21:14:40 +00:00
Anthony Minessale II
8708f19e39 fix bug 2994 (off by 1 error)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4404 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-08 18:24:04 +00:00
Russell Bryant
ab7bf9d4fd remove unnecessary 'if'
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4402 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-08 14:41:49 +00:00
Anthony Minessale II
c18db950e5 fix case sensitivity issue in codecs
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4400 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-08 00:55:31 +00:00
Mark Spencer
c46e21252c Big diet for struct ast_channel
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4399 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-07 20:38:43 +00:00
Russell Bryant
53f5a568fb fix mem leak in free_value (bug #2990)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4398 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-07 19:46:29 +00:00
Russell Bryant
d685a19c9e change strdupa to ast_strdupa (bug #2988)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4396 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-07 15:42:00 +00:00
Mark Spencer
77b5459c59 Minor translation performance improvement (bug #2987, not that patch though)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4393 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-06 21:53:57 +00:00
Mark Spencer
dc074b7029 Merge bkw's formatting and variable substitition (bug #2984)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4392 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-06 17:21:44 +00:00
Mark Spencer
4429bce838 Add missing free's in rare circumstances (bug #2985)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4391 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-06 17:12:21 +00:00
Mark Spencer
0455688ea1 Add persistent dynamic queue member support (bug #2929)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4390 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-06 05:54:16 +00:00
Mark Spencer
0ceb14b9a4 Consider a comment to start with ;-- but not if there are more dashes (bug #2977)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4389 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-05 07:29:09 +00:00
Mark Spencer
1b9c72655e silliness (N for "nat" not "no")
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4387 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-04 23:52:05 +00:00
Mark Spencer
50f65a4307 Add heavily revised version of anthm's multi-line comment (bug #2911)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4386 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-04 16:09:45 +00:00
Mark Spencer
244dd57299 Fix allow/disallow nomenclature (bug #2945, part deux)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4385 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-03 23:46:09 +00:00
Mark Spencer
4820c2bb97 Add *preliminary* per-peer outbound proxy (bug #2859, new patch though)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4383 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-03 23:34:45 +00:00
Anthony Minessale II
41306646ad one more disallow issue resolved disallow=all in peer must flush prefs list
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4379 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-03 01:16:11 +00:00
Anthony Minessale II
07bce6f282 add missing ~ to ast_parse_allow_deny that was breaking disallow
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4377 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-03 01:05:40 +00:00
Mark Spencer
d069845b46 Oops
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4375 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-02 23:53:17 +00:00
Mark Spencer
6bf1183922 Add nasty sip get header, too (bug #2838)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4374 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-02 23:51:10 +00:00
Mark Spencer
3b7b130683 Add nasty "AddSIPHeader" application (bug #2846)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4373 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-02 23:44:35 +00:00
Mark Spencer
1a147cf804 Add user=phone option (bug #2244, thanks oej)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4372 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-02 23:29:25 +00:00
Mark Spencer
f375ebee86 Merge SIP portion of new codec work from bug #2945
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4371 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-02 22:18:09 +00:00
Mark Spencer
36928f0644 Merge updates to frame.h and frame.c (codec stuff from bug #2945, part 1)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4370 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-02 21:57:45 +00:00
Anthony Minessale II
3253f72193 fix small goto logic issue
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4369 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-02 18:08:11 +00:00
Mark Spencer
2e868d323f Use correct function for name of codec (bug #2897)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4368 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-01 21:41:21 +00:00
Mark Spencer
55b8c48960 Update festival documenation (bug #2964)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4367 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-01 21:10:28 +00:00
Mark Spencer
374e04f6a5 Don't create the channel if there already is one...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4366 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-01 18:44:52 +00:00
Mark Spencer
dccc0214c1 Fix missing ast_destroy's in PGSQL (bug #2944)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4365 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-01 05:27:18 +00:00
Mark Spencer
50da413b63 Specify hostname if there is a crash (bug #2958)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4364 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-01 05:10:32 +00:00
Mark Spencer
6d8ef68057 Merge manager action and example (bug #2701)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4363 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-01 05:00:29 +00:00
Mark Spencer
34e56e8675 Make sure we really have a bridged channel (bug #2963)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4362 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-01 04:35:34 +00:00
Mark Spencer
4a42b24900 Print number of applications (bug #2961)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4361 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-01 01:28:07 +00:00
Mark Spencer
3d4abcf751 If messages is deleted, don't send it (bug #2957)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4360 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-30 21:46:29 +00:00
Ben Kramer
8976d39051 / fixed bug w/regards to playing dtmf's on native bridges
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4359 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-30 20:55:23 +00:00
Mark Spencer
15ba447e53 Add brazil detection (bug #2872)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4358 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-30 14:27:36 +00:00
Ben Kramer
a8de8a68b4 / added "indication" option to use Ast indication functions
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4357 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-30 04:16:05 +00:00
Ben Kramer
bc47ead812 / added "indication" option, to use Ast indication functions
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4356 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-30 04:14:27 +00:00
Ben Kramer
18051c0086 / added extra options to callerid variable
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4355 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-29 23:57:19 +00:00
Ben Kramer
862cebad5c / added new function to use the Asterisk callerid functions.
/ set callerid=v23|bell to use the asterisk based function
/ set callerid=on to use the vpb caller id function


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4354 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-29 23:20:16 +00:00
Mark Spencer
46927aa38b Don't print silly unregistered messages on realtime
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4353 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-29 03:24:35 +00:00
Mark Spencer
ebda286578 Don't seed on temponly peers
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4352 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-29 03:19:55 +00:00
Mark Spencer
3050320746 Implement max # of forwards (bug #2942, different strategy)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4351 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-28 22:08:44 +00:00
Mark Spencer
aaf49c6f4c Add option for small headers (bug #2948)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4350 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-28 21:49:07 +00:00
Mark Spencer
e95fa2a065 Add ability to store voicemail in ODBC database
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4349 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-28 21:28:30 +00:00
Mark Spencer
1406e38d8f Try call if call is 0 or more (bug #2935)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4347 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-25 22:11:06 +00:00
Mark Spencer
62cf9a21ea Fix missing )
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4346 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-25 18:52:16 +00:00
Anthony Minessale II
f885e0a6cd fix typo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4341 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-25 13:45:29 +00:00
Russell Bryant
dc78939d1a Add temporary greetings to voicemail (bug #2360)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4335 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-25 06:48:26 +00:00
Russell Bryant
5a18fe243c fix mem leak (bug #2940)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4333 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-25 06:13:29 +00:00
Mark Spencer
5a3595c4f9 Fix meetmesecs (bug #2936)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4332 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-25 03:23:07 +00:00
Mark Spencer
e7bc4fa3d7 Small chan_features patch (bug #2939)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4331 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-25 03:19:18 +00:00
Mark Spencer
8c42a49ec8 Merge tony's ampersand patch (bug #2934)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4330 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-25 02:57:34 +00:00
Mark Spencer
7ea9bd7b83 Add WaitForSilence application (bug #2467)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4329 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-24 05:01:49 +00:00
Mark Spencer
dff0090504 Don't increment RTP timestmap on sending of DTMF (bug #2928)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4328 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-24 04:12:23 +00:00
Mark Spencer
a56e3a0a9f Increase max buffer size (bug #2926)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4327 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-24 03:19:27 +00:00
Mark Spencer
8f2b687a95 Make realtime pbx understand patterns.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4326 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-24 03:07:08 +00:00
Anthony Minessale II
2a1bf5efd9 fix inherited softhangup issue in ast_goto_if_exists()
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4325 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-23 20:25:02 +00:00
Mark Spencer
5e650c8260 Build out "multi" version of realtime config (directory and realtime extensions will need this)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4324 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-23 17:58:59 +00:00
Mark Spencer
d92e62d4d4 Fix for rpid (from airport, bug #2910)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4323 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-23 16:10:24 +00:00
Mark Spencer
893b238eff Don't hold the iaxsl[x] lock while finding the peer, do it ahead of time.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4322 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-23 13:44:08 +00:00
Mark Spencer
c0fc084559 Fix Record with "." in filename (bug #2923)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4321 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-23 02:35:46 +00:00
Mark Spencer
239f1a0ef9 Quickie fix to remove unnecessary newline (bug #2922)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4320 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-23 02:13:56 +00:00
Mark Spencer
9cd104ff6f Merge anthm's MacroIf patch (bug #2912)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4319 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-22 23:41:34 +00:00
Mark Spencer
d456e6ba54 Little dial typo fix and make WaitExten continue if nothing entered and there is a step n+1
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4318 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-22 22:40:06 +00:00
Mark Spencer
d7da317979 Add improved macro functionality (bug #2905)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4317 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-22 22:11:10 +00:00
Mark Spencer
4562f0632a Fix typo (missing braces) (bug #2919)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4316 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-22 19:01:11 +00:00
Mark Spencer
39be2d6244 Don't allow more than 10 seconds of audio for callerid (bug #2920)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4315 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-22 18:59:19 +00:00
Mark Spencer
a69c0016da Realtime improvements
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4314 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-22 18:39:40 +00:00
Mark Spencer
23c2d6b12c Release call lock while we look for the peer to avoid a deadlock
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4313 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-22 18:25:27 +00:00
Mark Spencer
b48d2563ae Fix missing arguments
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4312 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-22 14:33:42 +00:00
Mark Spencer
536d9d370e Minor realtime improvements
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4311 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-22 05:03:03 +00:00
Mark Spencer
fdfd69cca0 Add first pass at realtime
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4309 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-22 03:25:27 +00:00
Mark Spencer
0e35816160 Little fixups for busy
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4308 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-21 20:38:32 +00:00
Mark Spencer
7f445141f2 Oops
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4307 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-21 20:27:21 +00:00
Mark Spencer
a50dd88d24 Display cause code for failure to get channel
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4306 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-21 20:25:45 +00:00
Mark Spencer
e4d1ada252 In fact, be even more pedantic
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4305 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-21 19:36:46 +00:00
Mark Spencer
4c624caef3 Don't create owner twice (this should go to -stable too)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4304 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-21 19:34:19 +00:00
Mark Spencer
77f36c6b87 Fix variable reset in SIP (bug #2916)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4303 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-21 19:18:04 +00:00
Mark Spencer
53082f28e9 Fix compiler warning
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4302 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-21 17:02:04 +00:00
Mark Spencer
1c76c72ccb Fix app_queue when working in conjunction with anthm's moh patch (bug #2891)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4301 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-20 15:15:51 +00:00
Mark Spencer
877dcd1aa5 Don't overwrite unchanged files
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4300 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-20 06:47:33 +00:00
Mark Spencer
cd4ff4ecb1 Add sampling rate handling
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4299 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-19 21:52:25 +00:00
Anthony Minessale II
eca329c0d0 Minor Fix to disposition on clone routine
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4298 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-19 17:52:53 +00:00
Mark Spencer
0351e3e37c Create "OVERWRITE" option to Makefile to prevent sample from overwriting options
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4297 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-19 14:04:57 +00:00
Mark Spencer
c05c95b497 Fix V23 callerid handling if an event is received (bug #2909)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4296 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-19 13:45:44 +00:00
Mark Spencer
e584c9dab7 Add option to use directory for forward/compose (bug #2025)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4294 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-19 05:47:21 +00:00
Mark Spencer
3884b05a0e Increment seqno in RTP in RFC2833 (bug #2902)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4293 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-19 05:24:45 +00:00
Mark Spencer
066d22ae0d Add incremental/decremental priorities (bug #2906)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4292 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-19 05:18:10 +00:00
Mark Spencer
1632d45e85 Fix little SIP header continuation issue
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4290 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-18 04:26:22 +00:00
Mark Spencer
a71e44bbdc Minor command completion tweak (bug #988 bis)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4287 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-18 04:11:51 +00:00
Mark Spencer
a53765b55a Fix initialization of CLI (bug #2861)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4284 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-17 19:28:08 +00:00
Mark Spencer
ef74e24331 Fix little logging issue
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4283 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-17 19:27:47 +00:00
Mark Spencer
bb6493c861 Make sure sin_family is filled in
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4282 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-17 19:11:33 +00:00
Mark Spencer
c75879d64a Revised seqno fix (bug #2887)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4281 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-17 19:04:48 +00:00
Mark Spencer
0e5ecf4a0d Fix rollover with DTMF (bug #2887)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4280 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-17 18:36:17 +00:00
Mark Spencer
834627669e Check that FD's are open before closing (bug #2858)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4279 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-17 18:16:08 +00:00
Mark Spencer
07b19fad72 Update IAXy to firmware 20
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4278 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-17 14:48:39 +00:00
Mark Spencer
7cc2ae0e40 Small bug big fix for MGCP (bug #2888)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4277 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-17 14:48:16 +00:00
Mark Spencer
a085c07f89 Don't hold modlock while doing reload
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4276 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-17 13:40:47 +00:00
Mark Spencer
09319f66a0 Merge polarity reversal hangup patch (bug #2847)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4275 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-17 06:18:33 +00:00
Mark Spencer
a465a8aef9 Expose tone state and threshold (bug #2830)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4274 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-17 05:55:26 +00:00
Jim Dixon
c513f7318c Updated so that it will work with latest changes in asterisk, plus fixed a couple of little problems.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4273 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-17 05:26:36 +00:00
Mark Spencer
6b72043074 Add "ImportVar" application
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4272 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-17 04:48:58 +00:00
Mark Spencer
17d5d7bdb7 Oops
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4271 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-17 04:36:39 +00:00
Mark Spencer
eedf47ac8f Add GET FULL VARIABLE AGI command
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4270 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-17 04:02:56 +00:00
Mark Spencer
d1f802d254 Fix silence detection in app_record (bug #2883)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4269 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-17 03:34:56 +00:00
Mark Spencer
387fbae462 Update sample config files for setvar
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4268 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-17 03:11:42 +00:00
Mark Spencer
ee47520f28 Merge Tony's uservars (bug #2882)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4267 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-17 03:10:38 +00:00
Mark Spencer
13814b20a1 Make sure we use new tags for sip register calls (bug #2697)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4266 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-16 23:18:37 +00:00
Anthony Minessale II
6c16e5aa2b Fix ANI2 variable so it preserves 2 digit precision like it's supposed to.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4265 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-16 16:57:08 +00:00
Jeremy McNamara
eb035201f8 Another temp fix attempt, until I can do it correctly.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4264 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-16 15:37:56 +00:00
Mark Spencer
e6a9e6f90c Fix logger
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4263 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-16 13:52:35 +00:00
Mark Spencer
0c67840847 Fix double ring...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4262 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-16 03:58:46 +00:00
Mark Spencer
94f6f76fbe Add get option command (bug #2868, thanks junky!)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4261 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-16 03:37:07 +00:00
Mark Spencer
c86ee49fde Documentation fixup (thanks, drumkilla)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4260 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-16 03:13:05 +00:00
Mark Spencer
351497ce36 Update has_no_members to know about device status codes (bug #2867)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4259 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-16 01:24:31 +00:00
Mark Spencer
11c51dd7e1 Generate new QueueMemberAdded and QueueMemberRemoved events
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4258 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-15 18:06:54 +00:00
Mark Spencer
9dcb9a0000 Channel availability updates (bug #2829 with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4257 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-15 16:27:28 +00:00
Mark Spencer
8438e42858 Fix mgcp oopsie...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4256 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-15 14:29:15 +00:00
Mark Spencer
4dbfcb6556 Merge comment/formatting fixes from OEJ
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4255 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-15 13:39:40 +00:00
Russell Bryant
9b78337c6e add missing file (bug #2843)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4254 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-15 04:32:12 +00:00
Mark Spencer
8de7794637 ADPCM and G.726 performance improvements courtesy fOSSiL (bug #2843)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4249 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-15 00:56:53 +00:00
Mark Spencer
9bf48f9ce7 DSP enhancements (bug #2826) courtesy pcadach
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4248 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-15 00:48:36 +00:00
Mark Spencer
0e3c6239fc Add depend support for H.323 (bug #2757)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4247 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-15 00:41:25 +00:00
Mark Spencer
419e5113e6 Oops for mgcp and logger fix for old linux
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4246 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-15 00:35:49 +00:00
Mark Spencer
483146e034 Make res crypto less chatty (bug #2857)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4245 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-15 00:33:07 +00:00
Russell Bryant
3539a390fe truncate 'const const' to 'const'
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4244 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-14 22:38:34 +00:00
Mark Spencer
ccff3cf375 Fix bizarre construct
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4243 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-14 22:33:32 +00:00
Russell Bryant
015a3ca155 comment out misery in the dundi sample config
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4242 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-14 18:00:26 +00:00
Mark Spencer
91dda91521 Fix MGCP deadlock potential
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4241 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-14 17:23:06 +00:00
Mark Spencer
732337d1e6 On second thought, add new "never" option for progressinband
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4240 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-14 15:13:13 +00:00
Mark Spencer
61b70c7f36 Send 180 ringing even if we're going to send in-band if we're still in RING state...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4239 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-14 14:54:54 +00:00
Mark Spencer
05cbf44ba8 Fix possible race...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4238 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-14 05:52:08 +00:00
Russell Bryant
05bcdff586 fix subtraction error
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4237 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-14 00:24:35 +00:00
Russell Bryant
e88b1ec532 another little typo ... to make twisted happy
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4236 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-14 00:16:54 +00:00
Russell Bryant
f608394204 fix little typo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4233 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-14 00:06:54 +00:00
Mark Spencer
d7b3ef9b58 Send progress before in-band indications for BUSY/CONGESTION
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4232 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-13 23:56:50 +00:00
Mark Spencer
dffb2566bc Big agent / queue fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4231 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-13 22:44:33 +00:00
Mark Spencer
c75b317757 Pull language from peer too (bug #2848)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4230 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-13 16:22:44 +00:00
Mark Spencer
dd43338425 Updates from char * to const char * + german syntax + enumeration (bug #2780)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4229 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-13 16:13:07 +00:00
Mark Spencer
a1cdeb6f80 Fix comment
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4222 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-12 13:27:11 +00:00
Mark Spencer
3e1fa1f6ac Fix sneakiness of OEJ
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4221 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-12 03:57:39 +00:00
Mark Spencer
ef6fc3ed74 Make status available on agent channels
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4220 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-12 03:50:19 +00:00
Mark Spencer
d08bd95ac6 Make mailbox time configurable with SIP (bug #2837)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4219 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-12 03:49:13 +00:00
Mark Spencer
d5c7dd696e Allow dashes in extensions (bug #2835)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4218 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-12 02:54:17 +00:00
Mark Spencer
37a14d1de8 Merge Italian voicemail support (bug #2842)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4217 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-12 01:35:16 +00:00
Mark Spencer
f2b31be954 Merge italian "say" support (bug #2840)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4216 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-12 01:32:45 +00:00
Jeremy McNamara
be93d86b48 format properly
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4215 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-11 21:35:56 +00:00
Jeremy McNamara
0543c58018 A [possibly] better solution to the CalledPartyAddress problem. Test and report please
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4214 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-11 21:30:30 +00:00
Mark Spencer
c5c331ab15 Make timing stuff generic (bug #2839)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4213 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-11 21:23:45 +00:00
Mark Spencer
c4cca41a72 Fix for DESTDIR
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4212 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-11 20:57:49 +00:00
Jeremy McNamara
b1b95fe6f1 Use passed dest value, for the moment. A better fix is being worked on
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4211 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-11 20:34:46 +00:00
Mark Spencer
7563b0ab7d SIP fix for full contact in OPTIONS (bug #2836)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4210 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-11 20:13:22 +00:00
Jeremy McNamara
a17779bba8 lets try it this way
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4209 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-11 20:10:45 +00:00
Jeremy McNamara
7db49b3107 Use the right charector, dummy
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4208 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-11 20:04:00 +00:00
Mark Spencer
9ab27e3382 Fix segfault
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4207 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-11 19:55:09 +00:00
Jeremy McNamara
42cb459cce copy over username to create a proper called addr
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4206 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-11 19:51:55 +00:00
Mark Spencer
13d180bc66 On second thought, require 'j' option to enable new jumping feature
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4205 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-11 15:16:50 +00:00
Mark Spencer
7763920906 Allow app_authenticate to go to n+101
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4204 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-11 15:13:41 +00:00
Mark Spencer
2840e351ad Cleanup/performance improve chan_sip slightly (bug #2823)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4203 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-11 15:08:57 +00:00
Mark Spencer
ec3dc05bf7 Fix chan_phone for kernel 2.6 (bug #2831)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4202 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-11 14:58:57 +00:00
Mark Spencer
53d9aa13eb Add pkgconfig support (bug #2734)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4201 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-11 14:48:53 +00:00
Mark Spencer
9690c20710 Work around silly macos (bug #2833)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4200 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-11 14:43:18 +00:00
Mark Spencer
06221c4ec5 Fix leaky fd issue (bug #2832)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4199 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-11 14:40:14 +00:00
Mark Spencer
81a481d738 Fix off by one (bug #2872, but different solution)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4198 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-10 20:20:18 +00:00
Mark Spencer
168d706b03 Make features programable (will require iaxy binary firmware 20 to be released soon)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4197 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-09 21:19:35 +00:00
Mark Spencer
369d4bfae2 Show status of agents...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4195 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-09 05:38:40 +00:00
Mark Spencer
a5075fe0f8 Make timezone configurable within IAX (bug #2814)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4191 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-09 05:05:07 +00:00
Mark Spencer
1fd3b9976a Fix segfault
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4190 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-09 02:38:18 +00:00
Mark Spencer
0a2fff51c7 Fix supervised transfer (bug #2813)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4189 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-08 18:23:01 +00:00
Mark Spencer
6e85376343 Fix verbose error (bug #2809)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4188 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-08 15:05:53 +00:00
Mark Spencer
0364da8271 Add British and Norwegian syntax (bug #2683)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4187 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-08 15:02:44 +00:00
Mark Spencer
2f69aac45f Fix spelling error (bug #2810)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4186 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-08 14:57:54 +00:00
Mark Spencer
dd7e72feca Provide "ident" command line (at least the start of one)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4185 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-08 02:49:33 +00:00
Mark Spencer
b6524df6c8 Oops, set the userfield, not the account code...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4184 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-08 00:37:02 +00:00
Mark Spencer
552b431691 Allow client code to be set from snom phone if "useclientcode=yes" in friend
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4183 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-08 00:35:23 +00:00
Mark Spencer
bc60921076 Update indications.conf.sample for SG
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4180 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-08 00:12:11 +00:00
Mark Spencer
36f1b37542 Add OUTBOUND_GROUP support (bug #2530)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4175 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-07 21:49:43 +00:00
Mark Spencer
345742c6b9 Major MGCP locking fixes (bug #2696)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4174 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-07 21:46:09 +00:00
Mark Spencer
5509371ffc Fix page thingy (bug #2789)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4173 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-07 20:25:17 +00:00
Mark Spencer
06b5085b52 Add ANI2 to zap (bug #2788)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4172 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-07 18:59:20 +00:00
Mark Spencer
8aad8d2aa0 Come into compliance with RFC3842
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4171 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-07 18:44:33 +00:00
Mark Spencer
134e6180c5 Disable echo canceller for digital calls (bug #2785), fix build on MacOSX (bug #2803)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4170 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-07 16:21:01 +00:00
Mark Spencer
b9b3841885 Setup fromuser properly (bug #2802)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4169 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-07 00:19:42 +00:00
Mark Spencer
c732dd54e4 Fix callerid name to work with peer...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4168 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-06 23:58:46 +00:00
Mark Spencer
6cb38ac23a Add features (incomplete, highly experimental), fix DundiLookup app, debug improvements (bug #2800)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4167 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-06 21:33:01 +00:00
Mark Spencer
0f11b3b189 oops
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4166 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-06 04:48:34 +00:00
Mark Spencer
e89f4dab17 Add dumpchan application (bug #2678)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4165 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-06 04:46:06 +00:00
Mark Spencer
b5bea1c29d Fix bad line
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4164 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-05 20:29:55 +00:00
Mark Spencer
e3514814ba Make clear that "hookstate" is only valid on FXS
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4163 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-05 17:10:28 +00:00
Mark Spencer
193cc5bb0d Fix non-std characters
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4160 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-04 13:53:55 +00:00
Mark Spencer
1bb19bec4b Fix VMAuthenticate application (bug #2775)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4159 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-04 03:41:26 +00:00
Mark Spencer
94994626b6 Pass through flash hook
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4158 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-03 22:37:55 +00:00
Russell Bryant
5718466917 change 'incoming' to 'inbound' in dundi.conf.sample
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4157 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-03 22:23:58 +00:00
Mark Spencer
50010fd3d0 Fix "killa" console issue
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4156 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-03 22:04:40 +00:00
Mark Spencer
506e44802d Add VMAuthenticate application (bug #2775)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4155 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-03 15:06:44 +00:00
Mark Spencer
1f8baf8b09 Add french support
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4154 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-03 14:08:32 +00:00
Mark Spencer
798e1fde9a Fix managerproxy (bug #2506)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4149 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-02 22:34:51 +00:00
Mark Spencer
9941b34dd8 Fix locking issues
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4148 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-02 21:56:01 +00:00
Mark Spencer
5d93698d99 Fix off-by-one buglet
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4147 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-02 21:38:38 +00:00
Mark Spencer
fa161c49f1 Use getpid (non-linux) or gettid(linux) for thread identification
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4145 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-01 16:26:32 +00:00
Mark Spencer
6dce1a5a3f Little variable optimizations
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4144 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-01 15:48:42 +00:00
Mark Spencer
2f5cd4a95c Fix small typo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4143 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-01 14:48:07 +00:00
Mark Spencer
fbc2051442 Update ChangeLog
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4142 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-01 02:43:53 +00:00
Mark Spencer
668001f9c8 Make channel variables inheritable by _ (bug #928)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4141 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-01 02:23:28 +00:00
Mark Spencer
a872c59003 vmail.cgi updates (bug #2686)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4140 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-01 02:08:55 +00:00
Mark Spencer
37b375c21a Add TALK_DETECTED variable (bug #2628)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4139 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-01 02:04:05 +00:00
Mark Spencer
219acbcc07 Accept %d/%d in m= line of SDP (bug #2625, but not their patch)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4138 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-01 02:01:37 +00:00
Mark Spencer
3c5099158d Fix say for portugese (bug #2749)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4137 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-01 01:51:12 +00:00
Mark Spencer
2b6344872f Console fix (bug #2764) and logger fix...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4136 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-01 01:48:35 +00:00
Mark Spencer
afd15388cc Debugging improvements (bug #2765)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4135 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-01 01:44:11 +00:00
Mark Spencer
b8885530f4 Pass redirecting number on PRI calls (bug #2763)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4134 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-31 23:34:22 +00:00
Mark Spencer
c18dfe9bf6 Ouch.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4133 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-31 23:29:56 +00:00
Mark Spencer
3e9b079007 DISA enhancemnets (bug #2766)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4132 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-31 23:28:42 +00:00
Mark Spencer
bec04aa020 Misc code fixes (bug #2762)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4131 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-31 23:17:11 +00:00
Mark Spencer
18780395de Add voicemail to say # of minutes remaining (bug #2302)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4130 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-30 20:49:42 +00:00
Mark Spencer
b40c7e28a4 Add RTP debug support (bug #2570)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4129 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-30 01:52:12 +00:00
Mark Spencer
da13a5c885 Oopsies...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4128 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-29 22:31:36 +00:00
Mark Spencer
f38c6ee7fa Make retrans timer less aggressive
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4127 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-29 21:47:42 +00:00
Mark Spencer
c46c83bc96 Complete DUNDi push (first pass) support
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4125 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-29 13:04:37 +00:00
Mark Spencer
913f28a9c2 Fix record app
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4124 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-28 22:14:08 +00:00
Mark Spencer
22384074d9 Fix qsig support
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4123 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-28 21:42:39 +00:00
Mark Spencer
3895c7d599 Fix potential seg if someone doesn't specify an extension
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4122 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-28 21:37:18 +00:00
Mark Spencer
cd7c8b1382 Add structures for status reporting
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4121 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-28 19:55:18 +00:00
Mark Spencer
2bbb53147d Record application updates (bug #2627)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4120 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-28 19:08:02 +00:00
Matthew Fredrickson
ac558d5dbe Adding Q.SIG switchtype option to chan_zap
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4119 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-28 16:11:04 +00:00
James Golovich
3c12ea1c89 Cleanup formatting in bug 2741 patch
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4118 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-28 15:53:36 +00:00
Mark Spencer
6b9d24b54a Oops
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4117 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-28 14:25:50 +00:00
Jeremy McNamara
a15297d29f more code clean-up
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4116 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-28 06:06:58 +00:00
Mark Spencer
384bf5dc32 fix compiler warning
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4115 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-28 01:56:49 +00:00
Ben Kramer
2781d38064 / fixed for change in ast_channel structure
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4114 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-28 00:51:25 +00:00
Mark Spencer
b7015cb9bc Transfer improvements and fixes (bug #2741)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4113 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-27 22:01:33 +00:00
Mark Spencer
a82963fb1c Fix H.323 doc stuff (bug #2739)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4112 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-27 20:02:35 +00:00
Mark Spencer
4c0c0db318 Preliminary "PRECACHE" / push support...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4110 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-27 13:58:31 +00:00
Anthony Minessale II
a18f60f5e8 rollback stupid code
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4109 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-27 03:33:14 +00:00
Anthony Minessale II
827df5e987 even more paranoid serialize code
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4108 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-27 02:26:17 +00:00
Anthony Minessale II
5e5c478934 add more paranoid handling to pbx_builtin_serialize_variables
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4107 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-27 01:34:06 +00:00
Mark Spencer
8a13712e45 Pass concept of status back, permit "leaveempty" to work with static agents who are not loggedon (bug #2719)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4106 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-26 22:25:43 +00:00
Mark Spencer
9efbc46301 Add manager proxy (bug #2506)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4102 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-26 04:02:57 +00:00
Mark Spencer
dcb396b76b Fix chan_local debug message (bug #2725)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4101 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-26 03:01:52 +00:00
Mark Spencer
352f1f4e14 Fix MGCP dtmf buglet (bug #2696)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4100 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-26 02:57:18 +00:00
Mark Spencer
db58aec4f3 Add n+101 jump if file does not exist (bug #2722)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4099 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-26 02:25:50 +00:00
Mark Spencer
b8a02257a5 Fix short message isssue (bug #2723)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4098 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-26 02:21:43 +00:00
James Golovich
2486f30a41 Fix compilation of chan_agent.c on gcc < 3.0
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4085 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-24 18:02:32 +00:00
James Golovich
286ea2461d Use same defines for NetBSD as FreeBSD in pbx_dundi.c (bug 2716)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4084 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-24 17:53:10 +00:00
Mark Spencer
5bdaba8193 Add new features to agent stuff (bug #1693)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4083 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-24 13:24:16 +00:00
Mark Spencer
73558b7492 Do not build with DEBUG_THREADS on by default!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4082 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-24 13:18:19 +00:00
Mark Spencer
d687e019e5 Fix email debyg line (bug #2675)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4081 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-24 13:15:12 +00:00
Mark Spencer
f8d3b1ad77 Fix Makefile issue (bug #2691, again)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4080 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-24 13:11:15 +00:00
James Golovich
8009d53690 Pass format string
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4079 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-24 06:44:37 +00:00
Mark Spencer
e14ae8b10b Don't execute log functions for log levels we don't track
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4078 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-24 06:12:21 +00:00
Mark Spencer
16e8f4ca35 Allow "dundi flush" to flush statistics too
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4077 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-24 06:04:48 +00:00
Mark Spencer
8870947391 Oops
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4076 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-24 05:55:34 +00:00
Mark Spencer
11dfba3120 Add cache bypass mode
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4075 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-24 05:51:57 +00:00
Mark Spencer
49da32e637 Oops
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4074 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-24 05:08:45 +00:00
Mark Spencer
76b5be4c87 DUNDi performance enhancments and metrics for average lookup time.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4073 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-24 04:54:42 +00:00
Mark Spencer
73a820a93b Fix user event body (bug #2713)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4072 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-24 03:17:37 +00:00
Mark Spencer
382bbb68cc Add missing pbx_loopback file...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4071 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-24 03:14:44 +00:00
Mark Spencer
82cbf28993 Add "Loopback" switch
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4070 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-24 02:53:24 +00:00
Anthony Minessale II
4959fb958c Make sure close() is not called on a fd < 1 with a wrapper call
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4069 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-23 22:00:40 +00:00
Mark Spencer
69a8f90814 Fix for FreeBSD (netbsd too?) (bug #2702)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4068 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-23 21:41:17 +00:00
Mark Spencer
d309ffbd0a Fix SMS thingy for Bezeq (bug #2708)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4067 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-23 20:34:40 +00:00
James Golovich
efd028f632 Check return value of malloc before dereferencing ptr in chan_zap.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4066 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-23 20:33:01 +00:00
Mark Spencer
ee52c6062a Fix BSD issue (bug #2668)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4065 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-23 14:15:59 +00:00
Mark Spencer
cf764b8cba Tones for singapore (bug #2688)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4064 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-23 13:08:57 +00:00
Mark Spencer
e21ed1865b First pass at making transfer work within agent (not tested, shouldn't break anything that currently worked)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4061 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-23 12:19:47 +00:00
Mark Spencer
9235f8bda3 Help leanup (bug #2677)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4060 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-23 12:17:46 +00:00
Mark Spencer
3267c78539 Add missing fixup (bug #2667)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4057 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-23 11:50:04 +00:00
James Golovich
73831ac046 More memory checks
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4056 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-23 07:03:01 +00:00
James Golovich
584418a282 Make sure malloc worked before accessing the mem in tdd.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4055 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-23 06:28:19 +00:00
James Golovich
10dfeecffe Make sure malloc worked before accessing the mem in chan_modem.c (bug 2704)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4054 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-23 06:03:29 +00:00
James Golovich
1890e5d87e Cleanup dundi-parser.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4053 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-23 04:53:12 +00:00
Jeremy McNamara
b31c4d7fb9 implement type=alias to deprecate type=h323 and a whole lot more code clean up
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4052 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-23 02:43:41 +00:00
Anthony Minessale II
4f2438acab This patch adds a new api call:
int pbx_builtin_serialize_variables(struct ast_channel *chan, char *buf, size_t size);
takes a chan and a char * 'buf' assumed to be 'size' bytes.

The function fills 'buf' with a <CR>('\n') delimited list of name,value pairs in turn delimeted by '='
eg:
SIPCALLID=f30e4e72-f715193f@1.2.3.4
SIPUSERAGENT=Sipura/SPA2000-2.0.6(c)
SIPDOMAIN=1.2.3.4

It returns the acutal number of variables encountered.
If the attempt to fill 'buf' goes beyond 'size' bytes the operation is halted and the incomplete string is returned as is.

To demonstrate a use for this, the "show channel <channame>" command has been retrofitted with the call so it also dumps all of the chan's vars

*CLI> show channel Zap/5-1
 -- General --
           Name: Zap/5-1
           Type: Zap
       UniqueID: 1098480666.17
      Caller ID: 4999
 Caller ID Name: Tony
    DNID Digits: (N/A)
          State: Up (6)
          Rings: 0
   NativeFormat: 68
    WriteFormat: 4
     ReadFormat: 4
1st File Descriptor: 22
      Frames in: 41969
     Frames out: 83240
 Time to Hangup: 0
   Elapsed Time: 0h13m54s
 --   PBX   --
        Context: phone1
      Extension: 4994
       Priority: 2
     Call Group: 2
   Pickup Group: 2
    Application: Dial
           Data: IAX2/ulaw@cube1/00010014994@croip
          Stack: 0
    Blocking in: ast_waitfor_nandfds
Variables:
DIALEDPEERNUMBER=ulaw@cube1/00010014994@croip
DIALEDPEERNAME=IAX2/cube1/3
CALLTYPE=SPEECH
tempvar=tempval


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4051 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-22 20:59:38 +00:00
Mark Spencer
c4da80e6e0 Fix some callerid output
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4050 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-22 19:45:39 +00:00
Jeremy McNamara
9f0d70a9e6 re-implement callerid, still might not be right. Remove channel limits, in favor to app_groupcount. A lot more code cleanup. Please test and report as I am sure I broke something
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4049 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-22 19:04:02 +00:00
Mark Spencer
031a65ee73 Fix minor OSP issue
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4048 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-22 15:28:32 +00:00
James Golovich
487dc0897a Small verbosity fix in chan_iax2.c from bkw_
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4047 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-22 15:02:13 +00:00
James Golovich
4eab504331 Update example dundi.conf docs to include the other 2 variables that can be used in the destination string
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4046 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-22 14:52:42 +00:00
Mark Spencer
8c4657bddf Work on precaching
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4045 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-22 14:19:11 +00:00
Mark Spencer
28e37def56 Fixed in CVS head.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4044 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-22 13:24:00 +00:00
Mark Spencer
3c8a994aed Handle unknown 1xx reponses as 100 (bug #2698)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4043 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-22 13:18:20 +00:00
Mark Spencer
e5091a2b33 Fix the shrink_number to not remove the trailing '.'
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4042 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-22 13:08:35 +00:00
Ben Kramer
898a67b80e / updated caller ID to use the new structures and re-enabled
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4041 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-21 05:03:00 +00:00
Mark Spencer
a73fc9a283 Disable mac lookup, fix compile on NetBSD (bug #2680)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4040 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-20 12:47:03 +00:00
Mark Spencer
0a9fd1435b Fix initialization tiddly bit
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4039 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-20 12:39:22 +00:00
James Golovich
c7c92a9f15 Fix typo and missing format string in a fprintf in lock.h
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4038 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-20 05:45:09 +00:00
Mark Spencer
91cdb43004 Fix potential segfault.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4037 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-20 04:27:31 +00:00
Mark Spencer
96a557c6bf Put Constantine's last name in
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4036 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-19 21:16:46 +00:00
Mark Spencer
7bcb9629fd Send empty frames when missing frames arrive (hope this doesn't break anything)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4035 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-19 21:07:10 +00:00
Mark Spencer
17e80052e5 Don't "ignore" on CANCEL (bug #2670)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4034 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-19 03:17:26 +00:00
Mark Spencer
06dfca5d24 Add DUNDi.... (http://www.dundi.com)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4033 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-18 21:45:13 +00:00
Mark Spencer
8405193cff Delete old app_qcall (obsolete)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4032 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-18 01:32:24 +00:00
Mark Spencer
e1dcf90094 Fix ndbm compile warnings (bug #2540)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4031 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-17 22:24:46 +00:00
Mark Spencer
12e2fe4d94 Thread fixes, vm fix (bug #2665)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4030 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-17 22:13:05 +00:00
James Golovich
9f5f95fe87 Remove late-night excuse for wasting cpu cycles. revert previous res_agi change
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4029 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-17 05:16:22 +00:00
James Golovich
f3ad3d0359 Fix chan_zap reload with pseudo channels (bug 2664)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4028 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-17 05:05:22 +00:00
Mark Spencer
dfdf53c00d Put a real beep...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4026 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-17 00:10:07 +00:00
Mark Spencer
c646d9ce18 Don't restart PRI channels
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4025 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-16 22:44:53 +00:00
Mark Spencer
9b46246c2b Improve peer stats (bug #2635)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4024 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-16 22:40:48 +00:00
Mark Spencer
06857dcdd9 Make chan_zap reloadable (bug #2637)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4023 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-16 22:34:57 +00:00
Mark Spencer
3e5368b763 Provide module command completion (make twisted happy)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4022 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-16 21:14:05 +00:00
Mark Spencer
a3e8fa573c Handle a few more cases of realtime and voicemail (bug #2648)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4021 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-16 20:01:57 +00:00
Mark Spencer
996c8e7126 Add autofallthrough mode
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4020 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-16 19:46:02 +00:00
Mark Spencer
eadd6c5509 Oops it didn't make it in
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4018 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-16 16:00:04 +00:00
Mark Spencer
787822b4c8 Minor improvements to debug output (bug #2644)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4017 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-16 15:36:16 +00:00
Mark Spencer
1e0c75701e Fix hangup handling with chansiavail with agent (bug #2658)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4015 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-16 15:01:59 +00:00
Mark Spencer
94ba880548 Generate CDR's for failed outbound spool
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4014 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-15 17:51:37 +00:00
Jeremy McNamara
ddd6a40a44 stop seg on reload if no h323.conf file and hopefully not break the monitor thread
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4013 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-15 07:07:50 +00:00
Jeremy McNamara
839d68586b stop a seggy..it helps if you dont try to print out something we already know is NULL :)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4012 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-14 23:59:22 +00:00
Mark Spencer
def2962670 Fix some small typos (bug #2649)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4004 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-14 18:48:04 +00:00
Mark Spencer
f8ee49646c Forget fullcontact when specific number is dialed (bug #2620)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4003 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-14 18:29:47 +00:00
Mark Spencer
4ff125c703 Fix iLBC compiler warnings
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4002 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-14 05:45:34 +00:00
Jeremy McNamara
f84de658d4 be more explicit
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4001 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-14 05:32:07 +00:00
Jeremy McNamara
1dfc11aec9 use the right variable to ensure it copied correctly
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4000 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-14 05:29:55 +00:00
Jeremy McNamara
34e4f69f84 document proper usage of Bindaddr and type=peer
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3999 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-14 05:24:39 +00:00
Jeremy McNamara
9695141c09 sorta fix External IP Address discovery. We really need a better way than bindaddr, but this hack works, for now
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3998 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-14 05:21:12 +00:00
Mark Spencer
d4ff9abc61 Update to new iLBC codec
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3997 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-14 05:15:48 +00:00
Mark Spencer
7c4337dc91 Add option for "show modules like" (bug #2643)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3996 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-14 04:38:29 +00:00
Mark Spencer
0134b03b77 Add CLI for realtime stuff (bug #2626)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3995 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-14 04:17:34 +00:00
Mark Spencer
f9bd7c1e9e Handle excessive entries properly (bug #2634)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3994 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-14 04:12:05 +00:00
Mark Spencer
f12f0a7011 Make PRI debug work when verbosity = 0 (bug #2645)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3993 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-14 04:03:24 +00:00
Mark Spencer
bb10f5af9f Fix trasnfer issue (bug #2632)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3992 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-14 03:58:35 +00:00
Ben Kramer
9a87d520b1 / added missing frame processing code to native bridge
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3991 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-13 23:17:01 +00:00
James Golovich
8b8d26f9bc Fix pbx_builtin_setlanguage to not seg when data is a NULL ptr. Also fix AGI so we dont run into this with other specific problems as well. (bug 2641)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3990 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-13 22:47:42 +00:00
Mark Spencer
3673eeb23f Peers stats improvements (bug #2635)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3988 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-13 01:05:31 +00:00
Mark Spencer
96dcc5de3d When deleting expiry, put -1 if temponly
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3987 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-12 22:29:58 +00:00
Mark Spencer
8fcc070d1d One more temp vs. dynamic
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3986 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-12 22:02:19 +00:00
Mark Spencer
bf63baa047 Fix MGCP build, SIP should destroy on temponly, not on show peer
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3985 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-12 21:51:08 +00:00
Mark Spencer
9dde51a708 Eliminate extraneous message (bug #2633)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3984 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-12 21:30:53 +00:00
Mark Spencer
e0ff16cf78 Be careful!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3983 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-12 19:54:54 +00:00
Jeremy McNamara
7232819f11 enable compiling of chan_h323.so
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3978 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-11 21:26:00 +00:00
Mark Spencer
73617495d2 Add global mute/unmute (bug #2601)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3977 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-11 15:40:24 +00:00
Mark Spencer
da6ca93454 Add missing carriage return (bug #2595)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3976 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-11 03:36:43 +00:00
Mark Spencer
a9bcc5ed49 Add missing sound file (bug #2077)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3975 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-11 02:52:18 +00:00
Mark Spencer
fd514b89f9 Keep back delivery times on trunk (bug #2587)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3974 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-10 20:27:54 +00:00
Mark Spencer
760dbbed48 Increase max packet size to 4096
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3973 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-10 17:32:55 +00:00
Jeremy McNamara
a3b0b2d6a0 Detail type=peer a bit
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3972 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-10 12:45:13 +00:00
Jeremy McNamara
67cdd39162 Update README with new information.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3971 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-10 12:41:10 +00:00
Jeremy McNamara
34afeec2e7 finish implementing type=peer, implement setting of FastStart and H.245 Tunneling per user/peer, update External RTP implemenation, fixed compile process/other buglets to operate with Open H.323 v1.14.4 and PWLib v1.7.5, and massive code clean up. All of the above is untested, please test and report
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3970 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-10 12:20:18 +00:00
Mark Spencer
f43e241593 Merge jjames's voicemail fixes (bug #2436)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3969 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-10 06:28:46 +00:00
Mark Spencer
67ad985735 Remove old compatibility apps
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3968 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-10 04:23:10 +00:00
Mark Spencer
b950439080 Add autokill to IAX2, too
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3967 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-10 01:42:46 +00:00
Mark Spencer
9b702cc543 Don't build GTK console by default
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3966 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-09 21:04:31 +00:00
Mark Spencer
513b6333fb Fix SIP buglets
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3965 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-09 20:08:41 +00:00
Mark Spencer
0e76390736 Remove silly printf
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3964 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-09 16:34:12 +00:00
Mark Spencer
07d1b22e81 Fix wave file lengths (bug #2486)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3962 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-09 14:55:14 +00:00
Russell Bryant
37f4e037c5 fix voicemail account setup (bug #2077)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3961 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-09 04:28:44 +00:00
Mark Spencer
0f15f042b9 Add Russell to the CREDITS file
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3960 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-09 04:28:17 +00:00
Mark Spencer
1626a052bc Fix little typo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3959 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-09 03:12:48 +00:00
Mark Spencer
6390872a5d IAX2 authentication improvements
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3954 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-08 23:20:02 +00:00
Mark Spencer
befaca888d Minor config updates, add module counts (bug #2593)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3953 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-08 18:20:49 +00:00
Mark Spencer
5ef0da8240 Add compatibilty with proprietary nortel DTMF info (bug #2605)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3952 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-08 15:52:44 +00:00
Mark Spencer
c991f6acf1 Don't strip bracketed hyphens (bug #2608)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3951 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-08 15:49:37 +00:00
Mark Spencer
a1e87f11eb Fix lookup cidname (bug #2609)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3950 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-08 15:44:28 +00:00
Mark Spencer
9209bc5e13 Don't save dynamic peers in registery (bug #2610)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3949 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-08 15:21:20 +00:00
Mark Spencer
f869646706 Provide more useful iax2 debugging (bug #2603)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3948 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-08 05:37:19 +00:00
Mark Spencer
d808177d50 realtimeify voicemail...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3947 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-08 05:36:23 +00:00
Mark Spencer
b70b531699 Fix small verboseness bugs (bug #2602)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3946 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-08 04:23:22 +00:00
Mark Spencer
eb2cd99a14 Default for overriden should be passed screen
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3939 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-07 21:06:32 +00:00
Mark Spencer
3ec18090b9 Fix callerid on IAX2 (received)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3938 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-07 21:04:10 +00:00
Mark Spencer
ed62f449a9 Oops, we have to be able to pass multiple restrictions for when we go to voicemail...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3937 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-07 19:57:50 +00:00
Mark Spencer
e1038e3090 Remove last vestiges of MySQL friends from makefile, in favor of realtime config
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3936 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-07 19:05:05 +00:00
Mark Spencer
973481807e Fix app_sms to use correct path (bug #2597)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3935 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-07 19:00:00 +00:00
Mark Spencer
c608e97005 Do not send progress when "ringing" only flag is set (bug #2553)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3934 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-07 18:28:49 +00:00
Mark Spencer
d8cfe78b33 Merge SIP memory leak fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3933 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-07 18:27:12 +00:00
Mark Spencer
9202b378d9 Fix CDR CSV to flush on CDR
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3932 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-07 17:50:15 +00:00
Anthony Minessale II
37eeb4abd0 fix typo in chan sip that causes segV
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3931 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-07 16:42:37 +00:00
Mark Spencer
e2418b7008 Move voicemail beep (bug #2594)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3930 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-07 16:07:45 +00:00
Mark Spencer
5e134348dd Add recognition for Rich Murphy for substantial BSD fixes (bug #2598)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3929 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-07 15:49:08 +00:00
Mark Spencer
6c20ceb717 Fix which one we use initreqprep vs. reqprep (bug #2591, 2596)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3928 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-07 15:47:39 +00:00
Mark Spencer
fbbd30ca23 Add realtime support to SIP
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3927 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-07 15:46:08 +00:00
Mark Spencer
209d413c6b Be sure prev struct is built properly (bug #2581)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3926 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-06 23:45:26 +00:00
Anthony Minessale II
e54e28b631 imporve app_realtime to do writes too with RealTimeUpdate
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3923 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-06 17:42:31 +00:00
Mark Spencer
4a6c4d41fc Merge anth's realtime patch, as well as the bindaddr fix that didn't make it in somehow yesterday. (bug #2588)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3922 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-06 15:52:01 +00:00
Ben Kramer
415d197da1 changed it to not play a received DTMF frame if native bridged!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3921 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-06 10:54:58 +00:00
Ben Kramer
f3e54a41da commented out Caller ID setting stuff, needs to be updated to match new format
changed so that it no longer sends DTMF frames to a native bridged channel


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3920 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-06 10:37:57 +00:00
Mark Spencer
dbdb058f31 Use reqprep, not initreqprep for NOTIFY for REFER...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3919 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-06 04:40:57 +00:00
Mark Spencer
32126398ef Locking updates for debug mode, fix SIP MWI (bug #2582)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3918 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-06 04:30:16 +00:00
Mark Spencer
e27afd5b74 Fix MGCP seg (bug #2572)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3916 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-05 21:00:54 +00:00
Mark Spencer
efdcabc2cb Fix zap seggy
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3915 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-05 20:55:31 +00:00
Mark Spencer
ebb18daf22 Major changes to res_config to support centralized config, eliminate configuration of res_config_odbc, update config examples, integrate with iax2, remove mysql friends from iax2, put on flame retardant vest...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3914 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-05 06:46:11 +00:00
James Golovich
1a2ba48fa1 Formatting fix and use ast_true in cdr_odbc.c (bug 2569) Thanks bkw_
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3911 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-05 01:05:30 +00:00
Mark Spencer
f927433a40 Fix SIP friends + MySQL (head only)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3910 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-04 17:17:08 +00:00
Mark Spencer
76172327f8 Have SIP_CODEC variable override replace all other codecs (bug #2566)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3909 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-04 13:03:53 +00:00
Jeremy McNamara
c0273110c4 a major rework - type=peer support, code cleanup, and optimization. Still not ready to use
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3908 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-04 10:18:06 +00:00
Jeremy McNamara
9c65039c32 a major rework - type=peer, code cleanup, and optimization
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3907 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-04 10:13:01 +00:00
Mark Spencer
1688ea358b Add app_hasnewvoicemail
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3906 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-03 21:23:54 +00:00
Mark Spencer
0ddbbd1785 Add ability to check voicemail from multiple folders (bug #2561)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3905 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-03 21:18:27 +00:00
Mark Spencer
c52e38d3be Merge member delay patch (bug #2563)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3904 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-03 20:37:09 +00:00
Mark Spencer
e8f0958d01 Correct CDR's for supervised transfer (bug #1595)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3902 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-03 19:59:46 +00:00
Mark Spencer
de1b42b6bf Add reporting of actual hold time (bug #2564)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3900 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-03 16:46:06 +00:00
Mark Spencer
292e397759 Improve groupcount handling (bug #2529) thanks!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3898 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-03 16:34:52 +00:00
Mark Spencer
b4142e0cd2 Allow you to use labels with + to be nice to Tilghman.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3897 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-03 16:15:44 +00:00
James Golovich
a17f53358c Cleanup formatting in app_math.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3896 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-03 15:59:52 +00:00
Mark Spencer
864d84e1a7 Fix potential callerid snafu's in iax and sip (based on 2562)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3895 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-03 14:57:01 +00:00
Mark Spencer
375162b4fb shrink phone number for callerid matching (bug #2562)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3894 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-03 14:52:33 +00:00
Mark Spencer
220623f88a Update documentation
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3893 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-03 14:22:01 +00:00
Mark Spencer
c22c053f82 Add (heavily modified) math application (bug #2534)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3892 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-03 14:19:31 +00:00
Mark Spencer
c26fb30f20 Fix netbsd paths (bug #2560)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3891 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-03 13:07:59 +00:00
James Golovich
cc9f35f8c7 Fix HasVoicemail so it can parse all arguments correctly (bug 2559)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3890 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-03 05:38:27 +00:00
Mark Spencer
c1a5796446 Update changelog
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3889 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-03 05:14:10 +00:00
Mark Spencer
027f79d840 Add '+foo' option, update sample config
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3888 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-03 05:08:51 +00:00
Mark Spencer
cd4ebb34ec Update chanelog
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3887 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-03 04:46:18 +00:00
Mark Spencer
fce17976e9 Major PBX revamps (including labels, update examples)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3886 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-03 04:19:59 +00:00
Mark Spencer
34988d1ce9 Allow "n" or "next" and "s" or "same" in dialplan logic priorities
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3885 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-02 20:43:16 +00:00
Mark Spencer
c8673a011e Don't set state to UP state within the driver, but instead allow ast_read to do so.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3884 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-02 17:16:36 +00:00
James Golovich
7aef6a5b83 Add #ifdef to chan_zap.c in case someone updates asterisk but not libpri
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3883 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-02 15:04:38 +00:00
James Golovich
809166ff78 Allow PRI timers to be congfigurable. (bug 2518)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3882 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-02 15:01:37 +00:00
James Golovich
8249c40b7b Formatting cleanup in app_voicemail.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3881 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-02 14:46:26 +00:00
Mark Spencer
4721dc5d1c Implement voicemail force account setup (bug #2077)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3880 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-02 03:01:20 +00:00
Mark Spencer
702bd20b65 Fix littlet ypo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3879 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-02 02:31:36 +00:00
Mark Spencer
666dd0f75c More IAX2 TNS/TOS/PRES fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3878 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-02 02:13:04 +00:00
Mark Spencer
15c6bf0860 Add iax2 parsing for TNS/TON/PRES
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3877 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-02 01:56:08 +00:00
Mark Spencer
856a9a528c Remove IAX and VoFR channel drivers permenantly
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3876 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-02 01:09:05 +00:00
Mark Spencer
8dd03ff284 Move populate TNS/Presentation/TON from calling channel
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3875 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-02 01:05:11 +00:00
Mark Spencer
04fc29c8b2 Huge callerid rework (might break H.323, others)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3874 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-02 00:58:31 +00:00
James Golovich
9b926b1d64 Fix some formatting in asterisk.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3872 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-01 18:35:35 +00:00
James Golovich
74786b8c58 Use event2str consisitently in chan_zap anytime we are printing debug info about an event (bug 2548)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3871 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-01 13:26:47 +00:00
James Golovich
3e2253a3c4 Code formatting cleanup
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3870 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-01 13:16:44 +00:00
Jeremy McNamara
c82026012e work on peers some more, still highly broken
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3869 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-01 04:50:34 +00:00
Mark Spencer
b6f979100d Add configurable options to Speex (from anthm) (bug #2536)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3868 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-01 03:18:48 +00:00
Mark Spencer
aa5bf2bc6e Merge Tilghman's color detection patch (bug #2495)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3867 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-01 03:11:52 +00:00
Mark Spencer
1434bb9792 Fix SIP transport to ignore ;transport=udp
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3862 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-30 19:59:00 +00:00
Jeremy McNamara
83f342776e massive changes, very broken, do not use (from airport)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3861 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-30 19:36:46 +00:00
Jeremy McNamara
d42c7aeede make chan_h323 not compile, until i can fix
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3860 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-30 19:31:39 +00:00
Jeremy McNamara
76485d3f02 massive changes, very broken, do not use (from airport)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3859 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-30 19:30:49 +00:00
Mark Spencer
250260064f Fix callerid for canada (bug #2552)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3858 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-30 17:54:41 +00:00
Mark Spencer
678c1d90c0 Fix potential seg (Bug #2550)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3857 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-30 15:30:05 +00:00
Mark Spencer
e2318bdba9 Merge ring pulse stuff (Bug #2016)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3856 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-30 15:26:04 +00:00
Russell Bryant
ca88a7476f update description for VoiceMailMain (bug #2546)
update ChangeLog for Asterisk 1.0.1


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3854 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-30 04:00:41 +00:00
Mark Spencer
eda8998156 Fix little "less than" issue
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3853 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-29 14:06:59 +00:00
James Golovich
b1b4db95c2 Fix FastAGI working with non default ports (bug 2539)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3852 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-29 03:32:58 +00:00
James Golovich
01e406626e Fix verbose logger queue so that list doesnt get touched without msglist_lock being held
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3851 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-28 21:13:50 +00:00
Mark Spencer
89da44223d Fix threads in FreeBSD (bug #2478)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3850 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-28 17:11:30 +00:00
Mark Spencer
ddf2648326 Fix BSD build
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3849 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-28 14:14:00 +00:00
Mark Spencer
4c2148bea5 On register timeout, pretend to ack any messages so that if they were 100 Trying and nothing else (e.g. certain iconnecthere failures), we still clean up. (bug #2524)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3848 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-28 12:55:08 +00:00
Russell Bryant
66bf105bbc add ability to purge callers from queue if no agents are logged in
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3847 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-28 03:32:21 +00:00
Mark Spencer
1700f24dd3 Strip mp3 id3 headers (bug #2525)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3846 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-27 20:04:00 +00:00
James Golovich
aa2e435d82 Remove duplicate sys/socket.h include from res_agi.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3845 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-27 14:54:07 +00:00
James Golovich
2fc5fed79e Fix 2 memory leaks
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3844 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-27 05:06:22 +00:00
Russell Bryant
efd42d2d5c make pick-up extension configurable. update ChangeLog
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3843 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-26 20:47:01 +00:00
Mark Spencer
2ff6a84a16 Hold peerl lock while updating autocreatepeer stuff
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3842 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-26 20:42:03 +00:00
James Golovich
01c0938ddf Fix inband priindication checking in chan_zap.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3841 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-26 18:16:06 +00:00
Russell Bryant
fda8fa2367 add includes in res_agi.c to fix BSD compatibility
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3840 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-26 17:01:39 +00:00
James Golovich
998ef5948c Fix typo in cdr.txt (bug 2510)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3839 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-26 16:39:11 +00:00
Russell Bryant
cbc39f7d71 tweak the queues.conf.sample
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3838 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-26 02:31:13 +00:00
Mark Spencer
802a44a15b Fix for "show applications like" (bug #2501)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3837 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-25 22:42:17 +00:00
Mark Spencer
efbb88225c Fix URL for Tony
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3836 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-25 22:38:52 +00:00
Mark Spencer
30d264ebda Add Asterlink/anthm to the CREDITS list
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3835 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-25 21:36:01 +00:00
Mark Spencer
bf4ca23372 Make holdtime announcement say "less than 2 minutes" instead of "1 minutes" (bug #2500)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3834 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-25 14:22:27 +00:00
Anthony Minessale II
9ecfd9f33e fix polish stuff in say.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3833 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-24 22:15:43 +00:00
Anthony Minessale II
255ce93616 add app_forkcdr
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3832 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-24 21:33:48 +00:00
Mark Spencer
4ffa6c246f If no RTP stream is up, always request digits (bug #2492)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3831 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-24 19:21:24 +00:00
Mark Spencer
a9db074776 Make olle happy
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3830 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-24 16:49:00 +00:00
Mark Spencer
7b10240bc3 Document hints in extensions.conf.sample (Astricon suggestion)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3829 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-24 16:41:45 +00:00
James Golovich
9812bcc03c Include sys/socket.h in res/res_agi.c (bug 2490)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3828 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-23 18:10:46 +00:00
James Golovich
fb6e840213 Fix formatting again
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3827 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-23 16:58:09 +00:00
Anthony Minessale II
2a896e5d3c tweak prior commit
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3826 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-23 16:39:33 +00:00
James Golovich
ab67420c37 Fix formatting
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3825 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-23 16:02:10 +00:00
Anthony Minessale II
07a6cd4592 allow file arg in ast_control_streamfile to accept trailing :end to indicate an instant seek ti the end.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3824 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-23 15:26:01 +00:00
Anthony Minessale II
762cd4621d ast_control_streamfile caused seg with null stop or pause chars
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3823 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-23 14:46:09 +00:00
Mark Spencer
a23534c4e2 Update Changelog
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3821 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-23 11:30:08 +00:00
Mark Spencer
1597114535 Implement Fast AGI (agi://) over TCP socket (Astricon talk idea)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3820 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-22 15:21:36 +00:00
Mark Spencer
aea667c7c8 Fix originate success/failure formatting (bug #2485)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3819 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-22 14:11:44 +00:00
Mark Spencer
e0f335a4eb Check to be sure # of samples is > 0...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3818 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-22 12:15:00 +00:00
Mark Spencer
78531a0f32 Handle arbitrary long dial sequences (like what we need at Astricon)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3817 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-22 05:19:06 +00:00
Mark Spencer
a2297d6776 Support colors in eterm
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3816 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-22 05:10:50 +00:00
Jeremy McNamara
ef889d6672 support early media/intercept Bug #562
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3815 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-21 18:42:37 +00:00
Jeremy McNamara
291ce3e839 Add a bit more newbie protection
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3814 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-21 15:52:42 +00:00
Anthony Minessale II
42806dc1ac fix placement of f->fmt->close
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3813 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-20 23:15:49 +00:00
Mark Spencer
45a157ec0e Fixup vm user struct (bug #2472)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3812 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-20 21:16:00 +00:00
James Golovich
49389bd690 Remove duplicate plus.gsm from sounds.txt
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3811 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-20 15:47:40 +00:00
Mark Spencer
a638a19ea2 Don't register auth against something that isn't a register (bug #2468)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3810 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-19 17:21:26 +00:00
Jeremy McNamara
199ec4356a protect against seg on busy systems. Bug #2249
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3809 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-19 16:53:01 +00:00
Mark Spencer
5dad6f4319 Merge UK + DTMF Caller*ID stuff and fix app_test description
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3808 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-19 16:17:18 +00:00
Mark Spencer
27e4a2ee57 Minor fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3807 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-18 23:39:39 +00:00
Mark Spencer
d7fb7e9ed7 Add "TrySystem" variation to System (bug #768)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3806 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-18 14:14:15 +00:00
Mark Spencer
528cf89739 Clarify descriptions of VM functions moved to app (bug #2463)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3805 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-18 14:01:35 +00:00
Mark Spencer
b96abb803c LPC fix
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3804 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-18 13:56:28 +00:00
Mark Spencer
574d3785ab Add extra checks for keys and convenience encrypt/decrypt functions
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3803 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-18 03:59:51 +00:00
Mark Spencer
d1be79cce2 If singlepath=yes, don't send multiple RTP streams during transfer
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3802 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-17 20:08:40 +00:00
Mark Spencer
9d8c71ee86 Move routines from voicemail to app for general use (part of bug #752)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3801 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-17 15:05:29 +00:00
James Golovich
877f1f64c2 Cleanup code. Spacing issues, nested if issues, lots of strlen used instead of ast_strlen_zero
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3800 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-17 14:15:11 +00:00
James Golovich
a9f5393bfe Make chan_iax2.c compile again on older gcc. Remember definitions must come first
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3799 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-17 13:58:38 +00:00
Mark Spencer
038cd054ae Merge steven davie's IAX2 jitterbuffer fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3798 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-17 12:45:03 +00:00
Mark Spencer
e228c88d2a Merge anthm's monitor patch with minor mods (bug #2383)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3797 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-17 03:49:57 +00:00
Ben Kramer
4824ee8b20 / fixed slight typo/cut-n-paste bug
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3796 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-17 00:34:51 +00:00
Ben Kramer
0da1f7593d / fixed operation with record_play
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3795 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-17 00:14:48 +00:00
Mark Spencer
8fae88d368 Use compression on "make update"
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3794 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-16 18:46:39 +00:00
Mark Spencer
5c32080a0c Get rid of compile warnings
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3793 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-16 18:45:34 +00:00
Mark Spencer
610d52b054 Add IAX2/SIP register events to system (bug #2117)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3792 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-16 16:18:53 +00:00
Mark Spencer
0aa4c95a89 Fix tiny typo (bug #2455)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3791 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-16 12:53:10 +00:00
Mark Spencer
d2385517ac Fix sample macro
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3790 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-16 00:19:01 +00:00
Mark Spencer
3fc2609468 Fix app_disa to not ignore ignorepat :) (bug #2451)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3789 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-15 22:06:30 +00:00
Mark Spencer
0eec8c8318 Make ADSI in voicemail configurable (bug #2209)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3788 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-15 19:54:46 +00:00
Mark Spencer
bdc00dae0e Merge ADSI parking announcement (bug #2211)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3787 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-15 19:49:33 +00:00
Mark Spencer
a1442538b5 Update mp3 copyright header, fix pedantic + register in SIP (bug #2422)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3786 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-15 19:27:23 +00:00
Mark Spencer
ce68497243 First pass at LPC10
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3785 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-15 18:40:07 +00:00
Mark Spencer
9a387e5a7a Queue congestion on REJECT (bug #2448)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3784 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-15 17:31:37 +00:00
Mark Spencer
c4aa1dadbd Use file that is in Asterisk rather than asterisk-sounds (bug #2445)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3783 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-15 14:12:45 +00:00
Mark Spencer
556f27ecf1 Fix extraneous message when using mysql friends
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3782 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-15 13:16:56 +00:00
Mark Spencer
ef2cd744cf Support both MySQL and traditional mailboxes in vmail.cgi (bug #2297)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3781 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-15 05:11:41 +00:00
Mark Spencer
f5b1c6c27e Update astgenkey to make empty ones too
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3780 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-15 04:19:58 +00:00
Mark Spencer
5f93d06cf8 Oops, fix small typo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3779 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-15 00:43:13 +00:00
Mark Spencer
952a5e6dd9 Consider both tags as possible matches (bug #2422)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3778 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-14 23:04:39 +00:00
Mark Spencer
238b9d24c6 Make sure patterns are always last (bug #2435)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3777 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-14 22:35:53 +00:00
Mark Spencer
7457c51bc2 Add status for async manager originate (including ActionID) (bug #2434)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3776 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-14 22:15:50 +00:00
Mark Spencer
a4437b1362 Inband notifies always succeed (bug #2420)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3775 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-14 12:36:14 +00:00
Mark Spencer
45b91a90e1 Add pulse dial support
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3774 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-13 23:07:50 +00:00
Mark Spencer
3cb1d7843b Bring sanity to inband notification on PRI
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3773 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-13 22:14:34 +00:00
Mark Spencer
4d6b943ea4 Fix star 80 to star 60 (bug #2247)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3772 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-13 21:34:47 +00:00
Mark Spencer
d8aff59a9e Add set debug option, make output for set verbose better (bug #2428)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3771 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-13 18:19:15 +00:00
Mark Spencer
e9dbd238c8 Work with globals too (bug #2427)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3770 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-13 12:32:04 +00:00
Mark Spencer
89447a99ec Use fromdomain in creating callid if specified (bug #2427)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3769 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-13 12:24:38 +00:00
Jim Dixon
e499028440 Fixed minor issue in app_rpt(). Allows it to work better with many Linux distributions
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3768 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-13 12:12:17 +00:00
Mark Spencer
2f82498995 Don't forget to return something other than -1 on the first pass if appropriate!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3767 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-12 15:29:56 +00:00
Mark Spencer
71df4d92da Automatically send proper signal on iax switch following dial (bug #2420)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3766 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-12 15:05:37 +00:00
Mark Spencer
ac1e884328 Improve initial poking behavior (bug #2419)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3765 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-11 13:50:26 +00:00
Mark Spencer
e31d4ee777 Don't set guardtime if channel is only reserved (bug #2421)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3764 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-11 13:37:36 +00:00
Mark Spencer
cc30079edd Use longer timeout if using http (bug #2418)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3763 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-11 13:31:04 +00:00
Mark Spencer
b76252d68e Add readme for variable (bug #2409)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3762 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-11 13:25:15 +00:00
Mark Spencer
ce868ed5f5 Do the same thing for pri_hangup_all in terms of releasing the PRI lock
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3761 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-10 18:58:05 +00:00
Mark Spencer
8283811633 Make sure we don't try to grab the sub and channel locks while still having the PRI lock! (bug #2392)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3760 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-10 18:47:13 +00:00
Mark Spencer
00f227a684 Properly lock management stuff (bug #2406)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3759 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-10 15:11:38 +00:00
Mark Spencer
a6e748e491 Handle macros in the CDR properly (bug #2414)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3758 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-10 13:40:56 +00:00
Matthew Fredrickson
8a12240f73 macro support in the dial command
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3757 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-10 02:31:30 +00:00
Mark Spencer
815318b12f Handle both pre- and post- whitespace if pedantic checking is on (bug #2411)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3756 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-10 02:03:05 +00:00
Mark Spencer
5e0b84633e Make ${CALLINGPRES} available (bug #2409)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3755 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-09 20:05:57 +00:00
Mark Spencer
aa2a8ed77c Only pool CONGESTION if there is an owner in the case of a 501
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3754 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-09 15:40:07 +00:00
Mark Spencer
9e96cb612b Fix GotoIf logging level (bug #2396)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3753 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-09 13:00:21 +00:00
Mark Spencer
f54c287c73 Make GetVar respect ActionID (bug #2404/2405)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3752 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-09 12:50:56 +00:00
Mark Spencer
14e1fe4795 Make sure rtp->f.data is initialized properly for 3389 (asterisk dev mailing list)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3751 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-09 02:33:14 +00:00
Mark Spencer
81df8343d3 Only accept first callerid number (bug #2395)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3750 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-09 02:29:10 +00:00
Mark Spencer
388ca07547 Use noncodec capability when masking (bug #2394)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3749 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-09 02:07:26 +00:00
Mark Spencer
b3fdacf9cc Minor formatting fixup (bug #2397)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3748 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-09 01:36:01 +00:00
Mark Spencer
cb896da998 Don't consider RTP timeout if the channel isn't up
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3747 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-09 01:33:17 +00:00
Mark Spencer
879c401544 Add option to register extensions on IAX or SIP registration
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3746 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-07 23:45:34 +00:00
Matthew Fredrickson
c6025e41c6 bug fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3745 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-07 15:18:14 +00:00
Matthew Fredrickson
52647db120 Changes from Dimitri for OSP codes, minor buglets
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3744 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-07 15:16:18 +00:00
James Golovich
5adfdcba1e Change recent patch to not use a hard coded path inside of a .c file
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3743 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-07 15:02:53 +00:00
James Golovich
550e8e56ba Formatting cleanups
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3742 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-07 15:01:48 +00:00
James Golovich
8d457d07c4 Formatting cleanups
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3741 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-07 14:51:20 +00:00
Mark Spencer
b3333ebc2e Don't attempt to qualify before we have a socket (bug #2331)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3740 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-07 14:40:34 +00:00
Mark Spencer
3454b5927f Make background support a language override (bug #2378)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3739 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-07 14:37:35 +00:00
James Golovich
54e81f5ca0 Formatting cleanups
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3738 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-07 14:36:56 +00:00
Mark Spencer
c1e14143fa Upgrade firmware to version 19 (improved timestamps from bug #2370), extra protetions for buck boost Q7.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3737 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-07 02:09:08 +00:00
Mark Spencer
97904aee06 Turn on usecallerid if distinctiveringdetection is on (bug #2389)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3736 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-07 01:56:18 +00:00
Mark Spencer
24e902d2a4 Merge anthm's "-t" flag (with minor mods) (bug #2380)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3735 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-07 01:49:08 +00:00
Mark Spencer
0da197d593 Compute power of 10 using ints instead of silly floats (bug #2390)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3734 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-07 01:28:52 +00:00
Mark Spencer
6b2e3f29f9 Consider service unavailable as CONGESTION (bug #2391)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3733 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-07 01:25:18 +00:00
Mark Spencer
64b9a563f2 Make menu interruptible (bug #2377), Also fix PBX "add extension" CLI (bug #2289)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3732 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-07 01:22:57 +00:00
Mark Spencer
a703e927b1 Add Czech digit/voicemail support
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3731 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-06 15:43:43 +00:00
Mark Spencer
8d0d386970 Use stdlib.h instead of alloca.h
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3730 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-06 15:29:41 +00:00
Mark Spencer
dc542971df Allow "-" in password to make it unchangable (bug #2386)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3729 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-06 06:19:17 +00:00
Mark Spencer
8fb1ddeb5d Don't prompt for password if one is not needed (bug #2385)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3728 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-05 19:38:17 +00:00
Mark Spencer
e94fa076cb Fix some small voicemail password bugs (bug #2373)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3727 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-05 18:31:50 +00:00
Mark Spencer
f83715ce9c Add Anthony's format_sln (bug #2381)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3726 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-05 18:00:55 +00:00
Mark Spencer
b0970b9e33 Merge Brian West's append hostname patch (bug #2372)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3725 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-05 03:48:05 +00:00
Mark Spencer
f4b60a5c65 Turn off the hook detection unless explicitly compiled in
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3724 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-04 15:00:05 +00:00
Mark Spencer
e7908a50e8 Add stream support and permit minimum respawn time (bug #2254)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3723 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-04 05:41:01 +00:00
Mark Spencer
789c4f4587 If nativeformats changes, recalculate formats (bug #2224)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3722 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-04 01:06:42 +00:00
Mark Spencer
19be63c4c3 Treat 400 response as "CONGESTION" (bug #2369)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3721 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-04 00:29:00 +00:00
Mark Spencer
04a9441769 Fix escaping ; (bug #2368)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3720 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-03 15:36:13 +00:00
Mark Spencer
a2da1f08bd Make sure shell version happens even if MySQL mailboxes are there (bug #2367)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3719 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-03 15:25:11 +00:00
Mark Spencer
eb57ea95d6 reload documentation, don't display res in app_test...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3718 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-03 14:02:12 +00:00
Mark Spencer
1e2db0e885 Allow external program to be used to change password (bug #2357)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3717 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-03 03:53:48 +00:00
Mark Spencer
d77ae42896 Display elapsed time in hours/mins/seconds (bug #2365 kinda sorta)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3716 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-03 03:44:35 +00:00
Mark Spencer
2a2d65541b Use exitcontext when available (bug #2363)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3715 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-03 03:26:29 +00:00
Mark Spencer
fd7577eed2 Don't try to look offhook with channel banks & Loopstart (bug #2362), also make individual modules reloadable...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3714 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-02 20:45:24 +00:00
Mark Spencer
93818c761b If '#' is sent for username, use callerid if available (bug #2301)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3713 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-02 19:18:35 +00:00
Mark Spencer
bc72d7584a Don't use FXO's with no battery (bug #2359)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3712 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-02 19:07:24 +00:00
Mark Spencer
b813a5f3fa Fix both app_read and underlying read issue (bug #2352)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3711 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-02 13:52:58 +00:00
Mark Spencer
d952c7ed71 Fix "duplicate answer" issue (bug #2342)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3710 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-02 13:48:11 +00:00
Mark Spencer
07166e63a3 Improve voicemail verbosity (bug #2351)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3709 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-02 04:57:37 +00:00
Mark Spencer
9888487f9c Fix minor typo (bug #2343)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3708 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-02 04:07:28 +00:00
Mark Spencer
3c7ab1ca5e Eliminate unnecessary historic "rm" commands from Makefile (bug #2349)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3707 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-02 03:34:12 +00:00
Mark Spencer
08a8632ac7 Decrease use count in wav_gsm (bug #2350)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3706 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-02 03:33:09 +00:00
Mark Spencer
4b2877834e Fix threeway calling + immediate mode (bug #2344)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3705 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-02 03:32:07 +00:00
Mark Spencer
344ec00439 Add additional timeout debugging information on parking
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3704 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-01 19:51:19 +00:00
Mark Spencer
082f628401 Slightly more verbose detail on PBX startup (bug #2339)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3703 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-01 18:29:43 +00:00
Mark Spencer
3cf360ae44 Fix teeny typo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3702 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-01 02:28:38 +00:00
Mark Spencer
0c39d6de8e Grab each lock individually...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3701 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-31 21:55:19 +00:00
Mark Spencer
53262335c8 Add documentation for new courtesy tone (bug #2329)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3700 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-31 19:19:05 +00:00
Jeremy McNamara
380b9a40a3 nit picky fixups
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3699 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-31 17:50:41 +00:00
Jeremy McNamara
f6109b7b94 add exten example. Thanks ManxPower
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3698 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-31 17:38:41 +00:00
Mark Spencer
1db964ad95 When queueing frames, it's pointless to queue a frame after a HANGUP frame is queued...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3697 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-31 17:30:46 +00:00
Mark Spencer
416079db61 Some need bigger registery
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3696 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-31 17:17:00 +00:00
Mark Spencer
49ca05642a Use "fullcontact" on outbound calls too
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3695 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-31 17:12:09 +00:00
Mark Spencer
7d88098555 Use Contact for URI if supplied...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3694 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-31 16:49:20 +00:00
Mark Spencer
82db278716 More Asterisk sparc patches (courtesy Belgarath)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3693 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-31 16:33:00 +00:00
Mark Spencer
cfb711bf57 Make app_festival change more portable, allow '*' for context in iax2
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3692 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-31 14:59:58 +00:00
Mark Spencer
471df8f512 Be sure to do ntohl before considering extended field
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3691 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-31 14:03:18 +00:00
Mark Spencer
9f1562a599 Minor SIP cleanup for poking on startup (bug #2331)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3690 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-31 13:49:18 +00:00
Mark Spencer
e2fe8ef485 Permit in-band and out-of-band Busy/Congestion (bug #2325)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3689 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-31 13:47:23 +00:00
Mark Spencer
4a19a2644f Don't redefine _THREAD_SAFE (bug #2332)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3688 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-31 13:39:04 +00:00
Mark Spencer
066a53df8a Fix permissions for festival app (bug #2334)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3687 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-31 13:37:30 +00:00
Mark Spencer
2a108b9b06 Merge NetBSD and Courtesty tone with modifications (bug #2329)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3686 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-31 13:32:11 +00:00
Mark Spencer
6749f1b8b5 Be sure we still check for proper buffer length
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3685 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-31 05:09:20 +00:00
Mark Spencer
8ff9c0d1b9 Adjust Makefiles to support Ultrasparc architecture (thanks Belgarath) (bug #2319)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3684 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-31 03:31:59 +00:00
Mark Spencer
b48987922c First pass at handling RTP header extension bit
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3683 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-31 00:16:28 +00:00
Mark Spencer
5259155e52 Make sure we behave properly for parking (bug #2292)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3682 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-31 00:08:52 +00:00
Mark Spencer
2f753040ef Revert back to 16 so keys are displayed properly (bug #2240)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3681 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-30 05:27:51 +00:00
Mark Spencer
bd7ca6bb69 Track extra parameters in contact (bug #732)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3680 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-30 05:21:34 +00:00
Mark Spencer
0f88c702df Look for feature group D on all E&M Wink Lines (bug #2228)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3679 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-30 05:07:27 +00:00
Mark Spencer
28e5320ab4 Minor fix in directory app (bug #2322)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3678 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-30 01:44:41 +00:00
Mark Spencer
47f8883942 Add test application (TestClient/TestServer), thanks Russell!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3677 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-30 01:43:41 +00:00
Mark Spencer
4c133e47da Set DTMF modes by peer/user properly (bug #2303)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3676 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-29 18:58:30 +00:00
Mark Spencer
0cf6b2ba31 Minor Makefile cleanups
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3675 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-29 17:40:58 +00:00
Mark Spencer
7fffa6e20a Make the polish speech not such an insane coding style
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3674 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-29 17:23:54 +00:00
Mark Spencer
ccdd86775f Don't use "class" keyword in music on hold (bug #2316)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3673 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-29 06:09:29 +00:00
Mark Spencer
91d2e58d1b Update DISA to be internationalized (bug #2284)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3672 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-28 19:41:18 +00:00
Mark Spencer
1327846518 Oops, back out bad makefile change
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3671 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-28 17:34:40 +00:00
Mark Spencer
11b1e81197 Major DISA improvements (bug #2284)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3670 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-28 17:33:43 +00:00
Mark Spencer
616780b64e Warn if unable to open an overridden config file (but #2285)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3669 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-28 17:12:01 +00:00
Mark Spencer
90a497c3b8 Fix generator for VAD as well as for automatically syncing to incoming signal if present (bug #2312)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3668 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-27 22:53:56 +00:00
Mark Spencer
de1d9a90dd Fix nat registration (bug #2315)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3667 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-27 20:19:14 +00:00
Mark Spencer
516cd1ba8d Be sure errors on wite are passed back up (bug #2311)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3666 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-27 16:17:16 +00:00
Mark Spencer
c7541bd672 Merge "show applications" from corydon76 (bug #2291)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3665 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-27 04:21:09 +00:00
Mark Spencer
c3c13114fb Merge mochouinard's meetme fixups (bug #2230)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3664 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-27 04:12:55 +00:00
Mark Spencer
2863202bed Run generators from zap timers when available so as to interop with VAD
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3663 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-27 03:28:32 +00:00
Mark Spencer
cab4557006 When detecting a hairpin, redirect to the appropriate local extension (bug #1974)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3662 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-27 03:16:16 +00:00
Mark Spencer
f1be7d7ffc Add new "route" mode to work around UNIDEN bugs (bug #2308)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3661 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-27 02:45:35 +00:00
Mark Spencer
c22fdb7232 Include UniqueId in rename events... (bug #2306)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3660 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-26 22:45:26 +00:00
Mark Spencer
bd1c5ac3cf Fix directory name in SMS (bug #2307)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3659 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-26 21:28:42 +00:00
Mark Spencer
fa814abe05 Repair offer/answer model (bug #2293), initial CNG work for new frametype
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3658 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-26 04:56:26 +00:00
Anthony Minessale II
03cd30b746 fixed a use count bug
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3657 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-25 18:30:51 +00:00
Anthony Minessale II
7ede296efd fix a bug in some small changes to astxs utility
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3656 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-25 18:20:49 +00:00
Malcolm Davenport
264fead207 Fixed??
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3655 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-25 14:14:57 +00:00
Malcolm Davenport
e5ad308a2b Still..
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3654 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-25 14:08:51 +00:00
Malcolm Davenport
f31a210cb2 Still working to resolve this...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3653 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-25 14:05:35 +00:00
Mark Spencer
b27c9f26fe Document caveats of promiscredir (bug #2195)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3652 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-25 06:25:18 +00:00
Anthony Minessale II
0ffa958fc4 some small changes to astxs utility
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3651 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-25 02:41:38 +00:00
Malcolm Davenport
e8483c021b Still trying...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3650 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-24 22:34:38 +00:00
Malcolm Davenport
5596c6a5da Still more tests
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3649 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-24 22:31:20 +00:00
Malcolm Davenport
0a6f41cdf2 More tests for asterisk-cvs@lists
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3648 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-24 22:28:59 +00:00
Malcolm Davenport
4219bdc2b4 More updates to test lists
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3647 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-24 21:26:19 +00:00
Malcolm Davenport
fa9c265ce7 More attempts to fix lists
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3646 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-24 21:09:05 +00:00
Malcolm Davenport
6d447004ea More attempts to fix lists
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3645 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-24 21:06:57 +00:00
Malcolm Davenport
091c6c36b9 Still testing asterisk-cvs@lists
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3644 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-24 21:00:25 +00:00
Malcolm Davenport
1f34a1dab4 Silly update to see if asterisk-cvs@lists is still borked
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3643 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-24 20:41:49 +00:00
Malcolm Davenport
ba55e8ae64 Silly change to see if asterisk-cvs@lists is working...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3642 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-24 20:29:55 +00:00
Malcolm Davenport
461596d9b1 Testing to see if asterisk-cvs@lists is still borked
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3641 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-24 20:15:34 +00:00
Malcolm Davenport
0e3fc6a4fe Still testing asterisk-cvs@lists...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3640 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-24 17:49:30 +00:00
Malcolm Davenport
6a589d5630 Still trying to debug the asterisk-cvs@lists problem :(
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3639 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-24 17:44:48 +00:00
Malcolm Davenport
b8c18d6176 Test "fix" to see what's wrong w/ asterisk-cvs@lists
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3638 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-24 17:34:54 +00:00
Anthony Minessale II
4210fd6ad9 make bug 2272 (which is actually caused by human error) less likely to happen
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3637 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-23 19:07:15 +00:00
Mark Spencer
1ddd0afe36 Make the guardtime work even if the date is < the year 1970, and if something weird happens in zap, don't stack overflow
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3636 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-23 17:37:24 +00:00
Mark Spencer
230d4b38a3 Qualify rtptimeout with a reinvite having taken place (bug #2286)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3635 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-23 14:31:20 +00:00
Mark Spencer
1afd98d916 Handle quoted <'s (bug #2223)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3634 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-23 14:16:25 +00:00
Mark Spencer
60707a4172 Fix sigchld handling (bug #2245)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3633 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-22 18:33:19 +00:00
Jim Dixon
f2dcfca9c4 Fixed timing race with thread creation in app_rpt.c, and added settable
delays and such in config file.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3632 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-22 03:58:42 +00:00
Jim Dixon
d8436708c0 Made some what turned out to be several changes to allow for radio channels
to be handled properly in the case of an Alarm state on their span.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3631 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-21 21:41:54 +00:00
Mark Spencer
de3528f0be Save CID and switches in "save dialplan" command (bug #2279)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3630 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-21 18:55:39 +00:00
Mark Spencer
d0ab0358aa Fix small memory leak... (bug #2277)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3629 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-21 18:49:52 +00:00
Mark Spencer
4f9f6df42c Don't split unless it's got echo training
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3628 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-20 21:07:10 +00:00
Ben Kramer
ed20af4517 / check so as not to enable loo-drop on FXS
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3627 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-20 02:55:29 +00:00
Mark Spencer
3ca96a1317 Fix divide by zero (bugs #2268 and 2259)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3626 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-19 18:52:56 +00:00
Ben Kramer
3bcff2d2f9 / bit of a clean up and change of pthread_create to ast_pthread_create
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3625 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-18 23:58:07 +00:00
Malcolm Davenport
3e85e4b82c Add README.mp3 to docs to clear up confusion about working and
non-working versions of mpg123


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3624 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-18 14:27:25 +00:00
Mark Spencer
299b26ae4a Remove unused tmp2 variable
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3623 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-18 14:13:35 +00:00
Mark Spencer
bbbbcaf73f Make sure jointcapability really indicates joint capability (bug #2210)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3622 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-18 13:55:03 +00:00
Ben Kramer
37e789fd79 / lots of fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3621 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-18 05:06:26 +00:00
Mark Spencer
27f3c530ed Fix sample config typo (bug #2263)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3620 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-18 02:16:48 +00:00
Mark Spencer
534e44c599 Add another field to track whether video was invited or not (bug #2226)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3619 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-18 02:16:04 +00:00
Mark Spencer
1587fd6b84 Fix port numbers in IAX2 and iax2prov (bug #2261)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3618 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-17 23:57:36 +00:00
Mark Spencer
ce51451ca6 Fix minor typos (bug #2260)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3617 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-17 23:53:15 +00:00
Mark Spencer
3385ecc112 Can't check incoming sip debug until after we receive the packet!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3616 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-17 14:26:25 +00:00
Mark Spencer
5d589eb866 Fix broken 100 Trying on REFER and also send NOTIFY as per RFC 3515
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3615 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-17 14:20:43 +00:00
Mark Spencer
039aad9ff4 Merge Lenny's sorcery....
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3614 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-17 01:57:16 +00:00
Mark Spencer
a0b8879af4 Add little note about hold music
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3613 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-16 17:43:48 +00:00
Mark Spencer
e1c9ebc5b9 Merge MOG's first serious patch (new message patch) (bug #2071)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3612 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-16 04:05:43 +00:00
Mark Spencer
02ffc0eec8 Fix trivial typo (bug #2253)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3611 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-16 01:57:10 +00:00
Jim Dixon
a560227ccb Fixed remote base audio problem (where 2 different interfaces are in use) and
allow for non-rbi remotes and rbi remotes to co-exist on same system


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3610 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-16 01:35:02 +00:00
Mark Spencer
87a7a3aaff Fix little oops on sizeof()
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3609 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-15 01:01:34 +00:00
Mark Spencer
6723ea3afb Oops, forgot message length
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3608 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-14 21:28:30 +00:00
Mark Spencer
3ff53cd50b Create binary versions of signature functions
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3607 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-14 20:19:38 +00:00
Mark Spencer
94f18868f1 Build on older versions of TDS (bug #2194)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3606 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-13 20:27:58 +00:00
Mark Spencer
e85d440f88 Don't request tones when in-band DTMF mode is enabled (bug #2248)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3605 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-13 13:19:29 +00:00
Mark Spencer
6910fd79f2 Fix missing \r\n
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3604 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-12 23:12:44 +00:00
Mark Spencer
c14b405974 Make Asterisk cause codes match those of Q.931 (bug #1999)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3603 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-12 22:09:18 +00:00
Mark Spencer
0125ed120f Specify D/ package in mgcp send digit routine (first commit from Adtran!)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3602 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-12 20:26:40 +00:00
Mark Spencer
be2d39a1a5 Fix duplex code for FreeBSD
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3601 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-12 03:19:19 +00:00
Mark Spencer
cbe0264949 Prep for RC-2
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3599 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-12 03:05:08 +00:00
Mark Spencer
96e2c3a3aa Fix agentcallbacklogin wrapup time
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3598 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-11 19:02:46 +00:00
Mark Spencer
7216081447 Allow on/off (bug #2233)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3597 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-08 22:22:30 +00:00
Mark Spencer
7acee329e1 Merge BSD stack size work (bug #2067)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3596 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-08 17:15:02 +00:00
Mark Spencer
916566ac11 Make sure we use AF_INET
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3595 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-08 04:49:43 +00:00
Mark Spencer
785eaf01b3 Only consider linear frames for talk detection -- ignore anything else (bug #2219)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3594 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-07 22:57:13 +00:00
Mark Spencer
ccbc7a6835 Fix a couple minor command line completion issues
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3593 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-07 19:27:54 +00:00
Mark Spencer
6193bc31b8 Merge Steven Davie's bridging patches
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3592 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-07 19:16:53 +00:00
Mark Spencer
698820f4e3 Add application to set callerid presentation (bug #2078)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3591 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-07 15:51:11 +00:00
Mark Spencer
34e40a3a59 Wait for command to complete (bug #1733) and take RTP 19 as CN too...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3590 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-07 14:22:09 +00:00
Mark Spencer
a21e295c96 Add CDR documentation (bug #2205)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3589 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-07 04:15:33 +00:00
Mark Spencer
082d7ee4b8 Don't install mpg123 unless it was built
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3588 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-07 03:01:52 +00:00
Mark Spencer
bdd9753f1e Make clean target too
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3587 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-07 02:57:28 +00:00
Mark Spencer
0df4b4eb64 Add mpg123 target
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3586 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-07 01:26:09 +00:00
Mark Spencer
2ee29be0e8 Fix pager voicemail notification from string (bug #2142), MOG's first patch!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3585 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-06 21:30:39 +00:00
Mark Spencer
172a45d603 Merge the remaining bit of the verbose update (bug #2213)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3584 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-06 17:09:54 +00:00
Mark Spencer
27d0ebc686 Only play announce time on first pass
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3583 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-06 14:43:25 +00:00
Mark Spencer
be02813c26 Keep track of timelimit across entries to ast_channel_bridge (bug #2222)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3582 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-06 13:54:07 +00:00
James Golovich
85a15b4fc9 Add app_verbose.c to cvs (bug 2212)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3581 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-06 02:12:54 +00:00
Mark Spencer
c16542c1d0 Allow directory to be searched by first name (bug #2208)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3580 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-05 22:02:33 +00:00
Mark Spencer
1de05fb7da Merge (slightly modified) app_verbose from tilghman (bug #2213)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3579 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-05 21:45:58 +00:00
Mark Spencer
a2e82071c5 Fix little MGCP buglet with the wildcard endpoint (bug #2216)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3578 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-05 21:36:33 +00:00
Mark Spencer
cfba600eab Fix verboser issue over network (#2217)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3577 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-05 21:22:56 +00:00
Mark Spencer
99f901f065 Fix "tell" for wav (bug #2212)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3576 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-04 00:42:49 +00:00
Mark Spencer
f074b92823 Merge nicolasg's manager/cli patch (bug #2207)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3575 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-03 17:48:18 +00:00
Mark Spencer
07f349766c Don't offer codecs not allowed on a reinvite
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3574 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-03 17:00:54 +00:00
Malcolm Davenport
892b06e282 Add BKW's fix so that MOH doesn't get killed on Call Parking
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3573 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-03 14:09:48 +00:00
Mark Spencer
f3522b6c01 Plane commits (a.k.a. the Delta deltas): 1) Make muted reconnect 2) Add "X" option to meetme and add ${MEETME_EXIT_CONTEXT}, 3) Allow SIP call parking with supervised transfer, 4) Only create parking entries when calls actually get parked, 5) Add "sunshine" song, 6) Update hardware documentation, 7) Don't load empty strings from history file
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3572 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-03 06:31:20 +00:00
Mark Spencer
437f625786 Add user number (bug #2203)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3571 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-02 15:28:12 +00:00
Mark Spencer
8b364485a0 dynamic_pin can be NULL (bug #2202)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3570 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-02 13:10:15 +00:00
Malcolm Davenport
345dff63e9 Add CREDITS credit for www.freeplaymusic.com - Hold Music
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3569 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-02 12:20:46 +00:00
Mark Spencer
76913125d8 Create initial framework for single channel support
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3568 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-02 04:32:37 +00:00
Mark Spencer
f195e423f4 Correct for user selecting 'D' when they should be selecting 'd' (bug #2200)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3567 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-02 02:58:15 +00:00
Mark Spencer
5abc3ecb56 Don't reload subchannels of wild card endpoint on reload.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3566 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-01 21:25:35 +00:00
Mark Spencer
87787b05ae Fix OpenBSD compile (bug #2193)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3565 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-01 18:48:37 +00:00
Mark Spencer
4f2b8f8e9a Add some more hold music
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3564 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-01 18:47:02 +00:00
Mark Spencer
c8170cf360 Fix double comma typo in sql_create_table (bug #2196)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3563 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-01 18:28:10 +00:00
Mark Spencer
358ff9f7d6 Make sure it's really a dotted IP (bug #2198)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3562 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-01 18:26:41 +00:00
Mark Spencer
e094bf07dc Don't record empty lines (bug #2175, but not using proposed patch)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3561 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-01 18:12:52 +00:00
Mark Spencer
05e338ce75 Rename newp to newpvt (bug #2190), change hold music.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3560 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-01 14:19:04 +00:00
Mark Spencer
fbe6024753 Fix reload with wildcard endpoint
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3559 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-01 03:59:13 +00:00
Mark Spencer
4d3f4f719a Get rid of TDS warning
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3558 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-01 03:53:34 +00:00
Mark Spencer
b240128ed4 Make sure it's a const
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3557 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-01 03:14:11 +00:00
Mark Spencer
70b3ab34a8 Uhm, that should be 0!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3556 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-01 02:39:32 +00:00
Mark Spencer
27e3cd9ca8 Merge gryn's transfer digit timeout patch (bug #2184)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3555 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-01 01:38:15 +00:00
Mark Spencer
13a45232fa Get other instance of 101 changed to "payload" (bug #2191)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3554 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-31 23:02:55 +00:00
Mark Spencer
c4bfcdeec5 Create manager show channels comamnd (#2186) to monitor zap channel status
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3553 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-31 20:43:24 +00:00
Mark Spencer
cfcc58d96e Don't hard code the RTP payload type to 101 (bug #2192)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3552 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-31 20:31:11 +00:00
Mark Spencer
096feeeddd Allow priority to be set in addition to -U / -G (bug #2173)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3551 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-31 20:25:07 +00:00
Mark Spencer
2de01f7b7e Send proper contact in 200 OK to REGISTER
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3550 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-31 04:04:05 +00:00
Mark Spencer
0369242c4c Fix information elements
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3549 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-31 02:51:40 +00:00
Mark Spencer
a70d444333 Improve debugging of RTP ports (bug #2131, heavily modified)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3548 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-31 02:31:24 +00:00
Mark Spencer
79a00a33f9 Respect "AST_EDITOR" rather than "EDITOR" so as not to change the default bindings from emacs to vi (bug #2185)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3547 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-31 02:23:27 +00:00
Malcolm Davenport
c542576190 Bug # 2171: Add permission to QueueAdd and QueueRemove manager commands
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3546 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-30 20:38:45 +00:00
Malcolm Davenport
725c352e94 Bug # 2170: Add authority_to_str function to let Administrator issue command to find privilege string
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3545 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-30 20:27:42 +00:00
Mark Spencer
64e1166e6f Reset conferencing on final hangup (bug #2172)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3544 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-30 20:23:06 +00:00
Mark Spencer
57b6515d82 Fix potential overflow in H.323
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3543 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-30 20:01:58 +00:00
Mark Spencer
e786eae3cd Fix MGCP endpoint (#2182)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3542 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-30 19:58:20 +00:00
Malcolm Davenport
a322c6f411 chan_h323 Makefile change for Bug #2064. Also back out changes for Bug #2115..next time read carefully. :)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3541 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-30 18:57:37 +00:00
Mark Spencer
943133953e Fix little unregister buglet
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3540 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-30 18:42:46 +00:00
Malcolm Davenport
f6717c92b2 Bug # 2174: Respect EDITOR environment variable
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3539 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-30 18:30:48 +00:00
Malcolm Davenport
9b0b4bf041 Bug # 2115: Allow Caller TON to be retrieved in the dialplan
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3538 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-30 18:21:54 +00:00
Malcolm Davenport
183fb08ee6 Bug # 2181: Support the PING event in MGCP.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3537 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-30 18:02:18 +00:00
Malcolm Davenport
760bc42049 Bug # 2090: Add mgcp.conf.sample for Wave7Optics FTTH LMG
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3536 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-30 17:57:02 +00:00
Mark Spencer
3329f8154e Add default username patch (bug #2178)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3535 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-30 14:59:56 +00:00
Mark Spencer
b4f6d91eda Default port to 5060
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3534 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-29 18:58:57 +00:00
Mark Spencer
0f93207cda Clear things out for the bearer too
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3533 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-29 04:26:42 +00:00
Mark Spencer
43866cf0d9 Don't get stuck looping when looking for CRV's
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3532 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-29 02:07:03 +00:00
Mark Spencer
deb02a000f Add "username" to sip show peer (bug #2163) as well as a few config cleanups
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3531 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-28 21:07:38 +00:00
Mark Spencer
baef4818d2 Somehow matt's patch didn't make it all the way in
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3530 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-28 20:41:49 +00:00
Mark Spencer
bf70a01da6 Merge alternate hangup and meetme patches from Matt N.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3529 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-28 19:25:14 +00:00
Mark Spencer
5733f64bdd Only Call PQfinish if conn isn't NULL (bug #2162)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3528 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-28 18:42:35 +00:00
Mark Spencer
a57ad69b53 Fix "ZapOffHook" (bug #2161)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3527 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-28 18:38:29 +00:00
Mark Spencer
7b52e19b6d Unify queue add/remove from manager and CLI (bug #2125/2123)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3526 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-28 02:55:22 +00:00
Mark Spencer
728e55e697 Fix date/time in TDS stuff (bug #2147)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3525 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-27 21:16:41 +00:00
Mark Spencer
71f41a06dc Make ACK sticky too (bug #2134)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3524 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-27 19:00:06 +00:00
Mark Spencer
e90022767d Allow optional event whenever an agent is called from a queue (bug #2066)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3523 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-27 04:13:04 +00:00
Mark Spencer
a395d75a91 Make request URI in CANCEL match that of the original INVITE exactly (bug #2134)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3522 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-27 04:04:45 +00:00
Mark Spencer
42837cde4c Allow you to enter the pin again during th "invalid pin" message
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3521 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-27 03:10:26 +00:00
Mark Spencer
1394a78bd6 Merge tilghman's meetme fix for reentering pin (bug #2143)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3520 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-27 03:08:00 +00:00
Mark Spencer
e4d4c93bd8 Merge ALSA fixes (bug #2145)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3519 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-27 02:46:24 +00:00
Mark Spencer
00f3bf560b Make sure index >= 0 before initializing
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3518 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-27 02:19:52 +00:00
Mark Spencer
5bd8cf6cde Swap subs before releasing lock
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3517 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-27 00:53:09 +00:00
Mark Spencer
9e789de703 Work properly on a reload
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3516 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-26 19:37:11 +00:00
Mark Spencer
d1ad2a695d Turn off DTMF generally in MGCP and make option to enable RFC2833 or in-band
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3515 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-26 19:33:36 +00:00
Mark Spencer
d0c1882cf7 Make sure we release the correct lock!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3514 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-26 13:38:47 +00:00
Mark Spencer
0abd9ec096 Fix potential transfer seg
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3513 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-26 13:16:57 +00:00
Mark Spencer
25afd9876c Fix ADSI prog to only accept 253 (bug #2135)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3512 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-26 03:23:38 +00:00
Mark Spencer
eb718e597d Let safe_asterisk take arguments (bug #2085)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3511 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-25 23:12:33 +00:00
Mark Spencer
1bfdd45fca Upgrade IAXY firmware to version 18
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3510 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-25 22:11:20 +00:00
Mark Spencer
d189993f15 Add Manager CDR (off by default) (bug #2127) courtesy cybershield
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3509 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-25 14:56:34 +00:00
Mark Spencer
6f5eb3b8fa Create one generally useful runtime option and one compile time option to work around bugs in the DPH100M phone (bug #2122)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3508 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-25 01:20:16 +00:00
Mark Spencer
4eedf0cd2e Sometimes we get subunalloced, gotta free lock first
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3507 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-24 23:53:02 +00:00
Mark Spencer
630ca201d6 Oops
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3506 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-24 23:45:37 +00:00
Mark Spencer
bf17aa1eca Hold lock for three-way channel (bug #2107)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3505 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-24 23:38:23 +00:00
Mark Spencer
5ed7dc3590 Lower default volume
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3504 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-24 21:06:54 +00:00
Mark Spencer
0fc1ef8c9d Fix astman build on FreeBSD (bug #2119)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3503 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-24 03:52:53 +00:00
Mark Spencer
d89ed4ab5f Create option for joining empty queue (bug #2126)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3502 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-24 03:37:50 +00:00
Mark Spencer
0905b587cf Add debian initialization script (bug #2008)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3501 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-24 03:17:52 +00:00
Mark Spencer
35ffb12ae8 Work on copy of firmware so that it doesn't get corrupted on a "make install" (bug #2106)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3500 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-24 02:50:11 +00:00
Anthony Minessale II
4dba976a7f added support to be able to set the channel var TRANSFER_CONTEXT so when
a #transfer is executed it uses ${TRANSFER_CONTEXT} from transferree else
from transferer else it acts as always
-anthm


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3499 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-24 02:29:40 +00:00
Mark Spencer
d3499da6fd Merge tilghman's app/appdata in newexten patch (bug #2104)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3498 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-24 02:26:07 +00:00
Mark Spencer
a1531e0ae3 Ad MSSQL CDR support (bug #1859)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3497 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-23 17:34:57 +00:00
James Golovich
7f234dbc4e Clarify in extesions.conf.sample that there must always be a priority 1 for an extension to be valid
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3496 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-23 17:00:04 +00:00
Mark Spencer
1a3ec0536c Revert to firmware 16, since 17 seems to have issues breaking dialtone
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3495 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-23 02:07:20 +00:00
Mark Spencer
832da92bdc Demand more information on callerid to prevent possible overruns
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3494 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-23 00:27:26 +00:00
Mark Spencer
e85731555d Fix YDL build (bug #2109)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3493 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-22 23:43:26 +00:00
Mark Spencer
7ab67c9fba Remove quotes from MD5 (bug #2116)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3492 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-22 23:16:40 +00:00
Jeremy McNamara
0afbb8bcbf clean up warnings, and re-add a return, how did that get removed?
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3491 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-22 04:24:50 +00:00
Mark Spencer
bb75fcc4db Copy account code and flags form incoming to outgoing channel for purposes of local stuff
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3490 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-22 03:51:54 +00:00
Jeremy McNamara
0bb8d95674 more changes to properly copy the call token and a small code optimization
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3489 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-21 16:36:10 +00:00
Jeremy McNamara
405d0be9fe const is evil?
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3488 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-21 00:49:06 +00:00
Mark Spencer
b5ad8c24be Make '*' count as cancel (bug #2098)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3487 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-20 22:24:15 +00:00
Mark Spencer
e252af2152 Fix user agent on reload
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3486 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-20 22:22:36 +00:00
Jeremy McNamara
a59c1d2ac4 first attempt to properly copy and then free call detail strings.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3485 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-20 21:04:16 +00:00
Mark Spencer
e49aae74d0 Never destroy channel when there is an owner
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3484 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-20 15:29:09 +00:00
Mark Spencer
c87d1f6309 Fix logger issue at hangup
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3483 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-20 15:10:18 +00:00
Mark Spencer
a23fa08274 Minor scheduling fixups
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3482 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-20 13:43:33 +00:00
Mark Spencer
24a5704798 Update dial documentation (bug #2096)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3481 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-19 19:47:21 +00:00
Mark Spencer
d3397cd37d Don't copmile in the no-RTP checksum stuff for non-Linux (bug #2089)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3480 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-19 18:09:33 +00:00
Mark Spencer
f8594ac304 Make sure s is initialized, make FAX_DETECT + OLD_DSP_ROUTINES build
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3479 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-19 16:00:40 +00:00
Mark Spencer
ed42d3074d Merge mic's minor patchlet (bug #2092)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3478 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-19 15:52:57 +00:00
James Golovich
eb80683222 Fix chan_zap compiling without libpri
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3477 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-19 05:00:05 +00:00
Mark Spencer
5808760bf4 Fix signalling for GR303 FXSKS CPE so we can look like a concentrator
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3476 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-19 02:18:11 +00:00
Mark Spencer
404485711e Merge damin's updated redhat scripts for starting/stopping/reloading asterisk
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3475 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-19 01:48:52 +00:00
Mark Spencer
daf76979ca Add options to background (bug #2075) and update documentation
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3474 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-19 00:30:39 +00:00
Mark Spencer
73f91fcc44 Grab the Message-ID too
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3473 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-18 20:50:37 +00:00
Mark Spencer
8a4967294f Make that setgid...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3472 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-18 18:52:36 +00:00
Mark Spencer
dc60239686 Add Asterisk manpage
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3471 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-18 17:58:05 +00:00
Mark Spencer
b600cf2232 Add -U and -G options to set user/group to run as
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3470 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-18 16:20:54 +00:00
Mark Spencer
d9be9eb5a8 Need actual offset space (bug #2076)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3469 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-18 15:58:57 +00:00
Mark Spencer
449bef5a36 Oops, make that ast_features
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3468 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-17 23:56:12 +00:00
Mark Spencer
b53507021e Fix the name :)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3467 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-17 23:54:23 +00:00
Mark Spencer
463444b391 Don't consider port number in name of peer in create_addr (bug #1974)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3466 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-17 23:27:11 +00:00
Mark Spencer
a1cf0fbd43 REduce chattyness
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3465 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-17 22:06:26 +00:00
Mark Spencer
2f2122875a Add option to disable checksums on RTP UDP ports (bug #2068)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3464 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-17 21:08:12 +00:00
Mark Spencer
569b95352a rename "parking" to "features" in preparation for some more (possibly post 1.0) feature additions
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3463 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-17 20:58:01 +00:00
Mark Spencer
ab7cd94b60 Update documentaion to be clearer
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3462 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-17 20:36:31 +00:00
Mark Spencer
57217916f1 First pass at AGI registration
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3461 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-17 20:25:39 +00:00
Mark Spencer
de4188df06 Merge musiconhold stuff (bug #2027), restructure AGI to eventually support registration
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3460 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-17 20:12:28 +00:00
Jeremy McNamara
f10148d3e3 actually implement the setting of noFastStart and noH245Tunneling.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3459 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-17 19:38:30 +00:00
Mark Spencer
b1e841edab Make bound more unique (bug #2072)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3458 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-17 19:24:36 +00:00
Mark Spencer
68070c82d0 Change IAX2 naming convention
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3456 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-17 04:13:12 +00:00
Mark Spencer
823f4559c9 Update Changelog/BUGS
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3455 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-17 02:52:52 +00:00
Mark Spencer
f202a8dbb3 Typo / whitespace fixes (bug #2052)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3454 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-17 02:25:53 +00:00
Mark Spencer
09c3679e2d Voicemail fixes (bug #1982)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3453 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-17 01:34:20 +00:00
Mark Spencer
6b8ecfa35f Add separated dialplan support (bug #2043)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3452 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-17 01:30:43 +00:00
Mark Spencer
3abd26bfdf Don't look for bearers when there are none.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3451 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-16 22:15:30 +00:00
Mark Spencer
03b1d1ea8c Re-listen after MGCP reload (bug #2061)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3450 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-16 21:22:55 +00:00
Mark Spencer
b1d55878a7 Implement confirmation for PRI
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3449 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-16 20:51:54 +00:00
Mark Spencer
d5c614397a Fix minor memory leak from tab completion (bug #2059)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3448 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-16 20:41:17 +00:00
Mark Spencer
eac29e9814 Only apply acking when method matches, too, when not acking a response
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3447 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-16 15:45:37 +00:00
Mark Spencer
bba1faf910 Last set of strncpy/snprintf updates (bug #2049)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3446 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-16 04:40:54 +00:00
Mark Spencer
78117423fa Allow multiple groups (group categories)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3445 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-16 04:32:17 +00:00
Mark Spencer
5de01235b6 Put header files in -devel package (bug #2058)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3444 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-16 03:46:52 +00:00
Mark Spencer
e167cc89f8 Fix native zap bridging with GR-303
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3443 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-16 02:24:57 +00:00
Mark Spencer
05d3d9c25f Fix silly typo (and make order slightly easier to read) bug #2054
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3442 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-15 22:14:27 +00:00
Mark Spencer
957782627c If breakon is unspecified, make it ""
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3441 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-15 14:37:09 +00:00
Mark Spencer
6e9d4faf61 Build contact without @ sign if there is no extension
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3440 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-15 14:31:20 +00:00
Ben Kramer
0a4a5483ae / changed samples from 240 to 160 as per all other drivers
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3439 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-15 01:24:15 +00:00
Ben Kramer
bab6f6bdf2 / remove extrenous NULL at end of function
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3438 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-14 21:55:01 +00:00
James Golovich
fa0ca01ffe Minor formatting fix from code audit in cli.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3437 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-14 14:53:24 +00:00
Mark Spencer
044ad2e2e7 Merge remaining audit patch (save dlfcn.c)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3436 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-14 13:57:15 +00:00
Mark Spencer
9cd917c42a Improve SIP history
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3435 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-14 11:51:44 +00:00
Mark Spencer
1b9251ad14 If we get 200 OK back on INVITE after we send CANCEL, send ACK *and* send BYE
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3434 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-14 11:10:05 +00:00
Mark Spencer
2f1c9c690f Add missing include (bug #2040)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3433 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-14 10:34:25 +00:00
Mark Spencer
0c6b76f7c2 Make parked calls events more consistant (bug #2033)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3432 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-14 07:53:57 +00:00
Mark Spencer
2a9d43407b Oops forgot one (bug #2038)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3431 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-14 07:48:47 +00:00
Mark Spencer
8ed49644a6 Remaining rgagnon source audit improvements (bug #2011)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3430 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-14 07:44:19 +00:00
Mark Spencer
872685d088 Merge rgagnon's pedantic string changes (apps n-z) (bug #2038)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3429 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-14 07:34:34 +00:00
Mark Spencer
4d32c46126 Merge rgagnon's pedantic string checks (apps a-m, bug #2035)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3428 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-14 07:22:30 +00:00
Mark Spencer
4290558ec0 Don't overwite config files in RPM (bug #2036)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3427 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-14 07:14:20 +00:00
Jim Dixon
9b08305eae Made changes to app_rpt.c and rpt.conf, including fully user-definable DTMF
command definitions, and an improved ID methodology.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3426 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-14 05:54:54 +00:00
Mark Spencer
f78179c374 Publish DIALEDTIME and ANSWEREDTIME in case people want to know them
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3425 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-14 01:10:24 +00:00
Anthony Minessale II
e42c11905e fix compiler warning in res_config_odbc.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3424 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-13 22:53:17 +00:00
Mark Spencer
3fdbac912a Use tohost, not the name of the peer
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3423 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-13 02:44:11 +00:00
Mark Spencer
3ba284094e Fix silly little seg
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3422 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-13 02:34:02 +00:00
Mark Spencer
634521b59b Make code agree with documentation so you can use sip peers
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3421 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-13 02:20:44 +00:00
Jeremy McNamara
423fd40090 attempt to stop lamers from doing inband DTMFon compressed codecs
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3420 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-12 20:06:05 +00:00
Mark Spencer
058f20179b Merge cosmetic fixes from steve
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3419 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-12 15:33:40 +00:00
Mark Spencer
dd293ed6fe First pass at properly handling account codes in forwarding
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3418 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-12 14:46:10 +00:00
Mark Spencer
3c7300d145 Just to be especially nice, only send 100 Trying at the start of parking and don't send the 202 Accepted until the end -- still doesn't help the SNOM. They seem to give dialtone as soon as they send REFER...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3417 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-09 22:43:15 +00:00
Mark Spencer
fb3f2062fa Fix silly pbx spool buglet (bug #2007)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3416 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-09 21:34:24 +00:00
James Golovich
9e0e3799bf Fixes from bkw_. Formatting in app_db.c and handle start right in cdr_pgsql.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3415 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-09 16:19:00 +00:00
Anthony Minessale II
f107562f75 fix res_config_odbc iax dual peer issue
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3414 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-09 14:47:59 +00:00
Mark Spencer
602d616726 Expire time fix (bug #1996)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3413 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-09 11:03:33 +00:00
Mark Spencer
611da9b699 Swap states early in masquerade process (bug #1987)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3412 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-09 10:57:43 +00:00
Mark Spencer
34ed331f82 Fix Zap buglet, add support for SIP parking -- doesn't seem to work quite right on SNOM.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3411 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-09 10:46:50 +00:00
Mark Spencer
7ca6f85a41 More strcpy / snprintf as part of rgagnon's audit (bug #2004)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3410 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-09 10:08:09 +00:00
Jeremy McNamara
069d045513 fix seg fault condition
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3409 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-09 08:52:35 +00:00
Mark Spencer
7c97de2611 Give Busy() and Congestion() an optional timeout
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3408 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-09 08:32:09 +00:00
Mark Spencer
11ee0b6a41 Add "skipaftercmd" option to voicemail to move to the next message automatically (bug #1984)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3407 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-09 07:39:39 +00:00
Mark Spencer
a40e6c115f Fix provisioning for unload/reload
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3406 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-09 07:37:44 +00:00
James Golovich
4113c814c7 Massive res_config_odbc.c formatting cleanups from bkw_. Thanks!!!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3405 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-08 20:16:28 +00:00
James Golovich
8426e454de Massive code formatting cleanup in res_odbc.c thanks to bkw_
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3404 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-08 19:58:26 +00:00
Malcolm Davenport
c5e44cc3cb Bug # 1973: Change write to ast_carefulwrite
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3403 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-08 19:41:34 +00:00
James Golovich
c793ab62ff Fix *BSD compilation of iax2-provision.c. We should probably move the IPTOS_MINCOST checking stuff over to a header fle that gets included
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3402 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-08 19:35:42 +00:00
James Golovich
decd0771ee Cleanup recent manager changes. We have a doc/CODING-GUIDELINES file for
a reason.  Make sure all future patches follow the guidelines.

Some of the problems with this include:
	Unnecessary whitespace changes
	Use of spaces instead of tabs
	Code formatting that doesn't follow the published guidelines
	Nested statements without braces
	Comment problems


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3401 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-08 17:08:38 +00:00
Mark Spencer
68dd66c46d Don't free until after externnotify (bug #1993)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3400 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-08 16:24:16 +00:00
Anthony Minessale II
568ba9c398 This patch allows an event mask to be sent on a manager login session
either using an integer value or a ',' sep list of flags exactly like
the manager.conf read and write lines.

e.g.
Events: system,call,log
or
Events: off
or
Events: on

Also you can change it mid-session with Action: Events

e.g.
Action: Events
EventMask: system,call,log

-Tony (anthm)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3399 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-08 15:39:35 +00:00
Mark Spencer
e3d12a2ab2 Re-fix bug #1977 (bug #1997)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3398 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-08 15:03:48 +00:00
Malcolm Davenport
c4a633a87b Bug #: 1992. Include priority
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3397 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-08 14:49:03 +00:00
Mark Spencer
b5780eda44 Use real bind address
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3396 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-08 14:06:22 +00:00
Mark Spencer
65fc87b245 Merge bkw_'s ODBC patch
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3395 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-08 13:18:04 +00:00
Mark Spencer
12b3b6c86e Use proper bind address
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3394 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-08 13:04:42 +00:00
Mark Spencer
8ebfe337a7 Extend bindaddr to RTP connections on SIP (bug #1989 et al)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3393 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-08 11:46:15 +00:00
Mark Spencer
28076a9c68 Cleanup SIP formatting, strncpy's strncats and global variable names (bug #1990)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3392 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-08 11:05:03 +00:00
Mark Spencer
851fce9568 Make ringing clearer
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3391 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-08 09:20:14 +00:00
Mark Spencer
91a7960ad5 Add SQLite CDR support (bug #1986)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3390 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-08 08:29:26 +00:00
Mark Spencer
216fd6e249 Merge matt's voicemail patch with some restructuring (bug #1971)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3389 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-08 07:31:09 +00:00
Mark Spencer
18844270c3 When doing rport, remove the ";rport" before adding ";rport=5060"
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3388 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-08 07:21:52 +00:00
Malcolm Davenport
fd9b6d13e6 Trivial fix for README.messages-expire
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3387 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-07 21:02:07 +00:00
Malcolm Davenport
5fa70e63a0 Bug #: 1988 Fix compile problem with iax2-provision.c under
FreeBSD


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3386 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-07 17:26:28 +00:00
Mark Spencer
432bb121f3 Cleanups to the ordering of events in dial, don't freak out on the wrong codec
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3385 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-07 16:02:13 +00:00
Mark Spencer
52549b25cd Deprecate emailtitle since emailsubject is more powerful.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3384 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-07 12:42:44 +00:00
Mark Spencer
fba5172e8a voicemail cleanups from rgagnon (bug #1977)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3383 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-07 12:29:20 +00:00
Mark Spencer
155d84a979 Add IAX provisioning support to Asterisk
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3382 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-07 09:34:01 +00:00
Mark Spencer
a7d2842beb Fix typo in sample config
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3381 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-03 22:44:17 +00:00
James Golovich
70c530630a Fix compiler warning because file.h isnt included
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3380 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-03 16:19:23 +00:00
Jeremy McNamara
a722b0462e add utils.h include. Bug #1965
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3379 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-03 05:22:21 +00:00
Mark Spencer
f63d46097d Back out accidental changes by anthm
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3378 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-02 23:11:14 +00:00
Anthony Minessale II
75d4369dfc autodial update
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3377 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-02 22:40:09 +00:00
James Golovich
3697f7dbcc Make app_txtcidname.c use ast_strlen_zero and cleanup the code a bit
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3376 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-02 19:24:16 +00:00
James Golovich
9de6aed36b Fix TXT lookups so they dont strip off the last 2 characters
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3375 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-02 19:20:09 +00:00
Mark Spencer
2e5873cb5d Fix missing context when calling app_hasvoicemail (bug #1962)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3374 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-01 21:58:50 +00:00
Mark Spencer
d2f22c57fe Merge Steven Davies latest jitter buffer patch
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3373 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-01 21:55:06 +00:00
Anthony Minessale II
b1d9a040d4 bring justice to gotoif's always true bug
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3372 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-01 20:42:49 +00:00
James Golovich
fb8ebe6365 Reverse login on voicemail email sending. Last change made it send email only if there was no address specified
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3371 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-01 17:34:42 +00:00
James Golovich
201849fb42 Fix IAX2 registration time. We want to set reg->refresh to the new value only if its lower not if its higher. (bug 1955)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3369 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-01 04:04:30 +00:00
Malcolm Davenport
8e2e53c987 Fix stupid typo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3368 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-30 18:30:48 +00:00
Malcolm Davenport
bd7418b625 Bug #1957. Take two
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3367 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-30 18:30:10 +00:00
Malcolm Davenport
3cf3edb14f "Unfix" Bug 1957...this isn't the solution
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3366 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-30 18:11:56 +00:00
Malcolm Davenport
3e2806114b Bug # 1957. No more sending e-mails if the address isn't
present.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3365 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-30 17:49:42 +00:00
Mark Spencer
2f911dfba6 Use INET_ADDRLEN (bug #1956) (from airport!)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3364 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-30 16:56:51 +00:00
Mark Spencer
64439e0692 Read/Record updates (bug #1947)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3363 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-30 16:04:28 +00:00
Malcolm Davenport
b94f5ca495 Bug #1952: iaxbuf now declared in chan_iax2.c and chan_sip.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3362 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-30 13:57:49 +00:00
Mark Spencer
1f1c915fea Merge Steven Davie's timestamp improvements
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3361 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-30 06:03:57 +00:00
Mark Spencer
7be9c6e469 Add "show file formats" (courtesy bkw_) and Update IAXY firmware to 17 (altserver support)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3360 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-30 03:22:29 +00:00
Mark Spencer
60ad539878 Formatting fixes (bug #1951)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3359 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-29 20:10:57 +00:00
Mark Spencer
9b32ff1eeb Minor formatting fixes for pbx_wilcalu
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3358 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-29 20:09:43 +00:00
James Golovich
074f8d9378 Use snprintf in __ast_request_and_dial instead of sprintf
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3356 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-29 19:29:03 +00:00
Mark Spencer
4b5f53d6a0 One more FreeBSD fix
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3355 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-29 19:21:25 +00:00
Mark Spencer
34208f76a5 Update variable descriptions (bug #1948)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3354 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-29 18:02:38 +00:00
Mark Spencer
e7bd1ce7b9 Remove duplicate declaration (bug #1950)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3353 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-29 18:00:14 +00:00
Mark Spencer
a8d8221357 FreeBSD fix for utils (bug #1949)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3352 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-29 17:54:25 +00:00
Mark Spencer
ee4a248e6b Make history configurable
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3351 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-29 14:44:29 +00:00
Mark Spencer
4d0dd2775a Report checksum failures as such (bug #1942)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3350 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-29 14:22:27 +00:00
Mark Spencer
eb6b35b75f Display invalid extension when there is one, fix minor OSP typo, Don't send 200 OK after 403 Forbidden on SUBSCRIBE
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3349 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-29 13:52:03 +00:00
Mark Spencer
9a478cb855 Prefer extensions within a macro to those outside (bug #1943)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3348 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-29 13:12:18 +00:00
Mark Spencer
457528ae86 Don't build old chan_iax by default (oops)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3347 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-29 13:03:39 +00:00
Mark Spencer
733c167528 Update asterisk spec file (bug #1946)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3346 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-29 12:57:52 +00:00
Mark Spencer
f97df161f4 Create reentrant ast_inet_ntoa and replace all inet_ntoa's with ast_inet_ntoa's (but #1944)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3345 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-29 12:56:46 +00:00
Mark Spencer
5bb0c3786d Oops (fix typo)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3344 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-29 12:40:15 +00:00
Mark Spencer
6195ae7453 Perform deadlock avoidance on initial entry, too
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3343 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-29 12:38:04 +00:00
Mark Spencer
779140b94c Placeholder for GR303-FXSKS signalling (not yet finished)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3342 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-29 11:45:51 +00:00
Mark Spencer
196112076c Fix small typo (bug #1945)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3341 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-29 11:40:54 +00:00
Mark Spencer
30910d48bc Avoid potential deadlocks in channel_walk_locked, and detect serious failures
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3340 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-29 10:51:00 +00:00
James Golovich
408ead2dda Add manager action descriptions for 'Events', 'Logoff', and 'Hangup'.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3339 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-29 05:04:48 +00:00
Jim Dixon
baa46147a5 More improvements to app_rpt.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3338 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-29 04:43:20 +00:00
James Golovich
3d0e3d3c0f More formatting cleanups.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3337 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-29 04:42:19 +00:00
Mark Spencer
560068617a Make sure pollres is initialized to 0
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3336 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-29 01:43:55 +00:00
Mark Spencer
ef0128ec41 Allow nat=never mode to work around buggy UNIDEN UIP200 firmware (bug #1935)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3335 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-28 23:24:36 +00:00
Mark Spencer
5fec7176e0 Merge Tilghman's meetme updates (bug #1934)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3334 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-28 22:10:50 +00:00
Mark Spencer
a11c4965b7 If we don't accept a SUBSCRIBE, set needdestroy
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3333 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-28 21:37:25 +00:00
Mark Spencer
b283a02a7d Merge seconds announcement for queue hold time (bug #1941)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3332 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-28 20:17:20 +00:00
Mark Spencer
09c41b415d Merge OSX compatibility patch (bug #1940)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3331 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-28 20:10:28 +00:00
Mark Spencer
9b6bd35ed3 Allow custom beep to be specified for agents (bug #1938)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3330 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-28 18:40:41 +00:00
Mark Spencer
eb9adf42d6 Directory fixes (bug #1887)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3329 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-28 15:08:39 +00:00
Jeremy McNamara
6f0a7f7a15 Add new built-in app 'SetAMAFlags'
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3328 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-28 03:48:53 +00:00
Jeremy McNamara
614d878b04 Add new built-in app 'SetAMAFlags'
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3327 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-28 03:41:41 +00:00
Jim Dixon
a9da004305 Added 'polite ID' concept in app_rpt.c and fixed a couple of silly telemetry issues.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3326 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-27 20:16:58 +00:00
Jeremy McNamara
88eede5218 apply temporary fix to stop people from whining.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3325 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-27 20:06:44 +00:00
Mark Spencer
9127ab071b Add option for in-band progress (bug #1879)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3324 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-26 21:17:12 +00:00
Mark Spencer
05110e85d3 Add ability to send detailed mailbox info (bug #1690)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3323 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-26 20:55:35 +00:00
Jim Dixon
ca75adf9cb Fixed autopatch so that it would take digits from link peer.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3322 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-26 19:28:55 +00:00
Mark Spencer
54dcc9bf56 Fix astman build (bug #1930)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3321 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-26 19:25:39 +00:00
Jim Dixon
ca7fc00ad5 Fixed a couple of silly things that I overlooked before :-)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3320 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-26 19:08:57 +00:00
Mark Spencer
df2394af02 Minor cleanups on zap when hangup on callwait
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3319 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-26 18:38:19 +00:00
Jim Dixon
c3af8944af Added support for Doug Hall RBI-1 Remote base controller, memory channels for
remote bases, and updated the rpt.conf doc a little bit.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3318 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-26 18:06:17 +00:00
Mark Spencer
b140eef0aa Implement queue wide wrapuptime (bug #1707)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3317 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-26 16:26:39 +00:00
Mark Spencer
88bcbb2368 Don't repeat option 3 (bug #1910)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3316 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-26 16:06:19 +00:00
Mark Spencer
d9ed36059c Add peercontext parameter for default outbound context (bug #1929)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3315 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-26 15:48:30 +00:00
Mark Spencer
1af31f2c64 Merge cmaj's ZapDND and specific channel status manager commands (bugs #1917, 1918)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3314 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-26 14:31:09 +00:00
Mark Spencer
b76935b95c Minor alsa fixes, add "delayreject" option to IAX to implement request of bug #1846)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3313 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-26 14:19:38 +00:00
Mark Spencer
03fbf171a7 Zap NSF merge, major ALSA improvements
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3312 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-26 05:20:42 +00:00
Mark Spencer
3db853b428 Merge source cleanups (bug #1911)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3311 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-26 03:50:14 +00:00
Mark Spencer
a30ae193db Add crypto to FreeBSD build (bug #1912)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3310 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-25 22:56:28 +00:00
Mark Spencer
a466fdbc40 Merge voicemail internationalization (bug #1485)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3309 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-25 21:25:44 +00:00
Mark Spencer
2fb8ad79c2 Don't munge outgoing call progress when fax enabled (bug #1909)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3308 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-25 21:17:08 +00:00
Mark Spencer
9ab74af94f Fixes to -R feature
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3307 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-25 21:14:03 +00:00
Mark Spencer
c9f168ed0f Add subaddress support (bug #1877)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3306 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-25 19:33:27 +00:00
Jim Dixon
dbea1448bd Fixed problems with multiple links and added timeout message
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3305 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-25 19:33:22 +00:00
Mark Spencer
e6de64a5a9 Cleanup handling of complex expressions (bug #1919)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3304 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-25 18:23:26 +00:00
Mark Spencer
fe4b2401bd Handle URL encoded stuff in pedantic checking
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3303 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-25 18:23:06 +00:00
Mark Spencer
d37b6dd459 Add Tilghman's -R option to allow reconnecting when disconnected (bug #1916)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3302 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-25 14:39:38 +00:00
Mark Spencer
0a059f8ce1 Update Chanelog
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3301 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-25 14:37:14 +00:00
Mark Spencer
80c9620612 Add sample config file, implement verification
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3300 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-25 05:52:55 +00:00
Mark Spencer
2f421a55da Small outgoing OSP cleanups
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3299 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-25 04:27:55 +00:00
Mark Spencer
42ad569376 Commit remaining changes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3298 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-25 04:07:52 +00:00
Mark Spencer
bdbed69984 Somehow the Makefile didn't get merged
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3297 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-25 04:06:11 +00:00
Mark Spencer
1d473f25dd Add outgoing OSP support (SIP only at this point)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3296 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-25 03:59:07 +00:00
Mark Spencer
b0972b8d1f Make sure other drivers also zero delivery (thanks to steven davies)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3295 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-24 13:27:44 +00:00
Mark Spencer
f6f67727c6 Merge Ehud's MySQL users support (bug #1815)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3294 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-24 04:07:44 +00:00
Mark Spencer
8ef1f1ea2e oops
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3293 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-24 03:04:25 +00:00
Mark Spencer
df93792f9c Extend delay slightly
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3292 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-23 22:01:46 +00:00
Mark Spencer
08ac005489 Make delay for echo training configurable
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3291 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-23 22:00:04 +00:00
Mark Spencer
27bb1601d3 Generate "failed" context on busy, too
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3290 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-23 20:46:58 +00:00
Mark Spencer
da49f53b66 datetime patches from Tilghman (bug #1905)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3289 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-23 20:19:12 +00:00
Mark Spencer
e9f2a805b9 Merge in-access updates for queue priorities (bug #1821)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3288 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-23 20:05:18 +00:00
Mark Spencer
74fdefdf1e Merge Tilghman's voicemail broadcast improvements (thanks!)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3287 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-23 18:00:50 +00:00
Mark Spencer
68248b91f0 Be sure to hold lock during answer
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3286 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-23 17:41:51 +00:00
Jim Dixon
6729301b4d Fixed bug in remote base part of app_rpt, and updated rpt.conf.sample to
reflect new changes in operation.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3285 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-23 14:37:46 +00:00
Mark Spencer
5e36feac27 Add 'w' option to meetme which causes us to wait for a "marked" user to enter the bridge
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3284 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-23 04:55:04 +00:00
Mark Spencer
7a363d3d17 Small simplification
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3283 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-23 03:19:32 +00:00
Mark Spencer
2187465cae Set ${DIALSTATUS} from app_dial, make zap return BUSY on a phone that is busy, update macro-stdexten to demo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3282 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-23 03:16:58 +00:00
Mark Spencer
0f6db9f939 Don't segfault if chan_zap can't load
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3281 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-23 01:27:44 +00:00
Mark Spencer
a03db324dd Tilghman's directory fix (bug #1892)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3280 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-23 00:06:46 +00:00
James Golovich
3f9c34f415 Misc formatting cleanups
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3279 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-22 20:11:15 +00:00
James Golovich
024f486810 Code formatting cleanups in utils.c and include/asterisk/lock.h
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3278 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-22 19:53:36 +00:00
James Golovich
f5c18f62a1 Remove pthread.h from source. We should be using asterisk/lock.h everywhere instead (except in asterisk/lock.h).
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3277 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-22 19:32:52 +00:00
James Golovich
8801247d76 Remove pthread.h from source. We should be using asterisk/lock.h everywhere instead (except in asterisk/lock.h).
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3276 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-22 18:49:00 +00:00
Mark Spencer
45ee2978cd Update messages-expire script
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3275 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-22 18:04:46 +00:00
Mark Spencer
f5de717d6e Merge Steven Davie's IAX2 jitter buffer enhancements
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3274 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-22 17:50:39 +00:00
Mark Spencer
5546e32355 Merge major BSD mutex and symbol conflict patches (bug #1816) (link patch still pending)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3273 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-22 17:42:14 +00:00
Mark Spencer
2f4a0dc3f5 Fix potential deadlocks in res_monitor
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3272 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-22 14:47:21 +00:00
Mark Spencer
652e085d0f Make DTMF mode configurable on ISDN
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3271 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-22 14:17:07 +00:00
Mark Spencer
8b2b0278c9 Make sure outgoing is not NULL
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3270 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-22 13:53:45 +00:00
Mark Spencer
e66aef0c05 Can't check outbound without having lock (bug #1886)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3269 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-22 04:54:52 +00:00
Mark Spencer
9cb185e126 Add "Progress" application
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3268 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-22 03:51:34 +00:00
Mark Spencer
2bd13db091 Directory fixes courtesy rgagnon (bug #1887)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3267 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-22 03:43:41 +00:00
Mark Spencer
551e3ad719 Add userevent application (bug #1300)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3266 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-21 23:00:00 +00:00
Mark Spencer
df4ea0cec4 Make CAS tone quieter
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3265 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-21 22:36:25 +00:00
Mark Spencer
3ccf8627e0 Add app_alarmreceiver (bug #1783)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3264 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-21 19:28:34 +00:00
Mark Spencer
aa63104784 Fix ast_safe_system
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3263 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-21 19:12:20 +00:00
Mark Spencer
2efcb2e331 Don't stop moh until after announcement finishes (bug #789)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3262 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-21 18:28:35 +00:00
Mark Spencer
76fe489c86 Support extended regular expressions
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3261 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-21 18:20:17 +00:00
Mark Spencer
ec3f9d5041 More fixes for remote_party_id
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3260 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-21 16:52:04 +00:00
Mark Spencer
7b0160ee51 Sorry, 403 is "Forbidden" not "Permission Denied"
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3259 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-21 14:51:38 +00:00
Mark Spencer
b0991ab170 Check if subscribe is for mailbox. If so, return 200 OK or 403 Permission Denied as appropriate
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3258 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-21 14:39:19 +00:00
Mark Spencer
8c4cacbd58 Use ' instead of " for quoting in extensions.conf (bug #1872)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3257 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-21 14:20:03 +00:00
Mark Spencer
502e74e5db Fix app_dial buglet
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3256 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-21 13:30:58 +00:00
Anthony Minessale II
b168dcdddf I don't know what this last update was for but app_dial.c was broken
so I added these 2 variable defs to make it compile right to spare
all the end users...


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3255 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-21 12:55:53 +00:00
Mark Spencer
585afa7e8e Add promiscuous redirect option
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3254 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-21 06:11:56 +00:00
Mark Spencer
737e9b2458 Merge outgoing MSN support + Remote Party ID for SIP (bug #1841) with cleanups
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3253 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-21 04:29:50 +00:00
Jim Dixon
2ee28d0ccf Majorly updated app_rpt.c allowing linking of repeaters/remote bases using (IAX2) and supporting remote base nodes as well (also added visual documentation in rpt_flow.pdf)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3252 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-21 04:24:50 +00:00
Mark Spencer
bbe5ff18c2 Fix locking in zapscan
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3251 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-21 04:08:54 +00:00
Mark Spencer
ef4d9eb5b7 Avoid iflock/chlock race
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3250 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-21 03:37:13 +00:00
Mark Spencer
491e5d941c Make 'x' option behave as advertised (bug #1878)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3249 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-21 02:37:34 +00:00
Mark Spencer
b72227e845 Merge (and cleanup) anthm's CDR changes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3248 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-20 22:46:42 +00:00
Mark Spencer
70167380a3 Allow CDR's to be linked and work on the linked list
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3247 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-20 15:19:36 +00:00
Mark Spencer
347f32ab97 Hold private lock while handling digits
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3246 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-20 14:07:44 +00:00
Mark Spencer
3b3a042cef Hold pending digits until setup_ack is received, then send (bug#1875)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3245 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-20 06:53:53 +00:00
James Golovich
a054fec8ef Typo in comment in app_dial.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3244 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-20 06:24:25 +00:00
Mark Spencer
bc9e475d6e Allow penalty argument to AddQueueMember
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3243 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-19 16:00:50 +00:00
James Golovich
18fef6deb1 Formatting fix
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3242 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-18 16:23:56 +00:00
Mark Spencer
133120aa38 Be sure we hold channel lock in write before talking to PRI channel
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3241 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-18 15:24:29 +00:00
Mark Spencer
e32c8f1ebe Debugging cleanups (bug #1633)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3240 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-18 13:53:48 +00:00
Mark Spencer
19d5ae6e8d Send 403 when authentication fails on a call
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3239 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-18 03:59:19 +00:00
Mark Spencer
3932d756d4 Oops
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3238 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-17 14:53:25 +00:00
Mark Spencer
f75a3079e0 Implement proper locking on INFO_RECEIVED
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3237 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-17 14:51:44 +00:00
Mark Spencer
d11177774a More meetme locking fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3236 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-17 05:21:54 +00:00
James Golovich
e5629ea138 Cleanup formatting in config.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3235 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-17 04:53:55 +00:00
Mark Spencer
4f72a1da77 Fix doubly-linked list delete
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3234 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-17 04:42:03 +00:00
Mark Spencer
095b971fc6 Small typo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3233 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-17 04:32:10 +00:00
Mark Spencer
2d78f0d53c PRI locking fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3232 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-17 04:23:57 +00:00
Mark Spencer
4a4e1e348d Must be inside lock when finding start
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3231 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-17 02:42:42 +00:00
Mark Spencer
702b8a96b0 Close logging stuff so system doesn't have to (bug #1855)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3230 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-17 01:13:10 +00:00
Mark Spencer
dd4aba8022 Document ability to change user agent (bug #1867)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3229 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-17 00:09:41 +00:00
Mark Spencer
e3c58c8ebe Gotta set slot to 0 before you print :)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3228 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-16 21:26:53 +00:00
Mark Spencer
fdf586e416 Don't forget to run the schedule queue
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3227 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-16 21:15:15 +00:00
Mark Spencer
88aec64bce Minor fixup to voicemail (bug #1865)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3226 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-16 18:35:01 +00:00
Mark Spencer
db8da3c376 Use new extensible setup method of libpri
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3225 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-16 15:34:21 +00:00
Mark Spencer
7538cee13b Enable support for RFC3581 (bug #1862)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3224 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-16 14:14:57 +00:00
Mark Spencer
be9d4b4333 Remove ancient requirement that ts > 0
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3223 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-16 13:52:50 +00:00
Mark Spencer
b3b931fab9 Merge EOF patch (bug #1860)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3222 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-16 03:28:42 +00:00
Anthony Minessale II
8fa9d75365 fix a miscalled arg in the #include support in external config handles
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3221 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-15 22:02:56 +00:00
Jeremy McNamara
1f4eadaf6a check to make sure the extension exists b4 actually accepting the call and lets hope this gives Open H.323 enough time to sync up (bug #1714)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3220 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-15 20:56:06 +00:00
Mark Spencer
ada1e768c4 Fix unexpected behavior in voicemail (bug #1856)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3219 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-15 20:33:26 +00:00
James Golovich
7255d8797c Formatting fix. Tabs not spaces :)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3218 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-15 19:31:25 +00:00
Anthony Minessale II
46303772e5 Added an extra reload_logger() after *.so is loaded in case a custom config handler binded to logger.conf
to solve a chicken/egg issue where logger.conf is parsed before lodable modules are loaded.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3217 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-15 18:48:07 +00:00
Mark Spencer
d0e532a070 Eliminate duplicate init_logger_chain call (bug #1853)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3216 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-15 18:44:14 +00:00
Mark Spencer
6c9b510d5d When dialing outbound, if we match a peer name, use it (who really cares?) (bug #1850)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3215 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-15 15:16:16 +00:00
Mark Spencer
dc7ceb7fd8 Cleanup leak in editline (bug #1847)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3214 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-15 14:37:36 +00:00
James Golovich
d88a461764 Cleanup formatting
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3213 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-14 22:15:21 +00:00
James Golovich
db8da85266 Cleanup formatting
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3212 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-14 22:05:12 +00:00
James Golovich
bc80b3130d Cleanup formatting
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3211 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-14 22:03:59 +00:00
Mark Spencer
001623fa0a Minor formatting cleanups
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3210 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-14 21:47:08 +00:00
Mark Spencer
c53e76528d Allow escaping of commas as well as ability to use quotes (bug #1826)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3209 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-14 21:43:16 +00:00
Mark Spencer
ee664e6ccd Fix small typos
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3208 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-14 21:40:57 +00:00
Mark Spencer
427be16475 Handle PROGRESS event
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3207 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-14 21:40:02 +00:00
Mark Spencer
5b9cab6c13 Separate PROCEEDING and PROGRESS
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3206 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-14 21:18:52 +00:00
James Golovich
f70b57352b Fix MailboxExists to follow the original behavior of jumping to +101 if the voicemailuser exists
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3205 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-14 20:40:14 +00:00
Mark Spencer
bec994b037 Merge Matt's work
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3204 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-14 19:43:41 +00:00
Mark Spencer
3cf5ea7383 Make meetme operate in linear so as to keep alaw folk happy, minor iax2
authentication cleanup


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3203 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-14 03:12:46 +00:00
Mark Spencer
d208532e6e x86-64 compile fixes and cleanups
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3202 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-13 21:25:10 +00:00
James Golovich
800ad7f727 Use ast_strlen_zero instead of &id in app_queue.c (Thanks folsson)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3200 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-13 19:45:59 +00:00
Mark Spencer
fd70e7920e Provide dialtone when doing overlap dial (bug #1832)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3199 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-13 07:25:27 +00:00
Mark Spencer
d030752f72 Make sure overlap dial goes into "RING" state instead of just "RESERVED"
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3198 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-13 07:16:00 +00:00
Mark Spencer
319011b0e3 Fix ODBC build for FreeBSD
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3197 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-13 01:54:53 +00:00
Mark Spencer
9e3a90e249 Display error when having trouble reading from /dev/phone
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3196 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-12 16:48:12 +00:00
Mark Spencer
439e5eeeb4 Use 401 Unauthorized instead of 407 Proxy Authentication required for REGISTER,
and use 403 for final request on proxy instead of 401 (bug #1798)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3195 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-12 16:38:36 +00:00
Mark Spencer
1b23fce2bd Fix OpenBSD compile (bug #1830)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3194 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-12 14:53:53 +00:00
Mark Spencer
a3355d9fe2 Add "LOW_MEMORY" option and increase some buffer sizes (bug #1827)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3193 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-12 14:34:15 +00:00
Jeremy McNamara
c359ec8f5c fix list initialization
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3192 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-12 03:44:51 +00:00
James Golovich
31b39fe85e Fix voicemail description. We send calls into extension 'a' or 'o' not priority
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3191 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-11 21:11:22 +00:00
James Golovich
c51934cd70 Update sample extensions.conf macro-stdexten to include an a extension that sends the user into voicemailmain when * is pressed
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3190 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-11 21:09:27 +00:00
James Golovich
481a59e92e Build ecodes string a little better in app_voicemail so that the 'a' extension will work even if the 'o' extension doesn't exist. Also update the description to include info on the 'a' extension
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3189 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-11 21:01:42 +00:00
Mark Spencer
1bc96b7aab Add talk detectection app (BackgroundDetect)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3188 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-11 14:06:30 +00:00
Mark Spencer
bad7cc9c14 Add "show channels concise" for machine readable format
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3187 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-11 00:18:30 +00:00
Mark Spencer
c96b39a960 Merge res_odbc and res_config
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3186 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-11 00:12:35 +00:00
Mark Spencer
758f246390 Display which span/channel we're receiving restarts on
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3185 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-10 19:00:20 +00:00
Mark Spencer
b1a658f57e Although I can't think of any scenario that it could result in a race, don't hold a private iax or sip lock while allocating a channel
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3184 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-09 23:07:55 +00:00
Mark Spencer
8800bd6b1f Merge rmarchev's vox fixes (bug #1812)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3183 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-09 20:55:20 +00:00
Mark Spencer
a53d260d5f Minor meetme cleanups
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3182 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-09 19:43:23 +00:00
Mark Spencer
3ef099dede In spite of my extreme distaste for SRV, make it the default.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3181 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-09 14:01:04 +00:00
Mark Spencer
1794aac9e1 Return NULL if no CRV found
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3180 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-09 13:55:52 +00:00
Mark Spencer
de57be6bbd Lock fixes for FreeBSD (bug #1810)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3179 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-09 13:49:42 +00:00
James Golovich
a23c43cefa Make chan_zap initialize the pri threads to AST_PTHREADT_NULL and check when calling unload in case load_module fails complete
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3177 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-09 08:46:32 +00:00
Mark Spencer
727abcdec7 Merge FreeBSD locking fixes (bug #1411)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3176 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-09 01:45:08 +00:00
Mark Spencer
c96046b6c2 Handle binding more nicely
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3175 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-09 01:33:16 +00:00
Mark Spencer
f105351643 Make fax detect configurable by direction (bug #1803)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3174 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-08 22:34:25 +00:00
Mark Spencer
5ae7b48700 Update changelog
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3173 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-08 03:39:29 +00:00
Mark Spencer
8c2bc79b77 chan_phone portability (bug #1788)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3172 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-08 01:50:57 +00:00
Mark Spencer
d3fd49f2cf Update sample configuration to show fax detect has to be enabled
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3171 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-07 23:38:58 +00:00
Mark Spencer
68c45465c8 Make faxdetect configurable and turn OFF by default
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3170 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-07 23:38:39 +00:00
Mark Spencer
ad49896f6b Simplify trunk transmission path and remove potential race (bug #1802)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3169 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-07 19:48:53 +00:00
Mark Spencer
8995f5d810 Zapras fix for BSD (bug #1801)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3168 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-07 19:12:14 +00:00
Anthony Minessale II
22de310e04 fix res_monitor bug
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3167 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-07 16:51:21 +00:00
Mark Spencer
9bd9958722 More GR-303 protocol fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3165 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-07 15:57:18 +00:00
Mark Spencer
dff7c80952 Fix tiny typo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3164 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-07 14:49:25 +00:00
Mark Spencer
a14ba4f1b5 Initial, incomplete support for D-channel backup
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3163 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-07 03:39:18 +00:00
Mark Spencer
994c0a5573 Update IAXY firmware to version 16 (provides better timestamps)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3162 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-07 02:55:31 +00:00
Mark Spencer
a9b5a6cbb0 Handle bearer failures cleanly (still need d-channel backup)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3161 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-06 23:26:29 +00:00
Mark Spencer
8699103fa1 Handle multiple span memberships properly
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3160 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-06 22:51:37 +00:00
Mark Spencer
469c7d6de9 Must call spanstat before checking number of channels (bug #1796)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3159 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-06 22:22:48 +00:00
Mark Spencer
9c42fa75a4 Fix small arrangement issue
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3158 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-06 20:47:51 +00:00
Mark Spencer
0f2e75a257 Clearly label EAGAIN as being the UDP checksum error that it is
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3157 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-06 17:44:47 +00:00
Mark Spencer
e115566669 Can't use the same buffer to snprintf that we're grabbing
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3156 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-06 17:36:57 +00:00
Mark Spencer
65d5921dde Don't require "c" before CRV syntax
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3155 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-06 08:52:24 +00:00
Mark Spencer
e325aa312f Try to parse callerid properly on /dev/phone (bug #1788)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3154 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-06 07:01:37 +00:00
Mark Spencer
7b7dbfb855 Small fixup for non-PRI build
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3153 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-06 03:32:55 +00:00
Anthony Minessale II
cc36c3d475 fix D() issue with to short of a duration
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3152 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-06 02:30:10 +00:00
Mark Spencer
a550016fd6 Add bi-directional GR-303 support
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3151 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-06 01:54:22 +00:00
Mark Spencer
df9b7608a9 Fix voicemail.conf typo (bug #1794)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3150 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-05 23:00:16 +00:00
Mark Spencer
b9d81ae6ad Add ${AVAILORIGCHAN} with original channel name (bug #1793)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3149 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-05 18:42:59 +00:00
Mark Spencer
32ecea7b8c More small fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3148 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-05 07:07:12 +00:00
Mark Spencer
746d2e7f67 Minor cleanups
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3147 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-05 07:01:23 +00:00
Mark Spencer
27578642b8 Add support for trunk groups in anticipation of NFAS and GR-303, Initial GR-303 work
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3146 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-05 06:54:52 +00:00
James Golovich
63b280e97c Cleanup some formatting in app_agi.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3145 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-04 19:01:07 +00:00
Mark Spencer
0062fe9588 IAX2 fixup, fix res_monitor sillyseg
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3144 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-04 18:30:35 +00:00
Mark Spencer
103bb4a334 Enhancements for zaptel+bsd (bug #1781)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3143 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-04 15:44:14 +00:00
Mark Spencer
aa2795cc46 Get rid of small copmile warning
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3142 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-03 23:44:43 +00:00
Mark Spencer
269507ad59 Fix handling when MONITOR_EXEC is unspecified
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3141 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-03 23:16:55 +00:00
Mark Spencer
ca0c646539 Make sure that auto created "pseudo" isn't a member of any groups (bugs #1776, #1777)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3140 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-03 22:40:13 +00:00
Mark Spencer
8cc1ffe2ab Merge agent callback login/logoff events and logging (bug #1775)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3139 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-03 17:33:35 +00:00
Mark Spencer
dc7e5f5f03 Initialize frame for playtones just in case
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3138 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-03 17:06:33 +00:00
Mark Spencer
799b876aa0 Make monitor merge application settable via variable, allow setting of variables via manager interface, allow mix flag to be set via manager (bug #1268)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3137 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-03 15:42:36 +00:00
Mark Spencer
8f5498177e WOrk on the proper pointer (bug #1773)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3136 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-02 23:27:50 +00:00
Mark Spencer
8f9ace9228 Add information for IAX on Free World Dialup
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3135 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-02 23:19:36 +00:00
James Golovich
5a9ab574de Add 'ListCommands' manager command
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3134 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-02 22:30:42 +00:00
Mark Spencer
ea2b6241fd Lock while installign generator
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3133 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-02 20:18:18 +00:00
James Golovich
ea70485e7b Add description to manager_action structure, and add some comments.
Add ast_manager_register2 which adds description as an additional arg
Rework how events are added so they get ordered alphabetically
Add 'show manager command <commandname>' (with tab completion) to
	view info on each command

Added descriptions to 'Ping' and 'Originate' but they kinda suck, so we
need other people to come up with good descriptions for each of the
manager commands.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3132 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-02 20:08:08 +00:00
Mark Spencer
37ae3cd701 Fix app_read to return string even if not # terminated (bug #1769)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3131 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-02 18:15:24 +00:00
Mark Spencer
b6beb440cd Use pseudo channel instead of just /dev/zap/pseudo, now with proper protections (bug #1766)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3130 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-02 16:57:14 +00:00
Mark Spencer
bc86e5de2a Allocate pseudo channel if it's not explicitly listed
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3129 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-02 16:35:06 +00:00
James Golovich
2587e6faa4 Code formatting fixes in chan_zap.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3128 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-02 16:13:25 +00:00
Mark Spencer
ce82bfa75a Play acknowledgement in all cases (bug #1767)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3127 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-02 00:03:49 +00:00
Mark Spencer
31e427d775 Oops slightly premature
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3126 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-01 22:54:18 +00:00
Mark Spencer
a435f135b5 Use pseudo channel (but real channel) instead of just directly opening /dev/zap/pseudo to enable future meetme enhancements (bug #1766)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3125 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-01 22:53:52 +00:00
Mark Spencer
36b87b3b33 Voicemail fixes (bug #1758)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3124 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-01 19:38:06 +00:00
Mark Spencer
8164972e34 allow multiple exit characters on control_streamfile, allow '1' to skip envelope
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3123 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-01 18:50:18 +00:00
Mark Spencer
49257bafbc Only call the update once
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3122 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-31 23:44:04 +00:00
Mark Spencer
9286f2c6d3 More BSD compile fixes (bugs #1754 and #1756)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3121 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-31 19:40:23 +00:00
Mark Spencer
fdcf41cef0 Fix compile warning on FreeBSD (bug #1755)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3120 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-31 17:01:32 +00:00
Mark Spencer
66fae27e3a Add missing strings include for BSD
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3119 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-31 16:51:28 +00:00
Mark Spencer
c66bf9a326 Trivial removal of unused variable when not on linux (bug #1753)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3118 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-31 16:43:35 +00:00
Jim Dixon
8968d50976 Complete re-vamp of Radio Repeater application (app_rpt) and VERY minor changes in chan_zap (to allow pseudo-channels to work properly (finally!)) and in dsp.c to allow for super-relaxed DTMF decoding which radio systems need to function properly.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3117 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-31 16:04:10 +00:00
Jeremy McNamara
b0f9569b5c make sending indications more robust and proper
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3116 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-31 02:49:53 +00:00
Mark Spencer
514acf8dfc Fix lag in diverging clocks (bug #1696)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3115 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-30 22:22:49 +00:00
Mark Spencer
89561c6a29 Update queue member after end of call (bug #1727)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3114 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-30 22:10:09 +00:00
Mark Spencer
c47538a24b Take member as argument, not lpeer
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3113 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-30 20:43:55 +00:00
Mark Spencer
5ee4f3048c Fix formatting issues
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3112 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-30 20:38:05 +00:00
Mark Spencer
0f5ed60d51 Minor RTP video fixes, be more careful about closing fd's in meetme (bug #1743)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3111 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-30 20:24:48 +00:00
Jim Dixon
5ef2ef8a1d Fixed annoying SIP 'NOTIFY' messages printed on console every n seconds from some SIP peers. Also fixed problem where 'INFO' was not being responded to if in 'ignore' state.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3110 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-30 20:03:39 +00:00
Mark Spencer
d34639a601 Allow variable substitution in from string (bug #1741)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3109 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-30 03:03:19 +00:00
Mark Spencer
bf2ec2d6d0 Initialize secrets properly (bug #1748)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3108 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-29 23:40:22 +00:00
Anthony Minessale II
f30d55fbf6 saw this in valgrind (-tony)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3107 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-29 03:40:35 +00:00
James Golovich
8136198e53 Use ast_strlen_zero in res_musiconhold.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3106 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-28 19:44:33 +00:00
James Golovich
fa9a8d158a Hopefully last ast_strlen_zero fix in cli.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3105 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-28 19:23:30 +00:00
James Golovich
cc698e15cf Use ast_strlen_zero in privacy.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3104 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-28 19:20:29 +00:00
James Golovich
4926908616 Use ast_strlen_zero in db.c and some optimizations. Lets store the return value of strlen and use that rather than using strlen every time, and snprintf returns the length of the string
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3103 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-28 18:56:23 +00:00
Mark Spencer
a2cc6b01be Really don't authenticate if we're not supposed to authenticate (bug #1738)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3102 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-28 15:47:57 +00:00
Mark Spencer
63074875d6 Ringing and progress are not identical
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3101 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-28 02:02:33 +00:00
Mark Spencer
04887bcc3e Minor reinvite typo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3100 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-28 00:52:45 +00:00
Mark Spencer
5b53760717 Only print PRI messages when in verbose mode (bug #1732)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3099 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-27 22:38:13 +00:00
Mark Spencer
ff2ba012d2 Merge connor's exit context patch (#1737)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3098 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-27 22:35:47 +00:00
Mark Spencer
e446f4ca81 Merge OSS fixes for FreeBSD, implement rtptimeout and rtpholdtimeout
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3097 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-27 22:12:55 +00:00
Mark Spencer
4d1706d05f Fix gross oversights in original ACL patch
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3096 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-27 21:31:25 +00:00
Mark Spencer
4f5ddbc374 Add ACL copy routines (bug #1733)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3095 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-27 20:53:02 +00:00
Mark Spencer
96117402b1 Unlock PRI lock, fix variable pasing
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3093 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-27 16:50:07 +00:00
Mark Spencer
2cd1eb39b1 Don't count as outgoing until we actually send the new INVITE
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3092 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-27 16:14:46 +00:00
Mark Spencer
03cb980dc2 Meetme fixes (bug #1729)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3091 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-27 14:35:26 +00:00
Mark Spencer
b820fd0075 Doc fix for controlplayback, get rid of 500ms wait in rtp.c (bug #1589)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3090 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-27 05:06:32 +00:00
Mark Spencer
cf57ba2310 Make RTP handle codecs (first pass)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3089 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-27 04:18:46 +00:00
James Golovich
fc7593e594 More formatting fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3088 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-27 00:07:18 +00:00
Anthony Minessale II
54780434a6 enhance control_playback to have an app (app_controlplayback) and to allow pause (inherited by app_voicemail)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3087 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-26 23:56:41 +00:00
Mark Spencer
ec14976ac3 Perform proper heap bounds checking on skinny messages (bug #1726)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3085 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-26 23:15:23 +00:00
Mark Spencer
fdb8ffe20d Cancel destroy request on new invite, merge bkw's control playback changes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3084 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-26 22:18:59 +00:00
Jeremy McNamara
f7a7158f3f oopsie
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3083 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-26 19:41:58 +00:00
James Golovich
b4a2ee6104 Use ast_strlen_zero in manager.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3082 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-26 19:30:12 +00:00
Jeremy McNamara
728cceca7e explain a proper upgrade sequence (lowering the signal-to-noise ratio again)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3081 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-26 19:28:14 +00:00
James Golovich
7baf86bc8b Fix comment in pbx.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3080 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-26 19:24:47 +00:00
Jeremy McNamara
9432a1c19f properly clean capabilites from the endpoint
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3079 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-26 19:14:51 +00:00
Mark Spencer
1b5d2d4667 Cancel self destruct on provisional responses too (bug #1722)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3078 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-26 18:46:36 +00:00
Mark Spencer
682913a1f3 Add controlplayback app
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3077 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-26 18:38:10 +00:00
James Golovich
82b3a5f417 Formatting fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3076 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-26 16:51:25 +00:00
Anthony Minessale II
8f9e2b6633 add ast_control_streamfile api call
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3075 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-26 15:22:54 +00:00
Ben Kramer
8161efd26a cleaned up locking, more logging on locks, still havent worked out why
locks become screwed if a call isnt Answered before a Dial.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3074 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-26 01:29:29 +00:00
Mark Spencer
1799dd3641 It's angler's first patch!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3073 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-25 15:53:28 +00:00
Mark Spencer
1147ed1e8c Fix record option to take from the right channel
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3072 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-25 15:37:30 +00:00
Mark Spencer
0f966565af Handle debugging of unknown IE's properly
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3070 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-25 15:16:45 +00:00
Mark Spencer
2cc7d3e8db Make sure transmitted timestamps are solid on trunks (bug #1713)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3068 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-25 13:57:57 +00:00
Mark Spencer
67b3ab9ee5 Merge useragent patch (bug #712)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3067 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-25 05:36:49 +00:00
Mark Spencer
7dee677799 Fix major typo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3066 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-25 04:50:54 +00:00
Mark Spencer
9dbb2ef08c Enable understanding of service identifier and provisioning version
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3065 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-25 04:34:43 +00:00
Mark Spencer
0e1e513d5a Fix makefile for apple
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3064 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-25 02:51:38 +00:00
Jeremy McNamara
588801931f optmize call setup process
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3063 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-25 02:27:59 +00:00
Mark Spencer
e3ad88c784 Eliminate useless pass checking
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3062 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-25 00:23:02 +00:00
Mark Spencer
af69f68359 Fix AES for MacOS build
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3061 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-24 20:09:05 +00:00
Mark Spencer
3377298b06 Handle different contexts (bug #1702)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3060 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-24 19:24:20 +00:00
Mark Spencer
15b86b3afb Fix security codes in asterisk.adsi (bug #1709)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3059 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-24 19:22:25 +00:00
Mark Spencer
776497fb6b Fix potential segfault, add support for MacOS X locks
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3058 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-24 15:28:36 +00:00
Mark Spencer
9082b027ef Improve sample configuration files (bug #1125)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3057 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-24 15:09:34 +00:00
Mark Spencer
bbce72c316 Fix small typo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3056 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-24 15:07:08 +00:00
Mark Spencer
d7ba067af6 Always authenticate when insecure is not "very" even on matching IP
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3055 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-24 14:44:47 +00:00
Mark Spencer
1798abd909 Minor path tweak
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3054 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-24 13:53:52 +00:00
Ben Kramer
4b5f7f0ef6 / work in progress, still tracking down locking bug
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3053 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-24 05:37:15 +00:00
Ben Kramer
5273e43919 / fixed up timers for ring back and busy tones
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3051 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-24 01:43:05 +00:00
Mark Spencer
316bffd061 Fix voicemail ADSI codes (bug #1680)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3050 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-24 00:44:40 +00:00
Mark Spencer
ba264f8158 Minor mailbox cleanups
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3049 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-24 00:26:46 +00:00
Mark Spencer
cf24f7ff7e Change 'u' back to 's' since it's required for both user and admin menus
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3048 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-23 23:46:43 +00:00
James Golovich
5e29d3a518 Make mkdep throw away stderr since people think the error messages printed are serious when they are not
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3047 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-23 17:17:27 +00:00
Mark Spencer
25ca4c854c Small fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3046 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-23 14:55:50 +00:00
Mark Spencer
50449d5c87 MeetMe documentation improvements (bug #1703)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3045 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-23 14:19:45 +00:00
Mark Spencer
740243552f Use find_user for existsmailbox
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3044 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-23 05:07:43 +00:00
Mark Spencer
9f14461cb7 Fixes to mailbox exists
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3043 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-23 04:21:42 +00:00
Mark Spencer
194fe2a4a5 Copy hangup cause at end of a good call
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3042 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-22 23:17:33 +00:00
Mark Spencer
e300367ad8 Obviously don't send alerting, progress, or proceeding on outbound calls (bug #1700)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3041 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-22 19:05:53 +00:00
Mark Spencer
15b2f1f635 When dialing out, we're always proceeding :)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3040 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-22 15:36:59 +00:00
Mark Spencer
47133fda31 Work on a copy with app_agi
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3039 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-22 04:52:50 +00:00
Mark Spencer
a0486afb83 Merge fabeman's extensive meetme improvements (bug #1624)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3038 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-22 04:11:22 +00:00
Mark Spencer
ad67680ed3 First pass at handling responses properly for retransmissions
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3036 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-21 06:05:20 +00:00
Mark Spencer
93da37619a Fix some small broken prompts (bug #1684 & 1686)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3035 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-21 04:35:19 +00:00
Ben Kramer
0284bc4b99 / updated locking
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3034 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-21 02:51:05 +00:00
Mark Spencer
7f1117a71f Don't send the same codec twice even if listed twice in allow section (bug #1691)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3033 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-21 00:59:38 +00:00
Mark Spencer
0004e8a4be Stop stream when interrupted by '#' or '*' or '0' (bug #1689)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3032 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-21 00:55:36 +00:00
Jeremy McNamara
41c995dd18 Fix FreeTDS/MSSQL from bkw
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3031 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-21 00:40:02 +00:00
Jeremy McNamara
89dbeddcfc backout code optimization, add more explict error reporting
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3030 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-20 21:56:12 +00:00
Mark Spencer
6195dd35e0 Make ast_channel_walk become ast_channel_walk_locked
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3029 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-20 16:30:10 +00:00
Jeremy McNamara
e1b72cf020 cleanup code and debug
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3028 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-20 09:00:04 +00:00
Mark Spencer
b1462cd593 Make playback of envelope a configurable option (bug #1683)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3027 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-20 07:58:15 +00:00
Mark Spencer
868fec3692 Congestion with Hangup sends expected RELEASE code (but #1681)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3026 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-20 07:57:19 +00:00
Mark Spencer
a105455487 Stage 1 of deadlock fix (bug #1673 -- but not yet solved, just started) and fix configs ending with no newline (bug #1672)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3025 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-20 07:52:07 +00:00
Mark Spencer
0882f61a8e Fix compile order (bug #1682)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3024 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-20 07:08:31 +00:00
Jeremy McNamara
eff9477388 properly send call progress and alerting PDUs, re-fix one-way audio on call manager, and hopefully add call progress (N+101) support (not tested)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3023 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-20 07:07:18 +00:00
Jeremy McNamara
fc6a82fcb8 only complain if ZAPATA_PRI is defined
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3022 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-20 07:02:47 +00:00
Ben Kramer
2bc871a62e / working on pstn->sip half duplex bug
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3021 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-20 01:59:03 +00:00
Mark Spencer
61ce929656 Merge Mike's announcement enhancements
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3020 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-20 00:29:09 +00:00
Mark Spencer
67e1c59427 Add missing queue header file (bug #1626)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3019 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-19 21:13:49 +00:00
Mark Spencer
3f6896acd3 Update for newer libpri
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3018 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-19 21:02:11 +00:00
James Golovich
17aeeda774 Re-Disable building chan_iax.so
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3017 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-19 17:16:46 +00:00
Mark Spencer
143b73ee7b Always send proceeding, send progress when appropriate
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3016 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-19 15:40:01 +00:00
Mark Spencer
260fcde6e2 Alert for in-band audio
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3015 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-19 15:23:11 +00:00
Mark Spencer
ce55c480e9 Don't qualify with overlap dial anymore
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3014 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-19 15:11:27 +00:00
Mark Spencer
5738da5225 Send proceeding if appropriate on audio transmission, too
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3013 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-19 15:00:14 +00:00
Mark Spencer
457f4caf6f Don't automatically send proceeding/alerting
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3012 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-19 14:51:11 +00:00
Mark Spencer
34347418e3 Allow multiple codecs to be printed in debug (bug #989)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3011 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-19 03:39:44 +00:00
Mark Spencer
5d9aa86efa Provide example for using e164.org
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3010 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-19 03:28:36 +00:00
Mark Spencer
ff5851c685 Make muted handle transfers
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3009 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-19 03:16:59 +00:00
Mark Spencer
7976579ef6 Merge small bkw_ queue enhancements
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3008 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-19 02:29:15 +00:00
James Golovich
36f888e06e Clarify app_dial documentation regarding transfers
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3006 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-18 18:27:55 +00:00
Jeremy McNamara
a73524874c fix documenation bug
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3005 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-18 16:06:30 +00:00
Jeremy McNamara
1c445d44c5 Don't advertise Janus, its still broken
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3004 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-18 15:20:37 +00:00
Jeremy McNamara
a54a0e5ecb clean up code and attempt to stablize inbound h.323 calls
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3003 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-18 10:33:46 +00:00
Jeremy McNamara
e0ab451084 clean up code
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3002 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-18 10:32:34 +00:00
Mark Spencer
2310261cbe Flesh out remaining "rrmemory" logic
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3001 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-18 05:56:46 +00:00
Mark Spencer
99876da380 Update coding guidelines
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3000 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-18 05:52:52 +00:00
Mark Spencer
76a22457ce Add date formatting capability for logger (bug #1665)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2999 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-18 05:47:27 +00:00
Mark Spencer
e36ed02083 Add Round-Robin w/ Memory queueing strategy (rrmemory)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2998 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-18 05:41:53 +00:00
Jeremy McNamara
1f506e55d0 add explict version info
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2997 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-18 04:39:09 +00:00
Mark Spencer
a80bce7e58 Allow translation table to be recalculated, including with higher resolution
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2996 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-17 22:59:27 +00:00
James Golovich
4b56cf02f0 Fix compiler warning
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2994 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-17 21:15:37 +00:00
James Golovich
668f8161ab Make variables work in manager originate again
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2993 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-17 21:10:26 +00:00
Mark Spencer
d117f2258f Propagate language properly across chan_local (bug #1663)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2992 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-17 15:52:33 +00:00
Mark Spencer
1a81758f1c manage multiple subchannels per device
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2991 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-17 07:00:21 +00:00
Mark Spencer
655bce9e1f clean up config file sample
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2990 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-17 06:39:17 +00:00
Mark Spencer
9242c5c05e Add muted for malcolm!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2989 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-17 06:31:24 +00:00
Jeremy McNamara
adc4fbe921 nitpicky fix
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2988 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-17 02:05:27 +00:00
Mark Spencer
95ef751780 Fix compile for old builds
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2987 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-16 20:42:58 +00:00
Mark Spencer
e2dd1cc3da Add ability to look up callerid name by txt (bug #1442)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2986 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-16 18:12:16 +00:00
Mark Spencer
2dfb2d723f Fix callerid on quicknet stuff (bug #1613)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2985 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-16 17:54:53 +00:00
Mark Spencer
1feaac6a54 Allow defining a default context (bug #1658)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2984 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-16 17:52:24 +00:00
Mark Spencer
4fc75f6559 Ignore progress frames in request/dial (bug #1657)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2983 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-16 17:50:14 +00:00
Jeremy McNamara
e37c73ef97 add iLBC optimizations from bkw
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2982 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-16 17:35:51 +00:00
Jeremy McNamara
3c50e18f46 add new file README.h323 to help lower the signal-to-noise ratio
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2981 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-16 16:52:18 +00:00
Mark Spencer
ed443d08cf Timely packet removal and make valgrind happy
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2980 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-16 16:31:42 +00:00
Jeremy McNamara
3794c9bfef add ./configure for the thick headed who can't read documentation...wait will they even read the README?
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2979 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-16 16:10:56 +00:00
Mark Spencer
1081dc05c2 Improve handling of multiple CANCEL requests
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2978 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-16 16:01:09 +00:00
Mark Spencer
72ca19339d Add indications for Chile
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2977 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-16 15:30:37 +00:00
Jeremy McNamara
83c46fb83e try to enable ringback on H.323->SIP calls (bug #1645) and clean up code a lil bit
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2976 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-16 07:04:48 +00:00
Mark Spencer
b8190d0e92 Make sure that we have the sin_family set to AF_INET for FreeBSD
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2975 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-16 05:53:33 +00:00
Mark Spencer
103034acf2 Add Taiwan support (bug #1599)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2974 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-15 23:32:07 +00:00
Mark Spencer
2742f2ca72 Don't worry about tones we can't send (bug #1652)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2973 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-15 22:53:55 +00:00
Mark Spencer
f222665d1d Fix timezone handling for FreeBSD
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2972 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-15 22:52:12 +00:00
Mark Spencer
70007e6095 Don't call out an FXO until at least 2 seconds after it was hungup.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2971 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-15 22:50:51 +00:00
Mark Spencer
694c1c0c9c FreeBSD compile fix (bug #1655)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2970 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-15 22:42:25 +00:00
Mark Spencer
d146b72e53 Fix typo in outgoing rfc2833 handling (bug #1646)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2969 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-15 16:26:52 +00:00
Mark Spencer
4d1137ded4 Fix a couple of small typos (bug #1648)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2968 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-15 15:40:08 +00:00
Mark Spencer
2293ad0b1f Update coding guidelines, fix "say.c" compile on older compilers, update coding guidelines (includes bug #1631)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2967 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-15 15:34:31 +00:00
Mark Spencer
f59f077d27 Fix logic in gethostbyname_r (bug #1634)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2966 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-15 05:02:42 +00:00
Ben Kramer
28c55ae8e3 / fixed up coding style to recommened
/ fixed timer start/restart bug
/ added disabling off loop-drop detection option
/ added "w" "f" Dial string translations
/ clean up of logging messages


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2965 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-14 04:39:16 +00:00
Mark Spencer
7254cca9f3 Really fix ast_gethostbyname
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2963 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-13 21:54:30 +00:00
Mark Spencer
50b637d1f9 Add polish support to say.c (bug #1629)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2962 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-13 21:39:43 +00:00
Mark Spencer
023939d65f Add taiwanese support for saynumber/datetime (bug #1615)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2961 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-13 20:06:27 +00:00
Mark Spencer
83a8b6745f Update documentation of asterisk -h (bug #1622)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2960 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-13 19:57:45 +00:00
Mark Spencer
baeb134536 Better document SIP (bug #1603)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2959 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-13 19:54:42 +00:00
Mark Spencer
c1b3b1d5b1 Lose all the "auth" stuff since we don't use it (bug #1627)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2958 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-13 19:51:54 +00:00
Mark Spencer
beae1fb946 Add events for join/leave (bug #1625)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2957 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-13 19:02:47 +00:00
Mark Spencer
6b0805633b Add linear file generator, CIRCQ emulation for BSD (bug #1626)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2956 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-13 19:01:10 +00:00
Mark Spencer
c9d3a81c3a Make sure we initialize attributes properly on thread (bug #1563)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2955 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-13 18:23:34 +00:00
Mark Spencer
dbb7b83ecc Minor memory cleanups, initialize peer/user invite status from global
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2954 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-12 23:35:50 +00:00
Jeremy McNamara
ed01d3b366 Turn off lamp on call completion, code cleanup and a couple other minor bug fixes.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2953 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-12 21:30:23 +00:00
Mark Spencer
88fa72f892 Fix FreeBSD compile (bug #1620)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2952 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-12 19:20:34 +00:00
Mark Spencer
1aba1bbca4 Minor cleanups (bug #1618 included)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2951 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-12 17:30:55 +00:00
Mark Spencer
10c25aa6d9 Put sip history stuff in (for real) and provide voicemail context (when not default) in some critical places (bug #1609)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2950 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-12 00:17:31 +00:00
Mark Spencer
34e400fe2b Refuse to gethostbyname on a pure integer
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2949 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-11 18:41:09 +00:00
Mark Spencer
a7818fb1be German language improvements (bug #1606)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2948 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-11 18:23:48 +00:00
Mark Spencer
e753e1a460 Don't say "re-recording" on CLI.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2947 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-11 15:20:55 +00:00
Mark Spencer
fb80a4a397 Change "boundary" to be less likely to cause e-mail conflicts (bug #1602)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2946 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-11 15:03:52 +00:00
Mark Spencer
964565519c Increase max write size (bug #1601)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2945 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-11 15:00:28 +00:00
Anthony Minessale II
960c01e4c6 Patch Submitted by BKW on 5/10/2004 to chan_sip.c
Fixing 'show help' inefficency.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2944 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-10 18:45:20 +00:00
Mark Spencer
87e3b8b2ad Allow characterset to be specified (bug #1598)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2943 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-10 13:27:39 +00:00
Mark Spencer
230eb50e96 Set mimetype to lower case (bug #1597)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2942 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-10 13:18:12 +00:00
Mark Spencer
1bc23d416c Fix missing semicolons in sample configurations (bug #1596)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2941 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-10 13:16:09 +00:00
Mark Spencer
4b84c43811 More minor bkw fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2940 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-09 23:40:49 +00:00
Mark Spencer
22243ee9ae merge brian's cleanups
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2939 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-09 22:03:38 +00:00
Mark Spencer
2d8c703fa0 Include app.h in senddtmf (bug #1594)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2938 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-09 21:07:38 +00:00
Mark Spencer
6ead43beb1 Add SIPUSERAGENT, SIPCALLID, and fix some formatting (bug #1593)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2937 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-09 21:05:43 +00:00
Mark Spencer
62eef7c695 Fix accidental strlen_zero mistransfer (bug #1592)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2936 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-09 20:46:18 +00:00
Mark Spencer
f2e0152108 Fix minor formatting problem
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2935 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-09 19:39:23 +00:00
Mark Spencer
25b07915d6 Remove "jitter"
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2934 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-09 19:18:15 +00:00
Mark Spencer
811f5cff35 Merge Connor's ringback feature for queue (bug #1560)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2933 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-09 19:13:43 +00:00
James Golovich
c00550f3ae Add new file utils.c, Move ast_gethostbyname to utils.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2931 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-09 08:22:15 +00:00
James Golovich
8ef3b1544b More ast_strlen_zero changes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2930 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-09 07:51:44 +00:00
James Golovich
3e3642433b Code formatting fixes in pbx.c (still more todo)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2929 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-09 07:19:00 +00:00
James Golovich
aff78a98cf Fix null pointer dereference in app_groupcount.c (bug 1588)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2928 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-09 06:23:30 +00:00
Mark Spencer
d2a4408930 Show peers formatting fixes, SIP strlen optimizations, and using ACL for local network matching (bugs #1587, 1586, 1585, 1584)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2927 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-08 20:58:24 +00:00
Mark Spencer
9740f51d00 Update default astman types for newer newt (bug #1578)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2926 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-08 20:41:27 +00:00
Mark Spencer
812b527dd8 Add Spanish support to say date with format (bug #1583)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2925 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-08 15:47:01 +00:00
Mark Spencer
297e62b8be Copy musicclass to right field (bug #1582)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2924 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-08 14:45:49 +00:00
Mark Spencer
3189e70baa Allow notransfer to be a global option
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2923 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-08 14:38:48 +00:00
Mark Spencer
dca37d634e Add missing unlock (although it shouldn't make a difference)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2922 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-08 14:24:58 +00:00
James Golovich
29718a5001 ast_strlen_zero changes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2921 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-08 08:07:47 +00:00
Mark Spencer
0ce20fea8a Do proper PRI locking in zt_call (not to mention lock the zt_pvt structure itself)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2920 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-07 21:22:46 +00:00
James Golovich
46b24e8a27 Code cleanup
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2919 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-07 21:14:55 +00:00
Anthony Minessale II
66b96f417c Created API call ast_dtmf_stream
int ast_dtmf_stream(struct ast_channel *chan,struct ast_channel *peer,char *digits,int between)

changed app_senddtmf.c to use this new call
added D() parameter to app_dial to allow post connect dtmf stream to be sent using above call

-Tony


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2918 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-07 20:39:14 +00:00
Mark Spencer
b974395573 Check h_addr_list, too
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2917 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-07 20:18:55 +00:00
Mark Spencer
1057e70da0 Check that hp->h_addr is not NULL before returning success (bug #1576)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2916 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-07 20:15:45 +00:00
Mark Spencer
1d7c058f08 Add sip show peers (trivial zap fix, too) bug #1573
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2915 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-07 18:57:17 +00:00
Mark Spencer
36911830dd Add debugging to failure
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2914 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-07 14:08:50 +00:00
Anthony Minessale II
2fbee61fff make channel.c use autoservice_start/stop when playing warning sound files
during bridged calls.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2913 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-06 22:29:00 +00:00
Mark Spencer
76adf66390 Add "sip show subscriptions" command (bug #1569)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2912 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-06 21:30:45 +00:00
James Golovich
c94e23b2f6 Use ast_strlen_zero in file.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2911 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-06 21:17:06 +00:00
James Golovich
28f4e820f7 Use ast_strlen_zero in channel.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2910 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-06 21:04:22 +00:00
James Golovich
6f9829fa5e Use ast_strlen_zero in cli.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2909 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-06 20:49:24 +00:00
Mark Spencer
6d280193d6 Fix silly typo in iax2 where strlen was used instead of sizeof
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2908 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-06 20:39:31 +00:00
James Golovich
bb8d1dbb3a Use ast_strlen_zero in logger.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2907 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-06 20:23:48 +00:00
James Golovich
f1d0d949dc Use ast_strlen_zero in cdr.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2906 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-06 20:21:06 +00:00
Mark Spencer
efc8c74b9a Allow global authentication realm to be set (bug #1567)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2905 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-06 20:00:19 +00:00
Mark Spencer
5f2dc3fe14 Enhance Spanish and Mexican support (bug #1566) thanks!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2904 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-06 19:40:13 +00:00
Mark Spencer
05a87a441c Don't autodestruct on semi-ack. We'll add it as we need it case-by-case.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2903 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-06 14:41:03 +00:00
Jeremy McNamara
9c5c609de2 fix formatting, from bkw
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2902 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-06 03:20:05 +00:00
Mark Spencer
ab3c603b1c If user fails host access, search for peers too
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2901 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-06 01:33:24 +00:00
James Golovich
be1efdbf89 include utils.h in chan_iax2.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2900 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-05 22:13:27 +00:00
James Golovich
960f681dec Use ast_strlen_zero in chan_iax2.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2899 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-05 21:14:36 +00:00
James Golovich
995468ea0a Include utils.h in chan_skinny.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2898 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-05 05:16:42 +00:00
Jeremy McNamara
ecbd983648 use ast_strlen_zero
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2897 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-05 05:03:48 +00:00
James Golovich
2bda857bf7 Use ast_strlen_zero in chan_zap.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2896 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-05 04:23:18 +00:00
Mark Spencer
6f3dd86f22 Ignore dupe packets for RFC2833 (bug #1034)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2895 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-05 03:56:27 +00:00
Mark Spencer
cc1da2eb5b Qualify that SIP INFO stuff is real (bug #1558)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2894 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-05 01:56:03 +00:00
Mark Spencer
cc9ffa5ac1 Fix SIP autohangup mishap
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2893 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-04 20:10:37 +00:00
Mark Spencer
9cc62f6461 Print route when doing sip show channel foo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2892 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-04 19:41:31 +00:00
Mark Spencer
6ac10272bc Make sure we don't accidently send weird delivery times on DISA
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2891 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-04 19:20:20 +00:00
Mark Spencer
19a080ddd7 strlen fixes and don't destroy SIP channels that still have pending things on them (bug #1552 et al)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2890 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-04 19:11:25 +00:00
Mark Spencer
fdec9012eb Documentation fixes (bug #1554).
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2889 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-04 16:33:31 +00:00
Mark Spencer
67c11acbbf Add app_groupcount to manage groups
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2888 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-04 16:09:35 +00:00
Mark Spencer
a5ad1269ef More strlen_zero checks (bug #1549)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2887 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-04 14:54:42 +00:00
Mark Spencer
958668f001 Fix swedish, german, and french support for say number (bug #1550)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2886 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-04 14:33:27 +00:00
James Golovich
5acaa777b8 Change strlen calls to ast_strlen_zero in callerid.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2885 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-04 06:42:06 +00:00
James Golovich
9bb1b64d48 Change strlen calls to ast_strlen_zero in pbx.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2884 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-04 06:34:34 +00:00
Mark Spencer
cf0659f7af More expression fixes (bug #1548 again)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2883 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-04 03:23:35 +00:00
Mark Spencer
e158ab2fe9 Clean agi-sphinx-test (bug #1547)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2882 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-04 01:46:01 +00:00
Mark Spencer
5098302f2f Update for backwards compatability (bug #1548)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2881 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-04 01:45:00 +00:00
Jeremy McNamara
e8ed258aa4 use ast_stren_zero
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2880 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-03 22:19:03 +00:00
Mark Spencer
b4a674e0ac Add swedish support, fix german support (bug #1543)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2879 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-03 21:10:57 +00:00
Mark Spencer
d4c439c61d Use strlen_zero function in chan_sip (bug #1545)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2878 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-03 21:01:14 +00:00
Mark Spencer
9c683b7423 Fix compiler warning
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2877 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-03 21:00:20 +00:00
Mark Spencer
ca2069a246 Don't update route once it's set (bug #1491)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2876 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-03 20:06:38 +00:00
James Golovich
07a40f5141 Oops, actually use the right variable in channels/Makefile
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2875 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-03 19:29:52 +00:00
James Golovich
3b3674807b Fix channels/Makefile so USE_MYSQL_FRIENDS implies USE_SIP_MYSQL_FRIENDS
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2874 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-03 19:14:50 +00:00
Mark Spencer
bbaf536f6a Add "insecure=very" where we don't authenticate peers who are registered
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2873 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-03 05:14:52 +00:00
Mark Spencer
b50ecc25b2 Merge slepp's sub-second expiration timer although hopefully it will never have to be used.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2872 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-03 05:03:19 +00:00
Mark Spencer
f2ccbc81d9 Internationalize say_date_time, fix small pbx_config seglet (bug #1537)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2871 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-03 04:38:31 +00:00
James Golovich
5537e1ad17 Change strlen calls to ast_strlen_zero in voicemail checking stuff because it is called all the time
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2870 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-03 04:37:03 +00:00
Mark Spencer
0e89f839e1 Make directory spell name if available
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2869 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-03 04:36:46 +00:00
James Golovich
131a8c8f53 Add include/asterisk/utils.h file. Which includes the function
ast_strlen_zero, which should be used instead of strlen to check if a
string has length or doesn't have length.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2868 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-03 04:31:11 +00:00
Mark Spencer
603511ea6f Merge BKW's mp3 improvements
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2867 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-03 03:32:04 +00:00
Mark Spencer
ded7dae112 Merge slepp's REGISTER RFC compliance fixes (bug #1538)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2866 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-03 02:22:19 +00:00
James Golovich
8c05e4677e Code formatting cleanup in channel.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2865 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-03 02:02:27 +00:00
Mark Spencer
73b389da6c Add SayPhonetic and SayAlpha applications (bug #793)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2864 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-03 00:54:16 +00:00
James Golovich
09eeb42315 Add doc/CODING-GUIDELINES document
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2863 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-02 19:24:05 +00:00
Mark Spencer
e05b6242a5 Merge Tilghman's color patches for the asterisk prompt (bug #1535)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2862 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-02 19:13:16 +00:00
Mark Spencer
c3c38eeeaf Let OSS know how to deal with indication -1
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2861 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-02 17:52:45 +00:00
Mark Spencer
6cdbd6903c On a reload, don't stop supporting sip if we can't find our ip.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2860 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-02 17:43:15 +00:00
Mark Spencer
503dbb3d8a Add new "authname" field so we can authenticate BYE properly on incoming calls (bug #1436)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2859 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-02 16:30:05 +00:00
Mark Spencer
35ca4404f0 On incoming call, set peername to username to properly authenticate BYE (it's not used for anything else, as far as I know)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2858 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-02 16:17:40 +00:00
Mark Spencer
ee0532702a Merge Matteo's language setting code for iax2 (bug #1476)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2857 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-02 06:36:31 +00:00
Mark Spencer
44de97d496 Provide more fine grained control of sip and iax show peers (bug #1470)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2856 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-02 05:38:20 +00:00
Mark Spencer
9d1e203b3d Merge murf's generous expression contributions (bug #1292)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2855 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-02 04:09:35 +00:00
Mark Spencer
cb59df7bed Make overlap dial be interpreted in the same way an FXS would be (bugs #1080 and #1452)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2854 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-02 03:39:17 +00:00
Mark Spencer
70d5cd0210 Add new zealand tone definitions
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2853 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-02 02:16:46 +00:00
Mark Spencer
3c134b6549 Revert earlier changes. The right answer for bug #1436 should be using username=
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2852 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-02 00:51:11 +00:00
Mark Spencer
511816a56d Allow "fast" asynchronous manager initiation of events (bug #772)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2851 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-01 23:52:27 +00:00
Mark Spencer
3ad6ed3e92 Add ability to specify custom e-mail subject line (bug #1291)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2850 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-01 23:28:33 +00:00
Mark Spencer
9144ad4883 Further minor fixup
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2849 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-01 22:29:54 +00:00
Mark Spencer
00c2c1b70e Merge german say number enhancements (bug #1532) thanks!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2848 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-01 22:14:42 +00:00
Mark Spencer
307168cc0f Merge sbinger's voicemailf ixes for duration and short files (bug #1282) thanks!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2847 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-01 22:11:58 +00:00
Mark Spencer
58a42e51e2 Fix wrap error
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2846 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-01 21:42:11 +00:00
Mark Spencer
5b34d11ce9 Allow debug to be enabled on a per-peer or per-IP basis (bug #850)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2845 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-01 21:25:31 +00:00
Mark Spencer
1dbc8e3f0e Rid compiler warning, make information meaningful in sip debug for codecs
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2844 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-01 20:59:37 +00:00
Mark Spencer
3d775d9286 Correct loadavg documentation (bug #1305)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2843 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-01 15:23:35 +00:00
Mark Spencer
faaef0fbe3 Add DTX support (mark bit) (bug #1234)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2842 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-01 15:18:28 +00:00
Mark Spencer
ff7f09ecc7 Add documentation for CLI prompt
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2841 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-01 14:49:36 +00:00
Mark Spencer
0a457907fe Improve mp3 player quality (bug #1527)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2840 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-01 14:03:37 +00:00
James Golovich
73b62ab0f6 Add HasVoicemail application (bug 1520)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2839 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-01 05:54:50 +00:00
James Golovich
0122a3ea08 Fix 'remove extension' completion
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2838 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-01 05:50:51 +00:00
James Golovich
c432265ab7 format_ilbc.c comment fix from bkw
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2837 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-01 04:19:56 +00:00
Mark Spencer
b773853b03 Put poll in a loop forever when not doing anything else.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2836 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-01 03:14:02 +00:00
Mark Spencer
3d16691c9e Revert routing change
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2835 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-01 03:04:04 +00:00
Jeremy McNamara
770796275d Document usage of PGSQL. Bug#1486
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2834 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-30 05:27:35 +00:00
Jeremy McNamara
a717d81cea Increase DTMF duration in f.sample, just in case. Bug#1414
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2833 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-30 05:21:36 +00:00
Mark Spencer
ec6644c146 Only clear route if we have a new one
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2832 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-30 04:05:22 +00:00
Jeremy McNamara
93fd179b4c correctly stay in admin menu until user wants out (bug #977)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2831 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-30 02:29:56 +00:00
Jeremy McNamara
a3803a3c93 rollback bug#77..the right fix immanent
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2830 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-30 02:08:12 +00:00
Anthony Minessale II
489656458f update astxs to default /usr/src/asterisk
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2829 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-30 02:07:29 +00:00
Mark Spencer
30e9661919 Stay in admin menu until user wants out (bug #977)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2828 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-30 01:18:26 +00:00
Mark Spencer
3e48f862a7 Work properly with USE_SIP_MYSQL_FRIENDS set to 1 for linking
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2826 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-30 01:09:52 +00:00
Mark Spencer
722f92e834 Say "message 1" in title (bug #1521)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2825 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-30 00:25:07 +00:00
Mark Spencer
d106797a26 Add relaxdtmf option to sip
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2824 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-29 22:27:40 +00:00
Malcolm Davenport
6f9df58afe Bug # 1503: Add Peter's fix to include "accountcode" support to MySQL based IAX-Friends
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2823 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-29 20:09:05 +00:00
Anthony Minessale II
66498eee0b update astxs utility to allow auto load/unload and url compile
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2822 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-29 19:55:46 +00:00
Anthony Minessale II
1f21ca187a add seconds.gsm for call timeout warning feature (bug 1353)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2821 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-29 14:14:27 +00:00
Mark Spencer
c7df3b4b22 Even better, let it be specified per-context
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2820 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-29 13:53:38 +00:00
Mark Spencer
da010f1600 Add ability to customize directory introduction (bug #1488)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2819 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-29 13:50:29 +00:00
Jeremy McNamara
709e526ad9 populate global options correctly. Bug#1515
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2818 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-29 13:34:54 +00:00
Mark Spencer
cd788e2ab9 Handle fromdomain properly when there is no @ sign
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2817 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-29 05:01:32 +00:00
Mark Spencer
01f39a3e51 Use -1 not NULL
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2816 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-29 04:41:37 +00:00
Mark Spencer
1622c57f07 Add russian indications (bug #1471)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2815 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-29 04:22:51 +00:00
Mark Spencer
a46999cf0d Loader fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2813 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-29 04:13:06 +00:00
Mark Spencer
b34020d5a6 Don't propsoe sotp now on empty read (bug #1511)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2812 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-29 03:39:36 +00:00
Mark Spencer
4f51ef7ab7 Unbuffered music on hold
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2811 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-29 03:36:46 +00:00
Mark Spencer
ec8a80b070 Send ActionID in response ot action command (bug #1484)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2810 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-29 02:59:29 +00:00
Mark Spencer
5192a1a054 Add support for French, Danish, Portuguese, Spanish, Italian, and Dutch numbers
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2809 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-29 02:30:14 +00:00
Mark Spencer
7e79c52808 Don't double receive INFO or MESSAGE elements (bug #1512)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2808 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-28 22:12:08 +00:00
Mark Spencer
314877e155 Fix potential seg in iax2 from reload when registrations are going
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2807 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-28 22:07:59 +00:00
Mark Spencer
da8f6a9acf OpenBSD portability to H323
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2806 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-28 21:06:29 +00:00
Mark Spencer
e5059cb891 Add revk's SMS application (bug #1437). Thanks!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2805 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-28 20:43:06 +00:00
Mark Spencer
ebba5fd9af Make paths not absolute
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2804 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-28 20:37:52 +00:00
Mark Spencer
e6b464ed23 More FreeBSD fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2803 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-28 19:55:04 +00:00
James Golovich
33faf463a0 Make sure causes.h can only be included once. Not that any code does this now, but it could in the future.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2802 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-28 18:09:00 +00:00
James Golovich
ceb572a280 ast_frdup optimization: only call strlen once and save the result
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2801 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-28 17:54:01 +00:00
James Golovich
8ace87616e Optimize inaddrcmp (a little) by making it inline
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2800 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-28 17:28:35 +00:00
Mark Spencer
ffe885b21f Trivial portability fix
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2799 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-28 15:29:26 +00:00
Mark Spencer
b18913b338 When creating a new DSP, initialize the progress zone just in case
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2798 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-28 14:55:38 +00:00
Mark Spencer
fd9d8ca43b Run setstate after setting all appropriate variables including callerid
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2797 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-28 14:35:20 +00:00
Mark Spencer
882411586a Add Peter's SQL complaint script (bug #1482)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2795 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-28 13:58:19 +00:00
Mark Spencer
90a331f7a5 Provide gethostbyname_r emulation for FreeBSD and fix zap call to setstate to include callerid (bug #1411, #1498)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2793 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-28 13:53:01 +00:00
Mark Spencer
478474bcb1 Merge bug 1483 -- advanced voicemail options
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2792 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-28 04:33:16 +00:00
Mark Spencer
19064660d2 Build again without PRI
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2791 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-28 04:26:26 +00:00
Mark Spencer
0fe6d16e89 Fix deadlock in IAX2 trunking, small MGCP fix
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2790 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-28 04:23:14 +00:00
Mark Spencer
7ca96ea7e5 Add white space condensing to pedantic mode of chan_sip.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2789 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-27 22:32:57 +00:00
Mark Spencer
5f71712b8b Make sure we are proceeding when we answer
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2788 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-27 21:50:24 +00:00
James Golovich
6cbc92b760 Portability fix, use the shells path for sed and env
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2787 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-27 21:30:32 +00:00
James Golovich
286d0656e2 Revert formatting changes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2786 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-27 21:21:57 +00:00
Mark Spencer
f34b684e0e Improve responsiveness of MGCP during a reload (bug #1488)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2785 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-27 21:18:02 +00:00
Anthony Minessale II
f9226cd9cd Bug Fix
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2784 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-27 16:42:43 +00:00
Mark Spencer
7596de9ac8 Extreme IAX2 trunking performance improvements
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2783 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-27 15:18:55 +00:00
Anthony Minessale II
5385ca0a0e applied final release of bug 1353 per Mark's permission
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2782 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-26 23:22:34 +00:00
Mark Spencer
f4b55b802c SIP cleanups for database linkage
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2781 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-26 14:54:33 +00:00
Mark Spencer
0d048dee56 Use insmod instead of modprobe (bug #939)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2780 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-26 13:53:31 +00:00
Mark Spencer
6726488e48 Allow two contexts to be specified for directory application (reimplementation fo bug #643)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2779 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-26 13:48:56 +00:00
Mark Spencer
3b64c4830f Unify all the res_ninit patches
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2778 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-26 13:32:57 +00:00
Mark Spencer
add7cf7ded Move skinny to support poll
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2777 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-26 12:51:49 +00:00
Mark Spencer
6b55f06a23 vmail.cgi updates
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2776 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-26 12:41:42 +00:00
Mark Spencer
2b5a352840 Avoid another voipme by explaining you need CVS update when SIG_EM_E1 is invalid
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2774 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-26 12:30:28 +00:00
Mark Spencer
2a3fc7b8ea Remove obsolete chan_zap_old.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2773 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-26 12:27:00 +00:00
Mark Spencer
1511750650 Use proper token for authenticating BYE
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2772 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-26 12:26:02 +00:00
Mark Spencer
cce37f8d32 Hold call structure longer iwth find_callno
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2771 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-26 11:38:21 +00:00
James Golovich
69f5623a03 Make redhat init.d script call asterisk to reload instead of forcing a restart (bug 1481)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2770 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-26 07:06:29 +00:00
James Golovich
7567113e71 Make RemoveQueueMember and AddQueueMember jump to priority + 101 (bug 1022)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2769 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-26 06:57:15 +00:00
James Golovich
9c13bd8884 Change iaxtel entry in sample extensions.conf to use XXXXXXX instead of NXXXXXX because iaxtel assigns numbers that have a NPA starting with 1
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2768 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-26 05:47:45 +00:00
Mark Spencer
30a7162bd9 Merge JS's Cisco MGCP fixes (Bug #693)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2767 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-26 05:18:55 +00:00
Mark Spencer
f85d0713cf Clean up SQL queries (bug #1479)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2766 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-26 05:08:30 +00:00
Mark Spencer
64c9e859e0 Also handle properly \r\n instead of just \n...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2765 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-26 03:45:10 +00:00
Mark Spencer
ed360fcf57 Committed a little bit too quickly there...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2764 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-26 03:41:07 +00:00
Mark Spencer
c924d1a322 First pass at handling multi-line headers
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2763 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-26 03:38:32 +00:00
Mark Spencer
ce44c6ec41 More select/poll updates for various applications
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2762 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-26 03:02:49 +00:00
Mark Spencer
459fda5e44 Migrate chan_zap from select to poll
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2761 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-25 22:37:09 +00:00
Mark Spencer
435e55958f Properly migrate from select to poll for core asterisk.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2760 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-25 20:42:45 +00:00
James Golovich
0eca3cf384 Start with a reasonable default timeout in parkandannounce
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2758 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-25 19:44:03 +00:00
Mark Spencer
b9604cde6c Temporarily revert poll changes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2757 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-24 23:11:28 +00:00
Mark Spencer
470f226d9d Change select references to poll in core asterisk functions (hope this works)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2756 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-24 23:02:21 +00:00
Mark Spencer
8a411edf9f Make sure call is valid when handling mini-frame.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2754 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-24 15:16:48 +00:00
Mark Spencer
243a3df832 Improve echo cancellation in iaxy firmware (version 14)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2753 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-23 15:54:57 +00:00
Mark Spencer
90778ada6d Fix timestamps on IAX2 trunk mode transmit direction
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2752 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-23 05:35:12 +00:00
Mark Spencer
7bf0c1bc45 Fix double close of file descriptor (bug #1473)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2751 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-23 04:38:11 +00:00
Mark Spencer
f9aef7098f Oops that wasn't quite right. Partially revert changes until real data is collected.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2749 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-22 19:16:52 +00:00
Mark Spencer
ba078042ba Make trunking and timestamps palce nicely
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2748 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-22 18:51:42 +00:00
Mark Spencer
3534419f14 Add missing break
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2747 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-22 18:41:11 +00:00
Mark Spencer
025ae183eb Fix swap_subs for better locking
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2746 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-22 16:02:56 +00:00
James Golovich
6534f4d668 Fix some comments in chan_zap
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2745 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-22 05:24:50 +00:00
Mark Spencer
0d9adb7294 Oopsies
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2742 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-22 05:11:11 +00:00
Mark Spencer
d851db3cee Small fixes from bkw
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2741 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-22 03:39:54 +00:00
Mark Spencer
a640df56e6 Fix iLBC with valgrind, add iLBC format from bkw_
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2740 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-22 03:34:13 +00:00
Mark Spencer
17563e2929 Handle transitions in delivery time and non-delivery time
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2739 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-22 03:02:27 +00:00
James Golovich
12bcd39583 Typo in logger.c (bug 1466)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2737 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-22 02:57:10 +00:00
Mark Spencer
e30e0c5135 Use ast_strdupa instead of strdup in goto (bug #1465)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2735 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-22 00:27:48 +00:00
Mark Spencer
d3f9887589 gethostbyname isn't reentrant, who knew...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2734 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-22 00:20:34 +00:00
Mark Spencer
ca493a14e1 Increase buffer size (bug #1459)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2733 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-21 21:55:40 +00:00
James Golovich
250c1d2068 Make manager "Link" and "Unlink" events include the channel uniqueids (bug 1456)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2732 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-21 04:52:18 +00:00
James Golovich
65c3fe8b33 Unload g726 file formats in the order they were loaded (bug 1460)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2731 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-21 04:27:58 +00:00
James Golovich
fe9255a816 Log when we unload a translator (bug 1460)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2730 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-21 04:26:38 +00:00
James Golovich
0f3f7eee9a Log that we are unregistering cdr module (bug 1460)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2729 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-21 04:25:44 +00:00
James Golovich
22411494aa image unregister typo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2727 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-21 03:54:25 +00:00
James Golovich
fcf07fce61 Fix format unregister
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2725 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-21 03:53:15 +00:00
Jeremy McNamara
87e84064d2 rollback to pre-janus, for the moment
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2724 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-21 02:28:05 +00:00
Mark Spencer
0134d2cc85 Select user by more logical grounds when no user is specified (bug #1458, sorta)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2723 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-21 00:33:09 +00:00
Mark Spencer
c984a64f3e Documentation fixes (bug #1439)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2722 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-20 23:31:13 +00:00
James Golovich
f864caba2f Add app_exec (bug 1198
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2721 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-20 20:05:14 +00:00
Mark Spencer
0709926b82 Don't spam 3389 warning message
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2720 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-20 19:23:08 +00:00
Mark Spencer
8f86c8409d Don't dereference consumed frame delivery.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2719 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-20 15:28:58 +00:00
Mark Spencer
ef89a2709a Fix pingtime calculation in bridge optimized mode
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2718 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-20 15:14:06 +00:00
Mark Spencer
c96b093a58 Update australian tonezones.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2717 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-20 14:01:13 +00:00
Mark Spencer
b54d2b2c38 Make sure we safely lock both channels when doing a masquerade.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2716 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-20 03:16:01 +00:00
Jeremy McNamara
50edb67fc4 update once again to the right version
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2715 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-19 23:47:34 +00:00
Mark Spencer
776a66f5db Merge Matt's extern notify patch
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2714 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-19 23:27:37 +00:00
Mark Spencer
8a7f4bcd7a Hold the lock properly on async goto now that we have recursive mutex support.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2713 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-19 23:00:50 +00:00
Mark Spencer
8e0f9147b2 Fix trailing slash problem (Zap) and making sure refers get ignored the second tiem around.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2712 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-19 22:55:35 +00:00
Mark Spencer
a84bb950fa Fix lock initialization in lock debugging mode
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2711 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-19 21:52:39 +00:00
Jeremy McNamara
e9ea9975de Make comptable with Open H.323's Janus release. See http://www.sf.net/projects/openh323/ for details. These changes will cause any version less than Janus to fail at compile time. This update may also address the recent instability noise...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2710 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-19 19:47:27 +00:00
Mark Spencer
7a8ec5bea4 Always give real timestamps on IAX ping/pong messages
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2709 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-19 15:24:51 +00:00
James Golovich
98533cbccc OpenBSD portability enhancements (bug 1002)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2708 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-19 08:11:51 +00:00
James Golovich
36a13f931a Make 'iax2 show users' print key if a key is used (bug 1253)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2707 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-18 21:53:13 +00:00
James Golovich
295ce9fc8d Make extension matching non case sensitive. So 'T' and 't' are
different extensions (bug 1327)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2706 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-18 05:50:55 +00:00
James Golovich
e7f819bed1 Fix compile warning in chan_zap if libpri not installed
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2704 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-17 23:48:19 +00:00
Anthony Minessale II
34e415222e * Patch to Makefiles to allow a script to query the make envirnoment.
* contrib/scripts/astxs (The tool itself)
* see bug 1329

-Anthony Minessale (anthm)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2702 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-16 18:57:07 +00:00
Mark Spencer
d8a6763be4 Add support for E1 E&M
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2701 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-16 18:00:00 +00:00
Jeremy McNamara
2d232c4c57 Remove all capabilities first
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2700 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-16 05:57:30 +00:00
Mark Spencer
1487d749fe Answer if it needs it...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2699 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-16 02:51:47 +00:00
Mark Spencer
74de37e81e Warn to use DeadAGI in general on hungup channels if AGI or EAGI is called.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2698 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-15 21:01:55 +00:00
Mark Spencer
ec6d3b535a Don't set the address with NAT mode if we haven't programmed an address
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2697 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-15 20:12:46 +00:00
Mark Spencer
698b0b090b Make substring deprecated
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2696 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-15 18:41:17 +00:00
Mark Spencer
a3d9d7b58b Do proper bounds checking in formats (bug #1356)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2694 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-15 16:02:42 +00:00
Mark Spencer
de51a91db3 Fix for uclibc
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2693 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-15 00:13:30 +00:00
Mark Spencer
97dd838cda Fix name properly
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2692 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-15 00:02:07 +00:00
Mark Spencer
02287658f7 Store modules in the order they're loaded to make reload work properly
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2691 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-14 21:10:00 +00:00
Mark Spencer
083d9c8039 Clean up timestamps on IAX2
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2690 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-14 18:15:16 +00:00
Jeremy McNamara
5ebb0b8c15 Lets see if this way works to remove all capabilities from the list
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2688 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-13 19:07:51 +00:00
Jeremy McNamara
64d509a931 back out lame attempt
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2687 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-13 18:54:24 +00:00
Jeremy McNamara
9cb2272494 print out capability set, if h323debug is turned on
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2686 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-13 18:32:23 +00:00
Jeremy McNamara
d3f45d14b3 make sure capability set is clean before setting new value(s)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2685 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-13 18:26:27 +00:00
Mark Spencer
7ed519ba84 Use fputs where it makes sense instead of fprintf
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2682 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-13 04:45:51 +00:00
Mark Spencer
c512310934 Don't allow the format to be doubly handled
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2681 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-13 04:27:06 +00:00
Mark Spencer
e15b5a83d5 Lock on indication too
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2680 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-12 22:00:12 +00:00
Mark Spencer
fec02c20a9 Revert locking changes which break static locks (even on linux since it's part of an ENUM not define)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2679 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-12 20:54:24 +00:00
James Golovich
63702b9a78 Change mutex defines so it should work on OS that don't have the _NP mutex types. Also move the #defines up so we don't need to duplicate them
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2678 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-12 19:56:32 +00:00
Mark Spencer
a8fb88516a Fix implementation of waitfordigit_full
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2677 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-12 16:25:34 +00:00
Mark Spencer
694cacc93d Fix cut properly (bug #1138)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2676 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-12 16:08:20 +00:00
Mark Spencer
d2019972f7 Revert earlier jcdutton ALSA improvements which are not disclaimed
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2674 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-11 01:59:11 +00:00
Mark Spencer
f2ee5d3a80 Don't hang up if the file is missing (not a bug, but fix anyway) (#1380)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2673 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-10 21:10:22 +00:00
Mark Spencer
43d7359221 Don't check PRI settings unless there is PRI
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2672 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-10 03:46:59 +00:00
James Golovich
ae07b8ee83 Allow zapscan to select a specific channel (bug 1371)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2671 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-10 02:49:06 +00:00
James Golovich
fcf76b36aa Hopefully last fix to remote cli completion
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2669 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-09 17:46:04 +00:00
Mark Spencer
639438836b Don't take digits in-band when in overlap dial mode
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2668 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-09 16:33:37 +00:00
James Golovich
cbd5a0e6bb Fix sounds.txt to have extensions for recently included sound files
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2667 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-09 00:15:34 +00:00
James Golovich
9cb145c44c Add sound files for dynamic conf stuff (bug 1026)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2666 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-08 19:38:47 +00:00
James Golovich
4d7386fc5f Add ability to do PINs with dynamic conf (bug 1026)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2665 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-08 19:38:26 +00:00
James Golovich
8f591d1b71 Add new sounds text for conf mod (bug 1026)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2664 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-08 19:38:02 +00:00
James Golovich
e9c65d0c08 Hopefully the last round of removing needlock stuff
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2663 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-08 19:28:05 +00:00
James Golovich
1b2dc7ef75 Remove more needlock stuff
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2662 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-08 19:19:24 +00:00
James Golovich
0f2bcccaba Free some cli memory
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2660 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-08 05:28:53 +00:00
Mark Spencer
6cde9d87a3 Turn off MOH later rather than sooner.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2659 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-08 05:03:47 +00:00
Ben Kramer
61ff225f1d updated to work with change by markster: Get rid of all that old needlock garbage now that we're using recursive mutexes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2658 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-08 00:59:39 +00:00
Mark Spencer
50edc08001 Fix SendDTMF which was clearly not even tested before it was last committed.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2657 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-07 20:14:19 +00:00
James Golovich
0b2a9dc297 Remove extra argument from ast_set_*_format calls
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2656 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-07 20:12:42 +00:00
James Golovich
f7b250f963 Fix command completion and remove compile time warnings
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2654 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-07 18:26:24 +00:00
Mark Spencer
78641613c7 Add sendtext application
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2653 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-07 17:19:25 +00:00
Mark Spencer
42034844dc First pass at fixing chan_alsa
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2652 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-07 16:46:39 +00:00
Mark Spencer
d45addcc7a Fix compile warning
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2651 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-07 16:17:31 +00:00
Malcolm Davenport
df9089d3f8 More changes to Matt's application
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2650 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-07 16:16:56 +00:00
Mark Spencer
6938bb6109 fix chan_oss for revised queue structure.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2649 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-07 15:59:14 +00:00
Mark Spencer
5a2c606d94 Keep random data around, we'll need it for certain bogus REGISTER and INVITE network hiccups (bug # 1236)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2648 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-07 15:09:58 +00:00
Mark Spencer
a3d396b11b Remove double unlock from ast_read
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2647 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-07 14:43:18 +00:00
Mark Spencer
a1ffc320e4 Don't say we're unable to find the channel if we're able to find it.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2646 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-07 14:11:49 +00:00
Mark Spencer
512583709a Fix double parking crash (bug #1302)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2645 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-07 04:11:00 +00:00
Mark Spencer
13bca43aa8 Get rid of all that old needlock garbage now that we're using recursive mutexes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2644 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-06 22:17:32 +00:00
Malcolm Davenport
d0037ea2fd Add Matt's option to call an external application when a voicemail is
left


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2643 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-06 21:52:42 +00:00
Mark Spencer
6b09ce4336 Don't redefine ast_mutex_init
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2642 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-06 20:57:15 +00:00
Mark Spencer
584936aa9b Update locking for non-debug mode, too
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2641 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-06 20:35:55 +00:00
Mark Spencer
672e3e49fb Bite the bullet and require RECURSIVE mutexes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2640 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-06 20:08:44 +00:00
James Golovich
1d8f780f45 Include inttypes.h in md5.h instead of stdint.h (since stdint.h contains the right info on freebsd and on linux inttypes.h includes stdint.h) (bug 1369)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2639 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-06 18:20:30 +00:00
Mark Spencer
d3bcf405c2 Small IAX fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2638 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-06 15:55:40 +00:00
Mark Spencer
426bf55df2 Print actual hook state in chan_zap
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2637 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-06 15:50:18 +00:00
Mark Spencer
1bbf0d2cf6 Bump branch id on INVITE with auth (bug #1313)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2636 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-06 14:02:47 +00:00
James Golovich
8cfed866d3 Remove size restiction on remote console command completion (bug 1360)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2634 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-06 07:42:01 +00:00
Mark Spencer
852422f4ab Add "WaitExten" application
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2633 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-06 04:14:19 +00:00
Jeremy McNamara
528c513602 swap out printf's for ast_verbose
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2632 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-06 03:43:43 +00:00
Mark Spencer
1cf4ea2eb3 Don't translate time for packets with no delivery
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2631 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-05 20:47:44 +00:00
Jeremy McNamara
70dfab8be0 on outbound calls make sure we use requested codec
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2630 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-05 20:45:14 +00:00
Mark Spencer
f897350521 Fix timestamps for codec translations with different sized frames
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2629 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-05 19:45:53 +00:00
James Golovich
b5da1073b0 Allow manager.conf to use port and portno, but log that portno is deprecated.
(bug 1343)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2627 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-05 19:40:30 +00:00
James Golovich
dc383a7ee7 Make outgoing call spool only consider # a comment if at the beginning of a line or following whitespace (bug 1346)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2625 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-05 18:03:40 +00:00
Ben Kramer
09e0fc2074 / implemented basic group'ing, as per chan_zap
/ reformated whole file to consistent format


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2624 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-05 05:37:01 +00:00
Mark Spencer
940a5deb2e Support some more SIP idiocies
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2623 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-05 05:12:00 +00:00
James Golovich
aacc5e108b Only update utime in pbx_spool.c if the file exists
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2621 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-05 02:47:48 +00:00
James Golovich
1cf0d5ad9d Make pbx_spool update utime with every safe_append
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2619 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-05 00:00:23 +00:00
Mark Spencer
9f726fce46 603 is a busy too
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2618 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-04 22:54:35 +00:00
Mark Spencer
d051e2da43 Recognize + as a valid part of a phone number
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2617 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-04 22:14:10 +00:00
Mark Spencer
94279f00c1 Various video fixes (bug #688)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2616 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-04 21:54:38 +00:00
Mark Spencer
ef1f39d29e Save appl and data around exec (bug #1301)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2615 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-04 21:30:24 +00:00
Mark Spencer
9c7ffa265e Fix small SIP issue with SER (bug #1181)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2614 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-04 21:09:22 +00:00
Mark Spencer
9cc3adbdd9 Clear out delivery fields just in case
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2613 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-04 20:43:07 +00:00
Mark Spencer
d42f7886ab Merge changes from jcdutton (thanks!)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2612 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-04 17:21:03 +00:00
Mark Spencer
e2b0f32c18 Minor samples updates
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2611 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-04 16:33:56 +00:00
Mark Spencer
52f13283ea Make chan_zap allocate a comfortable amount of space for VMWI
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2610 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-04 02:02:15 +00:00
Mark Spencer
7d2624dd3c Wait a half a second before sending VMWI...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2609 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-04 02:00:19 +00:00
Mark Spencer
7ae1d61120 Provide more useful debugging on retries and scheddestroy()
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2608 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-04 01:55:16 +00:00
Mark Spencer
39c9375eef Fix minor typo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2607 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-03 22:59:12 +00:00
Mark Spencer
cdb1b1dba3 Merge Mike's updates for agent CDR updates
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2606 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-03 00:41:47 +00:00
Mark Spencer
3d61f5f20e Don't double lock the stream
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2605 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-02 23:25:24 +00:00
Mark Spencer
59859d8cc2 Fix generator race (bug #1202)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2604 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-02 21:58:10 +00:00
Mark Spencer
b285cd40b2 Keep REGISTER dialog open a little longer in case they don't get our 200 OK right away...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2603 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-02 21:43:07 +00:00
Mark Spencer
3415434e04 When going to in-band, be sure to allocate DSP (bug #1336)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2602 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-02 14:40:21 +00:00
James Golovich
36a8fb3e4d Make app_dial complain if the timeout passed is non numeric
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2601 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-02 07:47:23 +00:00
Mark Spencer
a925c1b306 Update security document, work on threading with pbx.c and small SIP fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2600 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-02 07:24:33 +00:00
Ben Kramer
7f6b9ccb5b / updated config file with all available options
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2599 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-02 06:57:58 +00:00
Ben Kramer
3cedced29a / added more samples to the config file, now has samples for all boards
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2598 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-02 05:25:21 +00:00
Mark Spencer
1d53342b18 Expand SIP opaque buffers, prefer recursive to "error checking" mutexes...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2596 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-01 06:27:10 +00:00
Ben Kramer
1e87c2aa48 / added a note to top of file to have patches sent to support@voicetronix.com.au
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2595 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-31 23:40:20 +00:00
Mark Spencer
fbc5be2426 Fix small typo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2592 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-31 19:06:17 +00:00
Mark Spencer
4b02c78aaa Don't die on a bad voicemail conf timezone entry (bug #1326)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2591 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-31 18:59:42 +00:00
Mark Spencer
71e80e5f62 Leave retry time alone, handle "opaque" stuff in message.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2589 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-31 08:00:26 +00:00
Ben Kramer
8b5bbe4673 / commit of a great deal of changes
/ tested these features using an OpenSwitch12
/   FXO=>FXS
/   FXS=>FXS
/   FXS=>FXO
/   FXO=>SIP
/   Echo cancelation.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2588 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-31 04:29:55 +00:00
James Golovich
c89cbd916d Change md5 to use uint32_t instead of uint32
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2587 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-30 23:55:41 +00:00
James Golovich
3c70509e9b Fix md5 on 64bit systems (aside from alpha)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2586 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-30 23:54:21 +00:00
Malcolm Davenport
e1112c64c9 Fix the 'n' option of app_queue. Thanks Mike
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2585 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-30 22:04:07 +00:00
Mark Spencer
8dec8d3632 Fix progzone loader
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2584 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-30 21:23:16 +00:00
Mark Spencer
722babe8d1 Indicate the need to reload without actually reloading...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2582 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-30 16:16:05 +00:00
Mark Spencer
3e9c337946 Small SIP fix, voicemail fix, and some delivery fixes on new apps
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2581 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-29 08:20:35 +00:00
James Golovich
2c0d0d836c Get rid of annoying beeps on remote console
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2579 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-29 04:12:13 +00:00
Mark Spencer
dbbf64fdd4 Attempt at incrementing branch (or changing it) at the right places (bug #1313)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2577 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-28 04:05:58 +00:00
Mark Spencer
1ccab64d86 Add support for Costa Rica to DSP
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2576 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-28 02:53:04 +00:00
Mark Spencer
4b234476bb Merge more Sentito contributions (thanks serkan)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2575 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-27 17:51:22 +00:00
James Golovich
6ce8fc0b15 More read/write lock fixes in various modules
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2574 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-27 07:41:33 +00:00
James Golovich
9fca20acc1 Fixup read/write locking
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2573 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-27 07:34:37 +00:00
Mark Spencer
eeb2ca5b26 Make read/write mode have a lock parameter and use it properly.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2572 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-27 06:50:12 +00:00
James Golovich
4b4c55e328 Pick the right location to endian.h based on OS in md5.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2570 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-26 08:37:51 +00:00
James Golovich
3ee43dd572 Add example of using Account in sample.call file
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2568 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-26 08:04:13 +00:00
James Golovich
a222dbe8c7 Make chan_vpb.c detect austel busy (bug 545)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2567 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-26 07:18:26 +00:00
James Golovich
2ff5d7de53 Add manager action 'SetCDRUserField' (bug #1298)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2566 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-26 06:28:56 +00:00
James Golovich
c6aaaf438e Allow CLI Prompt to be customizable via ASTERISK_PROMPT environment
variable (bug #1270)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2565 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-26 04:59:41 +00:00
Mark Spencer
fb0af47761 Update sample sip.conf
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2564 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-25 20:52:57 +00:00
Jeremy McNamara
211afe3a4b document mwi issues for voicemail contexts
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2561 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-25 18:28:35 +00:00
Jeremy McNamara
ea1c68b666 Document the maximum length of voicemail email message body. Bug #1299
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2560 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-25 18:11:24 +00:00
James Golovich
82bf2663e3 Tiny optimization in chan_iax2.c that the compiler would
probably take care of, but better that we do it


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2559 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-25 18:10:52 +00:00
Mark Spencer
638684636c Make sure calculation of time is always > 0...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2557 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-25 07:17:33 +00:00
Malcolm Davenport
3ec7218ffb Bug # 1287: Festival cache string bug fixed
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2555 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-24 22:50:43 +00:00
Mark Spencer
96c7fb890e Reduce volume of hold music to 8k / 4k
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2554 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-24 21:54:05 +00:00
Malcolm Davenport
efd7427f33 Bug # 1108: chan_alsa fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2552 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-24 21:34:21 +00:00
Mark Spencer
b43c1f054b Allow expiration of several messages to be non-fatal.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2550 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-24 21:21:59 +00:00
James Golovich
f8b04c4bb6 *** empty log message ***
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2549 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-24 08:36:36 +00:00
James Golovich
bb8b00dad8 Actually support the zaptel timing parameters the sample config file says we support adjusting. prewink, preflash, wink, flash, start, rxwink, rxflash, debounce
Still need to hear back from Jim Dixon if the radio timing params should be adjustable


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2548 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-24 08:36:28 +00:00
James Golovich
8279f0eac5 Make cli_complete buffer as large as the one used in handle_commandmatchesarray (bug 1281)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2545 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-24 08:09:01 +00:00
Mark Spencer
61d1fd9a0e Make FAX enableable/disablabable, fix async goto support properly
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2544 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-24 05:01:44 +00:00
Jeremy McNamara
4f72330f5c check input for errors. Bug #435
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2543 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-24 03:48:18 +00:00
Mark Spencer
3b6c8b3f77 Improve ast_safe_system
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2541 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-23 21:55:46 +00:00
Mark Spencer
a05ef35ca8 Improve verbose messages
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2540 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-23 21:45:38 +00:00
James Golovich
359430871f Check to make sure opendir works in chan_iax2.c (bug 1283)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2539 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-23 21:42:35 +00:00
Mark Spencer
747a18f65d It's okay to send RINGING > 1 time, and don't try to send it in-band
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2537 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-23 18:09:25 +00:00
Mark Spencer
598d7963e5 Install to iaxy.bin, not iaxy.conf
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2536 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-23 17:00:13 +00:00
Jeremy McNamara
484484ce89 fix agi to accept multiple arguments. Bug #664
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2535 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-23 12:50:15 +00:00
Mark Spencer
6e15f28d6a Clarify documentation on Directory
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2533 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-23 05:32:36 +00:00
Mark Spencer
b5d452b1c7 Minor SIP cleanups for valgrind, finally close the coffin on IAX1 and take it ou
t of the normal build process.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2532 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-23 05:06:50 +00:00
Mark Spencer
b46d67e301 Unlock the owner when we're done (duh!)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2530 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-23 03:26:23 +00:00
Mark Spencer
3107d6d03b Hold owner lock when changing codecs
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2529 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-23 00:56:36 +00:00
Mark Spencer
67af82457e Fix locks that are held too long
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2527 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-22 22:48:59 +00:00
Mark Spencer
2a16a0a30c Use caller's negotiated values when possible.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2526 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-22 21:52:22 +00:00
Mark Spencer
b19cb95257 Fix superfluous return NULL
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2525 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-22 19:47:25 +00:00
James Golovich
dc41c40eba Make app_system.c use ast_safe_system
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2523 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-22 17:34:21 +00:00
Malcolm Davenport
71eafcf3da Typo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2521 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-22 15:47:32 +00:00
Malcolm Davenport
7555e69cdc Bug # 1271: Document the 'o' extension in VoiceMail application
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2520 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-22 15:42:44 +00:00
Mark Spencer
284a5b3465 Store recorded file in RECORDED_FILE if %d is used... (bug #1062)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2519 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-22 04:04:07 +00:00
James Golovich
25d74e0334 More app_read.c fixes (bug 1261)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2518 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-22 03:46:19 +00:00
Mark Spencer
c1c704c042 Fix mysql friends by type
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2517 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-21 21:24:40 +00:00
Mark Spencer
3f5277d57b Don't reconstruct authentication information on retransmissions.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2515 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-21 19:25:13 +00:00
Mark Spencer
98b59da9ad Create ast_safe_system which closes off file descriptors before spawning system() and so on.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2514 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-21 18:15:37 +00:00
James Golovich
a8bbe997d2 Fix some small typos in comments
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2512 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-21 11:23:10 +00:00
Mark Spencer
893ed27f5b Create temporary file and then sendmail it, then delete it, to avoid a hanging mailcmd from hanging asterisk (bug #1262)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2511 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-21 08:01:53 +00:00
Mark Spencer
97c5b2b7d7 Take out unnecessary setting of delivery times.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2510 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-21 07:35:40 +00:00
Jeremy McNamara
730ca5f9b1 Enhance to accept a maximum of N digits. Bug #1261
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2509 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-21 00:33:05 +00:00
Mark Spencer
7c35f68e29 Fix milliwatt and musiconhold to know about delivery times
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2508 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-20 23:31:40 +00:00
Mark Spencer
79668f0624 Correctly handle call flow with outgoing queue, avoiding retries while call acti
ve (bug #1018)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2505 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-20 21:13:12 +00:00
Mark Spencer
4ba3ced42f Fix ACL for bizarre routing cases
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2504 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-20 19:08:57 +00:00
Mark Spencer
21d31939d1 Merge ADSI fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2501 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-20 17:27:10 +00:00
Jeremy McNamara
68e767078f re-apply possible CCM fix. Someone still needs to test this
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2500 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-20 14:29:36 +00:00
Jeremy McNamara
ff9621e279 rollback e.164 and prefix routing attempted fix
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2499 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-20 14:25:39 +00:00
Jeremy McNamara
de20d2a179 rollback everything to known good state. E.164 and prefix routing patches are broken
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2498 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-20 14:24:20 +00:00
Jeremy McNamara
6fb5ebfedb try to work around CCM interop, UNTESTED! Someone with a CCM needs to test this
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2497 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-20 14:14:00 +00:00
Jeremy McNamara
7132570353 Change 'show locals' into 'local show channels' to follow other channel methods. Bug #1255
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2496 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-20 13:26:52 +00:00
James Golovich
92f6d077fd Fix ast_translator_free_path (bug 1254)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2494 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-20 10:55:57 +00:00
James Golovich
1498cc552f Make primary key context and voicemailbox and make the file easier on
the eyes (bug 1208)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2492 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-20 07:51:56 +00:00
James Golovich
32bde5b009 If asterisk is started with progname of 'rasterisk' assume its a remote
console (bug 842)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2491 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-20 07:26:54 +00:00
Mark Spencer
af6016cfd0 Add experimental nbscat application
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2490 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-20 07:16:27 +00:00
James Golovich
f3d440a16f Improve sample extensions.conf (bug 1190)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2488 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-20 06:52:03 +00:00
Mark Spencer
47b6495e9b Same for transmit core
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2487 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-20 05:22:52 +00:00
Mark Spencer
7192fbfae7 Round offset timestamps to nearest 20ms to clean up numbers.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2486 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-20 05:19:45 +00:00
James Golovich
be59053650 Add some comments to lock.h
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2484 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-20 05:07:21 +00:00
Mark Spencer
c36ec4f9d7 Major MGCP enhancements (*very* big thank you to serkan and Sentito) (bug #1114)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2483 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-19 22:57:08 +00:00
Malcolm Davenport
5191a04055 Bug # 1088: Add MailboxExists, conditionally branches to priority n+101
if specified mailbox exists (in the config).  Thanks Tilghman


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2482 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-19 22:39:02 +00:00
Malcolm Davenport
9ef542b3cb Bug # 1179: Remove "show voicemail users" when using MYSQL voicemail interface
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2480 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-19 21:42:48 +00:00
Malcolm Davenport
2414aeb4dd Fix small typo in sip.conf.sample
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2479 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-19 21:29:13 +00:00
Mark Spencer
cd8bc46a15 It helps to use the local copy yo ucreated
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2477 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-19 20:36:21 +00:00
Malcolm Davenport
b79b6aba5d Bug # 1013: More explanation in the sip.conf.sample thanks to oej
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2476 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-19 20:30:03 +00:00
Jeremy McNamara
fa308aa83b language is not supported in datetime. Bug 686
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2475 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-19 18:23:33 +00:00
Mark Spencer
b90a103e22 First pass at populating delivery times through translation. Not sure how this will affect translations with different packet sizes, but it *ought* to resolve itself in the end.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2474 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-19 15:03:43 +00:00
Jeremy McNamara
0ddcb1f666 Add hangupcause to the hangup manager event
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2473 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-19 09:37:28 +00:00
Mark Spencer
785ac43c84 Just to be on the safe side, don't update timestamps against anything but voice packets.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2472 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-19 08:16:19 +00:00
Mark Spencer
7075b58ee1 Don't use hard timestamps for non-voice frames.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2471 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-19 08:12:04 +00:00
Mark Spencer
a386f01a7c Favor requested codec whenever possible (pass #1)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2470 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-19 08:00:13 +00:00
Mark Spencer
ce9e964c5f Fix LEN segfault (bug #1228)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2469 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-19 06:36:25 +00:00
Mark Spencer
2524d2c413 Add support for new PING/PONG on zaptel which reduces the # of file descriptors on SIP/IAX channels (when zaptel interface is available) by 2 per channel
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2467 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-19 04:23:20 +00:00
James Golovich
687b0ebe6e Check tempchan->type in app_zapscan.c (bug 1250)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2465 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-19 03:46:01 +00:00
Mark Spencer
8c232e1dbb Populate DNID for SIP
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2464 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-19 02:04:45 +00:00
Mark Spencer
bc2a510fb7 Remember when we started/stopped ringing so that ringing twice works as expected
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2462 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-19 00:08:43 +00:00
James Golovich
130c64e5d9 Clarify in voicemail.conf that certain variables are in seconds
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2460 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-18 23:03:33 +00:00
Malcolm Davenport
264bfb7121 Bug # 1247: Add patch to specify minimum vmail length and discard that
which does not meet the minimum


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2459 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-18 22:49:06 +00:00
Jeremy McNamara
d3b2cb19e4 Properly deal with E.164 and Prefix routing
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2458 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-18 20:39:15 +00:00
Mark Spencer
e7ecf6accb Populated RDNIS
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2457 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-18 20:33:55 +00:00
Mark Spencer
4c06525432 Make RDNIS really work right
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2456 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-18 20:02:15 +00:00
Mark Spencer
bf5d593e71 Fix parser
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2455 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-18 06:04:22 +00:00
Mark Spencer
29b7818ebf Fix timestamp to always be unsigned
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2453 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-18 06:01:53 +00:00
Mark Spencer
ce88c6dd08 Populate RDNIS information
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2452 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-18 05:48:40 +00:00
Mark Spencer
1b05e77127 Fix small but deadly typo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2451 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-17 16:49:00 +00:00
Mark Spencer
726d3cba43 Answer the line when hangup received and callwait is up
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2450 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-16 23:42:41 +00:00
Mark Spencer
b690dc13aa Fix timestamp delivery calculation in IAX... Still might be some mess left...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2449 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-16 22:55:05 +00:00
Malcolm Davenport
b0d28cedf7 Bug # 1116. CallerID number not hidden when RestrictCID is on, Fixed
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2447 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-16 17:07:51 +00:00
Mark Spencer
b3f94c4c00 Fix small typo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2446 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-16 16:02:57 +00:00
Malcolm Davenport
0753ca66ab Bug #1222: Fixed
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2444 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-15 23:32:58 +00:00
Mark Spencer
e02fae664a Alpha portability from Ricudis
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2442 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-15 16:51:58 +00:00
Mark Spencer
2a75bbb711 Mute received DTMF path
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2440 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-15 16:20:01 +00:00
James Golovich
9223055df1 Fixup some pthread_t checking in channels
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2438 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-15 09:14:16 +00:00
James Golovich
4b0d26c93d Actually commit the new #defines
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2436 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-15 08:36:25 +00:00
James Golovich
0e90480d6b Fix bug 1217. Change pthread_t initializers to AST_PTHREADT_NULL and
AST_PTHREADT_STOP


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2434 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-15 07:51:22 +00:00
James Golovich
c30ff0935d Add 'pri show span <spanno>' command to chan_zap.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2433 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-15 05:57:47 +00:00
James Golovich
200ae67551 Update spool file times after we close the file (bug 1018)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2431 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-15 05:38:41 +00:00
Malcolm Davenport
89c55fe46c Bug #1213. Fix for improperly specified Content-Length header
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2429 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-15 02:06:47 +00:00
Mark Spencer
f997f9f139 Increase amount of time we send tones on RTP to 100ms
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2428 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-14 23:12:22 +00:00
Mark Spencer
0852f5a930 Preserve IAX timestamps
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2427 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-14 23:01:12 +00:00
Mark Spencer
9e83daa3bb If an RTP peer hasn't been set, ignore audio from it (Plexus workaround)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2425 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-14 22:49:26 +00:00
Mark Spencer
ea92b714f2 Turn off silence suppression in SDP
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2423 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-14 22:13:18 +00:00
Mark Spencer
aa2bdcc078 Handle 4 byte packets too
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2422 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-14 21:01:13 +00:00
Mark Spencer
7989800674 Try to make smoother G.729B aware, and able to handle VAD bytes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2421 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-14 18:01:29 +00:00
James Golovich
9d8952f3a8 Make ZapScan wait 100ms for data
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2419 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-14 09:49:58 +00:00
James Golovich
51f004494a Make sure time is valid for uptime (bug 1214)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2417 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-14 09:11:32 +00:00
Mark Spencer
044aa4fa60 Cleanups of RX/TX calculations
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2416 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-14 05:31:47 +00:00
Mark Spencer
17e2416f68 Merge queue changes from Bug #214
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2415 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-13 06:00:41 +00:00
Mark Spencer
8750f1c05f Move timestamp around in RTP.... Gotta do iax2 eventually here...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2413 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-13 03:52:14 +00:00
Mark Spencer
afab3c4151 Fix a martin segfault
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2411 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-12 21:26:45 +00:00
Mark Spencer
3a2f0750cb Fix safe_asterisk script
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2410 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-12 20:20:36 +00:00
James Golovich
4efa995ae1 Fix incorrect endpos when sildet is used during AGI record (bug 1210)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2408 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-12 18:49:52 +00:00
Mark Spencer
f1330f7efd Whentohangup is in seconds, not milliseconds
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2406 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-12 16:47:07 +00:00
Mark Spencer
1e8ea5eece Fix small buglet, version #13
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2405 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-12 00:50:38 +00:00
Mark Spencer
12a8e15227 Add support for ADPCM to IAXY firwmare (version 12)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2404 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-11 21:27:13 +00:00
Mark Spencer
a082f8d8c7 By default disable non-standard changes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2402 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-11 20:56:26 +00:00
Mark Spencer
39c60235f8 Make ADPCM frames standard
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2400 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-11 19:57:10 +00:00
Mark Spencer
f12928f700 Make sure no path leaves channel lock locked
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2399 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-11 18:00:08 +00:00
James Golovich
8812409528 Make voicemail not say goodbye twice on hangup (bug 1201)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2397 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-11 07:00:46 +00:00
James Golovich
6406e07a79 Make ParkAndAnnounce check some things (bug 1194)
This code really needs to get cleaned up


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2395 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-11 06:16:15 +00:00
James Golovich
6741234ec9 Make sure usedistinctivering gets set to the right value
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2393 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-11 05:10:23 +00:00
James Golovich
c0ef6a5d1b Free dsp in agi record file if it exits before the end (bug 1199)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2391 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-10 21:17:13 +00:00
James Golovich
18b3da6bab Wipe out p->exten in zt_hangup (bug 1115)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2389 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-10 09:11:05 +00:00
James Golovich
fac46c078a Make distinctiveringdetection configurable per channel (bug 1168)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2387 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-10 08:33:07 +00:00
James Golovich
21832436ec Remove unnecessary ast_check_hangup
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2385 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-10 07:05:01 +00:00
James Golovich
6c6bd28308 Make ZapScan exit when '*' is pressed. Has the side effect of making
the app exit when the channel is hungup which wasn't happening before


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2383 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-10 03:51:59 +00:00
James Golovich
d298a73aab Fix chan_iax2 compiling with MYSQL_FRIENDS
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2381 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-09 20:10:23 +00:00
James Golovich
f82797006f Verify the right vars are passed to manager originate (bug 1185)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2379 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-09 20:01:46 +00:00
James Golovich
6f0d8022d1 Make mess more informative if non-dynamic sip user registers (bug 1186)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2377 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-09 17:42:29 +00:00
Mark Spencer
3edb8bfc21 Upgrade firmware to version 10
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2376 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-09 17:30:59 +00:00
Malcolm Davenport
f986561b62 Add the app_eval.c file
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2375 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-09 15:57:56 +00:00
Malcolm Davenport
d971478d75 Bug # 1182: Add app_eval: Permits a string to be evaulated twice in the context
of the dialplan.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2374 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-09 15:57:16 +00:00
Mark Spencer
b1718d715e Clarify that jitter buffering is usually a loss
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2372 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-08 19:17:46 +00:00
Mark Spencer
674d81ce27 Fix strncpy auditing (bug #1152)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2370 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-08 05:04:11 +00:00
James Golovich
0d5dcf7358 Fix typo in chan_zap.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2368 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-08 04:26:36 +00:00
Mark Spencer
653b86fa48 Don't complain about not knowing about -1
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2366 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-08 02:09:56 +00:00
Mark Spencer
3461b2f5bb Upgrade IAXY firmware to version 10 (support static IP)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2365 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-08 00:30:44 +00:00
James Golovich
f2b52d46d0 Make sure chan_iax.c and chan_iax2.c know the size of G726 frames
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2364 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-07 22:57:00 +00:00
Mark Spencer
d9359f8249 Fix for endianness (bug #1174)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2363 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-07 04:36:52 +00:00
James Golovich
146469ab19 Allow multiple switches in the same context (bug #1171)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2360 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-06 20:15:08 +00:00
James Golovich
fa4ed416c7 Fix comment in cli.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2358 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-06 09:01:08 +00:00
Mark Spencer
7f2e23bb50 Add absolute timeout option to dial that applies when call is up (bug #1107)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2357 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-06 00:02:40 +00:00
James Golovich
d97cc460b0 Fix pbx_builtin_atimeout comment
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2355 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-05 23:42:58 +00:00
Mark Spencer
2bc6301e39 And of course return us as a winner
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2353 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-05 18:32:59 +00:00
Mark Spencer
c07a37b91d Minor optimizations and actually set SOFTHANGUP_TIMEOUT if appropriate
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2351 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-05 18:31:06 +00:00
Mark Spencer
94f3b5751a Consider whentohangup in timeout (bug #1107)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2349 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-05 18:22:31 +00:00
Mark Spencer
e42e998f76 Expand our definition of 3XX responses
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2347 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-05 18:09:35 +00:00
Mark Spencer
5bf9b86aa4 Know how to send ADPCM
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2346 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-05 17:32:00 +00:00
Mark Spencer
1b37f94737 Bail an AGI on PBX_KEEPALIVE being set in an exec.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2344 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-05 14:23:22 +00:00
James Golovich
82a2a8b7eb Fix pri->pvt[chan]->owner dereference (bug #1161)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2341 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-05 04:15:55 +00:00
James Golovich
359160d8a1 Change tormenta.conf to zaptel.conf
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2339 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-05 03:30:38 +00:00
Mark Spencer
a1d8701369 Formatting fixup
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2338 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-05 00:31:55 +00:00
Mark Spencer
b4ea3725da Set the context properly for a given peer
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2336 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-04 23:43:58 +00:00
Mark Spencer
595049117c Add iaxy.bin, IAXy firmware version 01
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2335 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-04 22:09:48 +00:00
James Golovich
a51ca42b18 Make the Wait application accept time with fractions of a second
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2333 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-04 21:45:21 +00:00
Mark Spencer
fa7454688b Eliminate spurious select warning
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2331 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-04 21:32:32 +00:00
Jeremy McNamara
657056b114 clean up warning
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2330 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-04 06:29:12 +00:00
Jeremy McNamara
16d9e65b32 check to see if sub->rtp is allocated. Bug #1040
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2329 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-04 06:25:27 +00:00
Jeremy McNamara
9e21bc74ac check return value stop seg. Bug #967
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2328 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-04 06:11:23 +00:00
Mark Spencer
0a103544e4 Copy old extension unless it's ASYNCGOTO (bug #1141)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2326 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-04 05:57:47 +00:00
Mark Spencer
80904fddcf Fix DNS variable name
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2324 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-04 05:31:43 +00:00
Mark Spencer
550785ba29 Fix GotoIfTime if time is bad
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2321 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-04 05:23:50 +00:00
Jeremy McNamara
1f691912e1 deal with bindaddr properly
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2320 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-04 02:07:32 +00:00
Jeremy McNamara
bff0a94507 deal with bindaddr properly
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2319 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-04 01:57:32 +00:00
Mark Spencer
806bb3c63f Add support for parking with IAX2
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2318 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-04 01:11:25 +00:00
Mark Spencer
534e78b372 Add DeadAGI Application
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2317 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-03 18:58:57 +00:00
James Golovich
4653b4bb79 Unregister apps in app_queue.c on unload_module
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2316 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-03 08:53:04 +00:00
James Golovich
e67f8a50f9 Make PRI span completion only show spans that actually are PRIs
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2313 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-03 03:54:25 +00:00
James Golovich
d260293f62 Make DNS callbacks return -1 on error, so invalid records are ignored
(bug #1137)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2311 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-03 03:12:59 +00:00
James Golovich
22b56f13cc Fix typo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2308 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-03 00:05:00 +00:00
Mark Spencer
6d799e9ff8 Fix small (yet big) bug in show_display
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2307 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-02 23:56:37 +00:00
James Golovich
e141e7311c Improve restart handling
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2305 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-02 23:50:03 +00:00
James Golovich
96e3d08787 Fix asterisk exiting on verbose without a console (bug #1126)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2303 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-02 23:36:53 +00:00
Mark Spencer
b82aa22442 Process SDP on 183 session progress (bug #930)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2301 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-02 23:29:00 +00:00
Mark Spencer
9d5fe279b6 More BSD compat crap
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2300 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-02 22:55:05 +00:00
Mark Spencer
231dbeea61 BSD portability fix
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2297 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-02 22:53:08 +00:00
James Golovich
40ec19961c Fix app_chanisavail.c when passed string is big (bug #1139)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2295 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-02 17:49:33 +00:00
Mark Spencer
4cd13f4ebf Ignore interrupted system call error on "accept"
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2293 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-02 16:58:17 +00:00
James Golovich
5fafcdd73c Remove extra spacing from manager.c and change Event action/variable to
work the same during login and action


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2291 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-02 08:45:51 +00:00
James Golovich
7409bc052d Add function ast_false, like ast_true
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2289 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-02 07:57:06 +00:00
Mark Spencer
8f73da1f79 Allow semi-blocking fd's on manager (bug #1100)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2287 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-01 21:12:32 +00:00
James Golovich
4de0a2e30e Fix app_random.c (bug #792)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2285 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-01 20:44:48 +00:00
James Golovich
32a11a2b20 Remove extra \r\n from manager event sent by res_parking.c (bug #1134)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2283 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-01 20:31:25 +00:00
Mark Spencer
a9d042db2c Handle video codecs properly
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2281 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-01 16:14:41 +00:00
James Golovich
4160dfa6e1 Remove comment about EXPERIMENTAL_TRANSLATION since its not used
anywhere anymore


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2279 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-01 07:17:01 +00:00
James Golovich
b32c690175 Fix app_chanisavail if there are invalid arguments (bug #1130)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2277 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-29 18:30:48 +00:00
Mark Spencer
064d7ffdb2 Don't write duration if file disappears (bug #1102 -- thanks hmodes)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2275 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-28 00:33:15 +00:00
Mark Spencer
6a73e70663 Make iax2 compile on *BSD
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2273 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-27 16:35:32 +00:00
James Golovich
5f68a5f70d Change text in ast_get_group to explain that max group is 31 (bug #1014)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2270 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-27 09:04:42 +00:00
James Golovich
ade75fecae Add 'SAY TIME' to AGI. (bug #269)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2269 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-27 08:30:30 +00:00
Mark Spencer
43d758e630 Include errno.h
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2268 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-27 06:58:39 +00:00
Mark Spencer
0f111e2d3a Ignore ECHILD in app_system
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2266 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-27 06:56:08 +00:00
James Golovich
a232d8e060 Move ast_get_group from res_parking.c to channel.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2263 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-27 06:15:49 +00:00
James Golovich
cf854246fa Typo in app_zapras.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2261 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-27 06:00:35 +00:00
Mark Spencer
548d6bb6c0 Add G.726, revise Changelog
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2260 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-27 05:16:26 +00:00
James Golovich
6a0bc27b35 Typo in app_queue.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2258 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-27 04:38:30 +00:00
James Golovich
a303a83b92 Get rid of compiler warnings when calling ast_queue_log
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2257 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-27 04:32:54 +00:00
James Golovich
e8c21dfe67 Check result of malloc in app_dial.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2255 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-27 04:24:42 +00:00
Malcolm Davenport
3439c08170 Fix Bug # 981
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2253 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-26 17:29:49 +00:00
James Golovich
133748f004 Really fix format_wav_gsm.c. Thanks PCadach! (bug #1087)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2251 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-26 06:46:01 +00:00
James Golovich
35f3f86df4 Fix 'show translations'
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2249 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-26 01:12:38 +00:00
James Golovich
462cfbe8ae Bug #1087. Fix wav49 format so it can be played. Make file functions
looking for extension use f->exts instead of f->name.  Fix bug
where error message didn't print file extension. Fix comments in header file.
Everything is completely backwards compatible


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2247 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-25 22:31:51 +00:00
James Golovich
38198d8cb3 Add extra \n so email sent by voicemail has the right header delimiter
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2245 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-25 21:43:32 +00:00
Mark Spencer
500ebad7aa Fix slow down in rtp.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2244 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-25 20:59:39 +00:00
James Golovich
6de8d14b29 Replace MP3 with G726 in ast_codec2str
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2242 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-25 18:43:55 +00:00
Mark Spencer
853ead07d4 Increase length of DTMF tones in SIP et all, in-band
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2241 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-25 16:01:56 +00:00
Mark Spencer
8bfe5e86b4 Don't be biased against G.726 in translation table
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2240 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-25 04:24:51 +00:00
Mark Spencer
ff976ce055 Add G.726-32kbps Codec Transcoder (Tested with Cisco ATA-186)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2239 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-25 04:10:32 +00:00
James Golovich
96abbad91d Add missing include to chan_iax2.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2238 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-25 03:49:25 +00:00
Malcolm Davenport
6023b736d9 Bug # 1052 Got it this time..I'm sure of it ;)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2237 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-25 01:16:45 +00:00
Mark Spencer
066212158e Add IAX2 firmware upgrade support
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2234 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-24 21:27:16 +00:00
Malcolm Davenport
2a9044d607 Bug # 1079. indications.conf.sample changes for Greece
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2233 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-24 20:32:12 +00:00
Malcolm Davenport
23eaf5c442 Fix Bug # 935 and Bug # 1052
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2231 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-24 19:48:46 +00:00
Mark Spencer
39a358ef56 Fix corruptin in app_cut (bug #1084)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2229 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-24 18:57:46 +00:00
Mark Spencer
f62061aa78 Handle change password properly with multiple VM contexts (bug #1069)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2227 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-24 17:11:23 +00:00
Mark Spencer
406e4283fd Really initialize queue log
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2226 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-23 20:18:27 +00:00
Mark Spencer
1f33e8b807 Optimization in pri_fixup
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2224 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-23 14:58:18 +00:00
James Golovich
a23c89dd75 Fix some comments in pbx.c and pbx_config.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2223 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-23 05:37:24 +00:00
Mark Spencer
d1cb6a3aa9 Merge Tilghman's and Cam's user defined cadence patch
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2221 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-23 05:02:24 +00:00
James Golovich
d53b0d0643 Fixed gramatical error in app_queue.c (bug #1083)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2219 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-23 04:15:04 +00:00
James Golovich
a06b48ccc6 Fix restarting when not called from the main console (bug #830 and #864)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2217 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-23 03:43:21 +00:00
James Golovich
c278f09897 Fix ast_add_extension2 updating ast_exten correctly in certain cases
where extensions.conf is not ordered numerically by priority (bug #1065)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2215 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-23 02:47:22 +00:00
Mark Spencer
e08247218e Small but important fix for channel relocation (bug #54)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2213 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-22 20:41:15 +00:00
James Golovich
84cbebcf17 Fix another typo in the app_dial description
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2211 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-22 05:31:42 +00:00
James Golovich
d03dbf91a6 Add ${LANGUAGE} channel variable (bug #1078)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2210 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-22 05:25:58 +00:00
Mark Spencer
90594b5fc8 Properly lock slave and master in zt_unlink (bug #1008)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2208 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-20 21:23:22 +00:00
Mark Spencer
de6910a6b6 Fix minor ordering issue (bug #981)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2206 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-20 20:00:49 +00:00
Mark Spencer
ce8778c01b Add support for Norwegian numbers (bug #1067)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2204 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-20 17:43:46 +00:00
Mark Spencer
6724dd1597 Improve SIP friends support (should address bugs #1063 & #1052)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2202 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-20 15:39:43 +00:00
Mark Spencer
79500cdb9f Initialize queue logger
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2201 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-19 23:17:52 +00:00
Mark Spencer
0b8234edb4 Don't free clone lock until after *both* fixups have taken place
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2199 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-19 20:07:01 +00:00
Mark Spencer
b2a648b4da Just in case resources with the same name are loaded
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2197 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-19 01:04:21 +00:00
James Golovich
48496a930c Fix another spelling typo in chan_sip.c (bug #1059)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2196 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-19 00:42:10 +00:00
James Golovich
43e312bd62 Fix spelling typo in chan_sip.c (bug #1059)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2193 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-19 00:14:58 +00:00
Mark Spencer
fb96473eb0 Fix comparision in RTP native bridge (bug #1043)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2192 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-18 21:38:46 +00:00
Mark Spencer
89c76a80f2 Minor file.c cleanup for valgrind, log PRI event properly
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2189 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-18 16:32:49 +00:00
Mark Spencer
f285c61830 Cleanups to recent changes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2187 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-18 04:52:56 +00:00
Mark Spencer
cc894e6100 Use call numbers instead of pointers in IAX2
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2186 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-17 22:16:14 +00:00
Mark Spencer
e2ecedfa70 Add Icecast streaming support
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2185 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-17 07:03:14 +00:00
Mark Spencer
a1c6ac945d Make sure smoother only creates frames with offsets (bug #1029)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2184 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-16 15:05:21 +00:00
James Golovich
509e9a4d4e Fix 'show channel<tab>' completion, where show channel would be
autocompleted instead of displaying channel and channels.  Also update
comment to reflect that items in the list should have longest matches
first.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2181 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-15 09:07:00 +00:00
James Golovich
c28a51899f Typo in app_waitforring.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2180 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-15 08:41:56 +00:00
James Golovich
9028579d84 Spelling error in app_dial.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2177 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-15 08:33:19 +00:00
James Golovich
2cbef73a27 Various spelling errors fixed in docs
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2175 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-15 07:48:46 +00:00
Jim Dixon
dbe3dea363 Added us-old zone in indications.conf
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2174 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-15 07:38:47 +00:00
Jim Dixon
df987c2086 Added support for specifing Zaptel tonezone on a per-channel basis for
Zaptel channels in zaptel.conf (using tonezone= parameter)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2173 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-15 07:35:32 +00:00
James Golovich
2655e5c7b9 Make astman ignore 'StatusComplete' events.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2171 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-15 07:17:37 +00:00
James Golovich
52be37dd37 Fix 2 typos in README
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2170 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-15 06:58:43 +00:00
James Golovich
8a6dc0d0b4 Fix typo in iax.conf.sample (bug #1035)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2168 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-15 06:39:49 +00:00
James Golovich
7907a37002 Fix typo in chan_sip.c (bug #1037)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2165 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-15 06:35:22 +00:00
James Golovich
4b26ec2372 Fix command completion (bug #988)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2163 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-15 05:19:44 +00:00
Mark Spencer
2a31c91136 Add logging of agent login/logoff
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2162 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-14 04:54:39 +00:00
Martin Pycko
f49d75994e Fix recording the agent's calls by default
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2160 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-12 22:28:35 +00:00
Mark Spencer
864fe70e35 Add queue logging and fix indications buglet
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2159 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-12 22:11:02 +00:00
Mark Spencer
98391c1324 Free mysql results
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2156 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-11 06:29:35 +00:00
Mark Spencer
e83acf8658 Don't free if it's NULL
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2154 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-11 05:14:19 +00:00
Mark Spencer
bac2215fb6 Fix several memory leaks
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2153 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-11 03:54:28 +00:00
Mark Spencer
7cdb6d36f4 Fix a couple of memory leaks
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2151 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-11 00:17:48 +00:00
Martin Pycko
2671e3d9bb Fix some minor errors: when logging off using AgentCallbackLogin don't put again the global *AGENTID* variable. Remove the '.' from the link that is put in the userfiled of CDR record
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2149 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-10 21:14:48 +00:00
Jim Dixon
29571cfcb1 Fixed bug in FXOGS. Was not closing loop after starting.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2147 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-10 07:24:15 +00:00
Mark Spencer
260072954e Revert meetme work around now that zaptel is fixed
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2146 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-10 06:47:42 +00:00
Mark Spencer
077975cba7 Fix memory leak with SIP friends (bug #1010)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2145 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-09 06:09:45 +00:00
Mark Spencer
e1df8c9082 Properly fully URL decode the REPLACES in SIP and also watch for edge condition (bug #1015)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2142 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-09 05:38:17 +00:00
Mark Spencer
02f99cb631 Omit PRI layer 1 information for data call (need updated libpri too) (bug #1012)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2140 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-08 00:23:20 +00:00
Mark Spencer
ae4adad5c4 Insert blank after REFER (bug #997)
Correct path to VM sample (bug #994)
Make manager interface non-blocking (bug #861)
Don't bork on empty from in SIP (bug #887)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2138 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-07 07:13:33 +00:00
Mark Spencer
cf4825233d Don't free private structure until iax2_hangup is actually called
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2136 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-06 18:11:13 +00:00
Mark Spencer
82e18770bc Increase buffer size (1005)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2135 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-06 05:52:03 +00:00
Mark Spencer
0dd66bd2e9 Implement temporary work around for pseudo channels with SMP
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2133 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-05 22:28:44 +00:00
Martin Pycko
8baa1ed52e Add 'm' option to Monitor app to use soxmix (if available) to mix the output recording to one file.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2132 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-05 22:10:19 +00:00
Martin Pycko
ba3b53d64a Add AgentMonitorOutgoing application to allow recording of outgoing calls made by the interface that is registered as an callback agent. Refer to "show application AgentMonitorOutput" for more info.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2131 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-05 21:13:17 +00:00
Mark Spencer
02858c574c Don't call release if we have no generator
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2129 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-04 23:18:16 +00:00
Martin Pycko
1e4b334321 Fix the deadlock in show queue <queue_name>
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2126 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-04 19:42:18 +00:00
Mark Spencer
9a7374faf0 Countless small bugfixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2124 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-04 15:22:59 +00:00
Martin Pycko
3f69c1b62d Remove unused tmpq variable
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2123 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-03 17:54:07 +00:00
Martin Pycko
4bef006566 Add "show queue <queue_name>" CLI command
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2122 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-03 16:59:04 +00:00
Martin Pycko
860f35a7ab Add recording agent's calls patch. Basically the call starts recording when the agent picks up and the file is stamped with the agent's id and the timestamp. Also optionally a URL link to that file may be inserted in the userfield of the CDR record. By default the recorded file will be mixed if soxmix is available.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2121 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-03 16:57:00 +00:00
Martin Pycko
9bd6034f9b Don't buffer the event files, eg: messages
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2120 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-03 16:43:07 +00:00
Mark Spencer
694058ccb1 Implement REGREL in IAX2
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2119 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-03 15:16:04 +00:00
Martin Pycko
78602e0966 Make the go_on be non-global.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2118 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-03 00:53:21 +00:00
Mark Spencer
1a225306f8 Don't get stuck in loop
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2117 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-02 23:51:25 +00:00
Mark Spencer
2c9585e9f6 Force SIP reload to happen in network thread only
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2116 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-02 23:48:31 +00:00
Mark Spencer
bc06fe3b51 Fix small typos
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2115 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-02 23:22:57 +00:00
Mark Spencer
5bb289262e Centralize all sip registration around a single lock
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2114 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-02 23:21:36 +00:00
Mark Spencer
8c339b9d63 Perform proper locking on registration on SIP
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2113 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-02 22:35:33 +00:00
Mark Spencer
904027f25f Release the call when freeing a registry
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2112 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-02 20:50:05 +00:00
Mark Spencer
0068b8c823 Move config.cache delete to "distclean"
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2111 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-02 07:01:25 +00:00
Mark Spencer
d3ab1d50b5 More BSD enhancements (#970)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2110 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-02 06:39:23 +00:00
Mark Spencer
9c2f131b66 NetBSD portability enhancements (bug #969)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2109 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-02 06:38:08 +00:00
Mark Spencer
1e3c163233 Handle more complex wav files
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2108 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-02 06:34:27 +00:00
Mark Spencer
28d980de3d Force update of the CDR before clearing channel (bug #974)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2107 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-02 01:13:00 +00:00
Mark Spencer
e2dddf3532 Use better flags when starting MGCP threads (bug #598)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2106 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-02 00:46:59 +00:00
Mark Spencer
12934e17e6 If unregistered, don't consider it valid (bug #956)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2105 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-01 23:55:17 +00:00
Mark Spencer
87f28fa6dd Add "iaxcompat" option to allow nested switch statements, still might fail if you have an IAX call going to something with a switch...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2104 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-01 20:08:36 +00:00
Mark Spencer
83344af1c2 Fix add include (bug #966) and small update to bug 890
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2103 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-31 20:22:25 +00:00
Mark Spencer
c7f703c476 Update documentation
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2102 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-31 20:05:23 +00:00
Mark Spencer
48748b8f9a Handle cause in DISCONNECT too
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2101 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-31 19:38:22 +00:00
Mark Spencer
c33c9283f1 Send busy when busy, congestion when congestion on PRI (bug #890)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2100 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-31 18:46:59 +00:00
Mark Spencer
0cadef62c1 Stop searching once we find a match
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2099 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-31 17:00:24 +00:00
Mark Spencer
fc7311e94c Don't delete original variables after appending clone ones
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2098 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-31 02:50:27 +00:00
Mark Spencer
068fd1d839 Merge variable lists
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2097 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-30 06:48:01 +00:00
Mark Spencer
81cf763a97 Fix res_parking
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2096 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-30 06:31:25 +00:00
Mark Spencer
2ad3e1428d Create manager event on parking
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2095 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-30 05:49:44 +00:00
Mark Spencer
9286665be5 Minor app agi documentation fix (bug #943)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2094 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-30 05:37:39 +00:00
Mark Spencer
c7f175309d Improve documentation of app_record (bug #942)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2093 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-30 05:13:25 +00:00
Mark Spencer
917f50e737 Add support for authenticating against astdb and one time authentication
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2092 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-29 20:54:37 +00:00
Mark Spencer
15ba1fe530 Minor little fixup
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2091 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-29 20:19:44 +00:00
Mark Spencer
ccf510188f Fix linked lists tail (bug #951)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2090 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-29 16:14:25 +00:00
Mark Spencer
eb97ef73fa Clarify extensions.conf matching rules (bug #949)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2089 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-29 16:11:21 +00:00
Mark Spencer
8dbbc0e72b Emit status complete message when status is finished (bug #122)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2088 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-29 00:28:51 +00:00
Mark Spencer
695422d698 Various minor cleanups (bug #931)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2087 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-28 21:32:48 +00:00
Mark Spencer
c0eb1e6bfe Update logger.conf sample (bug #941, modified)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2086 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-28 21:13:50 +00:00
Mark Spencer
32e131862d Elminate unused code/warnings (bug #934)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2085 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-28 21:06:03 +00:00
Mark Spencer
1c838758c3 Save global variables across "save dialplan" (bug #426)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2084 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-28 01:29:47 +00:00
Mark Spencer
f5c3a23a75 Don't double verbose things
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2083 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-27 18:20:17 +00:00
Mark Spencer
cf036062c4 Character set fixes, and add "mailcmd" option (bug #472)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2082 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-27 00:37:47 +00:00
Mark Spencer
c5deb0a325 Ditch nested comment
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2081 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-27 00:30:03 +00:00
Mark Spencer
aa4f316c14 Clarify iax foo to iax1 foo in chan_iax (bug #924)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2080 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-27 00:28:52 +00:00
Mark Spencer
b53e81786a Add verbose messages to be logged (bug #599)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2079 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-27 00:23:39 +00:00
Mark Spencer
80f23eb97d Don't send VMWI when we're not registered
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2078 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-26 19:12:23 +00:00
Mark Spencer
e7f46a4251 Seriously fix echo cancellation on inbound calls with FXO interfaces (and enable echo training on them)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2077 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-26 16:39:34 +00:00
Mark Spencer
39f0e4b207 Add tables for iax and sip friends (bug #913)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2076 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-26 05:54:40 +00:00
Mark Spencer
1b3e733e1c Add registry files to fix spex and ilbc on xlite and xpro (bug #918)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2075 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-26 05:50:34 +00:00
Mark Spencer
78e57f29bc Move qview to the right place
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2074 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-26 05:45:07 +00:00
Mark Spencer
1d02548e4a Add qview to contrib (bug #236)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2073 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-26 05:43:39 +00:00
Mark Spencer
2078c0d1bf Fix typo (bug #914)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2072 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-26 05:32:30 +00:00
Mark Spencer
662e7238ef Send 481 if call leg does not exist on CANCEL, and send 487 before 200 as per rfc3261 (bug #917)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2071 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-26 05:28:14 +00:00
Jeremy McNamara
8face6c67c Add even more explicit information. Take 2
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2070 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-26 04:09:40 +00:00
Jeremy McNamara
f2bb840936 Add even more explicit information
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2069 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-26 04:08:19 +00:00
Mark Spencer
01d62f822d Fix excessive fax detection (Thanks Steve Underwood!!!)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2068 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-25 19:51:01 +00:00
Mark Spencer
0efa5c562a UPdate readme (bug #846)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2067 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-25 05:57:43 +00:00
Mark Spencer
785da17231 Properly handle transfer of application (bug #911)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2066 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-25 05:51:49 +00:00
Mark Spencer
a9b3a77cda Fix default to not use iax friends
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2065 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-23 20:57:48 +00:00
Mark Spencer
e60848a65f Fix overflow in too many arguments (bug #806)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2064 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-23 19:12:44 +00:00
Mark Spencer
1455d0211b Fix documentation typo (bug #904)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2063 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-23 16:00:24 +00:00
Mark Spencer
1499f1e480 Create individual sip reload command (bug #880)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2062 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-23 15:43:31 +00:00
Mark Spencer
dbe6828978 Add local channel documentation (bug #868)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2061 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-22 21:52:01 +00:00
Mark Spencer
4fa609e2be Fix MD5Hex size (bug #883)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2060 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-22 21:47:58 +00:00
Mark Spencer
8d80f9c624 Update formating (bug #898)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2059 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-22 21:44:47 +00:00
Mark Spencer
e26d9ae75e Merge manager documentation (bug #869)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2058 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-22 21:41:19 +00:00
Mark Spencer
92aba71fb5 Fix name in some files (bug #897)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2057 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-22 21:30:04 +00:00
Mark Spencer
4393076c6c ODBC fix for PPC (bug #895)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2056 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-22 21:27:07 +00:00
Mark Spencer
6a6814379f Release pgsql on failure (bug #891)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2055 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-22 17:03:11 +00:00
Mark Spencer
c23ffc045d Fix size bug in wav49 format (bug #254) thanks rtucker!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2054 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-22 16:33:43 +00:00
Mark Spencer
8abe6ccb64 Merge SIP/MySQL friends patch
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2053 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-22 16:29:02 +00:00
Mark Spencer
4718c784af Update zapata.conf sample config to talk about busydetect
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2052 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-19 02:32:24 +00:00
Mark Spencer
616e31f795 Update CDR README
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2051 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-19 02:30:02 +00:00
Mark Spencer
dd96991005 Update sounds.txt
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2050 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-19 02:21:24 +00:00
Mark Spencer
fa0c31b864 Add custom folder sounds
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2049 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-19 02:16:21 +00:00
Jim Dixon
a7154d73fe Added functionality for E911 signalling
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2048 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-16 23:40:37 +00:00
Jeremy McNamara
de08da1003 Update as we go this time
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2047 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-16 05:39:43 +00:00
Jeremy McNamara
c6fb650a62 another nickpick on formatting
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2046 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-16 01:24:00 +00:00
Mark Spencer
821643f30b Add italian tone zone
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2045 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-16 00:14:22 +00:00
Martin Pycko
3d40b1c03f A little adjustment to the previous one (passing the clid&ani on call_forward)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2044 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-15 23:38:23 +00:00
Martin Pycko
e993855421 Pass the callerid & ani to the new b-leg if the current b-leg requests call forwarding
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2043 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-15 23:32:27 +00:00
Jeremy McNamara
8a8b2d0684 Make output more readable
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2042 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-15 23:06:51 +00:00
Jeremy McNamara
94fe1c8b26 Nitpic CLI output. Bug #858
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2041 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-15 22:56:53 +00:00
Malcolm Davenport
5f23eba1b0 Bug #857. More fixes for GSM Makefile for PPC
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2040 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-15 21:31:26 +00:00
Mark Spencer
036cb819d6 X out announce stuff (bug #760)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2039 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-15 20:20:21 +00:00
Mark Spencer
94da5ac1e8 Fix unload/load of chan_zap
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2038 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-15 19:48:37 +00:00
Malcolm Davenport
e2db31c94b Nitpicky stuff
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2037 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-14 16:43:07 +00:00
Jeremy McNamara
de6d4f266e Set sync flag back to 0, temp work around to let action: origiate work
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2035 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-14 09:31:24 +00:00
Jeremy McNamara
69c84b4c28 Don't set execute bit on sound/config/image files
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2034 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-14 06:48:38 +00:00
Jeremy McNamara
c44e6130cc move cvsid.h into include/asterisk dir. Bug #822
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2033 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-14 06:44:16 +00:00
Jeremy McNamara
81b1cb9caa Add CVSID Macro for embedding revision info into the compiled binary. Bug #822
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2032 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-14 06:41:24 +00:00
Jeremy McNamara
3f0a3cc6c0 Documment pin usage in MeetMe. Bug #843
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2031 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-14 06:38:29 +00:00
Jeremy McNamara
cf41cc2ec2 add a vasprintf replacement. Bug #839
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2030 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-14 06:35:01 +00:00
Jeremy McNamara
b3ab1cbe73 Check for already registered manager command. Bug #836
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2029 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-14 06:31:18 +00:00
Jeremy McNamara
1c60de9c6b fix typo. Bug #837
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2028 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-14 06:28:26 +00:00
Jeremy McNamara
929f24602e Add userfield to schema. Bug #833
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2027 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-14 06:26:24 +00:00
Jeremy McNamara
508cb3d34a Change IAXPeers to IAX1Peers. Bug #838
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2026 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-14 06:23:30 +00:00
Jeremy McNamara
a4cc03ffd9 clean up output and print that we are unregistering a channel type
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2025 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-14 06:10:53 +00:00
Jeremy McNamara
74aea6680a clean up output and print that we are unregistering a channel type
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2024 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-14 06:04:46 +00:00
Malcolm Davenport
35a1ef8198 Change so we're using New DSP routines by Default instead of Old
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2023 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-13 20:17:56 +00:00
Malcolm Davenport
3b4935ad97 Modify Changelog
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2022 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-13 20:11:18 +00:00
Malcolm Davenport
7f2fdcc2bf Bug #826. Get rid of dsp routine in dsp.c since it's also defined in the Makefile
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2021 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-13 20:05:22 +00:00
Jeremy McNamara
8fb24677a4 last try
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2020 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-13 09:24:26 +00:00
Jeremy McNamara
337d7f6884 bed time
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2019 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-13 09:17:14 +00:00
Jeremy McNamara
54478c3a0a h.323 gk cycle is still broken on -r
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2018 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-13 09:11:36 +00:00
Jeremy McNamara
00fff0dbc1 renable h.323 gk cycle, fixed
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2017 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-13 08:56:02 +00:00
Jeremy McNamara
e46d9edc98 Not needed here
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2016 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-13 08:46:46 +00:00
Jeremy McNamara
e88fdae17d ok, its waay too late
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2015 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-13 08:38:51 +00:00
Jeremy McNamara
b3d1d22317 WTF
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2014 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-13 08:31:13 +00:00
Jeremy McNamara
3817133d4f stupid, stupid, stupid stupid stupid stupid
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2013 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-13 08:17:20 +00:00
Jeremy McNamara
dade45942c temp fix for timed includes and GotoIfTime
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2012 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-13 07:48:39 +00:00
Jeremy McNamara
057f297bfd document localnet/proxy
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2011 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-13 06:11:56 +00:00
Jeremy McNamara
40bd0e0ec1 add ww
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2010 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-13 06:11:18 +00:00
1131 changed files with 147567 additions and 56634 deletions

1
.cleancount Normal file
View File

@@ -0,0 +1 @@
6

View File

@@ -1,5 +0,0 @@
asterisk
build.h
ast_expr.c
.version
.depend

5
BUGS Executable file → Normal file
View File

@@ -1,3 +1,8 @@
Asterisk 1.0-RC-1 Known Major Bugs
==================================
* Some people still have issues with H.323
* QuickNet driver still not entirely stable
Asterisk Bug Tracking Information
=================================

59
CHANGES Executable file → Normal file
View File

@@ -1,3 +1,62 @@
-- Pass redirecting number on PRI calls
-- Add RTP debug support
-- Misc Debugging improvements
-- Add TALK_DETECTED variable
-- Adding Q.SIG switchtype option to chan_zap
-- Added pbx_builtin_serialize_variables
-- Update to new iLBC codec
-- Add CLI for realtime stuff
-- Add DUNDi.... (http://www.dundi.com)
-- Misc Memory fixes
-- Voicemail improvements from the bug tracker
-- Major revamp of PBX core including 'n' and 's' priorities and labels
-- Deprecate pbx_wilcalu and app_qcall in favor of pbx_spool
-- Remove old chan_iax and chan_vofr
-- Major Caller*ID Restructuring
-- Realtime API (IAX, SIP and Voicemail)
-- codecs.conf to tune various codec options (ie Speex)
Asterisk 1.0.1
-- Added AGI over TCP support
-- Add ability to purge callers from queue if no agents are logged in
-- Fix inband PRI indication detection
-- Fix for MGCP - always request digits if no RTP stream
-- Fixed seg fault for ast_control_streamfile
-- Make pick-up extension configurable via features.conf
-- Numerous other bug fixes
Asterisk 1.0.0
-- Use Q.931 standard cause codes for asterisk cause codes
-- Bug fixes from the bug tracker
Asterisk 1.0-RC2
-- Additional CDR backends
-- Allow muted to reconnect
-- Call parking improvements (including SIP parking support)
-- Added licensed hold music from FreePlayMusic
-- GR-303 and Zap improvements
-- More bug fixes from the bug tracker
-- Improved FreeBSD/OpenBSD/MacOS X support
Asterisk 1.0-RC1
-- Innumerable bug fixes and features from the bug tracker
-- Added Open Settlement Protocol (OSP) support
-- Added Non-facility Associated Signalling (NFAS) Support
-- Added alarm Monitoring support
-- Added new MeetMe options
-- Added GR-303 Support
-- Added trunk groups
-- ADPCM Standardization
-- Numerous bug fixes
-- Add IAX2 Firmware Support
-- Add G.726 support
-- Add ices/icecast support
-- Numerous bug fixes
Asterisk 0.7.2
-- Countless small bug fixes from bug tracker
-- DSP Fixes
-- Fix unloading of Zaptel
-- Pass Caller*ID/ANI properly on call forwarding
-- Add indication for Italy
Asterisk 0.7.1
-- Fixed timed include context's and GotoIfTime
-- Fixed chan_h323 it now gets remote ip properly instead of 127.0.0.1
Asterisk 0.7.0
-- Removed MP3 format and codec
-- Can now load and unload SIP,IAX,IAX2,H323 channels without core

19
CREDITS Executable file → Normal file
View File

@@ -5,6 +5,8 @@ Asterisk:
Pilosoft, Inc. - for supporting ADSI development in Asterisk
Asterlink, Inc. - for supporting broad Asterisk development
GFS - for supporting ALSA development
Telesthetic - for supporting SIP development
@@ -12,6 +14,7 @@ Telesthetic - for supporting SIP development
Christos Ricudis - for substantial code contributions
Paul Bagyenda, Digital Solutions - for initial Voicetronix driver development
=== WISHLIST CONTRIBUTERS ===
Jeremy McNamara - SpeeX support
Nick Seraphin - RDNIS support
@@ -23,6 +26,10 @@ Wasim - Hangup detect
PhoneJack and Linejack card to the project. (http://www.quicknet.net)
=== MISCELLANEOUS PATCHES ===
Russell Bryant - Asterisk 1.0 maintainer and misc. enhancements
russelb@clemson.edu
Anthony Minessale - Countless big and small fixes, and relentless forward push
anthmct@yahoo.com http://www.asterlink.com
James Golovich - Innumerable contributions
You can find him and asterisk-perl at http://asterisk.gnuinter.net
Andre Bierwirth - Extension hints and status
@@ -52,10 +59,22 @@ Thorsten Lockert - OpenBSD, FreeBSD ports, making MacOS X port run on 10.3,
dialplan include verification, route lookup on OpenBSD, various other
bugs. tholo@sigmasoft.com
Brian West - ODBC support and Bug Marshaling
Josh Roberson - chan_zap reload support, Advanced Voicemail Features, other misc. patches,
and Bug Marshalling. - josh@asteriasgi.com, http://www.asteriasgi.com
William Waites - syslog support, SIP NAT traversal for SIP-UA. ww@styx.org
Rich Murphey - Porting to FreeBSD, NetBSD, OpenBSD, and Darwin.
rich@whiteoaklabs.com http://whiteoaklabs.com
Simon Lockhart - Porting to Solaris (based on work of Logan ???)
simon@slimey.org
Olle Johansson - SIP RFC compliance and testing, testing, testing
oej@edvina.net
=== OTHER CONTRIBUTIONS ===
John Todd - Monkey sounds and associated teletorture prompt
=== HOLD MUSIC ===
Music provided by www.opsound.org
=== OTHER SOURCE CODE IN ASTERISK ===
I did not implement the codecs in asterisk. Here is the copyright on the

6
HARDWARE Executable file → Normal file
View File

@@ -16,11 +16,11 @@ Zaptel compatible hardware
* Wildcard X100P - Single FXO interface connects to Loopstart phone
line
* Wildcard T400P - Quad T1 interface connects to four T1/PRI
* Wildcard T400P (obsolete) - Quad T1 interface connects to four T1/PRI
interfaces. Supports RBS and PRI voice and PPP, FR, and HDLC data.
* Wildcard E400P - Quad E1 interface connects to four E1/PRI (or PRA)
interfaces. Supports PRA/PRI, EuroISDN voice and PPP, FR, HDLC data.
* Wildcard E400P (obsolete)- Quad E1 interface connects to four E1/PRI
(or PRA) interfaces. Supports PRA/PRI, EuroISDN voice and data.
* Wildcard T100P - Single T1 interface connects to a single T1/PRI
interface. Supports RBS and PRI voice and PPP, FR, and HDLC data.

0
LICENSE Executable file → Normal file
View File

690
Makefile Executable file → Normal file
View File

@@ -3,9 +3,9 @@
#
# Top level Makefile
#
# Copyright (C) 1999, Mark Spencer
# Copyright (C) 1999-2005, Mark Spencer
#
# Mark Spencer <markster@linux-support.net>
# Mark Spencer <markster@digium.com>
#
# This program is free software, distributed under the terms of
# the GNU General Public License
@@ -15,26 +15,21 @@
# Create OPTIONS variable
OPTIONS=
# If cross compiling, define these to suit
# CROSS_COMPILE=/opt/montavista/pro/devkit/arm/xscale_be/bin/xscale_be-
# CROSS_COMPILE_BIN=/opt/montavista/pro/devkit/arm/xscale_be/bin/
# CROSS_COMPILE_TARGET=/opt/montavista/pro/devkit/arm/xscale_be/target
CC=$(CROSS_COMPILE)gcc
HOST_CC=gcc
# CROSS_ARCH=Linux
# CROSS_PROC=arm
# SUB_PROC=xscale # or maverick
ifeq ($(CROSS_COMPILE),)
OSARCH=$(shell uname -s)
ifeq (${OSARCH},Linux)
PROC=$(shell uname -m)
else
ifeq (${OSARCH},FreeBSD)
PROC=$(shell uname -m)
OSARCH=$(CROSS_ARCH)
endif
endif
# Pentium Pro Optimize
#PROC=i686
# Pentium & VIA processors optimize
#PROC=i586
#PROC=k6
#PROC=ppc
PWD=$(shell pwd)
######### More GSM codec optimization
######### Uncomment to enable MMXTM optimizations for x86 architecture CPU's
@@ -42,19 +37,28 @@ PWD=$(shell pwd)
######### ppro's, etc, as well as the AMD K6 and K7.
#K6OPT = -DK6OPT
#Overwite config files on "make samples"
OVERWRITE=y
#Tell gcc to optimize the asterisk's code
OPTIMIZE=-O6
OPTIMIZE+=-O6
#Include debug symbols in the executables (-g) and profiling info (-pg)
DEBUG=-g #-pg
# New hangup routines for chan_zap.c
# If this flag is uncommented then you need to have new libpri code in your system
# You can still use the old libpri if you do "cvs update -D "08/03/03" in libpri source code
OPTIONS += -DNEW_PRI_HANGUP
# If you are running a radio application, define RADIO_RELAX so that the DTMF
# will be received more reliably
#OPTIONS += -DRADIO_RELAX
# If you don't have a lot of memory (e.g. embedded Asterisk), define LOW_MEMORY
# to reduce the size of certain static buffers
#ifneq ($(CROSS_COMPILE),)
#OPTIONS += -DLOW_MEMORY
#endif
# Optional debugging parameters
DEBUG_THREADS = #-DDEBUG_THREADS #-DDO_CRASH
DEBUG_THREADS = #-DDUMP_SCHEDULER #-DDEBUG_SCHEDULER #-DDEBUG_THREADS #-DDO_CRASH #-DDETECT_DEADLOCKS
# Uncomment next one to enable ast_frame tracing (for debugging)
TRACE_FRAMES = #-DTRACE_FRAMES
@@ -80,7 +84,7 @@ DESTDIR=
BUSYDETECT = #-DBUSYDETECT
# Improved busydetect routine, comment the previous one if you use this one
BUSYDETECT+= -DBUSYDETECT_MARTIN
BUSYDETECT+= #-DBUSYDETECT_MARTIN
# Detect the busy signal looking only at tone lengths
# For example if you have 3 beeps 100ms tone, 100ms silence separated by 500 ms of silence
BUSYDETECT+= #-DBUSYDETECT_TONEONLY
@@ -88,6 +92,7 @@ BUSYDETECT+= #-DBUSYDETECT_TONEONLY
# Don't use together with -DBUSYDETECT_TONEONLY
BUSYDETECT+= #-DBUSYDETECT_COMPARE_TONE_AND_SILENCE
ifneq (${OSARCH},SunOS)
ASTLIBDIR=$(INSTALL_PREFIX)/usr/lib/asterisk
ASTVARLIBDIR=$(INSTALL_PREFIX)/var/lib/asterisk
ASTETCDIR=$(INSTALL_PREFIX)/etc/asterisk
@@ -98,78 +103,195 @@ ASTCONFPATH=$(ASTETCDIR)/asterisk.conf
ASTBINDIR=$(INSTALL_PREFIX)/usr/bin
ASTSBINDIR=$(INSTALL_PREFIX)/usr/sbin
ASTVARRUNDIR=$(INSTALL_PREFIX)/var/run
ASTMANDIR=$(INSTALL_PREFIX)/usr/share/man
MODULES_DIR=$(ASTLIBDIR)/modules
AGI_DIR=$(ASTVARLIBDIR)/agi-bin
else
ASTLIBDIR=$(INSTALL_PREFIX)/opt/asterisk/lib
ASTVARLIBDIR=$(INSTALL_PREFIX)/var/opt/asterisk/lib
ASTETCDIR=$(INSTALL_PREFIX)/etc/opt/asterisk
ASTSPOOLDIR=$(INSTALL_PREFIX)/var/opt/asterisk/spool
ASTLOGDIR=$(INSTALL_PREFIX)/var/opt/asterisk/log
ASTHEADERDIR=$(INSTALL_PREFIX)/opt/asterisk/usr/include/asterisk
ASTCONFPATH=$(ASTETCDIR)/asterisk.conf
ASTBINDIR=$(INSTALL_PREFIX)/opt/asterisk/usr/bin
ASTSBINDIR=$(INSTALL_PREFIX)/opt/asterisk/usr/sbin
ASTVARRUNDIR=$(INSTALL_PREFIX)/var/opt/asterisk/run
ASTMANDIR=$(INSTALL_PREFIX)/opt/asterisk/usr/share/man
MODULES_DIR=$(ASTLIBDIR)/modules
AGI_DIR=$(ASTVARLIBDIR)/agi-bin
endif
# Pentium Pro Optimize
#PROC=i686
# Pentium & VIA processors optimize
#PROC=i586
#PROC=k6
#PROC=ppc
#Uncomment this to use the older DSP routines
#CFLAGS+=-DOLD_DSP_ROUTINES
# Determine by a grep 'DocumentRoot' of your httpd.conf file
HTTP_DOCSDIR=/var/www/html
# Determine by a grep 'ScriptAlias' of your httpd.conf file
HTTP_CGIDIR=/var/www/cgi-bin
# If the file .asterisk.makeopts is present in your home directory, you can
# include all of your favorite Makefile options so that every time you download
# a new version of Asterisk, you don't have to edit the makefile to set them.
# The file, /etc/asterisk.makeopts will also be included, but can be overridden
# by the file in your home directory.
ifneq ($(wildcard /etc/asterisk.makeopts),)
include /etc/asterisk.makeopts
endif
ifneq ($(wildcard ~/.asterisk.makeopts),)
include ~/.asterisk.makeopts
endif
ifeq (${OSARCH},Linux)
ifeq ($(CROSS_COMPILE),)
PROC?=$(shell uname -m)
else
PROC=$(CROSS_PROC)
endif
ifeq ($(PROC),x86_64)
# You must have GCC 3.4 to use k8, otherwise use athlon
PROC=k8
#PROC=athlon
OPTIONS+=-m64
endif
ifeq ($(PROC),sparc64)
#The problem with sparc is the best stuff is in newer versions of gcc (post 3.0) only.
#This works for even old (2.96) versions of gcc and provides a small boost either way.
#A ultrasparc cpu is really v9 but the stock debian stable 3.0 gcc doesn't support it.
#So we go lowest common available by gcc and go a step down, still a step up from
#the default as we now have a better instruction set to work with. - Belgarath
PROC=ultrasparc
OPTIONS+=$(shell if $(CC) -mtune=$(PROC) -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-mtune=$(PROC)"; fi)
OPTIONS+=$(shell if $(CC) -mcpu=v8 -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-mcpu=v8"; fi)
OPTIONS+=-fomit-frame-pointer
endif
ifeq ($(PROC),arm)
# The Cirrus logic is the only heavily shipping arm processor with a real floating point unit
ifeq ($(SUB_PROC),maverick)
OPTIONS+=-fsigned-char -mcpu=ep9312
else
ifeq ($(SUB_PROC),xscale)
OPTIONS+=-fsigned-char -msoft-float -mcpu=xscale
else
OPTIONS+=-fsigned-char -msoft-float
endif
endif
endif
MPG123TARG=linux
endif
ifeq ($(findstring BSD,${OSARCH}),BSD)
PROC=$(shell uname -m)
endif
PWD=$(shell pwd)
GREP=grep
ifeq (${OSARCH},SunOS)
GREP=/usr/xpg4/bin/grep
M4=/usr/local/bin/m4
endif
INCLUDE=-Iinclude -I../include
CFLAGS=-pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations $(DEBUG) $(INCLUDE) -D_REENTRANT -D_GNU_SOURCE #-DMAKE_VALGRIND_HAPPY
CFLAGS+=-pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations $(DEBUG) $(INCLUDE) -D_REENTRANT -D_GNU_SOURCE #-DMAKE_VALGRIND_HAPPY
CFLAGS+=$(OPTIMIZE)
ifneq ($(PROC),ultrasparc)
CFLAGS+=$(shell if $(CC) -march=$(PROC) -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-march=$(PROC)"; fi)
CFLAGS+=$(shell if uname -m | grep -q ppc; then echo "-fsigned-char"; fi)
ifeq (${OSARCH},FreeBSD)
CFLAGS+=-pthread
INCLUDE+=-I/usr/local/include
endif
ifeq ($(PROC),ppc)
CFLAGS+=-fsigned-char
endif
CFLAGS+=$(shell if [ -f $(CROSS_COMPILE_TARGET)/usr/include/osp/osp.h ]; then echo "-DOSP_SUPPORT -I$(CROSS_COMPILE_TARGET)/usr/include/osp" ; fi)
ifeq (${OSARCH},FreeBSD)
OSVERSION=$(shell make -V OSVERSION -f $(CROSS_COMPILE_TARGET)/usr/share/mk/bsd.port.subdir.mk)
CFLAGS+=$(shell if test ${OSVERSION} -lt 500016 ; then echo "-D_THREAD_SAFE"; fi)
LIBS+=$(shell if test ${OSVERSION} -lt 502102 ; then echo "-lc_r"; else echo "-pthread"; fi) -L$(CROSS_COMPILE_TARGET)/usr/local/lib
INCLUDE+=-I$(CROSS_COMPILE_TARGET)/usr/local/include
CFLAGS+=$(shell if [ -d $(CROSS_COMPILE_TARGET)/usr/local/include/spandsp ]; then echo "-I$(CROSS_COMPILE_TARGET)/usr/local/include/spandsp"; fi)
MPG123TARG=freebsd
endif # FreeBSD
ifeq (${OSARCH},NetBSD)
CFLAGS+=-pthread
INCLUDE+=-I$(CROSS_COMPILE_TARGET)/usr/local/include -I$(CROSS_COMPILE_TARGET)/usr/pkg/include
MPG123TARG=netbsd
endif
ifeq (${OSARCH},OpenBSD)
CFLAGS+=-pthread
endif
ifeq (${OSARCH},SunOS)
CFLAGS+=-Wcast-align -DSOLARIS
INCLUDE+=-Iinclude/solaris-compat -I$(CROSS_COMPILE_TARGET)/usr/local/ssl/include
endif
# Comment this out if you have trouble with Feature B signalling (rare)
CFLAGS+=-DOLD_DSP_ROUTINES
CFLAGS+=$(shell if [ -f /usr/include/linux/zaptel.h ]; then echo "-DZAPTEL_OPTIMIZATIONS"; fi)
CFLAGS+=$(shell if [ -f $(CROSS_COMPILE_TARGET)/usr/include/linux/zaptel.h ]; then echo "-DZAPTEL_OPTIMIZATIONS"; fi)
CFLAGS+=$(shell if [ -f $(CROSS_COMPILE_TARGET)/usr/local/include/zaptel.h ]; then echo "-DZAPTEL_OPTIMIZATIONS"; fi)
LIBEDIT=editline/libedit.a
ASTERISKVERSION=$(shell if [ -f .version ]; then cat .version; else if [ -d CVS ]; then echo "CVS-`date +"%D-%T"`"; fi; fi)
HTTPDIR=$(shell if [ -d /var/www ]; then echo "/var/www"; else echo "/home/httpd"; fi)
ASTERISKVERSION=$(shell if [ -f .version ]; then cat .version; else if [ -d CVS ]; then if [ -f CVS/Tag ] ; then echo "CVS-`sed 's/^T//g' CVS/Tag`-`date +"%D-%T"`"; else echo "CVS-HEAD"; fi; fi; fi)
ASTERISKVERSIONNUM=$(shell if [ -d CVS ]; then echo 999999 ; else if [ -f .version ] ; then awk -F. '{printf "%02d%02d%02d", $$1, $$2, $$3}' .version ; else echo 000000 ; fi ; fi)
# Set the following two variables to match your httpd installation.
RPMVERSION=$(shell if [ -f .version ]; then sed 's/[-\/:]/_/g' .version; else echo "unknown" ; fi)
CFLAGS+=-DASTERISK_VERSION=\"$(ASTERISKVERSION)\"
CFLAGS+=-DINSTALL_PREFIX=\"$(INSTALL_PREFIX)\"
CFLAGS+=-DASTETCDIR=\"$(ASTETCDIR)\"
CFLAGS+=-DASTLIBDIR=\"$(ASTLIBDIR)\"
CFLAGS+=-DASTVARLIBDIR=\"$(ASTVARLIBDIR)\"
CFLAGS+=-DASTVARRUNDIR=\"$(ASTVARRUNDIR)\"
CFLAGS+=-DASTSPOOLDIR=\"$(ASTSPOOLDIR)\"
CFLAGS+=-DASTLOGDIR=\"$(ASTLOGDIR)\"
CFLAGS+=-DASTCONFPATH=\"$(ASTCONFPATH)\"
CFLAGS+=-DASTMODDIR=\"$(MODULES_DIR)\"
CFLAGS+=-DASTAGIDIR=\"$(AGI_DIR)\"
CFLAGS+= $(DEBUG_THREADS)
CFLAGS+= $(TRACE_FRAMES)
CFLAGS+= $(MALLOC_DEBUG)
CFLAGS+= $(BUSYDETECT)
CFLAGS+= $(OPTIONS)
CFLAGS+=# -fomit-frame-pointer
SUBDIRS=res channels pbx apps codecs formats agi cdr astman stdtime
CFLAGS+= -fomit-frame-pointer
SUBDIRS=res channels pbx apps codecs formats agi cdr funcs utils stdtime
ifeq (${OSARCH},Linux)
LIBS=-ldl -lpthread
endif
ifeq (${OSARCH},OpenBSD)
LIBS=-pthread
else
ifeq (${OSARCH},FreeBSD)
LIBS=-pthread
else
endif
endif
LIBS+=-lncurses -lm
ifeq (${OSARCH},Linux)
LIBS+=-lresolv #-lnjamd
endif
ifeq (${OSARCH},Darwin)
ifeq ($(shell uname -r),7.0.0)
LIBS+=-lresolv
CFLAGS+=-D__Darwin__
AUDIO_LIBS=-framework CoreAudio
endif
ifeq (${OSARCH},FreeBSD)
LIBS+=-lcrypto
endif
ifeq (${OSARCH},NetBSD)
LIBS+=-lpthread -lcrypto -lm -L$(CROSS_COMPILE_TARGET)/usr/local/lib -L$(CROSS_COMPILE_TARGET)/usr/pkg/lib -lncurses
endif
ifeq (${OSARCH},OpenBSD)
LIBS=-lcrypto -lpthread -lm -lncurses
endif
ifeq (${OSARCH},SunOS)
LIBS+=-lpthread -ldl -lnsl -lsocket -lresolv -L$(CROSS_COMPILE_TARGET)/usr/local/ssl/lib
endif
LIBS+=-lssl
OBJS=io.o sched.o logger.o frame.o loader.o config.o channel.o \
translate.o file.o say.o pbx.o cli.o md5.o term.o \
ulaw.o alaw.o callerid.o fskmodem.o image.o app.o \
cdr.o tdd.o acl.o rtp.o manager.o asterisk.o ast_expr.o \
cdr.o tdd.o acl.o rtp.o manager.o asterisk.o \
dsp.o chanvars.o indications.o autoservice.o db.o privacy.o \
astmm.o enum.o srv.o dns.o aescrypt.o aestab.o aeskey.o
astmm.o enum.o srv.o dns.o aescrypt.o aestab.o aeskey.o \
utils.o config_old.o plc.o jitterbuf.o dnsmgr.o devicestate.o \
netsock.o slinfactory.o ast_expr2.o ast_expr2f.o
ifeq (${OSARCH},Darwin)
OBJS+=poll.o dlfcn.o
ASTLINK=-Wl,-dynamic
@@ -178,8 +300,12 @@ else
ASTLINK=-Wl,-E
SOLINK=-shared -Xlinker -x
endif
ifeq (${OSARCH},SunOS)
OBJS+=strcompat.o
ASTLINK=
SOLINK=-shared -fpic -L$(CROSS_COMPILE_TARGET)/usr/local/ssl/lib
endif
CC=gcc
INSTALL=install
_all: all
@@ -191,7 +317,17 @@ _all: all
@echo " + $(MAKE) install +"
@echo " +-------------------------------------------+"
all: depend asterisk subdirs
all: cleantest depend asterisk subdirs
#ifneq ($(wildcard tags),)
ctags: tags
#endif
ifneq ($(wildcard TAGS),)
all: TAGS
endif
noclean: depend asterisk subdirs
editline/config.h:
cd editline && unset CFLAGS LIBS && ./configure ; \
@@ -212,30 +348,69 @@ ifneq ($(wildcard .depend),)
include .depend
endif
.PHONY: _version
_version:
if [ -d CVS ] && ! [ -f .version ]; then echo $(ASTERISKVERSION) > .version; fi
.version: _version
.y.c:
bison $< --name-prefix=ast_yy -o $@
ast_expr.o: ast_expr.c
cli.o: cli.c build.h
asterisk.o: asterisk.c build.h
ifneq ($(strip $(ASTERISKVERSION)),)
build.h: .version
./make_build_h
else
build.h:
./make_build_h
ifneq ($(wildcard .tags-depend),)
include .tags-depend
endif
ast_expr2.c:
bison -d --name-prefix=ast_yy ast_expr2.y -o ast_expr2.c
ast_expr2f.c:
flex ast_expr2.fl
testexpr2: ast_expr2f.c ast_expr2.c ast_expr2.h
gcc -g -c -DSTANDALONE ast_expr2f.c
gcc -g -c -DSTANDALONE ast_expr2.c
gcc -g -o testexpr2 ast_expr2f.o ast_expr2.o
rm ast_expr2.c ast_expr2.o ast_expr2f.o ast_expr2f.c
manpage: asterisk.8.gz
asterisk.8.gz: asterisk.sgml
rm -f asterisk.8
docbook2man asterisk.sgml
mv ./*.8 asterisk.8
gzip asterisk.8
asterisk.pdf: asterisk.sgml
docbook2pdf asterisk.sgml
asterisk.ps: asterisk.sgml
docbook2ps asterisk.sgml
asterisk.html: asterisk.sgml
docbook2html asterisk.sgml
mv r1.html asterisk.html
asterisk.txt: asterisk.sgml
docbook2txt asterisk.sgml
defaults.h: FORCE
build_tools/make_defaults_h > $@.tmp
if cmp -s $@.tmp $@ ; then echo ; else \
mv $@.tmp $@ ; \
fi
rm -f $@.tmp
include/asterisk/build.h:
build_tools/make_build_h > $@.tmp
if cmp -s $@.tmp $@ ; then echo ; else \
mv $@.tmp $@ ; \
fi
rm -f $@.tmp
# only force 'build.h' to be made for a non-'install' run
ifeq ($(findstring install,$(MAKECMDGOALS)),)
include/asterisk/build.h: FORCE
endif
include/asterisk/version.h: FORCE
build_tools/make_version_h > $@.tmp
if cmp -s $@.tmp $@ ; then echo; else \
mv $@.tmp $@ ; \
fi
rm -f $@.tmp
stdtime/libtime.a: FORCE
@if [ -d stdtime ]; then \
$(MAKE) -C stdtime libtime.a ; \
@@ -245,7 +420,10 @@ stdtime/libtime.a: FORCE
fi
asterisk: editline/libedit.a db1-ast/libdb1.a stdtime/libtime.a $(OBJS)
$(CC) $(DEBUG) -o asterisk $(ASTLINK) $(OBJS) $(LIBS) $(LIBEDIT) db1-ast/libdb1.a stdtime/libtime.a
$(CC) $(DEBUG) -o asterisk $(ASTLINK) $(OBJS) $(LIBEDIT) db1-ast/libdb1.a stdtime/libtime.a $(LIBS)
muted: muted.o
$(CC) $(AUDIO_LIBS) -o muted muted.o
subdirs:
for x in $(SUBDIRS); do $(MAKE) -C $$x || exit 1 ; done
@@ -253,25 +431,58 @@ subdirs:
clean:
for x in $(SUBDIRS); do $(MAKE) -C $$x clean || exit 1 ; done
rm -f *.o *.so asterisk .depend
rm -f build.h
rm -f ast_expr.c
@if [ -e editline/Makefile ]; then $(MAKE) -C editline distclean ; fi
rm -f defaults.h
rm -f include/asterisk/build.h
rm -f include/asterisk/version.h
rm -f .version
rm -f .tags-depend .tags-sources tags TAGS
@if [ -f editline/Makefile ]; then $(MAKE) -C editline distclean ; fi
@if [ -d mpg123-0.59r ]; then $(MAKE) -C mpg123-0.59r clean; fi
$(MAKE) -C db1-ast clean
$(MAKE) -C stdtime clean
datafiles: all
sh mkpkgconfig $(DESTDIR)/usr/lib/pkgconfig
mkdir -p $(DESTDIR)$(ASTVARLIBDIR)/sounds/digits
mkdir -p $(DESTDIR)$(ASTVARLIBDIR)/sounds/priv-callerintros
for x in sounds/digits/*.gsm; do \
if grep -q "^%`basename $$x`%" sounds.txt; then \
install $$x $(DESTDIR)$(ASTVARLIBDIR)/sounds/digits ; \
if $(GREP) -q "^%`basename $$x`%" sounds.txt; then \
install -m 644 $$x $(DESTDIR)$(ASTVARLIBDIR)/sounds/digits ; \
else \
echo "No description for $$x"; \
exit 1; \
fi; \
done
for x in sounds/vm-* sounds/transfer* sounds/pbx-* sounds/ss-* sounds/beep* sounds/dir-* sounds/conf-* sounds/agent-* sounds/invalid* sounds/tt-* sounds/auth-* sounds/privacy-*; do \
if grep -q "^%`basename $$x`%" sounds.txt; then \
install $$x $(DESTDIR)$(ASTVARLIBDIR)/sounds ; \
mkdir -p $(DESTDIR)$(ASTVARLIBDIR)/sounds/dictate
for x in sounds/dictate/*.gsm; do \
if $(GREP) -q "^%`basename $$x`%" sounds.txt; then \
install -m 644 $$x $(DESTDIR)$(ASTVARLIBDIR)/sounds/dictate ; \
else \
echo "No description for $$x"; \
exit 1; \
fi; \
done
mkdir -p $(DESTDIR)$(ASTVARLIBDIR)/sounds/letters
for x in sounds/letters/*.gsm; do \
if $(GREP) -q "^%`basename $$x`%" sounds.txt; then \
install -m 644 $$x $(DESTDIR)$(ASTVARLIBDIR)/sounds/letters ; \
else \
echo "No description for $$x"; \
exit 1; \
fi; \
done
mkdir -p $(DESTDIR)$(ASTVARLIBDIR)/sounds/phonetic
for x in sounds/phonetic/*.gsm; do \
if $(GREP) -q "^%`basename $$x`%" sounds.txt; then \
install -m 644 $$x $(DESTDIR)$(ASTVARLIBDIR)/sounds/phonetic ; \
else \
echo "No description for $$x"; \
exit 1; \
fi; \
done
for x in sounds/demo-* sounds/vm-* sounds/transfer* sounds/pbx-* sounds/ss-* sounds/beep* sounds/dir-* sounds/conf-* sounds/agent-* sounds/invalid* sounds/tt-* sounds/auth-* sounds/privacy-* sounds/queue-*; do \
if $(GREP) -q "^%`basename $$x`%" sounds.txt; then \
install -m 644 $$x $(DESTDIR)$(ASTVARLIBDIR)/sounds ; \
else \
echo "No description for $$x"; \
exit 1; \
@@ -280,57 +491,92 @@ datafiles: all
mkdir -p $(DESTDIR)$(ASTVARLIBDIR)/mohmp3
mkdir -p $(DESTDIR)$(ASTVARLIBDIR)/images
for x in images/*.jpg; do \
install $$x $(DESTDIR)$(ASTVARLIBDIR)/images ; \
install -m 644 $$x $(DESTDIR)$(ASTVARLIBDIR)/images ; \
done
mkdir -p $(DESTDIR)$(AGI_DIR)
update:
@if [ -d CVS ]; then \
if [ -f patches/.applied ]; then \
patches=`cat patches/.applied`; \
fi; \
if [ ! -z "$$patches" ]; then \
for x in $$patches; do \
echo "Unapplying $$x..."; \
patch -R -p0 < patches/$$x; \
done; \
rm -f patches/.applied; \
fi ; \
echo "Updating from CVS..." ; \
cvs -q update -Pd; \
cvs -q -z3 update -Pd | tee update.out; \
rm -f .version; \
if [ `grep -c ^C update.out` -gt 0 ]; then \
echo ; echo "The following files have conflicts:" ; \
grep ^C update.out | cut -d' ' -f2- ; \
fi ; \
rm -f update.out; \
if [ ! -z "$$patches" ]; then \
for x in $$patches; do \
if [ -f patches/$$x ]; then \
echo "Applying patch $$x..."; \
patch -p0 < patches/$$x; \
echo $$x >> patches/.applied; \
else \
echo "Patch $$x no longer relevant"; \
fi; \
done; \
fi; \
else \
echo "Not CVS"; \
fi
NEWHEADERS=$(notdir $(wildcard include/asterisk/*.h))
OLDHEADERS=$(filter-out $(NEWHEADERS),$(notdir $(wildcard $(DESTDIR)$(ASTHEADERDIR)/*.h)))
bininstall: all
mkdir -p $(DESTDIR)$(MODULES_DIR)
mkdir -p $(DESTDIR)$(ASTSBINDIR)
mkdir -p $(DESTDIR)$(ASTETCDIR)
mkdir -p $(DESTDIR)$(ASTBINDIR)
mkdir -p $(DESTDIR)$(ASTSBINDIR)
mkdir -p $(DESTDIR)$(ASTVARRUNDIR)
mkdir -p $(DESTDIR)$(ASTSPOOLDIR)/voicemail
mkdir -p $(DESTDIR)$(ASTSPOOLDIR)/dictate
mkdir -p $(DESTDIR)$(ASTSPOOLDIR)/system
mkdir -p $(DESTDIR)$(ASTSPOOLDIR)/tmp
mkdir -p $(DESTDIR)$(ASTSPOOLDIR)/meetme
install -m 755 asterisk $(DESTDIR)$(ASTSBINDIR)/
install -m 755 contrib/scripts/astgenkey $(DESTDIR)$(ASTSBINDIR)/
install -m 755 contrib/scripts/autosupport $(DESTDIR)$(ASTSBINDIR)/
if [ ! -f $(DESTDIR)$(ASTSBINDIR)/safe_asterisk ]; then \
install -m 755 contrib/scripts/safe_asterisk $(DESTDIR)$(ASTSBINDIR)/ ;\
cat contrib/scripts/safe_asterisk | sed 's|__ASTERISK_SBIN_DIR__|$(ASTSBINDIR)|;' > $(DESTDIR)$(ASTSBINDIR)/safe_asterisk ;\
fi
for x in $(SUBDIRS); do $(MAKE) -C $$x install || exit 1 ; done
install -d $(DESTDIR)$(ASTHEADERDIR)
install include/asterisk/*.h $(DESTDIR)$(ASTHEADERDIR)
rm -f $(DESTDIR)$(ASTVARLIBDIR)/sounds/vm
rm -f $(DESTDIR)$(ASTVARLIBDIR)/sounds/voicemail
if [ ! -h $(DESTDIR)$(ASTSPOOLDIR)/vm ] && [ -d $(DESTDIR)$(ASTSPOOLDIR)/vm ]; then \
mv $(DESTDIR)$(ASTSPOOLDIR)/vm $(DESTDIR)$(ASTSPOOLDIR)/voicemail/default; \
else \
mkdir -p $(DESTDIR)$(ASTSPOOLDIR)/voicemail/default; \
rm -f $(DESTDIR)$(ASTSPOOLDIR)/vm; \
install -m 644 include/asterisk/*.h $(DESTDIR)$(ASTHEADERDIR)
if [ -n "$(OLDHEADERS)" ]; then \
rm -f $(addprefix $(DESTDIR)$(ASTHEADERDIR)/,$(OLDHEADERS)) ;\
fi
ln -s $(ASTSPOOLDIR)/voicemail/default $(DESTDIR)$(ASTSPOOLDIR)/vm
rm -f $(DESTDIR)$(MODULES_DIR)/chan_ixj.so
rm -f $(DESTDIR)$(MODULES_DIR)/chan_tor.so
rm -f $(DESTDIR)$(MODULES_DIR)/cdr_mysql.so
rm -f $(DESTDIR)$(MODULES_DIR)/cdr_unixodbc.so
rm -f $(DESTDIR)$(MODULES_DIR)/codec_mp3_d.so
rm -f $(DESTDIR)$(MODULES_DIR)/format_mp3.so
rm -f $(DESTDIR)$(MODULES_DIR)/app_voicemail2.so
rm -f $(DESTDIR)$(ASTVARLIBDIR)/sounds/voicemail
mkdir -p $(DESTDIR)$(ASTVARLIBDIR)/sounds
mkdir -p $(DESTDIR)$(ASTLOGDIR)/cdr-csv
mkdir -p $(DESTDIR)$(ASTLOGDIR)/cdr-custom
mkdir -p $(DESTDIR)$(ASTVARLIBDIR)/keys
mkdir -p $(DESTDIR)$(ASTVARLIBDIR)/firmware
mkdir -p $(DESTDIR)$(ASTVARLIBDIR)/firmware/iax
mkdir -p $(DESTDIR)$(ASTMANDIR)/man8
install -m 644 keys/iaxtel.pub $(DESTDIR)$(ASTVARLIBDIR)/keys
( cd $(DESTDIR)$(ASTVARLIBDIR)/sounds ; ln -s $(ASTSPOOLDIR)/vm . )
install -m 644 keys/freeworlddialup.pub $(DESTDIR)$(ASTVARLIBDIR)/keys
install -m 644 asterisk.8.gz $(DESTDIR)$(ASTMANDIR)/man8
install -m 644 contrib/scripts/astgenkey.8 $(DESTDIR)$(ASTMANDIR)/man8
install -m 644 contrib/scripts/autosupport.8 $(DESTDIR)$(ASTMANDIR)/man8
install -m 644 contrib/scripts/safe_asterisk.8 $(DESTDIR)$(ASTMANDIR)/man8
if [ -d contrib/firmware/iax ]; then \
install -m 644 contrib/firmware/iax/iaxy.bin $(DESTDIR)$(ASTVARLIBDIR)/firmware/iax/iaxy.bin; \
else \
echo "You need to do cvs update -d not just cvs update" ; \
fi
( cd $(DESTDIR)$(ASTVARLIBDIR)/sounds ; ln -s $(ASTSPOOLDIR)/voicemail . )
if [ -f mpg123-0.59r/mpg123 ]; then $(MAKE) -C mpg123-0.59r install; fi
@echo " +---- Asterisk Installation Complete -------+"
@echo " + +"
@echo " + YOU MUST READ THE SECURITY DOCUMENT +"
@@ -352,93 +598,150 @@ bininstall: all
@echo " + **Note** This requires that you have +"
@echo " + doxygen installed on your local system +"
@echo " +-------------------------------------------+"
@$(MAKE) -s oldmodcheck
NEWMODS=$(notdir $(wildcard */*.so))
OLDMODS=$(filter-out $(NEWMODS),$(notdir $(wildcard $(DESTDIR)$(MODULES_DIR)/*.so)))
oldmodcheck:
@if [ -n "$(OLDMODS)" ]; then \
echo " WARNING WARNING WARNING" ;\
echo "" ;\
echo " Your Asterisk modules directory, located at" ;\
echo " $(DESTDIR)$(MODULES_DIR)" ;\
echo " contains modules that were not installed by this " ;\
echo " version of Asterisk. Please ensure that these" ;\
echo " modules are compatible with this version before" ;\
echo " attempting to run Asterisk." ;\
echo "" ;\
for f in $(OLDMODS); do \
echo " $$f" ;\
done ;\
echo "" ;\
echo " WARNING WARNING WARNING" ;\
fi
install: all datafiles bininstall
upgrade: all bininstall
adsi: all
adsi:
mkdir -p $(DESTDIR)$(ASTETCDIR)
for x in configs/*.adsi; do \
if ! [ -f $(DESTDIR)$(ASTETCDIRX)/$$x ]; then \
if [ ! -f $(DESTDIR)$(ASTETCDIRX)/$$x ]; then \
install -m 644 $$x $(DESTDIR)$(ASTETCDIR)/`basename $$x` ; \
fi ; \
done
samples: all datafiles adsi
samples: adsi
mkdir -p $(DESTDIR)$(ASTETCDIR)
for x in configs/*.sample; do \
if [ -f $(DESTDIR)$(ASTETCDIR)/`basename $$x .sample` ]; then \
mv -f $(DESTDIR)$(ASTETCDIR)/`basename $$x .sample` $(DESTDIR)$(ASTETCDIR)/`basename $$x .sample`.old ; \
if [ "$(OVERWRITE)" = "y" ]; then \
if cmp -s $(DESTDIR)$(ASTETCDIR)/`basename $$x .sample` $$x ; then \
echo "Config file $$x is unchanged"; \
continue; \
fi ; \
mv -f $(DESTDIR)$(ASTETCDIR)/`basename $$x .sample` $(DESTDIR)$(ASTETCDIR)/`basename $$x .sample`.old ; \
else \
echo "Skipping config file $$x"; \
continue; \
fi ;\
fi ; \
install $$x $(DESTDIR)$(ASTETCDIR)/`basename $$x .sample` ;\
install -m 644 $$x $(DESTDIR)$(ASTETCDIR)/`basename $$x .sample` ;\
done
echo "[directories]" > $(DESTDIR)$(ASTETCDIR)/asterisk.conf
echo "astetcdir => $(ASTETCDIR)" >> $(DESTDIR)$(ASTETCDIR)/asterisk.conf
echo "astmoddir => $(MODULES_DIR)" >> $(DESTDIR)$(ASTETCDIR)/asterisk.conf
echo "astvarlibdir => $(ASTVARLIBDIR)" >> $(DESTDIR)$(ASTETCDIR)/asterisk.conf
echo "astagidir => $(AGI_DIR)" >> $(DESTDIR)$(ASTETCDIR)/asterisk.conf
echo "astspooldir => $(ASTSPOOLDIR)" >> $(DESTDIR)$(ASTETCDIR)/asterisk.conf
echo "astrundir => $(ASTVARRUNDIR)" >> $(DESTDIR)$(ASTETCDIR)/asterisk.conf
echo "astlogdir => $(ASTLOGDIR)" >> $(DESTDIR)$(ASTETCDIR)/asterisk.conf
if [ "$(OVERWRITE)" = "y" ] || [ ! -f $(DESTDIR)$(ASTETCDIR)/asterisk.conf ]; then \
echo "[directories]" > $(DESTDIR)$(ASTETCDIR)/asterisk.conf ; \
echo "astetcdir => $(ASTETCDIR)" >> $(DESTDIR)$(ASTETCDIR)/asterisk.conf ; \
echo "astmoddir => $(MODULES_DIR)" >> $(DESTDIR)$(ASTETCDIR)/asterisk.conf ; \
echo "astvarlibdir => $(ASTVARLIBDIR)" >> $(DESTDIR)$(ASTETCDIR)/asterisk.conf ; \
echo "astagidir => $(AGI_DIR)" >> $(DESTDIR)$(ASTETCDIR)/asterisk.conf ; \
echo "astspooldir => $(ASTSPOOLDIR)" >> $(DESTDIR)$(ASTETCDIR)/asterisk.conf ; \
echo "astrundir => $(ASTVARRUNDIR)" >> $(DESTDIR)$(ASTETCDIR)/asterisk.conf ; \
echo "astlogdir => $(ASTLOGDIR)" >> $(DESTDIR)$(ASTETCDIR)/asterisk.conf ; \
echo "" >> $(DESTDIR)$(ASTETCDIR)/asterisk.conf ; \
echo "; Changing the following lines may compromise your security." >> $(DESTDIR)$(ASTETCDIR)/asterisk.conf ; \
echo ";[files]" >> $(DESTDIR)$(ASTETCDIR)/asterisk.conf ; \
echo ";astctlpermissions = 0660" >> $(DESTDIR)$(ASTETCDIR)/asterisk.conf ; \
echo ";astctlowner = root" >> $(DESTDIR)$(ASTETCDIR)/asterisk.conf ; \
echo ";astctlgroup = apache" >> $(DESTDIR)$(ASTETCDIR)/asterisk.conf ; \
echo ";astctl = asterisk.ctl" >> $(DESTDIR)$(ASTETCDIR)/asterisk.conf ; \
else \
echo "Skipping asterisk.conf creation"; \
fi
mkdir -p $(DESTDIR)$(ASTVARLIBDIR)/sounds ; \
for x in sounds/demo-*; do \
if grep -q "^%`basename $$x`%" sounds.txt; then \
install $$x $(DESTDIR)$(ASTVARLIBDIR)/sounds ; \
if $(GREP) -q "^%`basename $$x`%" sounds.txt; then \
install -m 644 $$x $(DESTDIR)$(ASTVARLIBDIR)/sounds ; \
else \
echo "No description for $$x"; \
exit 1; \
fi; \
done
mkdir -p $(DESTDIR)$(ASTVARLIBDIR)/mohmp3 ; \
for x in sounds/*.mp3; do \
install $$x $(DESTDIR)$(ASTVARLIBDIR)/mohmp3 ; \
install -m 644 $$x $(DESTDIR)$(ASTVARLIBDIR)/mohmp3 ; \
done
rm -f $(DESTDIR)$(ASTVARLIBDIR)/mohmp3/sample-hold.mp3
mkdir -p $(DESTDIR)$(ASTSPOOLDIR)/voicemail/default/1234/INBOX
:> $(DESTDIR)$(ASTSPOOLDIR)/voicemail/default/1234/unavail.gsm
for x in vm-theperson digits/1 digits/2 digits/3 digits/4 vm-isunavail; do \
cat $(DESTDIR)$(ASTVARLIBDIR)/sounds/$$x.gsm >> $(DESTDIR)$(ASTSPOOLDIR)/voicemail/default/1234/unavail.gsm ; \
done
:> $(DESTDIR)$(ASTVARLIBDIR)/sounds/voicemail/default/1234/busy.gsm
:> $(DESTDIR)$(ASTSPOOLDIR)/voicemail/default/1234/busy.gsm
for x in vm-theperson digits/1 digits/2 digits/3 digits/4 vm-isonphone; do \
cat $(DESTDIR)$(ASTVARLIBDIR)/sounds/$$x.gsm >> $(DESTDIR)$(ASTSPOOLDIR)/voicemail/default/1234/busy.gsm ; \
done
webvmail:
@[ -d $(DESTDIR)$(HTTPDIR) ] || ( echo "No HTTP directory" && exit 1 )
@[ -d $(DESTDIR)$(HTTPDIR)/html ] || ( echo "No http directory" && exit 1 )
@[ -d $(DESTDIR)$(HTTPDIR)/cgi-bin ] || ( echo "No cgi-bin directory" && exit 1 )
install -m 4755 -o root -g root contrib/scripts/vmail.cgi $(DESTDIR)$(HTTPDIR)/cgi-bin/vmail.cgi
mkdir -p $(DESTDIR)$(HTTPDIR)/html/_asterisk
@[ -d $(DESTDIR)$(HTTP_DOCSDIR)/ ] || ( printf "http docs directory not found.\nUpdate assignment of variable HTTP_DOCSDIR in Makefile!\n" && exit 1 )
@[ -d $(DESTDIR)$(HTTP_CGIDIR) ] || ( printf "cgi-bin directory not found.\nUpdate assignment of variable HTTP_CGIDIR in Makefile!\n" && exit 1 )
install -m 4755 -o root -g root contrib/scripts/vmail.cgi $(DESTDIR)$(HTTP_CGIDIR)/vmail.cgi
mkdir -p $(DESTDIR)$(HTTP_DOCSDIR)/_asterisk
for x in images/*.gif; do \
install -m 644 $$x $(DESTDIR)$(HTTPDIR)/html/_asterisk/; \
install -m 644 $$x $(DESTDIR)$(HTTP_DOCSDIR)/_asterisk/; \
done
@echo " +--------- Asterisk Web Voicemail ----------+"
@echo " + +"
@echo " + Asterisk Web Voicemail is installed in +"
@echo " + your cgi-bin directory. IT USES A SETUID +"
@echo " + ROOT PERL SCRIPT, SO IF YOU DON'T LIKE +"
@echo " + THAT, UNINSTALL IT! +"
@echo " + your cgi-bin directory: +"
@echo " + $(DESTDIR)$(HTTP_CGIDIR)"
@echo " + IT USES A SETUID ROOT PERL SCRIPT, SO +"
@echo " + IF YOU DON'T LIKE THAT, UNINSTALL IT! +"
@echo " + +"
@echo " + Other static items have been stored in: +"
@echo " + $(DESTDIR)$(HTTP_DOCSDIR)"
@echo " + +"
@echo " + If these paths do not match your httpd +"
@echo " + installation, correct the definitions +"
@echo " + in your Makefile of HTTP_CGIDIR and +"
@echo " + HTTP_DOCSDIR +"
@echo " + +"
@echo " +-------------------------------------------+"
mailbox:
./contrib/scripts/addmailbox
spec:
sed "s/^Version:.*/Version: $(RPMVERSION)/g" redhat/asterisk.spec > asterisk.spec ; \
rpm: __rpm
__rpm: _version
__rpm: include/asterisk/version.h spec
rm -rf /tmp/asterisk ; \
mkdir -p /tmp/asterisk/redhat/RPMS/i386 ; \
$(MAKE) DESTDIR=/tmp/asterisk install ; \
$(MAKE) DESTDIR=/tmp/asterisk samples ; \
mkdir -p /tmp/asterisk/etc/rc.d/init.d ; \
cp -f redhat/asterisk /tmp/asterisk/etc/rc.d/init.d/ ; \
sed "s/^Version:.*/Version: $(RPMVERSION)/g" redhat/asterisk.spec > asterisk.spec ; \
rpmbuild --rcfile /usr/lib/rpm/rpmrc:redhat/rpmrc -bb asterisk.spec
progdocs:
doxygen contrib/asterisk-ng-doxygen
mpg123:
@wget -V >/dev/null || (echo "You need wget" ; false )
[ -f mpg123-0.59r.tar.gz ] || wget http://www.mpg123.de/mpg123/mpg123-0.59r.tar.gz
[ -d mpg123-0.59r ] || tar xfz mpg123-0.59r.tar.gz
$(MAKE) -C mpg123-0.59r $(MPG123TARG)
config:
if [ -d /etc/rc.d/init.d ]; then \
install -m 755 contrib/init.d/rc.redhat.asterisk /etc/rc.d/init.d/asterisk; \
@@ -447,16 +750,101 @@ config:
install -m 755 init.asterisk /etc/init.d/asterisk; \
fi
dont-optimize:
$(MAKE) OPTIMIZE= K6OPT= install
valgrind: dont-optimize
depend: .depend
depend: include/asterisk/build.h include/asterisk/version.h .depend defaults.h
for x in $(SUBDIRS); do $(MAKE) -C $$x depend || exit 1 ; done
.depend:
./mkdep ${CFLAGS} `ls *.c`
.depend: include/asterisk/version.h
build_tools/mkdep ${CFLAGS} $(wildcard *.c)
.tags-depend:
@echo -n ".tags-depend: " > $@
@find . -maxdepth 1 -name \*.c -printf "\t%p \\\\\n" >> $@
@find . -maxdepth 1 -name \*.h -printf "\t%p \\\\\n" >> $@
@find ${SUBDIRS} -name \*.c -printf "\t%p \\\\\n" >> $@
@find ${SUBDIRS} -name \*.h -printf "\t%p \\\\\n" >> $@
@find include -name \*.h -printf "\t%p \\\\\n" >> $@
@echo >> $@
.tags-sources:
@rm -f $@
@find . -maxdepth 1 -name \*.c -print >> $@
@find . -maxdepth 1 -name \*.h -print >> $@
@find ${SUBDIRS} -name \*.c -print >> $@
@find ${SUBDIRS} -name \*.h -print >> $@
@find include -name \*.h -print >> $@
tags: .tags-depend .tags-sources
ctags -L .tags-sources -o $@
ctags: tags
TAGS: .tags-depend .tags-sources
etags -o $@ `cat .tags-sources`
etags: TAGS
FORCE:
%_env:
$(MAKE) -C $(shell echo $@ | sed "s/_env//g") env
env:
env
# If the cleancount has been changed, force a make clean.
# .cleancount is the global clean count, and .lastclean is the
# last clean count we had
# We can avoid this by making noclean
cleantest:
if cmp -s .cleancount .lastclean ; then echo ; else \
$(MAKE) clean; cp -f .cleancount .lastclean;\
fi
patchlist:
@echo "Experimental Patches:"
@for x in patches/*; do \
patch=`basename $$x`; \
if [ "$$patch" = "CVS" ]; then \
continue; \
fi; \
if grep -q ^$$patch$$ patches/.applied; then \
echo "$$patch (applied)"; \
else \
echo "$$patch (available)"; \
fi; \
done
apply:
@if [ -z "$(PATCH)" ]; then \
echo "Usage: make PATCH=<patchname> apply"; \
elif grep -q ^$(PATCH)$$ patches/.applied 2>/dev/null; then \
echo "Patch $(PATCH) is already applied"; \
elif [ -f "patches/$(PATCH)" ]; then \
echo "Applying patch $(PATCH)"; \
patch -p0 < patches/$(PATCH); \
echo "$(PATCH)" >> patches/.applied; \
else \
echo "No such patch $(PATCH) in patches directory"; \
fi
unapply:
@if [ -z "$(PATCH)" ]; then \
echo "Usage: make PATCH=<patchname> unapply"; \
elif grep -v -q ^$(PATCH)$$ patches/.applied 2>/dev/null; then \
echo "Patch $(PATCH) is not applied"; \
elif [ -f "patches/$(PATCH)" ]; then \
echo "Un-applying patch $(PATCH)"; \
patch -p0 -R < patches/$(PATCH); \
rm -f patches/.tmpapplied || :; \
mv patches/.applied patches/.tmpapplied; \
cat patches/.tmpapplied | grep -v ^$(PATCH)$$ > patches/.applied; \
rm -f patches/.tmpapplied; \
else \
echo "No such patch $(PATCH) in patches directory"; \
fi

179
README Executable file → Normal file
View File

@@ -1,6 +1,6 @@
The Asterisk Open Source PBX
by Mark Spencer <markster@digium.com>
Copyright (C) 2001-2004 Digium
Copyright (C) 2001-2005 Digium, Inc.
================================================================
* SECURITY
It is imperative that you read and fully understand the contents of
@@ -14,24 +14,31 @@ on the project itself, please visit the Asterisk home page at:
http://www.asterisk.org
In addition you'll find lots of information compiled by the Asterisk
community on this Wiki:
http://www.voip-info.org/wiki-Asterisk
* LICENSING
Asterisk is distributed under GNU General Public License. The GPL also
must apply to all loadable modules as well, except as defined below.
Digium, Inc. (formerly Linux Support Services) retains copyright to all
of the core Asterisk system, and therefore can grant, at its sole discression,
the ability for companies, individuals, or organizations to create proprietary
or Open Source (but non-GPL'd) modules which may be dynamically linked at
runtime with the portions of Asterisk which fall under our copyright
umbrella, or are distributed under more flexible licenses than GPL.
Asterisk is distributed under GNU General Public License and is also
available under alternative licenses negotiated directly with Digium, Inc.
If you obtained Asterisk under the GPL, then the GPL applies to all
loadable modules used on your system as well, except as defined below.
Digium, Inc. (formerly Linux Support Services) retains copyright and/or a
sufficient license to all components of the core Asterisk system, and therefore
can grant, at its sole discretion, the ability for companies, individuals, or
organizations to create proprietary or Open Source (but non-GPL'd) modules
which may be dynamically linked at runtime with the portions of Asterisk which
fall under our copyright/license umbrella, or are distributed under more
flexible licenses than GPL.
If you wish to use our code in other GPL programs, don't worry -- there
is no requirement that you provide the same exemption in your GPL'd
is no requirement that you provide the same exception in your GPL'd
products (although if you've written a module for Asterisk we would
strongly encourage you to make the same excemption that we do).
strongly encourage you to make the same exception that we do).
Specific permission is also granted to OpenSSL and OpenH323 to link to
Specific permission is also granted to OpenSSL and OpenH323 to link with
Asterisk.
If you have any questions, whatsoever, regarding our licensing policy,
@@ -40,64 +47,88 @@ please contact us.
Modules that are GPL-licensed and not available under Digium's
licensing scheme are added to the Asterisk-addons CVS module.
* REQUIRED COMPONENTS
* OPERATING SYSTEMS
== Linux ==
Currently, the Asterisk Open Source PBX is only known to run on the
Linux OS, although it may be portable to other UNIX-like operating systems
as well.
The Asterisk Open Source PBX is developed and tested primarily on the
GNU/Linux operating system, and is supported on every major GNU/Linux
distribution.
== Others ==
Asterisk has also been 'ported' and reportedly runs properly on other
operating systems as well, including Sun Solaris, Apple's Mac OS X, and
the BSD variants.
* GETTING STARTED
First, be sure you've got supported hardware. To use Asterisk right now,
you will need one of the following:
First, be sure you've got supported hardware (but note that you don't need
ANY special hardware, not even a soundcard) to install and run Asterisk.
Supported telephony hardware includes:
* All Wildcard (tm) products from Digium (www.digium.com)
* QuickNet Internet PhoneJack and LineJack (http://www.quicknet.net)
* Full Duplex Sound Card supported by Linux
* Adtran Atlas 800 Plus
* any full duplex sound card supported by ALSA or OSS
* ISDN4Linux compatible ISDN card
* Tormenta Dual T1 card (www.bsdtelephony.com.mx)
* VoiceTronix OpenLine products
Assuming you have one of these (most likely the third) you're ready to
proceed:
Hint: CAPI compatible ISDN cards can be run using the add-on channel chan_capi.
Second, ensure that your system contains a compatible compiler and development
libraries. Asterisk requires either the GNU Compiler Collection (GCC) version
3.0 or higher, or a compiler that supports the C99 specification and some of
the gcc language extensions. In addition, your system needs to have the C
library headers available, and the headers and libraries for OpenSSL and zlib.
On many distributions, these files are installed by packages with names like
'libc-devel', 'openssl-devel' and 'zlib-devel' or similar.
So let's proceed:
1) Run "make"
Assuming the build completes successfully:
2) Run "make install"
If this is your first time working with Asterisk, you may wish to install
Each time you update or checkout from CVS, you are strongly encouraged
to ensure all previous object files are removed to avoid internal
inconsistency in Asterisk. Normally, this is automatically done with
the presence of the file .cleancount, which increments each time a 'make clean'
is required, and the file .lastclean, which contains the last .cleancount used.
If this is your first time working with Asterisk, you may wish to install
the sample PBX, with demonstration extensions, etc. If so, run:
"make samples"
3) "make samples"
Doing so will overwrite any existing config files you have.
Doing so will overwrite any existing config files you have. If you are lacking a
soundcard you won't be able to use the DIAL command on the console, though.
Finally, you can launch Asterisk with:
Finally, you can launch Asterisk with:
./asterisk -vvvc
# asterisk -vvvc
You'll see a bunch of verbose messages fly by your screen as Asterisk
You'll see a bunch of verbose messages fly by your screen as Asterisk
initializes (that's the "very very verbose" mode). When it's ready, if
you specified the "c" then you'll get a command line console, that looks
like this:
*CLI>
You can type "help" at any time to get help with the system. For help
You can type "help" at any time to get help with the system. For help
with a specific command, type "help <command>". To start the PBX using
your sound card, you can type "dial" to dial the PBX. Then you can use
"answer", "hangup", and "dial" to simulate the actions of a telephone.
Remember that if you don't have a full duplex sound card (And asterisk
will tell you somewhere in its verbose messages if you do/don't) than it
Remember that if you don't have a full duplex sound card (and Asterisk
will tell you somewhere in its verbose messages if you do/don't) then it
won't work right (not yet).
Feel free to look over the configuration files in /etc/asterisk, where
Feel free to look over the configuration files in /etc/asterisk, where
you'll find a lot of information about what you can do with Asterisk.
* ABOUT CONFIGURATION FILES
All Asterisk configuration files share a common format. Comments are
All Asterisk configuration files share a common format. Comments are
delimited by ';' (since '#' of course, being a DTMF digit, may occur in
many places). A configuration file is divided into sections whose names
appear in []'s. Each section typically contains two types of statements,
@@ -106,12 +137,12 @@ parameters'. Internally the use of '=' and '=>' is exactly the same, so
they're used only to help make the configuration file easier to
understand, and do not affect how it is actually parsed.
Entries of the form 'variable=value' set the value of some parameter in
asterisk. For example, in tormenta.conf, one might specify:
Entries of the form 'variable=value' set the value of some parameter in
asterisk. For example, in zapata.conf, one might specify:
switchtype=national
In order to indicate to Asterisk that the switch they are connecting to is
in order to indicate to Asterisk that the switch they are connecting to is
of the type "national". In general, the parameter will apply to
instantiations which occur below its specification. For example, if the
configuration file read:
@@ -122,24 +153,84 @@ configuration file read:
switchtype = dms100
channel => 25-47
Then, the "national" switchtype would be applied to channels one through
the "national" switchtype would be applied to channels one through
four and channels 10 through 12, whereas the "dms100" switchtype would
apply to channels 25 through 47.
The "object => parameters" instantiates an object with the given
The "object => parameters" instantiates an object with the given
parameters. For example, the line "channel => 25-47" creates objects for
the channels 25 through 47 of the tormenta card, obtaining the settings
the channels 25 through 47 of the card, obtaining the settings
from the variables specified above.
* SPECIAL NOTE ON TIME
Those using SIP phones should be aware that Asterisk is sensitive to
large jumps in time. Manually changing the system time using date(1)
(or other similar commands) may cause SIP registrations and other
internal processes to fail. If your system cannot keep accurate time
by itself use NTP (http://www.ntp.org/) to keep the system clock
synchronized to "real time". NTP is designed to keep the system clock
synchronized by speeding up or slowing down the system clock until it
is synchronized to "real time" rather than by jumping the time and
causing discontinuities. Most Linux distributions include precompiled
versions of NTP. Beware of some time synchronization methods that get
the correct real time periodically and then manually set the system
clock.
Apparent time changes due to daylight savings time are just that,
apparent. The use of daylight savings time in a Linux system is
purely a user interface issue and does not affect the operation of the
Linux kernel or Asterisk. The system clock on Linux kernels operates
on UTC. UTC does not use daylight savings time.
Also note that this issue is separate from the clocking of TDM
channels, and is known to at least affect SIP registrations.
* FILE DESCRIPTORS
Depending on the size of your system and your configuration,
Asterisk can consume a large number of file descriptors. In UNIX,
file descriptors are used for more than just files on disk. File
descriptors are also used for handling network communication
(e.g. SIP, IAX2, or H.323 calls) and hardware access (e.g. analog and
digital trunk hardware). Asterisk accesses many on-disk files for
everything from configuration information to voicemail storage.
Most systems limit the number of file descriptors that Asterisk can
have open at one time. This can limit the number of simultaneous
calls that your system can handle. For example, if the limit is set
at 1024 (a common default value) Asterisk can handle approxiately 150
SIP calls simultaneously. To change the number of file descriptors
follow the instructions for your system below:
== PAM-based Linux System ==
If your system uses PAM (Pluggable Authentication Modules) edit
/etc/security/limits.conf. Add these lines to the bottom of the file:
root soft nofile 4096
root hard nofile 8196
asterisk soft nofile 4096
asterisk hard nofile 8196
(adjust the numbers to taste). You may need to reboot the system for
these changes to take effect.
== Generic UNIX System ==
If there are no instructions specifically adapted to your system
above you can try adding the command "ulimit -n 8192" to the script
that starts Asterisk.
* MORE INFORMATION
See the doc directory for more documentation.
See the doc directory for more documentation.
Finally, you may wish to visit the web site and join the mailing list if
Finally, you may wish to visit the web site and join the mailing list if
you're interested in getting more information.
http://www.asterisk.org/index.php?menu=support
Welcome to the growing worldwide community of Asterisk users!
Welcome to the growing worldwide community of Asterisk users!
Mark Spencer

22
README.opsound Normal file
View File

@@ -0,0 +1,22 @@
About Hold Music
================
These files were obtained from http://opsound.org, where the authors placed them
under the Creative Commons Attribution-Share Alike 2.5 license, a copy of which
may be found at http://creativecommons.org.
Credits
================
macroform-cold_day - Paul Shuler (Macroform)
paulshuler@gmail.com - http://macroform.bandcamp.com/
macroform-robot_dity - Paul Shuler (Macroform)
paulshuler@gmail.com - http://macroform.bandcamp.com/
macroform-the_simplicity - Paul Shuler (Macroform)
paulshuler@gmail.com - http://macroform.bandcamp.com/
manolo_camp-morning_coffee - Manolo Camp
beatbastard@gmx.net - http://ccmixter.org/people/ManoloCamp
reno_project-system - Reno Project
renoproject@hotmail.com - http://www.jamendo.com/en/album/23661

6
SECURITY Executable file → Normal file
View File

@@ -25,15 +25,15 @@ the "default" context within other private contexts by using:
in the appropriate section. A well designed PBX might look like this:
[longdistance]
exten => _91NXXNXXXXXX,1,Dial,Tor/g2/BYEXTENSION
exten => _91NXXNXXXXXX,1,Dial(Zap/g2/${EXTEN:1})
include => local
[local]
exten => _9NXXNXXX,1,Dial,Tor/g2/BYEXTENSION
exten => _9NXXNXXX,1,Dial(Zap/g2/${EXTEN:1})
include => default
[default]
exten => 6123,Dial,Tor/1
exten => 6123,Dial(Zap/1)
DON'T FORGET TO TAKE THE DEMO CONTEXT OUT OF YOUR DEFAULT CONTEXT. There

145
UPGRADE.txt Normal file
View File

@@ -0,0 +1,145 @@
Information for Upgrading From Asterisk 1.0
===========================================
Compiling:
* The Asterisk 1.2 source code now uses C language features
supported only by 'modern' C compilers. Generally, this means GCC
version 3.0 or higher, although some GCC 2.96 releases will also
work. Some non-GCC compilers that support C99 and the common GCC
extensions (including anonymous structures and unions) will also
work. All releases of GCC 2.95 do _not_ have the requisite feature
support; systems using that compiler will need to be upgraded to
a more recent compiler release.
Agents:
* The default for ackcall has been changed to "no" instead of "yes"
because of a bug which caused the "yes" behavior to generally act like
"no". You may need to adjust the value if your agents behave
differently than you expect with respect to acknowledgement.
Dialing:
* The Caller*ID of the outbound leg is now the extension that was
called, rather than the Caller*ID of the inbound leg of the call. The
"o" flag for Dial can be used to restore the original behavior if
desired. Note that if you are looking for the originating callerid
from the manager event, there is a new manager event "Dial" which
provides the source and destination channels and callerid.
IAX:
* The naming convention for IAX channels has changed in a minor way such
that the call number follows a "-" rather than a "/" character.
SIP:
* The global option "port" in 1.0.X that is used to set which port to
bind to has been changed to "bindport" to be more consistent with
the other channel drivers and to avoid confusion with the "port"
option for users/peers.
* The "Registry" event now uses "Username" rather than "User" for
consistency with IAX.
Applications:
* With the addition of dialplan functions (which operate similarly
to variables), the SetVar application has been renamed to Set.
* The CallerPres application has been removed. Use SetCallerPres
instead. It accepts both numeric and symbolic names.
* The applications GetGroupCount, GetGroupMatchCount, SetGroup, and
CheckGroup have been deprecated in favor of functions. Here is a
table of their replacements:
GetGroupCount([groupname][@category] GROUP_COUNT([groupname][@category]) Set(GROUPCOUNT=${GROUP_COUNT()})
GroupMatchCount(groupmatch[@category]) GROUP_MATCH_COUNT(groupmatch[@category]) Set(GROUPCOUNT=${GROUP_MATCH_COUNT(SIP/.*)})
SetGroup(groupname[@category]) GROUP([category])=groupname Set(GROUP()=test)
CheckGroup(max[@category]) N/A GotoIf($[ ${GROUP_COUNT()} > 5 ]?103)
Note that CheckGroup does not have a direct replacement. There is
also a new function called GROUP_LIST() which will return a space
separated list of all of the groups set on a channel. The GROUP()
function can also return the name of the group set on a channel when
used in a read environment.
* The applications DBGet and DBPut have been deprecated in favor of
functions. Here is a table of their replacements:
DBGet(foo=family/key) Set(foo=${DB(family/key)})
DBPut(family/key=${foo}) Set(DB(family/key)=${foo})
* The application SetLanguage has been deprecated in favor of the
function LANGUAGE().
SetLanguage(fr) Set(LANGUAGE()=fr)
The LANGUAGE function can also return the currently set language:
Set(MYLANG=${LANGUAGE()})
* The applications AbsoluteTimeout, DigitTimeout, and ResponseTimeout
have been deprecated in favor of the function TIMEOUT(timeouttype):
AbsoluteTimeout(300) Set(TIMEOUT(absolute)=300)
DigitTimeout(15) Set(TIMEOUT(digit)=15)
ResponseTimeout(15) Set(TIMEOUT(response)=15)
The TIMEOUT() function can also return the currently set timeouts:
Set(DTIMEOUT=${TIMEOUT(digit)})
* The applications SetCIDName, SetCIDNum, and SetRDNIS have been
deprecated in favor of the CALLERID(datatype) function:
SetCIDName(Joe Cool) Set(CALLERID(name)=Joe Cool)
SetCIDNum(2025551212) Set(CALLERID(number)=2025551212)
SetRDNIS(2024561414) Set(CALLERID(RDNIS)=2024561414)
* The application Record now uses the period to separate the filename
from the format, rather than the colon.
* The application VoiceMail now supports a 'temporary' greeting for each
mailbox. This greeting can be recorded by using option 4 in the
'mailbox options' menu, and 'change your password' option has been
moved to option 5.
Queues:
* A queue is now considered empty not only if there are no members but if
none of the members are available (e.g. agents not logged on). To
restore the original behavior, use "leavewhenempty=strict" or
"joinwhenempty=strict" instead of "=yes" for those options.
* It is now possible to use multi-digit extensions in the exit context
for a queue (although you should not have overlapping extensions,
as there is no digit timeout). This means that the EXITWITHKEY event
in queue_log can now contain a key field with more than a single
character in it.
Extensions:
* By default, there is a new option called "autofallthrough" in
extensions.conf that is set to yes. Asterisk 1.0 (and earlier)
behavior was to wait for an extension to be dialed after there were no
more extensions to execute. "autofallthrough" changes this behavior
so that the call will immediately be terminated with BUSY,
CONGESTION, or HANGUP based on Asterisk's best guess. If you are
writing an extension for IVR, you must use the WaitExten application
if "autofallthrough" is set to yes.
AGI:
* AGI scripts did not always get SIGHUP at the end, previously. That
behavior has been fixed. If you do not want your script to terminate
at the end of AGI being called (e.g. on a hangup) then set SIGHUP to
be ignored within your application.
Music On Hold:
* The preferred format for musiconhold.conf has changed; please see the
sample configuration file for the new format. The existing format
is still supported but will generate warnings when the module is loaded.

352
acl.c Executable file → Normal file
View File

@@ -3,9 +3,9 @@
*
* Various sorts of access control
*
* Copyright (C) 1999, Mark Spencer
* Copyright (C) 1999-2005, Digium, Inc.
*
* Mark Spencer <markster@linux-support.net>
* Mark Spencer <markster@digium.com>
*
* This program is free software, distributed under the terms of
* the GNU General Public License
@@ -13,31 +13,48 @@
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <string.h>
#include <sys/time.h>
#include <signal.h>
#include <errno.h>
#include <unistd.h>
#include <asterisk/acl.h>
#include <asterisk/logger.h>
#include <asterisk/channel.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <netdb.h>
#include <net/if.h>
#include <netinet/in.h>
#include <netinet/in_systm.h>
#include <netinet/ip.h>
#include <sys/ioctl.h>
#ifdef __OpenBSD__
#if defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__)
#include <fcntl.h>
#include <net/route.h>
static ast_mutex_t routeseq_lock = AST_MUTEX_INITIALIZER;
#endif
#define AST_SENSE_DENY 0
#define AST_SENSE_ALLOW 1
#if defined (SOLARIS) || defined(__OpenBSD__)
#include <sys/sockio.h>
/* netinet/ip.h does not define the following (See RFCs 791 and 1349) */
#define IPTOS_LOWCOST 0x02
#define IPTOS_MINCOST IPTOS_LOWCOST
#endif
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/acl.h"
#include "asterisk/logger.h"
#include "asterisk/channel.h"
#include "asterisk/options.h"
#include "asterisk/utils.h"
#include "asterisk/lock.h"
#include "asterisk/srv.h"
#if defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__)
AST_MUTEX_DEFINE_STATIC(routeseq_lock);
#endif
struct ast_ha {
/* Host access rule */
@@ -55,6 +72,7 @@ struct my_ifreq {
struct sockaddr_in ifru_addr;
};
/* Free HA structure */
void ast_free_ha(struct ast_ha *ha)
{
struct ast_ha *hal;
@@ -65,31 +83,71 @@ void ast_free_ha(struct ast_ha *ha)
}
}
/* Copy HA structure */
static void ast_copy_ha(struct ast_ha *from, struct ast_ha *to)
{
memcpy(&to->netaddr, &from->netaddr, sizeof(from->netaddr));
memcpy(&to->netmask, &from->netmask, sizeof(from->netmask));
to->sense = from->sense;
}
/* Create duplicate of ha structure */
static struct ast_ha *ast_duplicate_ha(struct ast_ha *original)
{
struct ast_ha *new_ha = malloc(sizeof(struct ast_ha));
/* Copy from original to new object */
ast_copy_ha(original, new_ha);
return new_ha;
}
/* Create duplicate HA link list */
/* Used in chan_sip2 templates */
struct ast_ha *ast_duplicate_ha_list(struct ast_ha *original)
{
struct ast_ha *start=original;
struct ast_ha *ret = NULL;
struct ast_ha *link,*prev=NULL;
while (start) {
link = ast_duplicate_ha(start); /* Create copy of this object */
if (prev)
prev->next = link; /* Link previous to this object */
if (!ret)
ret = link; /* Save starting point */
start = start->next; /* Go to next object */
prev = link; /* Save pointer to this object */
}
return ret; /* Return start of list */
}
struct ast_ha *ast_append_ha(char *sense, char *stuff, struct ast_ha *path)
{
struct ast_ha *ha = malloc(sizeof(struct ast_ha));
char *nm;
char *nm = "255.255.255.255";
char tmp[256] = "";
struct ast_ha *prev = NULL;
struct ast_ha *ret;
int x,z;
int x, z;
unsigned int y;
ret = path;
while(path) {
while (path) {
prev = path;
path = path->next;
}
if (ha) {
strncpy(tmp, stuff, sizeof(tmp) - 1);
ast_copy_string(tmp, stuff, sizeof(tmp));
nm = strchr(tmp, '/');
if (!nm)
if (!nm) {
nm = "255.255.255.255";
else {
} else {
*nm = '\0';
nm++;
}
if (!strchr(nm, '.')) {
if ((sscanf(nm, "%i", &x) == 1) && (x >= 0) && (x <= 32)) {
if ((sscanf(nm, "%d", &x) == 1) && (x >= 0) && (x <= 32)) {
y = 0;
for (z=0;z<x;z++) {
y >>= 1;
@@ -98,12 +156,12 @@ struct ast_ha *ast_append_ha(char *sense, char *stuff, struct ast_ha *path)
ha->netmask.s_addr = htonl(y);
}
} else if (!inet_aton(nm, &ha->netmask)) {
ast_log(LOG_WARNING, "%s not a valid netmask\n", nm);
ast_log(LOG_WARNING, "%s is not a valid netmask\n", nm);
free(ha);
return path;
}
if (!inet_aton(tmp, &ha->netaddr)) {
ast_log(LOG_WARNING, "%s not a valid IP\n", tmp);
ast_log(LOG_WARNING, "%s is not a valid IP\n", tmp);
free(ha);
return path;
}
@@ -114,11 +172,13 @@ struct ast_ha *ast_append_ha(char *sense, char *stuff, struct ast_ha *path)
ha->sense = AST_SENSE_DENY;
}
ha->next = NULL;
if (prev)
if (prev) {
prev->next = ha;
else
} else {
ret = ha;
}
}
ast_log(LOG_DEBUG, "%s/%s appended to acl for peer\n", stuff, nm);
return ret;
}
@@ -126,20 +186,40 @@ int ast_apply_ha(struct ast_ha *ha, struct sockaddr_in *sin)
{
/* Start optimistic */
int res = AST_SENSE_ALLOW;
while(ha) {
while (ha) {
char iabuf[INET_ADDRSTRLEN];
char iabuf2[INET_ADDRSTRLEN];
/* DEBUG */
ast_log(LOG_DEBUG,
"##### Testing %s with %s\n",
ast_inet_ntoa(iabuf, sizeof(iabuf), sin->sin_addr),
ast_inet_ntoa(iabuf2, sizeof(iabuf2), ha->netaddr));
/* For each rule, if this address and the netmask = the net address
apply the current rule */
if ((sin->sin_addr.s_addr & ha->netmask.s_addr) == (ha->netaddr.s_addr))
if ((sin->sin_addr.s_addr & ha->netmask.s_addr) == ha->netaddr.s_addr)
res = ha->sense;
ha = ha->next;
}
return res;
}
int ast_get_ip(struct sockaddr_in *sin, char *value)
int ast_get_ip_or_srv(struct sockaddr_in *sin, const char *value, const char *service)
{
struct hostent *hp;
hp = gethostbyname(value);
struct ast_hostent ahp;
char srv[256];
char host[256];
int tportno = ntohs(sin->sin_port);
if (inet_aton(value, &sin->sin_addr))
return 0;
if (service) {
snprintf(srv, sizeof(srv), "%s.%s", service, value);
if (ast_get_srv(NULL, host, sizeof(host), &tportno, srv) > 0) {
sin->sin_port = htons(tportno);
value = host;
}
}
hp = ast_gethostbyname(value, &ahp);
if (hp) {
memcpy(&sin->sin_addr, hp->h_addr, sizeof(sin->sin_addr));
} else {
@@ -149,183 +229,109 @@ int ast_get_ip(struct sockaddr_in *sin, char *value)
return 0;
}
int inaddrcmp(struct sockaddr_in *sin1, struct sockaddr_in *sin2)
int ast_str2tos(const char *value, int *tos)
{
return ((sin1->sin_addr.s_addr != sin2->sin_addr.s_addr )
|| (sin1->sin_port != sin2->sin_port));
int fval;
if (sscanf(value, "%i", &fval) == 1)
*tos = fval & 0xff;
else if (!strcasecmp(value, "lowdelay"))
*tos = IPTOS_LOWDELAY;
else if (!strcasecmp(value, "throughput"))
*tos = IPTOS_THROUGHPUT;
else if (!strcasecmp(value, "reliability"))
*tos = IPTOS_RELIABILITY;
else if (!strcasecmp(value, "mincost"))
*tos = IPTOS_MINCOST;
else if (!strcasecmp(value, "none"))
*tos = 0;
else
return -1;
return 0;
}
int ast_get_ip(struct sockaddr_in *sin, const char *value)
{
return ast_get_ip_or_srv(sin, value, NULL);
}
/* iface is the interface (e.g. eth0); address is the return value */
int ast_lookup_iface(char *iface, struct in_addr *address) {
int ast_lookup_iface(char *iface, struct in_addr *address)
{
int mysock, res = 0;
struct my_ifreq ifreq;
memset(&ifreq, 0, sizeof(ifreq));
strncpy(ifreq.ifrn_name,iface,sizeof(ifreq.ifrn_name) - 1);
ast_copy_string(ifreq.ifrn_name, iface, sizeof(ifreq.ifrn_name));
mysock = socket(PF_INET,SOCK_DGRAM,IPPROTO_IP);
res = ioctl(mysock,SIOCGIFADDR,&ifreq);
mysock = socket(PF_INET, SOCK_DGRAM, IPPROTO_IP);
res = ioctl(mysock, SIOCGIFADDR, &ifreq);
close(mysock);
if (res < 0) {
ast_log(LOG_WARNING, "Unable to get IP of %s: %s\n", iface, strerror(errno));
memcpy((char *)address,(char *)&__ourip,sizeof(__ourip));
memcpy((char *)address, (char *)&__ourip, sizeof(__ourip));
return -1;
} else {
memcpy((char *)address,(char *)&ifreq.ifru_addr.sin_addr,sizeof(ifreq.ifru_addr.sin_addr));
memcpy((char *)address, (char *)&ifreq.ifru_addr.sin_addr, sizeof(ifreq.ifru_addr.sin_addr));
return 0;
}
}
int ast_ouraddrfor(struct in_addr *them, struct in_addr *us)
{
#ifdef __OpenBSD__
struct sockaddr_in *sin;
struct sockaddr *sa;
struct {
struct rt_msghdr m_rtm;
char m_space[512];
} m_rtmsg;
char *cp, *p = ast_strdupa(inet_ntoa(*them));
int i, l, s, seq, flags;
pid_t pid = getpid();
static int routeseq; /* Protected by "routeseq_lock" mutex */
int s;
struct sockaddr_in sin;
socklen_t slen;
memset(us, 0, sizeof(struct in_addr));
memset(&m_rtmsg, 0, sizeof(m_rtmsg));
m_rtmsg.m_rtm.rtm_type = RTM_GET;
m_rtmsg.m_rtm.rtm_flags = RTF_UP | RTF_HOST;
m_rtmsg.m_rtm.rtm_version = RTM_VERSION;
ast_mutex_lock(&routeseq_lock);
seq = ++routeseq;
ast_mutex_unlock(&routeseq_lock);
m_rtmsg.m_rtm.rtm_seq = seq;
m_rtmsg.m_rtm.rtm_addrs = RTA_IFA | RTA_DST;
m_rtmsg.m_rtm.rtm_msglen = sizeof(struct rt_msghdr) + sizeof(struct sockaddr_in);
sin = (struct sockaddr_in *)m_rtmsg.m_space;
sin->sin_family = AF_INET;
sin->sin_len = sizeof(struct sockaddr_in);
sin->sin_addr = *them;
if ((s = socket(PF_ROUTE, SOCK_RAW, 0)) < 0) {
ast_log(LOG_ERROR, "Error opening routing socket\n");
s = socket(PF_INET, SOCK_DGRAM, 0);
if (s < 0) {
ast_log(LOG_WARNING, "Cannot create socket\n");
return -1;
}
flags = fcntl(s, F_GETFL);
fcntl(s, F_SETFL, flags | O_NONBLOCK);
if (write(s, (char *)&m_rtmsg, m_rtmsg.m_rtm.rtm_msglen) < 0) {
ast_log(LOG_ERROR, "Error writing to routing socket: %s\n", strerror(errno));
sin.sin_family = AF_INET;
sin.sin_port = 5060;
sin.sin_addr = *them;
if (connect(s, (struct sockaddr *)&sin, sizeof(sin))) {
ast_log(LOG_WARNING, "Cannot connect\n");
close(s);
return -1;
}
do {
l = read(s, (char *)&m_rtmsg, sizeof(m_rtmsg));
} while (l > 0 && (m_rtmsg.m_rtm.rtm_seq != 1 || m_rtmsg.m_rtm.rtm_pid != pid));
if (l < 0) {
if (errno != EAGAIN)
ast_log(LOG_ERROR, "Error reading from routing socket\n");
slen = sizeof(sin);
if (getsockname(s, (struct sockaddr *)&sin, &slen)) {
ast_log(LOG_WARNING, "Cannot get socket name\n");
close(s);
return -1;
}
close(s);
if (m_rtmsg.m_rtm.rtm_version != RTM_VERSION) {
ast_log(LOG_ERROR, "Unsupported route socket protocol version\n");
return -1;
}
if (m_rtmsg.m_rtm.rtm_msglen != l)
ast_log(LOG_WARNING, "Message length mismatch, in packet %d, returned %d\n",
m_rtmsg.m_rtm.rtm_msglen, l);
if (m_rtmsg.m_rtm.rtm_errno) {
ast_log(LOG_ERROR, "RTM_GET got %s (%d)\n",
strerror(m_rtmsg.m_rtm.rtm_errno), m_rtmsg.m_rtm.rtm_errno);
return -1;
}
cp = (char *)m_rtmsg.m_space;
if (m_rtmsg.m_rtm.rtm_addrs)
for (i = 1; i; i <<= 1)
if (m_rtmsg.m_rtm.rtm_addrs & i) {
sa = (struct sockaddr *)cp;
if (i == RTA_IFA && sa->sa_family == AF_INET) {
sin = (struct sockaddr_in *)sa;
*us = sin->sin_addr;
ast_log(LOG_DEBUG, "Found route to %s, output from our address %s.\n", p, inet_ntoa(*us));
return 0;
}
cp += sa->sa_len > 0 ?
(1 + ((sa->sa_len - 1) | (sizeof(long) - 1))) :
sizeof(long);
}
ast_log(LOG_DEBUG, "No route found for address %s!\n", p);
return -1;
#else
FILE *PROC;
unsigned int remote_ip;
int res = 1;
char line[256];
remote_ip = them->s_addr;
PROC = fopen("/proc/net/route","r");
if (!PROC) {
bzero(us,sizeof(struct in_addr));
return -1;
}
/* First line contains headers */
fgets(line,sizeof(line),PROC);
while (!feof(PROC)) {
char iface[8];
unsigned int dest, gateway, mask;
int i,fieldnum;
char *fields[40];
fgets(line,sizeof(line),PROC);
fieldnum = 0;
for (i=0;i<sizeof(line);i++) {
char *offset;
fields[fieldnum++] = line + i;
offset = strchr(line + i,'\t');
if (offset == NULL) {
/* Exit loop */
break;
} else if (fieldnum >= 9) {
/* Short-circuit: can't break at 8, since the end of field 7 is figured when fieldnum=8 */
break;
} else {
*offset = '\0';
i = offset - line;
}
}
sscanf(fields[0],"%s",iface);
sscanf(fields[1],"%x",&dest);
sscanf(fields[2],"%x",&gateway);
sscanf(fields[7],"%x",&mask);
#if 0
printf("Addr: %s %08x Dest: %08x Mask: %08x\n", inet_ntoa(*them), remote_ip, dest, mask);
#endif
/* Looks simple, but here is the magic */
if (((remote_ip & mask) ^ dest) == 0) {
res = ast_lookup_iface(iface,us);
break;
}
}
fclose(PROC);
if (res == 1) {
ast_log(LOG_WARNING, "Yikes! No default route?!!\n");
bzero(us,sizeof(struct in_addr));
return -2;
} else if (res) {
/* We've already warned in subroutine */
return -1;
}
*us = sin.sin_addr;
return 0;
#endif
}
int ast_find_ourip(struct in_addr *ourip, struct sockaddr_in bindaddr)
{
char ourhost[MAXHOSTNAMELEN] = "";
struct ast_hostent ahp;
struct hostent *hp;
struct in_addr saddr;
/* just use the bind address if it is nonzero */
if (ntohl(bindaddr.sin_addr.s_addr)) {
memcpy(ourip, &bindaddr.sin_addr, sizeof(*ourip));
return 0;
}
/* try to use our hostname */
if (gethostname(ourhost, sizeof(ourhost) - 1)) {
ast_log(LOG_WARNING, "Unable to get hostname\n");
} else {
hp = ast_gethostbyname(ourhost, &ahp);
if (hp) {
memcpy(ourip, hp->h_addr, sizeof(*ourip));
return 0;
}
}
/* A.ROOT-SERVERS.NET. */
if (inet_aton("198.41.0.4", &saddr) && !ast_ouraddrfor(&saddr, ourip))
return 0;
return -1;
}

0
aescrypt.c Executable file → Normal file
View File

0
aeskey.c Executable file → Normal file
View File

16
aesopt.h Executable file → Normal file
View File

@@ -135,7 +135,8 @@
#ifndef _AESOPT_H
#define _AESOPT_H
#include <asterisk/aes.h>
#include "asterisk/aes.h"
#include "asterisk/endian.h"
/* CONFIGURATION - USE OF DEFINES
@@ -146,19 +147,6 @@
#if clauses.
*/
/* PLATFORM SPECIFIC INCLUDES */
#if defined( __FreeBSD__ ) || defined( __OpenBSD__ )
# include <sys/endian.h>
#elif defined( BSD ) && ( BSD >= 199103 )
# include <machine/endian.h>
#elif defined( __GNUC__ ) || defined( __GNU_LIBRARY__ )
# include <endian.h>
# include <byteswap.h>
#elif defined( linux )
# include <endian.h>
#endif
/* BYTE ORDER IN 32-BIT WORDS
To obtain the highest speed on processors with 32-bit words, this code

0
aestab.c Executable file → Normal file
View File

View File

@@ -1,3 +0,0 @@
eagi-test
eagi-sphinx-test
.depend

0
agi/DialAnMp3.agi Executable file → Normal file
View File

21
agi/Makefile Executable file → Normal file
View File

@@ -1,11 +1,11 @@
#
# Asterisk -- A telephony toolkit for Linux.
#
# Makefile for PBX frontends (dynamically loaded)
# Makefile for AGI-related stuff
#
# Copyright (C) 1999, Mark Spencer
# Copyright (C) 1999-2005, Digium
#
# Mark Spencer <markster@linux-support.net>
# Mark Spencer <markster@digium.com>
#
# This program is free software, distributed under the terms of
# the GNU General Public License
@@ -15,6 +15,11 @@ AGIS=agi-test.agi eagi-test eagi-sphinx-test
CFLAGS+=
LIBS=
ifeq ($(OSARCH),SunOS)
LIBS=-lsocket -lnsl ../strcompat.o
endif
all: depend $(AGIS)
install: all
@@ -22,13 +27,13 @@ install: all
for x in $(AGIS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(AGI_DIR) ; done
eagi-test: eagi-test.o
$(CC) -o eagi-test eagi-test.o
$(CC) $(CFLAGS) -o eagi-test eagi-test.o $(LIBS)
eagi-sphinx-test: eagi-sphinx-test.o
$(CC) -o eagi-sphinx-test eagi-sphinx-test.o
$(CC) $(CFLAGS) -o eagi-sphinx-test eagi-sphinx-test.o $(LIBS)
clean:
rm -f *.so *.o look .depend
rm -f *.so *.o look .depend eagi-test eagi-sphinx-test
%.so : %.o
$(CC) -shared -Xlinker -x -o $@ $<
@@ -40,4 +45,4 @@ endif
depend: .depend
.depend:
../mkdep $(CFLAGS) `ls *.c`
../build_tools/mkdep $(CFLAGS) `ls *.c`

0
agi/agi-test.agi Executable file → Normal file
View File

3
agi/eagi-sphinx-test.c Executable file → Normal file
View File

@@ -17,6 +17,9 @@
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#ifdef SOLARIS
#include <solaris-compat/compat.h>
#endif
#define AUDIO_FILENO (STDERR_FILENO + 1)

3
agi/eagi-test.c Executable file → Normal file
View File

@@ -11,6 +11,9 @@
#include <errno.h>
#include <string.h>
#include <sys/select.h>
#ifdef SOLARIS
#include <solaris-compat/compat.h>
#endif
#define AUDIO_FILENO (STDERR_FILENO + 1)

94
agi/fastagi-test Normal file
View File

@@ -0,0 +1,94 @@
#!/usr/bin/perl
use strict;
use Socket;
use Carp;
use IO::Handle;
my $port = 4573;
$|=1;
# Setup some variables
my %AGI; my $tests = 0; my $fail = 0; my $pass = 0;
sub checkresult {
my ($res) = @_;
my $retval;
$tests++;
chomp $res;
if ($res =~ /^200/) {
$res =~ /result=(-?\d+)/;
if (!length($1)) {
print STDERR "FAIL ($res)\n";
$fail++;
} else {
print STDERR "PASS ($1)\n";
$pass++;
}
} else {
print STDERR "FAIL (unexpected result '$res')\n";
$fail++;
}
}
socket(SERVER, PF_INET, SOCK_STREAM, 0);
setsockopt(SERVER, SOL_SOCKET, SO_REUSEADDR, pack("l", 1));
bind(SERVER, sockaddr_in($port, INADDR_ANY)) || die("can't bind\n");
listen(SERVER, SOMAXCONN);
for(;;) {
my $raddr = accept(CLIENT, SERVER);
my ($s, $p) = sockaddr_in($raddr);
CLIENT->autoflush(1);
while(<CLIENT>) {
chomp;
last unless length($_);
if (/^agi_(\w+)\:\s+(.*)$/) {
$AGI{$1} = $2;
}
}
print STDERR "AGI Environment Dump from $s:$p --\n";
foreach my $i (sort keys %AGI) {
print STDERR " -- $i = $AGI{$i}\n";
}
print STDERR "1. Testing 'sendfile'...";
print CLIENT "STREAM FILE beep \"\"\n";
my $result = <CLIENT>;
&checkresult($result);
print STDERR "2. Testing 'sendtext'...";
print CLIENT "SEND TEXT \"hello world\"\n";
my $result = <CLIENT>;
&checkresult($result);
print STDERR "3. Testing 'sendimage'...";
print CLIENT "SEND IMAGE asterisk-image\n";
my $result = <CLIENT>;
&checkresult($result);
print STDERR "4. Testing 'saynumber'...";
print CLIENT "SAY NUMBER 192837465 \"\"\n";
my $result = <CLIENT>;
&checkresult($result);
print STDERR "5. Testing 'waitdtmf'...";
print CLIENT "WAIT FOR DIGIT 1000\n";
my $result = <CLIENT>;
&checkresult($result);
print STDERR "6. Testing 'record'...";
print CLIENT "RECORD FILE testagi gsm 1234 3000\n";
my $result = <CLIENT>;
&checkresult($result);
print STDERR "6a. Testing 'record' playback...";
print CLIENT "STREAM FILE testagi \"\"\n";
my $result = <CLIENT>;
&checkresult($result);
close(CLIENT);
print STDERR "================== Complete ======================\n";
print STDERR "$tests tests completed, $pass passed, $fail failed\n";
print STDERR "==================================================\n";
}

0
agi/numeralize Executable file → Normal file
View File

6
alaw.c Executable file → Normal file
View File

@@ -11,7 +11,11 @@
* the GNU General Public License
*/
#include <asterisk/alaw.h>
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/alaw.h"
#define AMI_MASK 0x55

1506
app.c Executable file → Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -1 +0,0 @@
.depend

86
apps/Makefile Executable file → Normal file
View File

@@ -1,11 +1,11 @@
#
# Asterisk -- A telephony toolkit for Linux.
#
# Makefile for PBX frontends (dynamically loaded)
# Makefile for PBX applications
#
# Copyright (C) 1999, Mark Spencer
# Copyright (C) 1999-2005, Digium
#
# Mark Spencer <markster@linux-support.net>
# Mark Spencer <markster@digium.com>
#
# This program is free software, distributed under the terms of
# the GNU General Public License
@@ -17,35 +17,65 @@ USE_POSTGRES_VM_INTERFACE=0
#APPS=app_dial.so app_playback.so app_directory.so app_intercom.so app_mp3.so
APPS=app_dial.so app_playback.so app_voicemail.so app_directory.so app_mp3.so\
app_system.so app_echo.so app_record.so app_image.so app_url.so app_disa.so \
app_agi.so app_qcall.so app_adsiprog.so app_getcpeid.so app_milliwatt.so \
app_zapateller.so app_datetime.so app_setcallerid.so app_festival.so \
app_adsiprog.so app_getcpeid.so app_milliwatt.so \
app_zapateller.so app_setcallerid.so app_festival.so \
app_queue.so app_senddtmf.so app_parkandannounce.so app_striplsd.so \
app_setcidname.so app_lookupcidname.so app_substring.so app_macro.so \
app_authenticate.so app_softhangup.so app_lookupblacklist.so \
app_waitforring.so app_privacy.so app_db.so app_chanisavail.so \
app_enumlookup.so app_transfer.so app_setcidnum.so app_cdr.so \
app_hasnewvoicemail.so app_sayunixtime.so app_cut.so app_read.so \
app_setcdruserfield.so app_random.so
app_setcdruserfield.so app_random.so app_ices.so app_eval.so \
app_nbscat.so app_sendtext.so app_exec.so app_sms.so \
app_groupcount.so app_txtcidname.so app_controlplayback.so \
app_talkdetect.so app_alarmreceiver.so app_userevent.so app_verbose.so \
app_test.so app_forkcdr.so app_math.so app_realtime.so \
app_dumpchan.so app_waitforsilence.so app_while.so app_setrdnis.so \
app_md5.so app_readfile.so app_chanspy.so app_settransfercapability.so \
app_dictate.so app_externalivr.so
ifneq (${OSARCH},Darwin)
APPS+=app_intercom.so
ifneq (${OSARCH},SunOS)
#APPS+=app_intercom.so
endif
endif
#
# Obsolete things...
#
#APPS+=app_sql_postgres.so
#APPS+=app_sql_odbc.so
#APPS+=app_rpt.so
#
# Experimental things
#
#APPS+=app_ivrdemo.so
#APPS+=app_skel.so
APPS+=$(shell if [ -f /usr/include/linux/zaptel.h ]; then echo "app_zapras.so app_meetme.so app_flash.so app_zapbarge.so app_zapscan.so" ; fi)
#APPS+=$(shell if [ -f /usr/include/zap.h ]; then echo "app_rpt.so" ; fi)
APPS+=$(shell if [ -f $(CROSS_COMPILE_TARGET)/usr/include/linux/zaptel.h ]; then echo "app_zapras.so app_meetme.so app_flash.so app_zapbarge.so app_zapscan.so" ; fi)
APPS+=$(shell if [ -f $(CROSS_COMPILE_TARGET)/usr/local/include/zaptel.h ]; then echo "app_zapras.so app_meetme.so app_flash.so app_zapbarge.so app_zapscan.so" ; fi)
APPS+=$(shell if [ -f $(CROSS_COMPILE_TARGET)/usr/include/osp/osp.h ]; then echo "app_osplookup.so" ; fi)
CURLLIBS=$(shell $(CROSS_COMPILE_BIN)curl-config --libs)
ifneq ($(shell if [[ 0x`$(CROSS_COMPILE_BIN)curl-config --vernum` -ge 0x70907 ]]; then echo "OK" ; fi),)
ifneq (${CURLLIBS},)
APPS+=app_curl.so
ifeq (${OSARCH},OpenBSD)
CFLAGS+=-I$(CROSS_COMPILE_TARGET)/usr/local/include
endif
endif
endif
CFLAGS+=-fPIC
ifeq ($(USE_POSTGRES_VM_INTERFACE),1)
CFLAGS+=-DUSEPOSTGRESVM
endif
ifeq ($(USE_MYSQL_VM_INTERFACE),1)
CFLAGS+=-DUSEMYSQLVM
endif
#
# If you have MySQL 4.1 or later you can use ODBC
# storage
#
# Uncomment to use odbc storage
#CFLAGS+=-DUSE_ODBC_STORAGE
# Uncomment for extended odbc voicemail storage
#CFLAGS+=-DEXTENDED_ODBC_STORAGE
# See doc/README.odbcstorage for more information
all: $(APPS)
@@ -60,12 +90,11 @@ app_rpt.so : app_rpt.o
install: all
for x in $(APPS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(MODULES_DIR) ; done
rm -f $(DESTDIR)$(MODULES_DIR)/app_datetime.so
rm -f $(DESTDIR)$(MODULES_DIR)/app_qcall.so
app_todd.o: app_todd.c
gcc -pipe -O6 -g -Iinclude -I../include -D_REENTRANT -march=i586 -DDO_CRASH -c -o app_todd.o app_todd.c
app_todd.so: app_todd.o
$(CC) $(SOLINK) -o $@ $< -L/usr/local/ssl/lib -lssl -lcrypto
app_curl.so: app_curl.o
$(CC) $(SOLINK) -o $@ $< $(CURLLIBS)
app_voicemail.so : app_voicemail.o
ifeq ($(USE_MYSQL_VM_INTERFACE),1)
@@ -88,7 +117,13 @@ app_sql_odbc.so: app_sql_odbc.o
$(CC) $(SOLINK) -o $@ $< -lodbc
look: look.c
gcc -pipe -O6 -g look.c -o look -lncurses
$(CC) -pipe -O6 -g look.c -o look -lncurses
ifeq (SunOS,$(shell uname))
app_chanspy.so: app_chanspy.o
$(CC) $(SOLINK) -o $@ $< -lrt
endif
ifneq ($(wildcard .depend),)
include .depend
@@ -97,4 +132,7 @@ endif
depend: .depend
.depend:
../mkdep $(CFLAGS) `ls *.c`
../build_tools/mkdep $(CFLAGS) `ls *.c`
env:
env

65
apps/app_adsiprog.c Executable file → Normal file
View File

@@ -12,13 +12,6 @@
*/
#include <sys/types.h>
#include <asterisk/file.h>
#include <asterisk/logger.h>
#include <asterisk/channel.h>
#include <asterisk/pbx.h>
#include <asterisk/module.h>
#include <asterisk/adsi.h>
#include <asterisk/options.h>
#include <netinet/in.h>
#include <stdlib.h>
#include <unistd.h>
@@ -28,10 +21,19 @@
#include <stdio.h>
#include <errno.h>
#include <pthread.h>
#include "asterisk.h"
#include "../asterisk.h"
#include "../astconf.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/file.h"
#include "asterisk/logger.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
#include "asterisk/adsi.h"
#include "asterisk/options.h"
#include "asterisk/utils.h"
#include "asterisk/lock.h"
static char *tdesc = "Asterisk ADSI Programming Application";
@@ -178,7 +180,7 @@ static int process_token(void *out, char *src, int maxlen, int argtype)
maxlen = strlen(src) - 1;
memcpy(out, src, maxlen);
((char *)out)[maxlen] = '\0';
} else if (strlen(src) && (src[0] == '\\')) {
} else if (!ast_strlen_zero(src) && (src[0] == '\\')) {
if (!(argtype & ARG_NUMBER))
return -1;
/* Octal value */
@@ -198,7 +200,7 @@ static int process_token(void *out, char *src, int maxlen, int argtype)
/* Convert */
*((unsigned int *)out) = htonl(*((unsigned int *)out));
}
} else if ((strlen(src) && isdigit(src[0]))) {
} else if ((!ast_strlen_zero(src) && isdigit(src[0]))) {
if (!(argtype & ARG_NUMBER))
return -1;
/* Hex value */
@@ -400,7 +402,7 @@ static struct adsi_flag *getflagbyname(struct adsi_script *state, char *name, ch
ast_log(LOG_WARNING, "No more flag space at line %d of %s\n", lineno, script);
return NULL;
}
strncpy(state->flags[state->numflags].vname, name, sizeof(state->flags[state->numflags].vname) - 1);
ast_copy_string(state->flags[state->numflags].vname, name, sizeof(state->flags[state->numflags].vname));
state->flags[state->numflags].id = state->numflags + 1;
state->numflags++;
return &state->flags[state->numflags-1];
@@ -503,7 +505,7 @@ static struct adsi_soft_key *getkeybyname(struct adsi_script *state, char *name,
ast_log(LOG_WARNING, "No more key space at line %d of %s\n", lineno, script);
return NULL;
}
strncpy(state->keys[state->numkeys].vname, name, sizeof(state->keys[state->numkeys].vname) - 1);
ast_copy_string(state->keys[state->numkeys].vname, name, sizeof(state->keys[state->numkeys].vname));
state->keys[state->numkeys].id = state->numkeys + 2;
state->numkeys++;
return &state->keys[state->numkeys-1];
@@ -519,7 +521,7 @@ static struct adsi_subscript *getsubbyname(struct adsi_script *state, char *name
ast_log(LOG_WARNING, "No more subscript space at line %d of %s\n", lineno, script);
return NULL;
}
strncpy(state->subs[state->numsubs].vname, name, sizeof(state->subs[state->numsubs].vname) - 1);
ast_copy_string(state->subs[state->numsubs].vname, name, sizeof(state->subs[state->numsubs].vname));
state->subs[state->numsubs].id = state->numsubs;
state->numsubs++;
return &state->subs[state->numsubs-1];
@@ -538,7 +540,7 @@ static struct adsi_state *getstatebyname(struct adsi_script *state, char *name,
ast_log(LOG_WARNING, "No more state space at line %d of %s\n", lineno, script);
return NULL;
}
strncpy(state->states[state->numstates].vname, name, sizeof(state->states[state->numstates].vname) - 1);
ast_copy_string(state->states[state->numstates].vname, name, sizeof(state->states[state->numstates].vname));
state->states[state->numstates].id = state->numstates + 1;
state->numstates++;
return &state->states[state->numstates-1];
@@ -557,7 +559,7 @@ static struct adsi_display *getdisplaybyname(struct adsi_script *state, char *na
ast_log(LOG_WARNING, "No more display space at line %d of %s\n", lineno, script);
return NULL;
}
strncpy(state->displays[state->numdisplays].vname, name, sizeof(state->displays[state->numdisplays].vname) - 1);
ast_copy_string(state->displays[state->numdisplays].vname, name, sizeof(state->displays[state->numdisplays].vname));
state->displays[state->numdisplays].id = state->numdisplays + 1;
state->numdisplays++;
return &state->displays[state->numdisplays-1];
@@ -666,7 +668,7 @@ static int showdisplay(char *buf, char *name, int id, char *args, struct adsi_sc
}
buf[0] = id;
buf[1] = (cmd << 6) | (disp->id & 0x2f);
buf[1] = (cmd << 6) | (disp->id & 0x3f);
buf[2] = ((line & 0x1f) << 3) | (flag & 0x7);
return 3;
}
@@ -695,6 +697,18 @@ static int digitdirect(char *buf, char *name, int id, char *args, struct adsi_sc
return 2;
}
static int clearcbone(char *buf, char *name, int id, char *args, struct adsi_script *istate, char *script, int lineno)
{
char *tok;
tok = get_token(&args, script, lineno);
if (tok)
ast_log(LOG_WARNING, "CLEARCB1 requires no arguments ('%s') at line %d of %s\n", tok, lineno, script);
buf[0] = id;
buf[1] = 0;
return 2;
}
static int digitcollect(char *buf, char *name, int id, char *args, struct adsi_script *istate, char *script, int lineno)
{
char *tok;
@@ -831,6 +845,7 @@ static struct adsi_key_cmd kcmds[] = {
{ "VOICEMODE", 0x93 },
/* Display call buffer 'n' */
/* Clear call buffer 'n' */
{ "CLEARCB1", 0x95, clearcbone },
{ "DIGITCOLLECT", 0x96, digitcollect },
{ "DIGITDIRECT", 0x96, digitdirect },
{ "CLEAR", 0x97 },
@@ -1030,7 +1045,7 @@ static int adsi_process(struct adsi_script *state, char *buf, char *script, int
break;
}
} else {
strncpy(tmp2, tmp, sizeof(tmp2) - 1);
ast_copy_string(tmp2, tmp, sizeof(tmp2));
}
if (strlen(tmp2) > 18) {
ast_log(LOG_WARNING, "Truncating full name to 18 characters at line %d of %s\n", lineno, script);
@@ -1323,7 +1338,7 @@ static struct adsi_script *compile_script(char *script)
int x, err;
struct adsi_script *scr;
if (script[0] == '/')
strncpy(fn, script, sizeof(fn) - 1);
ast_copy_string(fn, script, sizeof(fn));
else
snprintf(fn, sizeof(fn), "%s/%s", (char *)ast_config_AST_CONFIG_DIR, script);
f = fopen(fn, "r");
@@ -1350,7 +1365,7 @@ static struct adsi_script *compile_script(char *script)
/* Strip comments */
if (c)
*c = '\0';
if (strlen(buf))
if (!ast_strlen_zero(buf))
adsi_process(scr, buf, script, lineno);
}
}
@@ -1435,7 +1450,7 @@ static int adsi_prog(struct ast_channel *chan, char *script)
bytes = 0;
/* Start with key definitions */
for (x=0;x<scr->numkeys;x++) {
if (bytes + scr->keys[x].retstrlen > 254) {
if (bytes + scr->keys[x].retstrlen > 253) {
/* Send what we've collected so far */
if (adsi_transmit_message(chan, buf, bytes, ADSI_MSG_DOWNLOAD)) {
ast_log(LOG_WARNING, "Unable to send chunk ending at %d\n", x);
@@ -1459,7 +1474,7 @@ static int adsi_prog(struct ast_channel *chan, char *script)
bytes = 0;
/* Continue with the display messages */
for (x=0;x<scr->numdisplays;x++) {
if (bytes + scr->displays[x].datalen > 254) {
if (bytes + scr->displays[x].datalen > 253) {
/* Send what we've collected so far */
if (adsi_transmit_message(chan, buf, bytes, ADSI_MSG_DOWNLOAD)) {
ast_log(LOG_WARNING, "Unable to send chunk ending at %d\n", x);
@@ -1483,7 +1498,7 @@ static int adsi_prog(struct ast_channel *chan, char *script)
bytes = 0;
/* Send subroutines */
for (x=0;x<scr->numsubs;x++) {
if (bytes + scr->subs[x].datalen > 254) {
if (bytes + scr->subs[x].datalen > 253) {
/* Send what we've collected so far */
if (adsi_transmit_message(chan, buf, bytes, ADSI_MSG_DOWNLOAD)) {
ast_log(LOG_WARNING, "Unable to send chunk ending at %d\n", x);
@@ -1527,7 +1542,7 @@ static int adsi_exec(struct ast_channel *chan, void *data)
{
int res=0;
struct localuser *u;
if (!data || !strlen(data))
if (!data || ast_strlen_zero(data))
data = "asterisk.adsi";
LOCAL_USER_ADD(u);
if (!adsi_available(chan)) {

847
apps/app_alarmreceiver.c Normal file
View File

@@ -0,0 +1,847 @@
/*
* Asterisk -- A telephony toolkit for Linux.
*
* Central Station Alarm receiver for Ademco Contact ID
*
* Copyright (C) 2004 - 2005 Steve Rodgers
*
* Steve Rodgers <hwstar@rodgers.sdcoxmail.com>
*
* This program is free software, distributed under the terms of
* the GNU General Public License
*
* *** WARNING *** WARNING *** WARNING *** WARNING *** WARNING *** WARNING *** WARNING *** WARNING ***
*
* Use at your own risk. Please consult the GNU GPL license document included with Asterisk details. *
*
* *** WARNING *** WARNING *** WARNING *** WARNING *** WARNING *** WARNING *** WARNING *** WARNING ***
*
*/
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <sys/wait.h>
#include <unistd.h>
#include <sys/time.h>
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/lock.h"
#include "asterisk/file.h"
#include "asterisk/logger.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
#include "asterisk/translate.h"
#include "asterisk/ulaw.h"
#include "asterisk/options.h"
#include "asterisk/app.h"
#include "asterisk/dsp.h"
#include "asterisk/config.h"
#include "asterisk/localtime.h"
#include "asterisk/callerid.h"
#include "asterisk/astdb.h"
#define ALMRCV_CONFIG "alarmreceiver.conf"
#define ADEMCO_CONTACT_ID "ADEMCO_CONTACT_ID"
struct event_node{
char data[17];
struct event_node *next;
};
typedef struct event_node event_node_t;
static char *tdesc = "Alarm Receiver for Asterisk";
static char *app = "AlarmReceiver";
static char *synopsis = "Provide support for receving alarm reports from a burglar or fire alarm panel";
static char *descrip =
"Alarm receiver application for Asterisk. Only 1 signalling format is supported at this time:\n"
"Ademco Contact ID. This application should be called whenever there is an alarm panel calling in\n"
"to dump its events. The application will handshake with the alarm panel, and receive events,\n"
"validate them, handshake them, and store them until the panel hangs up. Once the panel hangs up,\n"
"the application will run the command line specified by the eventcmd setting in alarmreceiver.conf\n"
"and pipe the events to the standard input of the application. Alarmreceiver.conf also contains settings\n"
"for DTMF timing, and for the loudness of the acknowledgement tones.\n";
/* Config Variables */
static int fdtimeout = 2000;
static int sdtimeout = 200;
static int toneloudness = 4096;
static int log_individual_events = 0;
static char event_spool_dir[128] = {'\0'};
static char event_app[128] = {'\0'};
static char db_family[128] = {'\0'};
static char time_stamp_format[128] = {"%a %b %d, %Y @ %H:%M:%S %Z"};
/* Misc variables */
static char event_file[14] = "/event-XXXXXX";
STANDARD_LOCAL_USER;
LOCAL_USER_DECL;
/*
* Attempt to access a database variable and increment it,
* provided that the user defined db-family in alarmreceiver.conf
* The alarmreceiver app will write statistics to a few variables
* in this family if it is defined. If the new key doesn't exist in the
* family, then create it and set its value to 1.
*/
static void database_increment( char *key )
{
int res = 0;
unsigned v;
char value[16];
if(!strlen(db_family))
return; /* If not defined, don't do anything */
res = ast_db_get(db_family, key, value, sizeof(value) - 1);
if(res){
if(option_verbose >= 4)
ast_verbose(VERBOSE_PREFIX_4 "AlarmReceiver: Creating database entry %s and setting to 1\n", key);
/* Guess we have to create it */
res = ast_db_put(db_family, key, "1");
return;
}
sscanf(value, "%u", &v);
v++;
if(option_verbose >= 4)
ast_verbose(VERBOSE_PREFIX_4 "AlarmReceiver: New value for %s: %u\n", key, v);
snprintf(value, sizeof(value), "%u", v);
res = ast_db_put(db_family, key, value);
if((res)&&(option_verbose >= 4))
ast_verbose(VERBOSE_PREFIX_4 "AlarmReceiver: database_increment write error");
return;
}
/*
* Build a MuLaw data block for a single frequency tone
*/
static void make_tone_burst(unsigned char *data, float freq, float loudness, int len, int *x)
{
int i;
float val;
for(i = 0; i < len; i++){
val = loudness * sin((freq * 2.0 * M_PI * (*x)++)/8000.0);
data[i] = AST_LIN2MU((int)val);
}
/* wrap back around from 8000 */
if (*x >= 8000) *x = 0;
return;
}
/*
* Send a single tone burst for a specifed duration and frequency.
* Returns 0 if successful
*/
static int send_tone_burst(struct ast_channel *chan, float freq, int duration, int tldn)
{
int res = 0;
int i = 0;
int x = 0;
struct ast_frame *f, wf;
struct {
unsigned char offset[AST_FRIENDLY_OFFSET];
unsigned char buf[640];
} tone_block;
for(;;)
{
if (ast_waitfor(chan, -1) < 0){
res = -1;
break;
}
f = ast_read(chan);
if (!f){
res = -1;
break;
}
if (f->frametype == AST_FRAME_VOICE) {
wf.frametype = AST_FRAME_VOICE;
wf.subclass = AST_FORMAT_ULAW;
wf.offset = AST_FRIENDLY_OFFSET;
wf.mallocd = 0;
wf.data = tone_block.buf;
wf.datalen = f->datalen;
wf.samples = wf.datalen;
make_tone_burst(tone_block.buf, freq, (float) tldn, wf.datalen, &x);
i += wf.datalen / 8;
if (i > duration) {
break;
}
if (ast_write(chan, &wf)){
if(option_verbose >= 4)
ast_verbose(VERBOSE_PREFIX_4 "AlarmReceiver: Failed to write frame on %s\n", chan->name);
ast_log(LOG_WARNING, "AlarmReceiver Failed to write frame on %s\n",chan->name);
res = -1;
break;
}
}
ast_frfree(f);
}
return res;
}
/*
* Receive a string of DTMF digits where the length of the digit string is known in advance. Do not give preferential
* treatment to any digit value, and allow separate time out values to be specified for the first digit and all subsequent
* digits.
*
* Returns 0 if all digits successfully received.
* Returns 1 if a digit time out occurred
* Returns -1 if the caller hung up or there was a channel error.
*
*/
static int receive_dtmf_digits(struct ast_channel *chan, char *digit_string, int length, int fdto, int sdto)
{
int res = 0;
int i = 0;
int r;
struct ast_frame *f;
struct timeval lastdigittime;
lastdigittime = ast_tvnow();
for(;;){
/* if outa time, leave */
if (ast_tvdiff_ms(ast_tvnow(), lastdigittime) >
((i > 0) ? sdto : fdto)){
if(option_verbose >= 4)
ast_verbose(VERBOSE_PREFIX_4 "AlarmReceiver: DTMF Digit Timeout on %s\n", chan->name);
ast_log(LOG_DEBUG,"AlarmReceiver: DTMF timeout on chan %s\n",chan->name);
res = 1;
break;
}
if ((r = ast_waitfor(chan, -1) < 0)) {
ast_log(LOG_DEBUG, "Waitfor returned %d\n", r);
continue;
}
f = ast_read(chan);
if (f == NULL){
res = -1;
break;
}
/* If they hung up, leave */
if ((f->frametype == AST_FRAME_CONTROL) &&
(f->subclass == AST_CONTROL_HANGUP)){
ast_frfree(f);
res = -1;
break;
}
/* if not DTMF, just do it again */
if (f->frametype != AST_FRAME_DTMF){
ast_frfree(f);
continue;
}
digit_string[i++] = f->subclass; /* save digit */
ast_frfree(f);
/* If we have all the digits we expect, leave */
if(i >= length)
break;
lastdigittime = ast_tvnow();
}
digit_string[i] = '\0'; /* Nul terminate the end of the digit string */
return res;
}
/*
* Write the metadata to the log file
*/
static int write_metadata( FILE *logfile, char *signalling_type, struct ast_channel *chan)
{
int res = 0;
time_t t;
struct tm now;
char *cl,*cn;
char workstring[80];
char timestamp[80];
/* Extract the caller ID location */
if (chan->cid.cid_num)
ast_copy_string(workstring, chan->cid.cid_num, sizeof(workstring));
workstring[sizeof(workstring) - 1] = '\0';
ast_callerid_parse(workstring, &cn, &cl);
if (cl)
ast_shrink_phone_number(cl);
/* Get the current time */
time(&t);
ast_localtime(&t, &now, NULL);
/* Format the time */
strftime(timestamp, sizeof(timestamp), time_stamp_format, &now);
res = fprintf(logfile, "\n\n[metadata]\n\n");
if(res >= 0)
res = fprintf(logfile, "PROTOCOL=%s\n", signalling_type);
if(res >= 0)
res = fprintf(logfile, "CALLINGFROM=%s\n", (!cl) ? "<unknown>" : cl);
if(res >- 0)
res = fprintf(logfile, "CALLERNAME=%s\n", (!cn) ? "<unknown>" : cn);
if(res >= 0)
res = fprintf(logfile, "TIMESTAMP=%s\n\n", timestamp);
if(res >= 0)
res = fprintf(logfile, "[events]\n\n");
if(res < 0){
ast_verbose(VERBOSE_PREFIX_4 "AlarmReceiver: can't write metadata\n");
ast_log(LOG_DEBUG,"AlarmReceiver: can't write metadata\n");
}
else
res = 0;
return res;
}
/*
* Write a single event to the log file
*/
static int write_event( FILE *logfile, event_node_t *event)
{
int res = 0;
if( fprintf(logfile, "%s\n", event->data) < 0)
res = -1;
return res;
}
/*
* If we are configured to log events, do so here.
*
*/
static int log_events(struct ast_channel *chan, char *signalling_type, event_node_t *event)
{
int res = 0;
char workstring[sizeof(event_spool_dir)+sizeof(event_file)] = "";
int fd;
FILE *logfile;
event_node_t *elp = event;
if(strlen(event_spool_dir)){
/* Make a template */
ast_copy_string(workstring, event_spool_dir, sizeof(workstring));
strncat(workstring, event_file, sizeof(workstring) - strlen(workstring) - 1);
/* Make the temporary file */
fd = mkstemp(workstring);
if(fd == -1){
ast_verbose(VERBOSE_PREFIX_4 "AlarmReceiver: can't make temporary file\n");
ast_log(LOG_DEBUG,"AlarmReceiver: can't make temporary file\n");
res = -1;
}
if(!res){
logfile = fdopen(fd, "w");
if(logfile){
/* Write the file */
res = write_metadata(logfile, signalling_type, chan);
if(!res)
while((!res) && (elp != NULL)){
res = write_event(logfile, elp);
elp = elp->next;
}
if(!res){
if(fflush(logfile) == EOF)
res = -1;
if(!res){
if(fclose(logfile) == EOF)
res = -1;
}
}
}
else
res = -1;
}
}
return res;
}
/*
* This function implements the logic to receive the Ademco contact ID format.
*
* The function will return 0 when the caller hangs up, else a -1 if there was a problem.
*/
static int receive_ademco_contact_id( struct ast_channel *chan, void *data, int fdto, int sdto, int tldn, event_node_t **ehead)
{
int i,j;
int res = 0;
int checksum;
char event[17];
event_node_t *enew, *elp;
int got_some_digits = 0;
int events_received = 0;
int ack_retries = 0;
static char digit_map[15] = "0123456789*#ABC";
static unsigned char digit_weights[15] = {10,1,2,3,4,5,6,7,8,9,11,12,13,14,15};
database_increment("calls-received");
/* Wait for first event */
if(option_verbose >= 4)
ast_verbose(VERBOSE_PREFIX_4 "AlarmReceiver: Waiting for first event from panel\n");
while(res >= 0){
if(got_some_digits == 0){
/* Send ACK tone sequence */
if(option_verbose >= 4)
ast_verbose(VERBOSE_PREFIX_4 "AlarmReceiver: Sending 1400Hz 100ms burst (ACK)\n");
res = send_tone_burst(chan, 1400.0, 100, tldn);
if(!res)
res = ast_safe_sleep(chan, 100);
if(!res){
if(option_verbose >= 4)
ast_verbose(VERBOSE_PREFIX_4 "AlarmReceiver: Sending 2300Hz 100ms burst (ACK)\n");
res = send_tone_burst(chan, 2300.0, 100, tldn);
}
}
if( res >= 0)
res = receive_dtmf_digits(chan, event, sizeof(event) - 1, fdto, sdto);
if (res < 0){
if(events_received == 0)
/* Hangup with no events received should be logged in the DB */
database_increment("no-events-received");
else{
if(ack_retries){
if(option_verbose >= 4)
ast_verbose(VERBOSE_PREFIX_2 "AlarmReceiver: ACK retries during this call: %d\n", ack_retries);
database_increment("ack-retries");
}
}
if(option_verbose >= 4)
ast_verbose(VERBOSE_PREFIX_4 "AlarmReceiver: App exiting...\n");
res = -1;
break;
}
if(res != 0){
/* Didn't get all of the digits */
if(option_verbose >= 2)
ast_verbose(VERBOSE_PREFIX_2 "AlarmReceiver: Incomplete string: %s, trying again...\n", event);
if(!got_some_digits){
got_some_digits = (strlen(event)) ? 1 : 0;
ack_retries++;
}
continue;
}
got_some_digits = 1;
if(option_verbose >= 2)
ast_verbose(VERBOSE_PREFIX_2 "AlarmReceiver: Received Event %s\n", event);
ast_log(LOG_DEBUG, "AlarmReceiver: Received event: %s\n", event);
/* Calculate checksum */
for(j = 0, checksum = 0; j < 16; j++){
for(i = 0 ; i < sizeof(digit_map) ; i++){
if(digit_map[i] == event[j])
break;
}
if(i == 16)
break;
checksum += digit_weights[i];
}
if(i == 16){
if(option_verbose >= 2)
ast_verbose(VERBOSE_PREFIX_2 "AlarmReceiver: Bad DTMF character %c, trying again\n", event[j]);
continue; /* Bad character */
}
/* Checksum is mod(15) of the total */
checksum = checksum % 15;
if(checksum){
database_increment("checksum-errors");
if(option_verbose >= 2){
ast_verbose(VERBOSE_PREFIX_2 "AlarmReceiver: Nonzero checksum\n");
ast_log(LOG_DEBUG, "AlarmReceiver: Nonzero checksum\n");
continue;
}
}
/* Check the message type for correctness */
if(strncmp(event + 4, "18", 2)){
if(strncmp(event + 4, "98", 2)){
database_increment("format-errors");
if(option_verbose >= 2)
ast_verbose(VERBOSE_PREFIX_2 "AlarmReceiver: Wrong message type\n");
ast_log(LOG_DEBUG, "AlarmReceiver: Wrong message type\n");
continue;
}
}
events_received++;
/* Queue the Event */
if((enew = malloc(sizeof(event_node_t))) == NULL){
if(option_verbose >= 1)
ast_verbose(VERBOSE_PREFIX_1 "AlarmReceiver: Failed to allocate memory\n");
ast_log(LOG_WARNING, "AlarmReceiver Failed to allocate memory\n");
res = -1;
break;
}
memset(enew, 0, sizeof(event_node_t));
enew->next = NULL;
ast_copy_string(enew->data, event, sizeof(enew->data));
/*
* Insert event onto end of list
*/
if(*ehead == NULL){
*ehead = enew;
}
else{
for(elp = *ehead; elp->next != NULL; elp = elp->next)
;
elp->next = enew;
}
if(res > 0)
res = 0;
/* Let the user have the option of logging the single event before sending the kissoff tone */
if((res == 0) && (log_individual_events))
res = log_events(chan, ADEMCO_CONTACT_ID, enew);
/* Wait 200 msec before sending kissoff */
if(res == 0)
res = ast_safe_sleep(chan, 200);
/* Send the kissoff tone */
if(res == 0)
res = send_tone_burst(chan, 1400.0, 900, tldn);
}
return res;
}
/*
* This is the main function called by Asterisk Core whenever the App is invoked in the extension logic.
* This function will always return 0.
*/
static int alarmreceiver_exec(struct ast_channel *chan, void *data)
{
int res = 0;
struct localuser *u;
event_node_t *elp, *efree;
char signalling_type[64] = "";
event_node_t *event_head = NULL;
LOCAL_USER_ADD(u);
/* Set write and read formats to ULAW */
if(option_verbose >= 4)
ast_verbose(VERBOSE_PREFIX_4 "AlarmReceiver: Setting read and write formats to ULAW\n");
if (ast_set_write_format(chan,AST_FORMAT_ULAW)){
ast_log(LOG_WARNING, "AlarmReceiver: Unable to set write format to Mu-law on %s\n",chan->name);
return -1;
}
if (ast_set_read_format(chan,AST_FORMAT_ULAW)){
ast_log(LOG_WARNING, "AlarmReceiver: Unable to set read format to Mu-law on %s\n",chan->name);
return -1;
}
/* Set default values for this invokation of the application */
ast_copy_string(signalling_type, ADEMCO_CONTACT_ID, sizeof(signalling_type));
/* Answer the channel if it is not already */
if(option_verbose >= 4)
ast_verbose(VERBOSE_PREFIX_4 "AlarmReceiver: Answering channel\n");
if (chan->_state != AST_STATE_UP) {
res = ast_answer(chan);
if (res) {
LOCAL_USER_REMOVE(u);
return -1;
}
}
/* Wait for the connection to settle post-answer */
if(option_verbose >= 4)
ast_verbose(VERBOSE_PREFIX_4 "AlarmReceiver: Waiting for connection to stabilize\n");
res = ast_safe_sleep(chan, 1250);
/* Attempt to receive the events */
if(!res){
/* Determine the protocol to receive in advance */
/* Note: Ademco contact is the only one supported at this time */
/* Others may be added later */
if(!strcmp(signalling_type, ADEMCO_CONTACT_ID))
receive_ademco_contact_id(chan, data, fdtimeout, sdtimeout, toneloudness, &event_head);
else
res = -1;
}
/* Events queued by receiver, write them all out here if so configured */
if((!res) && (log_individual_events == 0)){
res = log_events(chan, signalling_type, event_head);
}
/*
* Do we exec a command line at the end?
*/
if((!res) && (strlen(event_app)) && (event_head)){
ast_log(LOG_DEBUG,"Alarmreceiver: executing: %s\n", event_app);
ast_safe_system(event_app);
}
/*
* Free up the data allocated in our linked list
*/
for(elp = event_head; (elp != NULL);){
efree = elp;
elp = elp->next;
free(efree);
}
LOCAL_USER_REMOVE(u);
return 0;
}
/*
* Load the configuration from the configuration file
*/
static int load_config(void)
{
struct ast_config *cfg;
char *p;
/* Read in the config file */
cfg = ast_config_load(ALMRCV_CONFIG);
if(!cfg){
if(option_verbose >= 4)
ast_verbose(VERBOSE_PREFIX_4 "AlarmReceiver: No config file\n");
}
else{
p = ast_variable_retrieve(cfg, "general", "eventcmd");
if(p){
ast_copy_string(event_app, p, sizeof(event_app));
event_app[sizeof(event_app) - 1] = '\0';
}
p = ast_variable_retrieve(cfg, "general", "loudness");
if(p){
toneloudness = atoi(p);
if(toneloudness < 100)
toneloudness = 100;
if(toneloudness > 8192)
toneloudness = 8192;
}
p = ast_variable_retrieve(cfg, "general", "fdtimeout");
if(p){
fdtimeout = atoi(p);
if(fdtimeout < 1000)
fdtimeout = 1000;
if(fdtimeout > 10000)
fdtimeout = 10000;
}
p = ast_variable_retrieve(cfg, "general", "sdtimeout");
if(p){
sdtimeout = atoi(p);
if(sdtimeout < 110)
sdtimeout = 110;
if(sdtimeout > 4000)
sdtimeout = 4000;
}
p = ast_variable_retrieve(cfg, "general", "logindividualevents");
if(p){
log_individual_events = ast_true(p);
}
p = ast_variable_retrieve(cfg, "general", "eventspooldir");
if(p){
ast_copy_string(event_spool_dir, p, sizeof(event_spool_dir));
event_spool_dir[sizeof(event_spool_dir) - 1] = '\0';
}
p = ast_variable_retrieve(cfg, "general", "timestampformat");
if(p){
ast_copy_string(time_stamp_format, p, sizeof(time_stamp_format));
time_stamp_format[sizeof(time_stamp_format) - 1] = '\0';
}
p = ast_variable_retrieve(cfg, "general", "db-family");
if(p){
ast_copy_string(db_family, p, sizeof(db_family));
db_family[sizeof(db_family) - 1] = '\0';
}
ast_config_destroy(cfg);
}
return 0;
}
/*
* These functions are required to implement an Asterisk App.
*/
int unload_module(void)
{
STANDARD_HANGUP_LOCALUSERS;
return ast_unregister_application(app);
}
int load_module(void)
{
load_config();
return ast_register_application(app, alarmreceiver_exec, synopsis, descrip);
}
char *description(void)
{
return tdesc;
}
int usecount(void)
{
int res;
STANDARD_USECOUNT(res);
return res;
}
char *key()
{
return ASTERISK_GPL_KEY;
}

126
apps/app_authenticate.c Executable file → Normal file
View File

@@ -11,21 +11,25 @@
* the GNU General Public License
*/
#include <asterisk/lock.h>
#include <asterisk/file.h>
#include <asterisk/logger.h>
#include <asterisk/channel.h>
#include <asterisk/pbx.h>
#include <asterisk/module.h>
#include <asterisk/app.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <stdio.h>
#include <pthread.h>
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/lock.h"
#include "asterisk/file.h"
#include "asterisk/logger.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
#include "asterisk/app.h"
#include "asterisk/astdb.h"
#include "asterisk/utils.h"
static char *tdesc = "Authentication Application";
@@ -41,9 +45,20 @@ static char *descrip =
"an optional set of opions may be provided by concatenating any\n"
"of the following letters:\n"
" a - Set account code to the password that is entered\n"
" d - Interpret path as database key, not literal file\n"
" m - Interpret path as a file which contains a list of\n"
" account codes and password hashes delimited with ':'\n"
" one per line. When password matched, corresponding\n"
" account code will be set\n"
" j - Support jumping to n+101\n"
" r - Remove database key upon successful entry (valid with 'd' only)\n"
"\n"
"When using a database key, the value associated with the key can be\n"
"anything.\n"
"Returns 0 if the user enters a valid password within three\n"
"tries, or -1 otherwise (or on hangup).\n";
"tries, or -1 on hangup. If the priority n+101 exists and invalid\n"
"authentication was entered, and the 'j' flag was specified, processing\n"
"will jump to n+101 and 0 will be returned.\n";
STANDARD_LOCAL_USER;
@@ -52,13 +67,14 @@ LOCAL_USER_DECL;
static int auth_exec(struct ast_channel *chan, void *data)
{
int res=0;
int jump = 0;
int retries;
struct localuser *u;
char password[256]="";
char passwd[256];
char *opts;
char *prompt;
if (!data || !strlen(data)) {
if (!data || ast_strlen_zero(data)) {
ast_log(LOG_WARNING, "Authenticate requires an argument(password)\n");
return -1;
}
@@ -77,6 +93,8 @@ static int auth_exec(struct ast_channel *chan, void *data)
opts++;
} else
opts = "";
if (strchr(opts, 'j'))
jump = 1;
/* Start asking for password */
prompt = "agent-pass";
for (retries = 0; retries < 3; retries++) {
@@ -85,24 +103,63 @@ static int auth_exec(struct ast_channel *chan, void *data)
break;
res = 0;
if (password[0] == '/') {
/* Compare against a file */
FILE *f;
f = fopen(password, "r");
if (f) {
char buf[256] = "";
while(!feof(f)) {
fgets(buf, sizeof(buf), f);
if (!feof(f) && strlen(buf)) {
buf[strlen(buf) - 1] = '\0';
if (strlen(buf) && !strcmp(passwd, buf))
break;
if (strchr(opts, 'd')) {
char tmp[256];
/* Compare against a database key */
if (!ast_db_get(password + 1, passwd, tmp, sizeof(tmp))) {
/* It's a good password */
if (strchr(opts, 'r')) {
ast_db_del(password + 1, passwd);
}
}
fclose(f);
if (strlen(buf) && !strcmp(passwd, buf))
break;
} else
ast_log(LOG_WARNING, "Unable to open file '%s' for authentication: %s\n", password, strerror(errno));
}
} else {
/* Compare against a file */
FILE *f;
f = fopen(password, "r");
if (f) {
char buf[256] = "";
char md5passwd[33] = "";
char *md5secret = NULL;
while (!feof(f)) {
fgets(buf, sizeof(buf), f);
if (!feof(f) && !ast_strlen_zero(buf)) {
buf[strlen(buf) - 1] = '\0';
if (strchr(opts, 'm')) {
md5secret = strchr(buf, ':');
if (md5secret == NULL)
continue;
*md5secret = '\0';
md5secret++;
ast_md5_hash(md5passwd, passwd);
if (!strcmp(md5passwd, md5secret)) {
if (strchr(opts, 'a'))
ast_cdr_setaccount(chan, buf);
break;
}
} else {
if (!strcmp(passwd, buf)) {
if (strchr(opts, 'a'))
ast_cdr_setaccount(chan, buf);
break;
}
}
}
}
fclose(f);
if (!ast_strlen_zero(buf)) {
if (strchr(opts, 'm')) {
if (md5secret && !strcmp(md5passwd, md5secret))
break;
} else {
if (!strcmp(passwd, buf))
break;
}
}
} else
ast_log(LOG_WARNING, "Unable to open file '%s' for authentication: %s\n", password, strerror(errno));
}
} else {
/* Compare against a fixed password */
if (!strcmp(passwd, password))
@@ -111,17 +168,20 @@ static int auth_exec(struct ast_channel *chan, void *data)
prompt="auth-incorrect";
}
if ((retries < 3) && !res) {
if (strchr(opts, 'a'))
if (strchr(opts, 'a') && !strchr(opts, 'm'))
ast_cdr_setaccount(chan, passwd);
res = ast_streamfile(chan, "auth-thankyou", chan->language);
if (!res)
res = ast_waitstream(chan, "");
} else {
if (!res)
res = ast_streamfile(chan, "vm-goodbye", chan->language);
if (!res)
res = ast_waitstream(chan, "");
res = -1;
if (jump && ast_exists_extension(chan, chan->context, chan->exten, chan->priority + 101, chan->cid.cid_num)) {
chan->priority+=100;
res = 0;
} else {
if (!ast_streamfile(chan, "vm-goodbye", chan->language))
res = ast_waitstream(chan, "");
res = -1;
}
}
LOCAL_USER_REMOVE(u);
return res;

11
apps/app_cdr.c Executable file → Normal file
View File

@@ -12,11 +12,16 @@
*/
#include <sys/types.h>
#include <asterisk/channel.h>
#include <asterisk/module.h>
#include <asterisk/pbx.h>
#include <stdlib.h>
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/channel.h"
#include "asterisk/module.h"
#include "asterisk/pbx.h"
static char *tdesc = "Make sure asterisk doesn't save CDR for a certain call";

79
apps/app_chanisavail.c Executable file → Normal file
View File

@@ -3,7 +3,7 @@
*
* Check if Channel is Available
*
* Copyright (C) 2003, Digium
* Copyright (C) 2003 - 2005, Digium, Inc.
*
* Mark Spencer <markster@digium.com>
* James Golovich <james@gnuinter.net>
@@ -13,13 +13,6 @@
*
*/
#include <asterisk/lock.h>
#include <asterisk/file.h>
#include <asterisk/logger.h>
#include <asterisk/channel.h>
#include <asterisk/pbx.h>
#include <asterisk/module.h>
#include <asterisk/app.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
@@ -27,7 +20,18 @@
#include <stdlib.h>
#include <sys/ioctl.h>
#include <pthread.h>
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/lock.h"
#include "asterisk/file.h"
#include "asterisk/logger.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
#include "asterisk/app.h"
#include "asterisk/devicestate.h"
static char *tdesc = "Check if channel is available";
@@ -36,14 +40,18 @@ static char *app = "ChanIsAvail";
static char *synopsis = "Check if channel is available";
static char *descrip =
" ChanIsAvail(Technology/resource[&Technology2/resource2...]): \n"
" ChanIsAvail(Technology/resource[&Technology2/resource2...][|option]): \n"
"Checks is any of the requested channels are available. If none\n"
"of the requested channels are available the new priority will\n"
"be n+101 (unless such a priority does not exist, in which case\n"
"ChanIsAvail will return -1. If any of the requested channels\n"
"are available, the next priority will be n+1, the channel variable\n"
"${AVAILCHAN} will be set to the name of the available channel and\n"
"the ChanIsAvail app will return 0.\n";
"of the requested channels are available the new priority will be\n"
"n+101 (unless such a priority does not exist or on error, in which\n"
"case ChanIsAvail will return -1).\n"
"If any of the requested channels are available, the next priority will be n+1,\n"
"the channel variable ${AVAILCHAN} will be set to the name of the available channel\n"
"and the ChanIsAvail app will return 0.\n"
"${AVAILORIGCHAN} is the canonical channel name that was used to create the channel.\n"
"${AVAILSTATUS} is the status code for the channel.\n"
"If the option 's' is specified (state), will consider channel unavailable\n"
"when the channel is in use at all, even if it can take another call.\n";
STANDARD_LOCAL_USER;
@@ -51,9 +59,10 @@ LOCAL_USER_DECL;
static int chanavail_exec(struct ast_channel *chan, void *data)
{
int res=-1;
int res=-1, inuse=-1, option_state=0;
int status;
struct localuser *u;
char info[256], *peers, *tech, *number, *rest, *cur;
char info[512], tmp[512], trychan[512], *peers, *tech, *number, *rest, *cur, *options, *stringp;
struct ast_channel *tempchan;
if (!data) {
@@ -62,7 +71,12 @@ static int chanavail_exec(struct ast_channel *chan, void *data)
}
LOCAL_USER_ADD(u);
strncpy(info, (char *)data, strlen((char *)data) + AST_MAX_EXTENSION-1);
strncpy(info, (char *)data, sizeof(info)-1);
stringp = info;
strsep(&stringp, "|");
options = strsep(&stringp, "|");
if (options && *options == 's')
option_state = 1;
peers = info;
if (peers) {
cur = peers;
@@ -76,25 +90,42 @@ static int chanavail_exec(struct ast_channel *chan, void *data)
tech = cur;
number = strchr(tech, '/');
if (!number) {
ast_log(LOG_WARNING, "ChanIsAvail argument takes format (Zap/[device])\n");
continue;
ast_log(LOG_WARNING, "ChanIsAvail argument takes format ([technology]/[device])\n");
return -1;
}
*number = '\0';
number++;
if ((tempchan = ast_request(tech, chan->nativeformats, number))) {
if (option_state) {
/* If the pbx says in use then don't bother trying further.
This is to permit testing if someone's on a call, even if the
channel can permit more calls (ie callwaiting, sip calls, etc). */
snprintf(trychan, sizeof(trychan), "%s/%s",cur,number);
status = inuse = ast_device_state(trychan);
}
if ((inuse < 1) && (tempchan = ast_request(tech, chan->nativeformats, number, &status))) {
pbx_builtin_setvar_helper(chan, "AVAILCHAN", tempchan->name);
/* Store the originally used channel too */
snprintf(tmp, sizeof(tmp), "%s/%s", tech, number);
pbx_builtin_setvar_helper(chan, "AVAILORIGCHAN", tmp);
snprintf(tmp, sizeof(tmp), "%d", status);
pbx_builtin_setvar_helper(chan, "AVAILSTATUS", tmp);
ast_hangup(tempchan);
tempchan = NULL;
res = 1;
break;
} else {
snprintf(tmp, sizeof(tmp), "%d", status);
pbx_builtin_setvar_helper(chan, "AVAILSTATUS", tmp);
}
cur = rest;
} while (cur);
}
if (res < 1) {
pbx_builtin_setvar_helper(chan, "AVAILCHAN", "");
if (ast_exists_extension(chan, chan->context, chan->exten, chan->priority + 101, chan->callerid))
pbx_builtin_setvar_helper(chan, "AVAILORIGCHAN", "");
if (ast_exists_extension(chan, chan->context, chan->exten, chan->priority + 101, chan->cid.cid_num))
chan->priority+=100;
else
return -1;

710
apps/app_chanspy.c Normal file
View File

@@ -0,0 +1,710 @@
/*
* Asterisk -- A telephony toolkit for Linux.
*
* ChanSpy Listen in on any channel.
*
* Copyright (C) 2005 Anthony Minessale II (anthmct@yahoo.com)
*
* Disclaimed to Digium
*
* This program is free software, distributed under the terms of
* the GNU General Public License
*/
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <ctype.h>
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/file.h"
#include "asterisk/logger.h"
#include "asterisk/channel.h"
#include "asterisk/features.h"
#include "asterisk/options.h"
#include "asterisk/slinfactory.h"
#include "asterisk/app.h"
#include "asterisk/utils.h"
#include "asterisk/say.h"
#include "asterisk/pbx.h"
#include "asterisk/translate.h"
#include "asterisk/module.h"
#include "asterisk/lock.h"
AST_MUTEX_DEFINE_STATIC(modlock);
#define AST_NAME_STRLEN 256
#define ALL_DONE(u, ret) LOCAL_USER_REMOVE(u); return ret;
#define get_volfactor(x) x ? ((x > 0) ? (1 << x) : ((1 << abs(x)) * -1)) : 0
#define minmax(x,y) x ? (x > y) ? y : ((x < (y * -1)) ? (y * -1) : x) : 0
static char *synopsis = "Tap into any type of asterisk channel and listen to audio";
static char *app = "ChanSpy";
static char *desc = " Chanspy([<scanspec>][|<options>])\n\n"
"Valid Options:\n"
" - q: quiet, don't announce channels beep, etc.\n"
" - b: bridged, only spy on channels involved in a bridged call.\n"
" - v([-4..4]): adjust the initial volume. (negative is quieter)\n"
" - g(grp): enforce group. Match only calls where their ${SPYGROUP} is 'grp'.\n"
" - r[(basename)]: Record session to monitor spool dir (with optional basename, default is 'chanspy')\n\n"
"If <scanspec> is specified, only channel names *beginning* with that string will be scanned.\n"
"('all' or an empty string are also both valid <scanspec>)\n\n"
"While Spying:\n\n"
"Dialing # cycles the volume level.\n"
"Dialing * will stop spying and look for another channel to spy on.\n"
"Dialing a series of digits followed by # builds a channel name to append to <scanspec>\n"
"(e.g. run Chanspy(Agent) and dial 1234# while spying to jump to channel Agent/1234)\n\n"
"";
#define OPTION_QUIET (1 << 0) /* Quiet, no announcement */
#define OPTION_BRIDGED (1 << 1) /* Only look at bridged calls */
#define OPTION_VOLUME (1 << 2) /* Specify initial volume */
#define OPTION_GROUP (1 << 3) /* Only look at channels in group */
#define OPTION_RECORD (1 << 4) /* Record */
AST_DECLARE_OPTIONS(chanspy_opts,{
['q'] = { OPTION_QUIET },
['b'] = { OPTION_BRIDGED },
['v'] = { OPTION_VOLUME, 1 },
['g'] = { OPTION_GROUP, 2 },
['r'] = { OPTION_RECORD, 3 },
});
STANDARD_LOCAL_USER;
LOCAL_USER_DECL;
struct chanspy_translation_helper {
/* spy data */
struct ast_channel_spy spy;
int volfactor;
int fd;
struct ast_slinfactory slinfactory[2];
};
/* Prototypes */
static struct ast_channel *local_get_channel_begin_name(char *name);
static struct ast_channel *local_channel_walk(struct ast_channel *chan);
static void spy_release(struct ast_channel *chan, void *data);
static void *spy_alloc(struct ast_channel *chan, void *params);
static struct ast_frame *spy_queue_shift(struct ast_channel_spy *spy, int qnum);
static void ast_flush_spy_queue(struct ast_channel_spy *spy);
static int spy_generate(struct ast_channel *chan, void *data, int len, int samples);
static void start_spying(struct ast_channel *chan, struct ast_channel *spychan, struct ast_channel_spy *spy);
static void stop_spying(struct ast_channel *chan, struct ast_channel_spy *spy);
static int channel_spy(struct ast_channel *chan, struct ast_channel *spyee, int *volfactor, int fd);
static int chanspy_exec(struct ast_channel *chan, void *data);
#if 0
static struct ast_channel *local_get_channel_by_name(char *name)
{
struct ast_channel *ret;
ast_mutex_lock(&modlock);
if ((ret = ast_get_channel_by_name_locked(name))) {
ast_mutex_unlock(&ret->lock);
}
ast_mutex_unlock(&modlock);
return ret;
}
#endif
static struct ast_channel *local_channel_walk(struct ast_channel *chan)
{
struct ast_channel *ret;
ast_mutex_lock(&modlock);
if ((ret = ast_channel_walk_locked(chan))) {
ast_mutex_unlock(&ret->lock);
}
ast_mutex_unlock(&modlock);
return ret;
}
static struct ast_channel *local_get_channel_begin_name(char *name)
{
struct ast_channel *chan, *ret = NULL;
ast_mutex_lock(&modlock);
chan = local_channel_walk(NULL);
while (chan) {
if (!strncmp(chan->name, name, strlen(name))) {
ret = chan;
break;
}
chan = local_channel_walk(chan);
}
ast_mutex_unlock(&modlock);
return ret;
}
static void spy_release(struct ast_channel *chan, void *data)
{
struct chanspy_translation_helper *csth = data;
ast_slinfactory_destroy(&csth->slinfactory[0]);
ast_slinfactory_destroy(&csth->slinfactory[1]);
return;
}
static void *spy_alloc(struct ast_channel *chan, void *params)
{
struct chanspy_translation_helper *csth = params;
ast_slinfactory_init(&csth->slinfactory[0]);
ast_slinfactory_init(&csth->slinfactory[1]);
return params;
}
static struct ast_frame *spy_queue_shift(struct ast_channel_spy *spy, int qnum)
{
struct ast_frame *f;
if (qnum < 0 || qnum > 1)
return NULL;
f = spy->queue[qnum];
if (f) {
spy->queue[qnum] = f->next;
return f;
}
return NULL;
}
static void ast_flush_spy_queue(struct ast_channel_spy *spy)
{
struct ast_frame *f=NULL;
int x = 0;
ast_mutex_lock(&spy->lock);
for(x=0;x<2;x++) {
f = NULL;
while((f = spy_queue_shift(spy, x)))
ast_frfree(f);
}
ast_mutex_unlock(&spy->lock);
}
#if 0
static int extract_audio(short *buf, size_t len, struct ast_trans_pvt *trans, struct ast_frame *fr, int *maxsamp)
{
struct ast_frame *f;
int size, retlen = 0;
if (trans) {
if ((f = ast_translate(trans, fr, 0))) {
size = (f->datalen > len) ? len : f->datalen;
memcpy(buf, f->data, size);
retlen = f->datalen;
ast_frfree(f);
} else {
/* your guess is as good as mine why this will happen but it seems to only happen on iax and appears harmless */
ast_log(LOG_DEBUG, "Failed to translate frame from %s\n", ast_getformatname(fr->subclass));
}
} else {
size = (fr->datalen > len) ? len : fr->datalen;
memcpy(buf, fr->data, size);
retlen = fr->datalen;
}
if (retlen > 0 && (size = retlen / 2)) {
if (size > *maxsamp) {
*maxsamp = size;
}
}
return retlen;
}
static int spy_queue_ready(struct ast_channel_spy *spy)
{
int res = 0;
ast_mutex_lock(&spy->lock);
if (spy->status == CHANSPY_RUNNING) {
res = (spy->queue[0] && spy->queue[1]) ? 1 : 0;
} else {
res = (spy->queue[0] || spy->queue[1]) ? 1 : -1;
}
ast_mutex_unlock(&spy->lock);
return res;
}
#endif
static int spy_generate(struct ast_channel *chan, void *data, int len, int samples)
{
struct chanspy_translation_helper *csth = data;
struct ast_frame frame, *f;
int len0 = 0, len1 = 0, samp0 = 0, samp1 = 0, x, vf, maxsamp;
short buf0[1280], buf1[1280], buf[1280];
if (csth->spy.status == CHANSPY_DONE) {
return -1;
}
ast_mutex_lock(&csth->spy.lock);
while((f = csth->spy.queue[0])) {
csth->spy.queue[0] = f->next;
ast_slinfactory_feed(&csth->slinfactory[0], f);
ast_frfree(f);
}
ast_mutex_unlock(&csth->spy.lock);
ast_mutex_lock(&csth->spy.lock);
while((f = csth->spy.queue[1])) {
csth->spy.queue[1] = f->next;
ast_slinfactory_feed(&csth->slinfactory[1], f);
ast_frfree(f);
}
ast_mutex_unlock(&csth->spy.lock);
if (csth->slinfactory[0].size < len || csth->slinfactory[1].size < len) {
return 0;
}
if ((len0 = ast_slinfactory_read(&csth->slinfactory[0], buf0, len))) {
samp0 = len0 / 2;
}
if((len1 = ast_slinfactory_read(&csth->slinfactory[1], buf1, len))) {
samp1 = len1 / 2;
}
maxsamp = (samp0 > samp1) ? samp0 : samp1;
vf = get_volfactor(csth->volfactor);
vf = minmax(vf, 16);
for(x=0; x < maxsamp; x++) {
if (vf < 0) {
if (samp0) {
buf0[x] /= abs(vf);
}
if (samp1) {
buf1[x] /= abs(vf);
}
} else if (vf > 0) {
if (samp0) {
buf0[x] *= vf;
}
if (samp1) {
buf1[x] *= vf;
}
}
if (samp0 && samp1) {
if (x < samp0 && x < samp1) {
buf[x] = buf0[x] + buf1[x];
} else if (x < samp0) {
buf[x] = buf0[x];
} else if (x < samp1) {
buf[x] = buf1[x];
}
} else if (x < samp0) {
buf[x] = buf0[x];
} else if (x < samp1) {
buf[x] = buf1[x];
}
}
memset(&frame, 0, sizeof(frame));
frame.frametype = AST_FRAME_VOICE;
frame.subclass = AST_FORMAT_SLINEAR;
frame.data = buf;
frame.samples = x;
frame.datalen = x * 2;
if (ast_write(chan, &frame)) {
csth->spy.status = CHANSPY_DONE;
return -1;
}
if (csth->fd) {
write(csth->fd, buf1, len1);
}
return 0;
}
static struct ast_generator spygen = {
alloc: spy_alloc,
release: spy_release,
generate: spy_generate,
};
static void start_spying(struct ast_channel *chan, struct ast_channel *spychan, struct ast_channel_spy *spy)
{
struct ast_channel_spy *cptr=NULL;
struct ast_channel *peer;
ast_log(LOG_WARNING, "Attaching %s to %s\n", spychan->name, chan->name);
ast_mutex_lock(&chan->lock);
if (chan->spiers) {
for(cptr=chan->spiers;cptr && cptr->next;cptr=cptr->next);
cptr->next = spy;
} else {
chan->spiers = spy;
}
ast_mutex_unlock(&chan->lock);
if ( ast_test_flag(chan, AST_FLAG_NBRIDGE) && (peer = ast_bridged_channel(chan))) {
ast_softhangup(peer, AST_SOFTHANGUP_UNBRIDGE);
}
}
static void stop_spying(struct ast_channel *chan, struct ast_channel_spy *spy)
{
struct ast_channel_spy *cptr=NULL, *prev=NULL;
int count = 0;
while(ast_mutex_trylock(&chan->lock)) {
/* if its locked already it's almost surely hanging up and we are too late
we can safely remove the head pointer if it points at us without needing a lock.
since everybody spying will be in the same boat whomever is pointing at the head
will surely erase it which is all we really need since it's a linked list of
staticly declared structs that belong to each spy.
*/
if (chan->spiers == spy) {
chan->spiers = NULL;
return;
}
count++;
if (count > 10) {
return;
}
sched_yield();
}
for(cptr=chan->spiers; cptr; cptr=cptr->next) {
if (cptr == spy) {
if (prev) {
prev->next = cptr->next;
cptr->next = NULL;
} else
chan->spiers = NULL;
}
prev = cptr;
}
ast_mutex_unlock(&chan->lock);
}
static int channel_spy(struct ast_channel *chan, struct ast_channel *spyee, int *volfactor, int fd)
{
struct chanspy_translation_helper csth;
int running = 1, res = 0, x = 0;
char inp[24];
char *name=NULL;
struct ast_frame *f;
if (chan && !ast_check_hangup(chan) && spyee && !ast_check_hangup(spyee)) {
memset(inp, 0, sizeof(inp));
name = ast_strdupa(spyee->name);
if (option_verbose >= 2)
ast_verbose(VERBOSE_PREFIX_2 "Spying on channel %s\n", name);
memset(&csth, 0, sizeof(csth));
csth.spy.status = CHANSPY_RUNNING;
ast_mutex_init(&csth.spy.lock);
csth.volfactor = *volfactor;
if (fd) {
csth.fd = fd;
}
start_spying(spyee, chan, &csth.spy);
ast_activate_generator(chan, &spygen, &csth);
while(csth.spy.status == CHANSPY_RUNNING &&
chan && !ast_check_hangup(chan) &&
spyee &&
!ast_check_hangup(spyee)
&& running == 1 &&
(res = ast_waitfor(chan, -1) > -1)) {
if ((f = ast_read(chan))) {
res = 0;
if (f->frametype == AST_FRAME_DTMF) {
res = f->subclass;
}
ast_frfree(f);
if (!res) {
continue;
}
} else {
break;
}
if (x == sizeof(inp)) {
x = 0;
}
if (res < 0) {
running = -1;
}
if (res == 0) {
continue;
} else if (res == '*') {
running = 0;
} else if (res == '#') {
if (!ast_strlen_zero(inp)) {
running = x ? atoi(inp) : -1;
break;
} else {
csth.volfactor++;
if (csth.volfactor > 4) {
csth.volfactor = -4;
}
if (option_verbose > 2) {
ast_verbose(VERBOSE_PREFIX_3"Setting spy volume on %s to %d\n", chan->name, csth.volfactor);
}
*volfactor = csth.volfactor;
}
} else if (res >= 48 && res <= 57) {
inp[x++] = res;
}
}
ast_deactivate_generator(chan);
stop_spying(spyee, &csth.spy);
if (option_verbose >= 2) {
ast_verbose(VERBOSE_PREFIX_2 "Done Spying on channel %s\n", name);
}
ast_flush_spy_queue(&csth.spy);
} else {
running = 0;
}
ast_mutex_destroy(&csth.spy.lock);
return running;
}
static int chanspy_exec(struct ast_channel *chan, void *data)
{
struct localuser *u;
struct ast_channel *peer=NULL, *prev=NULL;
char name[AST_NAME_STRLEN],
peer_name[AST_NAME_STRLEN],
*args,
*ptr = NULL,
*options = NULL,
*spec = NULL,
*argv[5],
*mygroup = NULL,
*recbase = NULL;
int res = -1,
volfactor = 0,
silent = 0,
argc = 0,
bronly = 0,
chosen = 0,
count=0,
waitms = 100,
num = 0,
oldrf = 0,
oldwf = 0,
fd = 0;
struct ast_flags flags;
if (!(args = ast_strdupa((char *)data))) {
ast_log(LOG_ERROR, "Out of memory!\n");
return -1;
}
oldrf = chan->readformat;
oldwf = chan->writeformat;
if (ast_set_read_format(chan, AST_FORMAT_SLINEAR) < 0) {
ast_log(LOG_ERROR, "Could Not Set Read Format.\n");
return -1;
}
if (ast_set_write_format(chan, AST_FORMAT_SLINEAR) < 0) {
ast_log(LOG_ERROR, "Could Not Set Write Format.\n");
return -1;
}
LOCAL_USER_ADD(u);
ast_answer(chan);
ast_set_flag(chan, AST_FLAG_SPYING); /* so nobody can spy on us while we are spying */
if ((argc = ast_separate_app_args(args, '|', argv, sizeof(argv) / sizeof(argv[0])))) {
spec = argv[0];
if ( argc > 1) {
options = argv[1];
}
if (ast_strlen_zero(spec) || !strcmp(spec, "all")) {
spec = NULL;
}
}
if (options) {
char *opts[3];
ast_parseoptions(chanspy_opts, &flags, opts, options);
if (ast_test_flag(&flags, OPTION_GROUP)) {
mygroup = opts[1];
}
if (ast_test_flag(&flags, OPTION_RECORD)) {
if (!(recbase = opts[2])) {
recbase = "chanspy";
}
}
silent = ast_test_flag(&flags, OPTION_QUIET);
bronly = ast_test_flag(&flags, OPTION_BRIDGED);
if (ast_test_flag(&flags, OPTION_VOLUME) && opts[1]) {
if (sscanf(opts[0], "%d", &volfactor) != 1)
ast_log(LOG_NOTICE, "volfactor must be a number between -4 and 4\n");
else {
volfactor = minmax(volfactor, 4);
}
}
}
if (recbase) {
char filename[512];
snprintf(filename,sizeof(filename),"%s/%s.%ld.raw",ast_config_AST_MONITOR_DIR, recbase, time(NULL));
if ((fd = open(filename, O_CREAT | O_WRONLY, O_TRUNC)) <= 0) {
ast_log(LOG_WARNING, "Cannot open %s for recording\n", filename);
fd = 0;
}
}
for(;;) {
if (!silent) {
res = ast_streamfile(chan, "beep", chan->language);
if (!res)
res = ast_waitstream(chan, "");
if (res < 0) {
ast_clear_flag(chan, AST_FLAG_SPYING);
break;
}
}
count = 0;
res = ast_waitfordigit(chan, waitms);
if (res < 0) {
ast_clear_flag(chan, AST_FLAG_SPYING);
break;
}
peer = local_channel_walk(NULL);
prev=NULL;
while(peer) {
if (peer != chan) {
char *group = NULL;
int igrp = 1;
if (peer == prev && !chosen) {
break;
}
chosen = 0;
group = pbx_builtin_getvar_helper(peer, "SPYGROUP");
if (mygroup) {
if (!group || strcmp(mygroup, group)) {
igrp = 0;
}
}
if (igrp && (!spec || ((strlen(spec) < strlen(peer->name) &&
!strncasecmp(peer->name, spec, strlen(spec)))))) {
if (peer && (!bronly || ast_bridged_channel(peer)) &&
!ast_check_hangup(peer) && !ast_test_flag(peer, AST_FLAG_SPYING)) {
int x = 0;
strncpy(peer_name, peer->name, AST_NAME_STRLEN);
ptr = strchr(peer_name, '/');
*ptr = '\0';
ptr++;
for (x = 0 ; x < strlen(peer_name) ; x++) {
if (peer_name[x] == '/') {
break;
}
peer_name[x] = tolower(peer_name[x]);
}
if (!silent) {
if (ast_fileexists(peer_name, NULL, NULL) != -1) {
res = ast_streamfile(chan, peer_name, chan->language);
if (!res)
res = ast_waitstream(chan, "");
if (res)
break;
} else
res = ast_say_character_str(chan, peer_name, "", chan->language);
if ((num=atoi(ptr)))
ast_say_digits(chan, atoi(ptr), "", chan->language);
}
count++;
prev = peer;
res = channel_spy(chan, peer, &volfactor, fd);
if (res == -1) {
break;
} else if (res > 1 && spec) {
snprintf(name, AST_NAME_STRLEN, "%s/%d", spec, res);
if ((peer = local_get_channel_begin_name(name))) {
chosen = 1;
}
continue;
}
}
}
}
if ((peer = local_channel_walk(peer)) == NULL) {
break;
}
}
waitms = count ? 100 : 5000;
}
if (fd > 0) {
close(fd);
}
if (oldrf && ast_set_read_format(chan, oldrf) < 0) {
ast_log(LOG_ERROR, "Could Not Set Read Format.\n");
}
if (oldwf && ast_set_write_format(chan, oldwf) < 0) {
ast_log(LOG_ERROR, "Could Not Set Write Format.\n");
}
ast_clear_flag(chan, AST_FLAG_SPYING);
ALL_DONE(u, res);
}
int unload_module(void)
{
STANDARD_HANGUP_LOCALUSERS;
return ast_unregister_application(app);
}
int load_module(void)
{
return ast_register_application(app, chanspy_exec, synopsis, desc);
}
char *description(void)
{
return synopsis;
}
int usecount(void)
{
int res;
STANDARD_USECOUNT(res);
return res;
}
char *key()
{
return ASTERISK_GPL_KEY;
}

150
apps/app_controlplayback.c Normal file
View File

@@ -0,0 +1,150 @@
/*
* Asterisk -- A telephony toolkit for Linux.
*
* Trivial application to control playback a sound file
*
* Copyright (C) 1999, Mark Spencer
*
* Mark Spencer <markster@linux-support.net>
*
* This program is free software, distributed under the terms of
* the GNU General Public License
*/
#include <string.h>
#include <stdlib.h>
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/lock.h"
#include "asterisk/file.h"
#include "asterisk/logger.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/app.h"
#include "asterisk/module.h"
#include "asterisk/translate.h"
#include "asterisk/utils.h"
static const char *tdesc = "Control Playback Application";
static const char *app = "ControlPlayback";
static const char *synopsis = "Play a file with fast forward and rewind";
static const char *descrip =
"ControlPlayback(filename[|skipms[|ffchar[|rewchar[|stopchar[|pausechar[|restartchar]]]]]]):\n"
" Plays back a given filename (do not put extension). Options may also\n"
" be included following a pipe symbol. You can use * and # to rewind and\n"
" fast forward the playback specified. If 'stopchar' is added the file will\n"
" terminate playback when 'stopchar' is pressed. If 'restartchar' is added, the file\n"
" will restart when 'restartchar' is pressed. Returns -1 if the channel\n"
" was hung up. if the file does not exist jumps to n+101 if it present.\n\n"
" Example: exten => 1234,1,ControlPlayback(file|4000|*|#|1|0|5)\n\n";
STANDARD_LOCAL_USER;
LOCAL_USER_DECL;
static int is_on_phonepad(char key)
{
return key == 35 || key == 42 || (key >= 48 && key <= 57);
}
static int controlplayback_exec(struct ast_channel *chan, void *data)
{
int res = 0;
int skipms = 0;
struct localuser *u;
char *tmp;
int argc;
char *argv[7];
enum arg_ids {
arg_file = 0,
arg_skip = 1,
arg_fwd = 2,
arg_rev = 3,
arg_stop = 4,
arg_pause = 5,
arg_restart = 6,
};
if (!data || ast_strlen_zero((char *)data)) {
ast_log(LOG_WARNING, "ControlPlayback requires an argument (filename)\n");
return -1;
}
tmp = ast_strdupa(data);
memset(argv, 0, sizeof(argv));
argc = ast_separate_app_args(tmp, '|', argv, sizeof(argv) / sizeof(argv[0]));
if (argc < 1) {
ast_log(LOG_WARNING, "ControlPlayback requires an argument (filename)\n");
return -1;
}
skipms = argv[arg_skip] ? atoi(argv[arg_skip]) : 3000;
if (!skipms)
skipms = 3000;
if (!argv[arg_fwd] || !is_on_phonepad(*argv[arg_fwd]))
argv[arg_fwd] = "#";
if (!argv[arg_rev] || !is_on_phonepad(*argv[arg_rev]))
argv[arg_rev] = "*";
if (argv[arg_stop] && !is_on_phonepad(*argv[arg_stop]))
argv[arg_stop] = NULL;
if (argv[arg_pause] && !is_on_phonepad(*argv[arg_pause]))
argv[arg_pause] = NULL;
if (argv[arg_restart] && !is_on_phonepad(*argv[arg_restart]))
argv[arg_restart] = NULL;
LOCAL_USER_ADD(u);
res = ast_control_streamfile(chan, argv[arg_file], argv[arg_fwd], argv[arg_rev], argv[arg_stop], argv[arg_pause], argv[arg_restart], skipms);
LOCAL_USER_REMOVE(u);
/* If we stopped on one of our stop keys, return 0 */
if (argv[arg_stop] && strchr(argv[arg_stop], res))
res = 0;
if (res < 0) {
if (ast_goto_if_exists(chan, chan->context, chan->exten, chan->priority + 101))
res = 0;
}
return res;
}
int unload_module(void)
{
STANDARD_HANGUP_LOCALUSERS;
return ast_unregister_application(app);
}
int load_module(void)
{
return ast_register_application(app, controlplayback_exec, synopsis, descrip);
}
char *description(void)
{
return (char *) tdesc;
}
int usecount(void)
{
int res;
STANDARD_USECOUNT(res);
return res;
}
char *key()
{
return ASTERISK_GPL_KEY;
}

167
apps/app_curl.c Normal file
View File

@@ -0,0 +1,167 @@
/*
* Asterisk -- A telephony toolkit for Linux.
*
* Curl - App to load a URL
*
* Copyright (C) 2004 - 2005, Tilghman Lesher
*
* Tilghman Lesher <curl-20041222@the-tilghman.com>
* and Brian Wilkins <bwilkins@cfl.rr.com> (Added POST option)
*
* app_curl.c is distributed with no restrictions on usage or
* redistribution.
*/
#include <stdlib.h>
#include <string.h>
#include <curl/curl.h>
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/lock.h"
#include "asterisk/file.h"
#include "asterisk/logger.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/cli.h"
#include "asterisk/options.h"
#include "asterisk/module.h"
static char *tdesc = "Load external URL";
static char *app = "Curl";
static char *synopsis = "Load an external URL";
static char *descrip =
" Curl(URL[|postdata]): Requests the URL. Mainly used for signalling\n"
"external applications of an event. Returns 0 or -1 on fatal error.\n"
"Argument specified treated as POST data. Also sets CURL variable with the\n"
"resulting page.\n";
STANDARD_LOCAL_USER;
LOCAL_USER_DECL;
extern int errno;
struct MemoryStruct {
char *memory;
size_t size;
};
static void *myrealloc(void *ptr, size_t size)
{
/* There might be a realloc() out there that doesn't like reallocing
NULL pointers, so we take care of it here */
if (ptr)
return realloc(ptr, size);
else
return malloc(size);
}
static size_t WriteMemoryCallback(void *ptr, size_t size, size_t nmemb, void *data)
{
register int realsize = size * nmemb;
struct MemoryStruct *mem = (struct MemoryStruct *)data;
mem->memory = (char *)myrealloc(mem->memory, mem->size + realsize + 1);
if (mem->memory) {
memcpy(&(mem->memory[mem->size]), ptr, realsize);
mem->size += realsize;
mem->memory[mem->size] = 0;
}
return realsize;
}
static int curl_exec(struct ast_channel *chan, void *data)
{
int res = 0;
struct localuser *u;
CURL *curl;
char *info, *post_data=NULL, *url;
if (!data || !strlen((char *)data)) {
ast_log(LOG_WARNING, "Curl requires an argument (URL)\n");
return -1;
}
if ((info = ast_strdupa((char *)data))) {
url = strsep(&info, "|");
post_data = info;
} else {
ast_log(LOG_ERROR, "Out of memory\n");
return -1;
}
LOCAL_USER_ADD(u);
curl_global_init(CURL_GLOBAL_ALL);
curl = curl_easy_init();
if (curl) {
struct MemoryStruct chunk;
chunk.memory=NULL; /* we expect realloc(NULL, size) to work */
chunk.size = 0; /* no data at this point */
curl_easy_setopt(curl, CURLOPT_URL, url);
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, WriteMemoryCallback);
curl_easy_setopt(curl, CURLOPT_WRITEDATA, (void *)&chunk);
curl_easy_setopt(curl, CURLOPT_USERAGENT, "asterisk-libcurl-agent/1.0");
if (post_data) {
curl_easy_setopt(curl, CURLOPT_POST, 1);
curl_easy_setopt(curl, CURLOPT_POSTFIELDS, post_data);
}
curl_easy_perform(curl);
curl_easy_cleanup(curl);
if (chunk.memory) {
chunk.memory[chunk.size] = '\0';
if (chunk.memory[chunk.size - 1] == 10)
chunk.memory[chunk.size - 1] = '\0';
pbx_builtin_setvar_helper(chan, "CURL", chunk.memory);
free(chunk.memory);
}
} else {
ast_log(LOG_ERROR, "Cannot allocate curl structure\n");
res = -1;
}
LOCAL_USER_REMOVE(u);
return res;
}
int unload_module(void)
{
STANDARD_HANGUP_LOCALUSERS;
return ast_unregister_application(app);
}
int load_module(void)
{
return ast_register_application(app, curl_exec, synopsis, descrip);
}
char *description(void)
{
return tdesc;
}
int usecount(void)
{
int res;
STANDARD_USECOUNT(res);
return res;
}
char *key()
{
return ASTERISK_GPL_KEY;
}

344
apps/app_cut.c Executable file → Normal file
View File

@@ -5,7 +5,7 @@
*
* Copyright (c) 2003 Tilghman Lesher. All rights reserved.
*
* Tilghman Lesher <app_cut__v002@the-tilghman.com>
* Tilghman Lesher <app_cut__v003@the-tilghman.com>
*
* $Id$
*
@@ -17,24 +17,30 @@
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <asterisk/file.h>
#include <asterisk/logger.h>
#include <asterisk/options.h>
#include <asterisk/channel.h>
#include <asterisk/pbx.h>
#include <asterisk/module.h>
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/file.h"
#include "asterisk/logger.h"
#include "asterisk/options.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
#include "asterisk/version.h"
/* Maximum length of any variable */
#define MAXRESULT 1024
static char *tdesc = "Cuts up variables";
static char *tdesc = "String manipulation";
static char *app_cut = "Cut";
static char *cut_synopsis = "Cut(newvar=varname|delimiter|fieldspec)";
static char *cut_synopsis = "Splits a variable's content using the specified delimiter";
static char *cut_descrip =
"Cut(newvar=varname,delimiter,field)\n"
"Usage: Cut(newvar=varname,delimiter,fieldspec)\n"
" newvar - new variable created from result string\n"
" varname - variable you want cut\n"
" delimiter - defaults to '-'\n"
@@ -43,56 +49,134 @@ static char *cut_descrip =
" or group of ranges and fields (with &)\n"
" Returns 0 or -1 on hangup or error.\n";
static char *app_sort = "Sort";
static char *app_sort_synopsis = "Sorts a list of keywords and values";
static char *app_sort_descrip =
" Sort(<newvar>=<key1>:<val1>[,<key2>:<val2>[[...],<keyN>:<valN>]])\n"
"Sorts the list provided by using the value as a float to order the list of\n"
"keywords in ascending order. Sets the variable provided to the list of\n"
"sorted keywords. Always returns 0.\n";
STANDARD_LOCAL_USER;
LOCAL_USER_DECL;
static int cut_exec(struct ast_channel *chan, void *data)
struct sortable_keys {
char *key;
float value;
};
static int sort_subroutine(const void *arg1, const void *arg2)
{
int res=0;
struct localuser *u;
char *s, *newvar=NULL, *varname=NULL, *delimiter=NULL, *field=NULL;
const struct sortable_keys *one=arg1, *two=arg2;
if (one->value < two->value) {
return -1;
} else if (one->value == two->value) {
return 0;
} else {
return 1;
}
}
#define ERROR_NOARG (-1)
#define ERROR_NOMEM (-2)
#define ERROR_USAGE (-3)
static int sort_internal(struct ast_channel *chan, char *data, char *buffer, size_t buflen)
{
char *strings, *ptrkey, *ptrvalue;
int count=1, count2;
struct sortable_keys *sortable_keys;
memset(buffer, 0, buflen);
if (!data) {
return ERROR_NOARG;
}
strings = ast_strdupa((char *)data);
if (!strings) {
return ERROR_NOMEM;
}
for (ptrkey = strings; *ptrkey; ptrkey++) {
if (*ptrkey == '|') {
count++;
}
}
sortable_keys = alloca(count * sizeof(struct sortable_keys));
if (!sortable_keys) {
return ERROR_NOMEM;
}
memset(sortable_keys, 0, count * sizeof(struct sortable_keys));
/* Parse each into a struct */
count2 = 0;
while ((ptrkey = strsep(&strings, "|"))) {
ptrvalue = index(ptrkey, ':');
if (!ptrvalue) {
count--;
continue;
}
*ptrvalue = '\0';
ptrvalue++;
sortable_keys[count2].key = ptrkey;
sscanf(ptrvalue, "%f", &sortable_keys[count2].value);
count2++;
}
/* Sort the structs */
qsort(sortable_keys, count, sizeof(struct sortable_keys), sort_subroutine);
for (count2 = 0; count2 < count; count2++) {
strncat(buffer + strlen(buffer), sortable_keys[count2].key, buflen - strlen(buffer));
strncat(buffer + strlen(buffer), ",", buflen - strlen(buffer));
}
/* Remove trailing comma */
buffer[strlen(buffer) - 1] = '\0';
return 0;
}
static int cut_internal(struct ast_channel *chan, char *data, char *buffer, size_t buflen)
{
char *s, *varname=NULL, *delimiter=NULL, *field=NULL;
int args_okay = 0;
LOCAL_USER_ADD(u);
memset(buffer, 0, buflen);
/* Check and parse arguments */
if (data) {
s = ast_strdupa((char *)data);
if (s) {
newvar = strsep(&s, "=");
if (newvar && (newvar[0] != '\0')) {
varname = strsep(&s, "|");
if (varname && (varname[0] != '\0')) {
delimiter = strsep(&s, "|");
if (delimiter) {
field = strsep(&s, "|");
if (field) {
args_okay = 1;
}
varname = strsep(&s, "|");
if (varname && (varname[0] != '\0')) {
delimiter = strsep(&s, "|");
if (delimiter) {
field = strsep(&s, "|");
if (field) {
args_okay = 1;
}
}
}
} else {
ast_log(LOG_ERROR, "Out of memory\n");
res = -1;
return ERROR_NOMEM;
}
}
if (args_okay) {
char d, ds[2];
char *tmp = alloca(strlen(varname) + 4);
char *tmp2 = alloca(MAXRESULT);
char retstring[MAXRESULT];
char varvalue[MAXRESULT], *tmp2=varvalue;
memset(retstring, 0, MAXRESULT);
if (tmp && tmp2) {
if (tmp) {
snprintf(tmp, strlen(varname) + 4, "${%s}", varname);
memset(tmp2, 0, sizeof(tmp2));
memset(varvalue, 0, sizeof(varvalue));
} else {
ast_log(LOG_ERROR, "Out of memory");
return -1;
return ERROR_NOMEM;
}
if (delimiter[0])
@@ -101,7 +185,7 @@ static int cut_exec(struct ast_channel *chan, void *data)
d = '-';
/* String form of the delimiter, for use with strsep(3) */
sprintf(ds,"%c",d);
snprintf(ds, sizeof(ds), "%c", d);
pbx_substitute_variables_helper(chan, tmp, tmp2, MAXRESULT - 1);
@@ -124,9 +208,7 @@ static int cut_exec(struct ast_channel *chan, void *data)
/* single number */
num2 = num1;
} else {
ast_log(LOG_ERROR, "Cut(): Illegal range '%s'\n", nextgroup);
ast_log(LOG_ERROR, "Usage: %s\n", cut_synopsis);
return -1;
return ERROR_USAGE;
}
/* Get to start, if any */
@@ -139,7 +221,7 @@ static int cut_exec(struct ast_channel *chan, void *data)
/* Most frequent problem is the expectation of reordering fields */
if ((num1 > 0) && (curfieldnum > num1)) {
ast_log(LOG_WARNING, "Cut(): we're already past the field you wanted?\n");
ast_log(LOG_WARNING, "We're already past the field you wanted?\n");
}
/* Re-null tmp2 if we added 1 to NULL */
@@ -149,34 +231,206 @@ static int cut_exec(struct ast_channel *chan, void *data)
/* Output fields until we either run out of fields or num2 is reached */
while ((tmp2 != NULL) && (curfieldnum <= num2)) {
char *tmp3 = strsep(&tmp2, ds);
int curlen = strlen(retstring);
int curlen = strlen(buffer);
if (strlen(retstring)) {
snprintf(retstring + curlen, MAXRESULT - curlen, "%c%s", d, tmp3);
if (curlen) {
snprintf(buffer + curlen, buflen - curlen, "%c%s", d, tmp3);
} else {
snprintf(retstring, MAXRESULT, "%s", tmp3);
snprintf(buffer, buflen, "%s", tmp3);
}
curfieldnum++;
}
}
}
}
return 0;
}
pbx_builtin_setvar_helper(chan, newvar, retstring);
static int sort_exec(struct ast_channel *chan, void *data)
{
int res=0;
struct localuser *u;
char *varname, *strings, result[512] = "";
static int dep_warning=0;
LOCAL_USER_ADD(u);
if (!dep_warning) {
ast_log(LOG_WARNING, "The application Sort is deprecated. Please use the SORT() function instead.\n");
dep_warning=1;
}
if (!data) {
ast_log(LOG_ERROR, "Sort() requires an argument\n");
LOCAL_USER_REMOVE(u);
return 0;
}
strings = ast_strdupa((char *)data);
if (!strings) {
ast_log(LOG_ERROR, "Out of memory\n");
LOCAL_USER_REMOVE(u);
return 0;
}
varname = strsep(&strings, "=");
switch (sort_internal(chan, strings, result, sizeof(result))) {
case ERROR_NOARG:
ast_log(LOG_ERROR, "Sort() requires an argument\n");
res = 0;
break;
case ERROR_NOMEM:
ast_log(LOG_ERROR, "Out of memory\n");
res = -1;
break;
case 0:
pbx_builtin_setvar_helper(chan, varname, result);
res = 0;
break;
default:
ast_log(LOG_ERROR, "Unknown internal error\n");
res = -1;
}
LOCAL_USER_REMOVE(u);
return res;
}
static int cut_exec(struct ast_channel *chan, void *data)
{
int res=0;
struct localuser *u;
char *s, *newvar=NULL, result[512];
static int dep_warning = 0;
LOCAL_USER_ADD(u);
if (!dep_warning) {
ast_log(LOG_WARNING, "The application Cut is deprecated. Please use the CUT() function instead.\n");
dep_warning=1;
}
/* Check and parse arguments */
if (data) {
s = ast_strdupa((char *)data);
if (s) {
newvar = strsep(&s, "=");
} else {
ast_log(LOG_ERROR, "Out of memory\n");
LOCAL_USER_REMOVE(u);
return -1;
}
}
switch (cut_internal(chan, s, result, sizeof(result))) {
case ERROR_NOARG:
ast_log(LOG_ERROR, "Cut() requires an argument\n");
res = 0;
break;
case ERROR_NOMEM:
ast_log(LOG_ERROR, "Out of memory\n");
res = -1;
break;
case ERROR_USAGE:
ast_log(LOG_ERROR, "Usage: %s\n", cut_synopsis);
res = 0;
break;
case 0:
pbx_builtin_setvar_helper(chan, newvar, result);
res = 0;
break;
default:
ast_log(LOG_ERROR, "Unknown internal error\n");
res = -1;
}
LOCAL_USER_REMOVE(u);
return res;
}
static char *acf_sort_exec(struct ast_channel *chan, char *cmd, char *data, char *buf, size_t len)
{
struct localuser *u;
LOCAL_USER_ACF_ADD(u);
switch (sort_internal(chan, data, buf, len)) {
case ERROR_NOARG:
ast_log(LOG_ERROR, "SORT() requires an argument\n");
break;
case ERROR_NOMEM:
ast_log(LOG_ERROR, "Out of memory\n");
break;
case 0:
break;
default:
ast_log(LOG_ERROR, "Unknown internal error\n");
}
LOCAL_USER_REMOVE(u);
return buf;
}
static char *acf_cut_exec(struct ast_channel *chan, char *cmd, char *data, char *buf, size_t len)
{
struct localuser *u;
LOCAL_USER_ACF_ADD(u);
switch (cut_internal(chan, data, buf, len)) {
case ERROR_NOARG:
ast_log(LOG_ERROR, "Cut() requires an argument\n");
break;
case ERROR_NOMEM:
ast_log(LOG_ERROR, "Out of memory\n");
break;
case ERROR_USAGE:
ast_log(LOG_ERROR, "Usage: %s\n", cut_synopsis);
break;
case 0:
break;
default:
ast_log(LOG_ERROR, "Unknown internal error\n");
}
LOCAL_USER_REMOVE(u);
return buf;
}
struct ast_custom_function acf_sort = {
.name = "SORT",
.synopsis = "Sorts a list of key/vals into a list of keys, based upon the vals",
.syntax = "SORT(key1:val1[...][,keyN:valN])",
.desc =
"Takes a comma-separated list of keys and values, each separated by a colon, and returns a\n"
"comma-separated list of the keys, sorted by their values. Values will be evaluated as\n"
"floating-point numbers.\n",
.read = acf_sort_exec,
};
struct ast_custom_function acf_cut = {
.name = "CUT",
.synopsis = "Slices and dices strings, based upon a named delimiter.",
.syntax = "CUT(<varname>,<char-delim>,<range-spec>)",
.desc =
" varname - variable you want cut\n"
" char-delim - defaults to '-'\n"
" range-spec - number of the field you want (1-based offset)\n"
" may also be specified as a range (with -)\n"
" or group of ranges and fields (with &)\n",
.read = acf_cut_exec,
};
int unload_module(void)
{
STANDARD_HANGUP_LOCALUSERS;
ast_custom_function_unregister(&acf_cut);
ast_custom_function_unregister(&acf_sort);
ast_unregister_application(app_sort);
return ast_unregister_application(app_cut);
}
int load_module(void)
{
ast_custom_function_register(&acf_cut);
ast_custom_function_register(&acf_sort);
ast_register_application(app_sort, sort_exec, app_sort_synopsis, app_sort_descrip);
return ast_register_application(app_cut, cut_exec, cut_synopsis, cut_descrip);
}

19
apps/app_datetime.c Executable file → Normal file
View File

@@ -11,20 +11,21 @@
* the GNU General Public License
*/
#include <asterisk/lock.h>
#include <asterisk/file.h>
#include <asterisk/logger.h>
#include <asterisk/channel.h>
#include <asterisk/pbx.h>
#include <asterisk/module.h>
#include <asterisk/say.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <pthread.h>
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/lock.h"
#include "asterisk/file.h"
#include "asterisk/logger.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
#include "asterisk/say.h"
static char *tdesc = "Date and Time";

445
apps/app_db.c Executable file → Normal file
View File

@@ -3,50 +3,52 @@
*
* Database access functions
*
* Copyright (C) 1999, Mark Spencer
* Copyright (C) 1999 - 2005, Digium, Inc.
* Copyright (C) 2003, Jefferson Noxon
*
* Mark Spencer <markster@linux-support.net>
* Mark Spencer <markster@digium.com>
* Jefferson Noxon <jeff@debian.org>
*
* This program is free software, distributed under the terms of
* the GNU General Public License
*/
#include <sys/types.h>
#include <asterisk/options.h>
#include <asterisk/file.h>
#include <asterisk/logger.h>
#include <asterisk/channel.h>
#include <asterisk/pbx.h>
#include <asterisk/module.h>
#include <asterisk/pbx.h>
#include <asterisk/astdb.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <pthread.h>
#include <sys/types.h>
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/options.h"
#include "asterisk/file.h"
#include "asterisk/logger.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
#include "asterisk/astdb.h"
#include "asterisk/lock.h"
static char *tdesc = "Database access functions for Asterisk extension logic";
static char *g_descrip =
" DBget(varname=family/key): Retrieves a value from the Asterisk\n"
"database and stores it in the given variable. Always returns 0. If the\n"
"requested key is not found, jumps to priority n+101 if available.\n";
" DBget(varname=family/key): Retrieves a value from the Asterisk\n"
"database and stores it in the given variable. Always returns 0. If the\n"
"requested key is not found, jumps to priority n+101 if available.\n";
static char *p_descrip =
" DBput(family/key=value): Stores the given value in the Asterisk\n"
"database. Always returns 0.\n";
" DBput(family/key=value): Stores the given value in the Asterisk\n"
"database. Always returns 0.\n";
static char *d_descrip =
" DBdel(family/key): Deletes a key from the Asterisk database. Always\n"
"returns 0.\n";
" DBdel(family/key): Deletes a key from the Asterisk database. Always\n"
"returns 0.\n";
static char *dt_descrip =
" DBdeltree(family[/keytree]): Deletes a family or keytree from the Asterisk\n"
"database. Always returns 0.\n";
" DBdeltree(family[/keytree]): Deletes a family or keytree from the Asterisk\n"
"database. Always returns 0.\n";
static char *g_app = "DBget";
static char *p_app = "DBput";
@@ -62,255 +64,208 @@ STANDARD_LOCAL_USER;
LOCAL_USER_DECL;
static int
deltree_exec (struct ast_channel *chan, void *data)
static int deltree_exec(struct ast_channel *chan, void *data)
{
int arglen;
char *argv, *family, *keytree;
int arglen;
char *argv, *family, *keytree;
arglen = strlen (data);
argv = alloca (arglen + 1);
if (!argv) /* Why would this fail? */
{
ast_log (LOG_DEBUG, "Memory allocation failed\n");
return 0;
}
memcpy (argv, data, arglen + 1);
if (strchr (argv, '/')) {
{
family = strsep (&argv, "/");
keytree = strsep (&argv, "\0");
if (!family || !keytree)
{
ast_log (LOG_DEBUG, "Ignoring; Syntax error in argument\n");
return 0;
arglen = strlen(data);
argv = alloca(arglen + 1);
if (!argv) { /* Why would this fail? */
ast_log(LOG_DEBUG, "Memory allocation failed\n");
return 0;
}
if (!strlen (keytree))
keytree = 0;
}
} else
{
family = argv;
keytree = 0;
}
memcpy(argv, data, arglen + 1);
if (option_verbose > 2)
{
if (keytree)
ast_verbose (VERBOSE_PREFIX_3 "DBdeltree: family=%s, keytree=%s\n",
family, keytree);
else
ast_verbose (VERBOSE_PREFIX_3 "DBdeltree: family=%s\n", family);
}
if (ast_db_deltree (family, keytree))
{
if (option_verbose > 2)
ast_verbose (VERBOSE_PREFIX_3
"DBdeltree: Error deleting key from database.\n");
}
return 0;
}
static int
del_exec (struct ast_channel *chan, void *data)
{
int arglen;
char *argv, *family, *key;
arglen = strlen (data);
argv = alloca (arglen + 1);
if (!argv) /* Why would this fail? */
{
ast_log (LOG_DEBUG, "Memory allocation failed\n");
return 0;
}
memcpy (argv, data, arglen + 1);
if (strchr (argv, '/'))
{
family = strsep (&argv, "/");
key = strsep (&argv, "\0");
if (!family || !key)
{
ast_log (LOG_DEBUG, "Ignoring; Syntax error in argument\n");
return 0;
}
if (option_verbose > 2)
ast_verbose (VERBOSE_PREFIX_3
"DBdel: family=%s, key=%s\n", family, key);
if (ast_db_del (family, key))
{
if (option_verbose > 2)
ast_verbose (VERBOSE_PREFIX_3
"DBdel: Error deleting key from database.\n");
}
}
else
{
ast_log (LOG_DEBUG, "Ignoring, no parameters\n");
}
return 0;
}
static int
put_exec (struct ast_channel *chan, void *data)
{
int arglen;
char *argv, *value, *family, *key;
arglen = strlen (data);
argv = alloca (arglen + 1);
if (!argv) /* Why would this fail? */
{
ast_log (LOG_DEBUG, "Memory allocation failed\n");
return 0;
}
memcpy (argv, data, arglen + 1);
if (strchr (argv, '/') && strchr (argv, '='))
{
family = strsep (&argv, "/");
key = strsep (&argv, "=");
value = strsep (&argv, "\0");
if (!value || !family || !key)
{
ast_log (LOG_DEBUG, "Ignoring; Syntax error in argument\n");
return 0;
}
if (option_verbose > 2)
ast_verbose (VERBOSE_PREFIX_3
"DBput: family=%s, key=%s, value=%s\n", family, key,
value);
if (ast_db_put (family, key, value))
{
if (option_verbose > 2)
ast_verbose (VERBOSE_PREFIX_3
"DBput: Error writing value to database.\n");
if (strchr(argv, '/')) {
family = strsep(&argv, "/");
keytree = strsep(&argv, "\0");
if (!family || !keytree) {
ast_log(LOG_DEBUG, "Ignoring; Syntax error in argument\n");
return 0;
}
if (!strlen(keytree))
keytree = 0;
} else {
family = argv;
keytree = 0;
}
}
else
{
ast_log (LOG_DEBUG, "Ignoring, no parameters\n");
}
return 0;
}
static int
get_exec (struct ast_channel *chan, void *data)
{
int arglen;
char *argv, *varname, *family, *key;
char dbresult[256];
arglen = strlen (data);
argv = alloca (arglen + 1);
if (!argv) /* Why would this fail? */
{
ast_log (LOG_DEBUG, "Memory allocation failed\n");
return 0;
}
memcpy (argv, data, arglen + 1);
if (strchr (argv, '=') && strchr (argv, '/'))
{
varname = strsep (&argv, "=");
family = strsep (&argv, "/");
key = strsep (&argv, "\0");
if (!varname || !family || !key)
{
ast_log (LOG_DEBUG, "Ignoring; Syntax error in argument\n");
return 0;
}
if (option_verbose > 2)
ast_verbose (VERBOSE_PREFIX_3
"DBget: varname=%s, family=%s, key=%s\n", varname,
family, key);
if (!ast_db_get (family, key, dbresult, sizeof (dbresult) - 1))
{
pbx_builtin_setvar_helper (chan, varname, dbresult);
if (option_verbose > 2)
ast_verbose (VERBOSE_PREFIX_3
"DBget: set variable %s to %s\n", varname, dbresult);
}
else
{
if (option_verbose > 2)
ast_verbose (VERBOSE_PREFIX_3
"DBget: Value not found in database.\n");
/* Send the call to n+101 priority, where n is the current priority */
if (ast_exists_extension
(chan, chan->context, chan->exten, chan->priority + 101,
chan->callerid))
chan->priority += 100;
if (option_verbose > 2) {
if (keytree)
ast_verbose(VERBOSE_PREFIX_3 "DBdeltree: family=%s, keytree=%s\n", family, keytree);
else
ast_verbose(VERBOSE_PREFIX_3 "DBdeltree: family=%s\n", family);
}
}
else
{
ast_log (LOG_DEBUG, "Ignoring, no parameters\n");
}
if (ast_db_deltree(family, keytree)) {
if (option_verbose > 2)
ast_verbose(VERBOSE_PREFIX_3 "DBdeltree: Error deleting key from database.\n");
}
return 0;
return 0;
}
int
unload_module (void)
static int del_exec(struct ast_channel *chan, void *data)
{
int retval;
int arglen;
char *argv, *family, *key;
STANDARD_HANGUP_LOCALUSERS;
retval = ast_unregister_application (dt_app);
retval |= ast_unregister_application (d_app);
retval |= ast_unregister_application (p_app);
retval |= ast_unregister_application (g_app);
arglen = strlen(data);
argv = alloca(arglen + 1);
if (!argv) { /* Why would this fail? */
ast_log (LOG_DEBUG, "Memory allocation failed\n");
return 0;
}
memcpy(argv, data, arglen + 1);
return retval;
if (strchr(argv, '/')) {
family = strsep(&argv, "/");
key = strsep(&argv, "\0");
if (!family || !key) {
ast_log(LOG_DEBUG, "Ignoring; Syntax error in argument\n");
return 0;
}
if (option_verbose > 2)
ast_verbose(VERBOSE_PREFIX_3 "DBdel: family=%s, key=%s\n", family, key);
if (ast_db_del(family, key)) {
if (option_verbose > 2)
ast_verbose(VERBOSE_PREFIX_3 "DBdel: Error deleting key from database.\n");
}
} else {
ast_log(LOG_DEBUG, "Ignoring, no parameters\n");
}
return 0;
}
int
load_module (void)
static int put_exec(struct ast_channel *chan, void *data)
{
int retval;
int arglen;
char *argv, *value, *family, *key;
static int dep_warning = 0;
retval = ast_register_application (g_app, get_exec, g_synopsis, g_descrip);
if (!retval)
retval =
ast_register_application (p_app, put_exec, p_synopsis, p_descrip);
if (!retval)
retval =
ast_register_application (d_app, del_exec, d_synopsis, d_descrip);
if (!retval)
retval =
ast_register_application (dt_app, deltree_exec, dt_synopsis,
dt_descrip);
if (!dep_warning) {
ast_log(LOG_WARNING, "This application has been deprecated, please use the ${DB(family/key)} function instead.\n");
dep_warning = 1;
}
arglen = strlen(data);
argv = alloca(arglen + 1);
if (!argv) { /* Why would this fail? */
ast_log(LOG_DEBUG, "Memory allocation failed\n");
return 0;
}
memcpy(argv, data, arglen + 1);
return retval;
if (strchr(argv, '/') && strchr(argv, '=')) {
family = strsep(&argv, "/");
key = strsep(&argv, "=");
value = strsep(&argv, "\0");
if (!value || !family || !key) {
ast_log(LOG_DEBUG, "Ignoring; Syntax error in argument\n");
return 0;
}
if (option_verbose > 2)
ast_verbose(VERBOSE_PREFIX_3 "DBput: family=%s, key=%s, value=%s\n", family, key, value);
if (ast_db_put(family, key, value)) {
if (option_verbose > 2)
ast_verbose(VERBOSE_PREFIX_3 "DBput: Error writing value to database.\n");
}
} else {
ast_log (LOG_DEBUG, "Ignoring, no parameters\n");
}
return 0;
}
char *
description (void)
static int get_exec(struct ast_channel *chan, void *data)
{
return tdesc;
int arglen;
char *argv, *varname, *family, *key;
char dbresult[256];
static int dep_warning = 0;
if (!dep_warning) {
ast_log(LOG_WARNING, "This application has been deprecated, please use the ${DB(family/key)} function instead.\n");
dep_warning = 1;
}
arglen = strlen(data);
argv = alloca(arglen + 1);
if (!argv) { /* Why would this fail? */
ast_log(LOG_DEBUG, "Memory allocation failed\n");
return 0;
}
memcpy(argv, data, arglen + 1);
if (strchr(argv, '=') && strchr(argv, '/')) {
varname = strsep(&argv, "=");
family = strsep(&argv, "/");
key = strsep(&argv, "\0");
if (!varname || !family || !key) {
ast_log(LOG_DEBUG, "Ignoring; Syntax error in argument\n");
return 0;
}
if (option_verbose > 2)
ast_verbose(VERBOSE_PREFIX_3 "DBget: varname=%s, family=%s, key=%s\n", varname, family, key);
if (!ast_db_get(family, key, dbresult, sizeof (dbresult) - 1)) {
pbx_builtin_setvar_helper(chan, varname, dbresult);
if (option_verbose > 2)
ast_verbose(VERBOSE_PREFIX_3 "DBget: set variable %s to %s\n", varname, dbresult);
} else {
if (option_verbose > 2)
ast_verbose(VERBOSE_PREFIX_3 "DBget: Value not found in database.\n");
/* Send the call to n+101 priority, where n is the current priority */
if (ast_exists_extension(chan, chan->context, chan->exten, chan->priority + 101, chan->cid.cid_num))
chan->priority += 100;
}
} else {
ast_log(LOG_DEBUG, "Ignoring, no parameters\n");
}
return 0;
}
int
usecount (void)
int unload_module(void)
{
int res;
STANDARD_USECOUNT (res);
return res;
int retval;
STANDARD_HANGUP_LOCALUSERS;
retval = ast_unregister_application(dt_app);
retval |= ast_unregister_application(d_app);
retval |= ast_unregister_application(p_app);
retval |= ast_unregister_application(g_app);
return retval;
}
char *
key ()
int load_module(void)
{
return ASTERISK_GPL_KEY;
int retval;
retval = ast_register_application(g_app, get_exec, g_synopsis, g_descrip);
if (!retval)
retval = ast_register_application(p_app, put_exec, p_synopsis, p_descrip);
if (!retval)
retval = ast_register_application(d_app, del_exec, d_synopsis, d_descrip);
if (!retval)
retval = ast_register_application(dt_app, deltree_exec, dt_synopsis, dt_descrip);
return retval;
}
char *description(void)
{
return tdesc;
}
int usecount(void)
{
int res;
STANDARD_USECOUNT(res);
return res;
}
char *key()
{
return ASTERISK_GPL_KEY;
}

1674
apps/app_dial.c Executable file → Normal file

File diff suppressed because it is too large Load Diff

339
apps/app_dictate.c Normal file
View File

@@ -0,0 +1,339 @@
/*
* Asterisk -- A telephony toolkit for Linux.
*
* Virtual Dictation Machine Application For Asterisk
*
* Copyright (C) 2005, Anthony Minessale II
*
* Anthony Minessale II <anthmct@yahoo.com>
*
* Donated by Sangoma Technologies <http://www.samgoma.com>
*
* This program is free software, distributed under the terms of
* the GNU General Public License
*/
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/stat.h> /* for mkdir */
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/file.h"
#include "asterisk/logger.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
#include "asterisk/say.h"
#include "asterisk/lock.h"
#include "asterisk/app.h"
static char *tdesc = "Virtual Dictation Machine";
static char *app = "Dictate";
static char *synopsis = "Virtual Dictation Machine";
static char *desc = " Dictate([<base_dir>])\n"
"Start dictation machine using optional base dir for files.\n";
STANDARD_LOCAL_USER;
LOCAL_USER_DECL;
typedef enum {
DFLAG_RECORD = (1 << 0),
DFLAG_PLAY = (1 << 1),
DFLAG_TRUNC = (1 << 2),
DFLAG_PAUSE = (1 << 3),
} dflags;
typedef enum {
DMODE_INIT,
DMODE_RECORD,
DMODE_PLAY
} dmodes;
#define ast_toggle_flag(it,flag) if(ast_test_flag(it, flag)) ast_clear_flag(it, flag); else ast_set_flag(it, flag)
static int play_and_wait(struct ast_channel *chan, char *file, char *digits)
{
int res = -1;
if (!ast_streamfile(chan, file, chan->language)) {
res = ast_waitstream(chan, digits);
}
return res;
}
static int dictate_exec(struct ast_channel *chan, void *data)
{
char *mydata, *argv[2], *path = NULL, filein[256];
char dftbase[256];
char *base;
struct ast_flags flags = {0};
struct ast_filestream *fs;
struct ast_frame *f = NULL;
struct localuser *u;
int ffactor = 320 * 80,
res = 0,
argc = 0,
done = 0,
oldr = 0,
lastop = 0,
samples = 0,
speed = 1,
digit = 0,
len = 0,
maxlen = 0,
mode = 0;
snprintf(dftbase, sizeof(dftbase), "%s/dictate", ast_config_AST_SPOOL_DIR);
if (data && !ast_strlen_zero(data) && (mydata = ast_strdupa(data))) {
argc = ast_separate_app_args(mydata, '|', argv, sizeof(argv) / sizeof(argv[0]));
}
if (argc) {
base = argv[0];
} else {
base = dftbase;
}
oldr = chan->readformat;
if ((res = ast_set_read_format(chan, AST_FORMAT_SLINEAR)) < 0) {
ast_log(LOG_WARNING, "Unable to set to linear mode.\n");
return -1;
}
LOCAL_USER_ADD(u);
ast_answer(chan);
ast_safe_sleep(chan, 200);
for(res = 0; !res;) {
if (ast_app_getdata(chan, "dictate/enter_filename", filein, sizeof(filein), 0) ||
ast_strlen_zero(filein)) {
res = -1;
break;
}
mkdir(base, 0755);
len = strlen(base) + strlen(filein) + 2;
if (!path || len > maxlen) {
path = alloca(len);
memset(path, 0, len);
maxlen = len;
} else {
memset(path, 0, maxlen);
}
snprintf(path, len, "%s/%s", base, filein);
fs = ast_writefile(path, "raw", NULL, O_CREAT|O_APPEND, 0, 0700);
mode = DMODE_PLAY;
memset(&flags, 0, sizeof(flags));
ast_set_flag(&flags, DFLAG_PAUSE);
digit = play_and_wait(chan, "dictate/forhelp", AST_DIGIT_ANY);
done = 0;
speed = 1;
res = 0;
lastop = 0;
samples = 0;
while (!done && ((res = ast_waitfor(chan, -1)) > -1) && fs && (f = ast_read(chan))) {
if (digit) {
struct ast_frame fr = {AST_FRAME_DTMF, digit};
ast_queue_frame(chan, &fr);
digit = 0;
}
if ((f->frametype == AST_FRAME_DTMF)) {
int got = 1;
switch(mode) {
case DMODE_PLAY:
switch(f->subclass) {
case '1':
ast_set_flag(&flags, DFLAG_PAUSE);
mode = DMODE_RECORD;
break;
case '2':
speed++;
if (speed > 4) {
speed = 1;
}
res = ast_say_number(chan, speed, AST_DIGIT_ANY, chan->language, (char *) NULL);
break;
case '7':
samples -= ffactor;
if(samples < 0) {
samples = 0;
}
ast_seekstream(fs, samples, SEEK_SET);
break;
case '8':
samples += ffactor;
ast_seekstream(fs, samples, SEEK_SET);
break;
default:
got = 0;
}
break;
case DMODE_RECORD:
switch(f->subclass) {
case '1':
ast_set_flag(&flags, DFLAG_PAUSE);
mode = DMODE_PLAY;
break;
case '8':
ast_toggle_flag(&flags, DFLAG_TRUNC);
lastop = 0;
break;
default:
got = 0;
}
break;
default:
got = 0;
}
if (!got) {
switch(f->subclass) {
case '#':
done = 1;
continue;
break;
case '*':
ast_toggle_flag(&flags, DFLAG_PAUSE);
if (ast_test_flag(&flags, DFLAG_PAUSE)) {
digit = play_and_wait(chan, "dictate/pause", AST_DIGIT_ANY);
} else {
digit = play_and_wait(chan, mode == DMODE_PLAY ? "dictate/playback" : "dictate/record", AST_DIGIT_ANY);
}
break;
case '0':
ast_set_flag(&flags, DFLAG_PAUSE);
digit = play_and_wait(chan, "dictate/paused", AST_DIGIT_ANY);
switch(mode) {
case DMODE_PLAY:
digit = play_and_wait(chan, "dictate/play_help", AST_DIGIT_ANY);
break;
case DMODE_RECORD:
digit = play_and_wait(chan, "dictate/record_help", AST_DIGIT_ANY);
break;
}
if (digit == 0) {
digit = play_and_wait(chan, "dictate/both_help", AST_DIGIT_ANY);
} else if (digit < 0) {
done = 1;
break;
}
break;
}
}
} else if (f->frametype == AST_FRAME_VOICE) {
switch(mode) {
struct ast_frame *fr;
int x;
case DMODE_PLAY:
if (lastop != DMODE_PLAY) {
if (ast_test_flag(&flags, DFLAG_PAUSE)) {
digit = play_and_wait(chan, "dictate/playback_mode", AST_DIGIT_ANY);
if (digit == 0) {
digit = play_and_wait(chan, "dictate/paused", AST_DIGIT_ANY);
} else if (digit < 0) {
break;
}
}
if (lastop != DFLAG_PLAY) {
lastop = DFLAG_PLAY;
ast_closestream(fs);
fs = ast_openstream(chan, path, chan->language);
ast_seekstream(fs, samples, SEEK_SET);
chan->stream = NULL;
}
lastop = DMODE_PLAY;
}
if (!ast_test_flag(&flags, DFLAG_PAUSE)) {
for (x = 0; x < speed; x++) {
if ((fr = ast_readframe(fs))) {
ast_write(chan, fr);
samples += fr->samples;
ast_frfree(fr);
fr = NULL;
} else {
samples = 0;
ast_seekstream(fs, 0, SEEK_SET);
}
}
}
break;
case DMODE_RECORD:
if (lastop != DMODE_RECORD) {
int oflags = O_CREAT | O_WRONLY;
if (ast_test_flag(&flags, DFLAG_PAUSE)) {
digit = play_and_wait(chan, "dictate/record_mode", AST_DIGIT_ANY);
if (digit == 0) {
digit = play_and_wait(chan, "dictate/paused", AST_DIGIT_ANY);
} else if (digit < 0) {
break;
}
}
lastop = DMODE_RECORD;
ast_closestream(fs);
if ( ast_test_flag(&flags, DFLAG_TRUNC)) {
oflags |= O_TRUNC;
digit = play_and_wait(chan, "dictate/truncating_audio", AST_DIGIT_ANY);
} else {
oflags |= O_APPEND;
}
fs = ast_writefile(path, "raw", NULL, oflags, 0, 0700);
if (ast_test_flag(&flags, DFLAG_TRUNC)) {
ast_seekstream(fs, 0, SEEK_SET);
ast_clear_flag(&flags, DFLAG_TRUNC);
} else {
ast_seekstream(fs, 0, SEEK_END);
}
}
if (!ast_test_flag(&flags, DFLAG_PAUSE)) {
res = ast_writestream(fs, f);
}
break;
}
}
ast_frfree(f);
}
}
if (oldr) {
ast_set_read_format(chan, oldr);
}
LOCAL_USER_REMOVE(u);
return res;
}
int unload_module(void)
{
STANDARD_HANGUP_LOCALUSERS;
return ast_unregister_application(app);
}
int load_module(void)
{
return ast_register_application(app, dictate_exec, synopsis, desc);
}
char *description(void)
{
return tdesc;
}
int usecount(void)
{
int res;
STANDARD_USECOUNT(res);
return res;
}
char *key()
{
return ASTERISK_GPL_KEY;
}

366
apps/app_directory.c Executable file → Normal file
View File

@@ -3,46 +3,55 @@
*
* Provide a directory of extensions
*
* Copyright (C) 1999, Mark Spencer
* Copyright (C) 1999 - 2005, Digium, Inc.
*
* Mark Spencer <markster@linux-support.net>
* Mark Spencer <markster@digium.com>
*
* This program is free software, distributed under the terms of
* the GNU General Public License
*/
#include <asterisk/lock.h>
#include <asterisk/file.h>
#include <asterisk/logger.h>
#include <asterisk/channel.h>
#include <asterisk/pbx.h>
#include <asterisk/module.h>
#include <asterisk/config.h>
#include <asterisk/say.h>
#include <string.h>
#include <ctype.h>
#include <stdlib.h>
#include <pthread.h>
#include <stdio.h>
#include "../asterisk.h"
#include "../astconf.h"
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/lock.h"
#include "asterisk/file.h"
#include "asterisk/logger.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
#include "asterisk/config.h"
#include "asterisk/say.h"
#include "asterisk/utils.h"
static char *tdesc = "Extension Directory";
static char *app = "Directory";
static char *synopsis = "Provide directory of voicemail extensions";
static char *descrip =
" Directory(context): Presents the user with a directory of extensions from\n"
"which they may select by name. The list of names and extensions is\n"
"discovered from voicemail.conf. The context argument is required, and\n"
"specifies the context in which to interpret the extensions. Returns 0\n"
"unless the user hangs up. It also sets up the channel on exit to enter the\n"
"extension the user selected.\n";
" Directory(vm-context[|dial-context[|options]]): Presents the user with a directory\n"
"of extensions from which they may select by name. The list of names \n"
"and extensions is discovered from voicemail.conf. The vm-context argument\n"
"is required, and specifies the context of voicemail.conf to use. The\n"
"dial-context is the context to use for dialing the users, and defaults to\n"
"the vm-context if unspecified. The 'f' option causes the directory to match\n"
"based on the first name in voicemail.conf instead of the last name.\n"
"Returns 0 unless the user hangs up. It also sets up the channel on exit\n"
"to enter the extension the user selected. If the user enters '0' and there\n"
"exists an extension 'o' in the current context, the directory will exit with 0\n"
"and call control will resume at that extension. Entering '*' will exit similarly,\n"
"but to the 'a' extension, much like app_voicemail's behavior.\n";
/* For simplicity, I'm keeping the format compatible with the voicemail config,
but i'm open to suggestions for isolating it */
#define DIRECTORY_CONFIG "voicemail.conf"
#define VOICEMAIL_CONFIG "voicemail.conf"
/* How many digits to read in */
#define NUMDIGITS 3
@@ -120,20 +129,197 @@ static char *convert(char *lastname)
return tmp;
}
static int do_directory(struct ast_channel *chan, struct ast_config *cfg, char *context, char digit)
/* play name of mailbox owner.
* returns: -1 for bad or missing extension
* '1' for selected entry from directory
* '*' for skipped entry from directory
*/
static int play_mailbox_owner(struct ast_channel *chan, char *context, char *dialcontext, char *ext, char *name) {
int res = 0;
int loop = 3;
char fn[256];
char fn2[256];
/* Check for the VoiceMail2 greeting first */
snprintf(fn, sizeof(fn), "%s/voicemail/%s/%s/greet",
(char *)ast_config_AST_SPOOL_DIR, context, ext);
/* Otherwise, check for an old-style Voicemail greeting */
snprintf(fn2, sizeof(fn2), "%s/vm/%s/greet",
(char *)ast_config_AST_SPOOL_DIR, ext);
if (ast_fileexists(fn, NULL, chan->language) > 0) {
res = ast_streamfile(chan, fn, chan->language);
if (!res) {
res = ast_waitstream(chan, AST_DIGIT_ANY);
}
ast_stopstream(chan);
} else if (ast_fileexists(fn2, NULL, chan->language) > 0) {
res = ast_streamfile(chan, fn2, chan->language);
if (!res) {
res = ast_waitstream(chan, AST_DIGIT_ANY);
}
ast_stopstream(chan);
} else {
res = ast_say_character_str(chan, !ast_strlen_zero(name) ? name : ext,
AST_DIGIT_ANY, chan->language);
}
while (loop) {
if (!res) {
res = ast_streamfile(chan, "dir-instr", chan->language);
}
if (!res) {
res = ast_waitstream(chan, AST_DIGIT_ANY);
}
if (!res) {
res = ast_waitfordigit(chan, 3000);
}
ast_stopstream(chan);
if (res > -1) {
switch (res) {
case '1':
/* Name selected */
loop = 0;
if (ast_exists_extension(chan,dialcontext,ext,1,chan->cid.cid_num)) {
ast_copy_string(chan->exten, ext, sizeof(chan->exten));
chan->priority = 0;
ast_copy_string(chan->context, dialcontext, sizeof(chan->context));
} else {
ast_log(LOG_WARNING,
"Can't find extension '%s' in context '%s'. "
"Did you pass the wrong context to Directory?\n",
ext, dialcontext);
res = -1;
}
break;
case '*':
/* Skip to next match in list */
loop = 0;
break;
default:
/* Not '1', or '*', so decrement number of tries */
res = 0;
loop--;
break;
} /* end switch */
} /* end if */
else {
/* User hungup, so jump out now */
loop = 0;
}
} /* end while */
return(res);
}
static struct ast_config *realtime_directory(char *context)
{
struct ast_config *cfg;
struct ast_config *rtdata;
struct ast_category *cat;
struct ast_variable *var;
char *mailbox;
char *fullname;
char *hidefromdir;
char tmp[100];
/* Load flat file config. */
cfg = ast_config_load(VOICEMAIL_CONFIG);
if (!cfg) {
/* Loading config failed. */
ast_log(LOG_WARNING, "Loading config failed.\n");
return NULL;
}
/* Get realtime entries, categorized by their mailbox number
and present in the requested context */
rtdata = ast_load_realtime_multientry("voicemail", "mailbox LIKE", "%", "context", context, NULL);
/* if there are no results, just return the entries from the config file */
if (!rtdata)
return cfg;
/* Does the context exist within the config file? If not, make one */
cat = ast_category_get(cfg, context);
if (!cat) {
cat = ast_category_new(context);
if (!cat) {
ast_log(LOG_WARNING, "Out of memory\n");
ast_config_destroy(cfg);
return NULL;
}
ast_category_append(cfg, cat);
}
mailbox = ast_category_browse(rtdata, NULL);
while (mailbox) {
fullname = ast_variable_retrieve(rtdata, mailbox, "fullname");
hidefromdir = ast_variable_retrieve(rtdata, mailbox, "hidefromdir");
snprintf(tmp, sizeof(tmp), "no-password,%s,hidefromdir=%s",
fullname ? fullname : "",
hidefromdir ? hidefromdir : "no");
var = ast_variable_new(mailbox, tmp);
if (var)
ast_variable_append(cat, var);
else
ast_log(LOG_WARNING, "Out of memory adding mailbox '%s'\n", mailbox);
mailbox = ast_category_browse(rtdata, mailbox);
}
ast_config_destroy(rtdata);
return cfg;
}
static int do_directory(struct ast_channel *chan, struct ast_config *cfg, char *context, char *dialcontext, char digit, int last)
{
/* Read in the first three digits.. "digit" is the first digit, already read */
char ext[NUMDIGITS + 1];
char name[80] = "";
struct ast_variable *v;
int res;
int found=0;
int lastuserchoice = 0;
char *start, *pos, *conv,*stringp=NULL;
char fn[256];
char fn2[256];
if (!context || !strlen(context)) {
ast_log(LOG_WARNING, "Directory must be called with an argument (context in which to interpret extensions)\n");
if (!context || ast_strlen_zero(context)) {
ast_log(LOG_WARNING,
"Directory must be called with an argument "
"(context in which to interpret extensions)\n");
return -1;
}
if (digit == '0') {
if (ast_exists_extension(chan,chan->context,"o",1,chan->cid.cid_num) ||
(!ast_strlen_zero(chan->macrocontext) &&
ast_exists_extension(chan, chan->macrocontext, "o", 1, chan->cid.cid_num))) {
strcpy(chan->exten, "o");
chan->priority = 0;
return 0;
} else {
ast_log(LOG_WARNING, "Can't find extension 'o' in current context. "
"Not Exiting the Directory!\n");
res = 0;
}
}
if (digit == '*') {
if (ast_exists_extension(chan,chan->context,"a",1,chan->cid.cid_num) ||
(!ast_strlen_zero(chan->macrocontext) &&
ast_exists_extension(chan, chan->macrocontext, "a", 1, chan->cid.cid_num))) {
strcpy(chan->exten, "a");
chan->priority = 0;
return 0;
} else {
ast_log(LOG_WARNING, "Can't find extension 'a' in current context. "
"Not Exiting the Directory!\n");
res = 0;
}
}
memset(ext, 0, sizeof(ext));
ext[0] = digit;
res = 0;
@@ -146,13 +332,14 @@ static int do_directory(struct ast_channel *chan, struct ast_config *cfg, char *
while(v) {
/* Find a candidate extension */
start = strdup(v->value);
if (start) {
if (start && !strcasestr(start, "hidefromdir=yes")) {
stringp=start;
strsep(&stringp, ",");
pos = strsep(&stringp, ",");
if (pos) {
ast_copy_string(name, pos, sizeof(name));
/* Grab the last name */
if (strrchr(pos, ' '))
if (last && strrchr(pos,' '))
pos = strrchr(pos, ' ') + 1;
conv = convert(pos);
if (conv) {
@@ -170,59 +357,46 @@ static int do_directory(struct ast_channel *chan, struct ast_config *cfg, char *
}
v = v->next;
}
if (v) {
/* We have a match -- play a greeting if they have it */
/* Check for the VoiceMail2 greeting first */
snprintf(fn, sizeof(fn), "%s/voicemail/%s/%s/greet", (char *)ast_config_AST_SPOOL_DIR, context, v->name);
/* Otherwise, check for an old-style Voicemail greeting */
snprintf(fn2, sizeof(fn2), "%s/vm/%s/greet", (char *)ast_config_AST_SPOOL_DIR, v->name);
if (ast_fileexists(fn, NULL, chan->language) > 0) {
res = ast_streamfile(chan, fn, chan->language);
if (!res)
res = ast_waitstream(chan, AST_DIGIT_ANY);
ast_stopstream(chan);
} else if (ast_fileexists(fn2, NULL, chan->language) > 0) {
res = ast_streamfile(chan, fn2, chan->language);
if (!res)
res = ast_waitstream(chan, AST_DIGIT_ANY);
ast_stopstream(chan);
} else {
res = ast_say_digit_str(chan, v->name, AST_DIGIT_ANY, chan->language);
}
ahem:
if (!res)
res = ast_streamfile(chan, "dir-instr", chan->language);
if (!res)
res = ast_waitstream(chan, AST_DIGIT_ANY);
if (!res)
res = ast_waitfordigit(chan, 3000);
ast_stopstream(chan);
if (res > -1) {
if (res == '1') {
strncpy(chan->exten, v->name, sizeof(chan->exten)-1);
res = play_mailbox_owner(chan, context, dialcontext, v->name, name);
switch (res) {
case -1:
/* user pressed '1' but extension does not exist, or
* user hungup
*/
lastuserchoice = 0;
break;
case '1':
/* user pressed '1' and extensions exists */
lastuserchoice = res;
ast_copy_string(chan->context, dialcontext, sizeof(chan->context));
ast_copy_string(chan->exten, v->name, sizeof(chan->exten));
chan->priority = 0;
strncpy(chan->context, context, sizeof(chan->context)-1);
break;
case '*':
/* user pressed '*' to skip something found */
lastuserchoice = res;
res = 0;
break;
} else if (res == '*') {
res = 0;
v = v->next;
} else {
res = 0;
goto ahem;
}
default:
break;
}
} else {
if (found)
res = ast_streamfile(chan, "dir-nomore", chan->language);
else
res = ast_streamfile(chan, "dir-nomatch", chan->language);
if (!res)
res = 1;
return res;
v = v->next;
}
}
if (lastuserchoice != '1') {
if (found)
res = ast_streamfile(chan, "dir-nomore", chan->language);
else
res = ast_streamfile(chan, "dir-nomatch", chan->language);
if (!res)
res = 1;
return res;
}
return 0;
}
return res;
}
@@ -232,28 +406,56 @@ static int directory_exec(struct ast_channel *chan, void *data)
int res = 0;
struct localuser *u;
struct ast_config *cfg;
int last = 1;
char *context, *dialcontext, *dirintro, *options;
if (!data) {
ast_log(LOG_WARNING, "directory requires an argument (context)\n");
ast_log(LOG_WARNING, "directory requires an argument (context[,dialcontext])\n");
return -1;
}
cfg = ast_load(DIRECTORY_CONFIG);
if (!cfg) {
ast_log(LOG_WARNING, "Unable to open directory configuration %s\n", DIRECTORY_CONFIG);
return -1;
}
LOCAL_USER_ADD(u);
top:
context = ast_strdupa(data);
dialcontext = strchr(context, '|');
if (dialcontext) {
*dialcontext = '\0';
dialcontext++;
options = strchr(dialcontext, '|');
if (options) {
*options = '\0';
options++;
if (strchr(options, 'f'))
last = 0;
}
} else
dialcontext = context;
cfg = realtime_directory(context);
if (!cfg)
return -1;
LOCAL_USER_ADD(u);
dirintro = ast_variable_retrieve(cfg, context, "directoryintro");
if (!dirintro || ast_strlen_zero(dirintro))
dirintro = ast_variable_retrieve(cfg, "general", "directoryintro");
if (!dirintro || ast_strlen_zero(dirintro)) {
if (last)
dirintro = "dir-intro";
else
dirintro = "dir-intro-fn";
}
if (chan->_state != AST_STATE_UP)
res = ast_answer(chan);
if (!res)
res = ast_streamfile(chan, "dir-intro", chan->language);
res = ast_streamfile(chan, dirintro, chan->language);
if (!res)
res = ast_waitstream(chan, AST_DIGIT_ANY);
ast_stopstream(chan);
if (!res)
res = ast_waitfordigit(chan, 5000);
if (res > 0) {
res = do_directory(chan, cfg, (char *)data, res);
res = do_directory(chan, cfg, context, dialcontext, res, last);
if (res > 0) {
res = ast_waitstream(chan, AST_DIGIT_ANY);
ast_stopstream(chan);
@@ -262,7 +464,7 @@ top:
}
}
}
ast_destroy(cfg);
ast_config_destroy(cfg);
LOCAL_USER_REMOVE(u);
return res;
}

231
apps/app_disa.c Executable file → Normal file
View File

@@ -3,7 +3,7 @@
*
* DISA -- Direct Inward System Access Application 6/20/2001
*
* Copyright (C) 2001, Linux Support Services, Inc.
* Copyright (C) 2001 - 2005, Digium, Inc.
*
* Jim Dixon <jim@lambdatel.com>
*
@@ -13,24 +13,27 @@
* the GNU General Public License
*/
#include <asterisk/lock.h>
#include <asterisk/file.h>
#include <asterisk/logger.h>
#include <asterisk/channel.h>
#include <asterisk/pbx.h>
#include <asterisk/module.h>
#include <asterisk/translate.h>
#include <asterisk/ulaw.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <pthread.h>
#include <sys/time.h>
/*
#define TONE_BLOCK_SIZE 320
*/
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/lock.h"
#include "asterisk/file.h"
#include "asterisk/logger.h"
#include "asterisk/channel.h"
#include "asterisk/app.h"
#include "asterisk/indications.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
#include "asterisk/translate.h"
#include "asterisk/ulaw.h"
#include "asterisk/callerid.h"
static char *tdesc = "DISA (Direct Inward System Access) Application";
@@ -70,7 +73,11 @@ static char *descrip =
"above arguments may have |new-callerid-string appended to them, to\n"
"specify a new (different) callerid to be used for this call, for\n"
"example: numeric-passcode|context|\"My Phone\" <(234) 123-4567> or \n"
"full-pathname-of-passcode-file|\"My Phone\" <(234) 123-4567>. Note that\n"
"full-pathname-of-passcode-file|\"My Phone\" <(234) 123-4567>. Last\n"
"but not least, |mailbox[@context] may be appended, which will cause\n"
"a stutter-dialtone (indication \"dialrecall\") to be used, if the\n"
"specified mailbox contains any new messages, for example:\n"
"numeric-passcode|context||1234 (w/a changing callerid). Note that\n"
"in the case of specifying the numeric-passcode, the context must be\n"
"specified if the callerid is specified also.\n\n"
"If login is successful, the application parses the dialed number in\n"
@@ -83,52 +90,39 @@ STANDARD_LOCAL_USER;
LOCAL_USER_DECL;
static float loudness=4096.0;
static int firstdigittimeout = 20000; /* 20 seconds first digit timeout */
static int digittimeout = 10000; /* 10 seconds subsequent digit timeout */
static void make_tone_block(unsigned char *data, float f1, float f2, int len, int *x)
static void play_dialtone(struct ast_channel *chan, char *mailbox)
{
int i;
float val;
for(i = 0; i < len; i++)
{
val = loudness * sin((f1 * 2.0 * M_PI * (*x))/8000.0);
val += loudness * sin((f2 * 2.0 * M_PI * (*x)++)/8000.0);
data[i] = AST_LIN2MU((int)val);
}
/* wrap back around from 8000 */
if (*x >= 8000) *x = 0;
return;
}
static int ms_diff(struct timeval *tv1, struct timeval *tv2)
{
int ms;
ms = (tv1->tv_sec - tv2->tv_sec) * 1000;
ms += (tv1->tv_usec - tv2->tv_usec) / 1000;
return(ms);
const struct tone_zone_sound *ts = NULL;
if(ast_app_has_voicemail(mailbox, NULL))
ts = ast_get_indication_tone(chan->zone, "dialrecall");
else
ts = ast_get_indication_tone(chan->zone, "dial");
if (ts)
ast_playtones_start(chan, 0, ts->data, 0);
else
ast_tonepair_start(chan, 350, 440, 0, 0);
}
static int disa_exec(struct ast_channel *chan, void *data)
{
int i,j,k,x;
int i,j,k,x,did_ignore;
int firstdigittimeout = 20000;
int digittimeout = 10000;
struct localuser *u;
char tmp[256],arg2[256],exten[AST_MAX_EXTENSION],acctcode[20];
struct {
unsigned char offset[AST_FRIENDLY_OFFSET];
unsigned char buf[640];
} tone_block;
char *ourcontext,*ourcallerid;
struct ast_frame *f,wf;
struct timeval lastout, now, lastdigittime;
char tmp[256],arg2[256]="",exten[AST_MAX_EXTENSION],acctcode[20]="";
char *ourcontext,*ourcallerid,ourcidname[256],ourcidnum[256],*mailbox;
struct ast_frame *f;
struct timeval lastdigittime;
int res;
time_t rstart;
FILE *fp;
char *stringp=NULL;
if (chan->pbx) {
firstdigittimeout = chan->pbx->rtimeout*1000;
digittimeout = chan->pbx->dtimeout*1000;
}
if (ast_set_write_format(chan,AST_FORMAT_ULAW))
{
ast_log(LOG_WARNING, "Unable to set write format to Mu-law on %s\n",chan->name);
@@ -139,18 +133,19 @@ static int disa_exec(struct ast_channel *chan, void *data)
ast_log(LOG_WARNING, "Unable to set read format to Mu-law on %s\n",chan->name);
return -1;
}
lastout.tv_sec = lastout.tv_usec = 0;
if (!data || !strlen((char *)data)) {
ast_log(LOG_WARNING, "disa requires an argument (passcode/passcode file)\n");
return -1;
}
ast_log(LOG_DEBUG, "Digittimeout: %d\n", digittimeout);
ast_log(LOG_DEBUG, "Responsetimeout: %d\n", firstdigittimeout);
strncpy(tmp, (char *)data, sizeof(tmp)-1);
stringp=tmp;
strsep(&stringp, "|");
ourcontext = strsep(&stringp, "|");
/* if context specified, save 2nd arg and parse third */
if (ourcontext) {
strcpy(arg2,ourcontext);
strncpy(arg2,ourcontext, sizeof(arg2) - 1);
ourcallerid = strsep(&stringp,"|");
}
/* if context not specified, use "disa" */
@@ -159,6 +154,10 @@ static int disa_exec(struct ast_channel *chan, void *data)
ourcallerid = NULL;
ourcontext = "disa";
}
mailbox = strsep(&stringp, "|");
if (!mailbox)
mailbox = "";
ast_log(LOG_DEBUG, "Mailbox: %s\n",mailbox);
LOCAL_USER_ADD(u);
if (chan->_state != AST_STATE_UP)
{
@@ -166,24 +165,30 @@ static int disa_exec(struct ast_channel *chan, void *data)
ast_answer(chan);
}
i = k = x = 0; /* k is 0 for pswd entry, 1 for ext entry */
did_ignore = 0;
exten[0] = 0;
acctcode[0] = 0;
/* can we access DISA without password? */
ast_log(LOG_DEBUG, "Context: %s\n",ourcontext);
if (!strcasecmp(tmp, "no-password"))
{;
k = 1;
k |= 1; /* We have the password */
ast_log(LOG_DEBUG, "DISA no-password login success\n");
}
gettimeofday(&lastdigittime,NULL);
lastdigittime = ast_tvnow();
play_dialtone(chan, mailbox);
for(;;)
{
gettimeofday(&now,NULL);
/* if outa time, give em reorder */
if (ms_diff(&now,&lastdigittime) >
((k) ? digittimeout : firstdigittimeout))
if (ast_tvdiff_ms(ast_tvnow(), lastdigittime) >
((k&2) ? digittimeout : firstdigittimeout))
{
ast_log(LOG_DEBUG,"DISA %s entry timeout on chan %s\n",
((k) ? "extension" : "password"),chan->name);
((k&1) ? "extension" : "password"),chan->name);
break;
}
if ((res = ast_waitfor(chan, -1) < 0)) {
@@ -205,24 +210,7 @@ static int disa_exec(struct ast_channel *chan, void *data)
return -1;
}
if (f->frametype == AST_FRAME_VOICE) {
if (!i || (ast_ignore_pattern(ourcontext, exten) && k)) {
wf.frametype = AST_FRAME_VOICE;
wf.subclass = AST_FORMAT_ULAW;
wf.offset = AST_FRIENDLY_OFFSET;
wf.mallocd = 0;
wf.data = tone_block.buf;
wf.datalen = f->datalen;
make_tone_block(tone_block.buf, 350, 440, f->datalen, &x);
wf.samples = wf.datalen;
ast_frfree(f);
if (ast_write(chan, &wf))
{
ast_log(LOG_WARNING, "DISA Failed to write frame on %s\n",chan->name);
LOCAL_USER_REMOVE(u);
return -1;
}
} else
ast_frfree(f);
ast_frfree(f);
continue;
}
/* if not DTMF, just do it again */
@@ -234,12 +222,16 @@ static int disa_exec(struct ast_channel *chan, void *data)
j = f->subclass; /* save digit */
ast_frfree(f);
gettimeofday(&lastdigittime,NULL);
if (i == 0)
{
k|=2; /* We have the first digit */
ast_playtones_stop(chan);
}
lastdigittime = ast_tvnow();
/* got a DTMF tone */
if (i < AST_MAX_EXTENSION) /* if still valid number of digits */
{
if (!k) /* if in password state */
if (!(k&1)) /* if in password state */
{
if (j == '#') /* end of password */
{
@@ -272,6 +264,11 @@ static int disa_exec(struct ast_channel *chan, void *data)
stringp2=strsep(&stringp, "|");
if (stringp2) ourcallerid=stringp2;
}
mailbox = strsep(&stringp, "|");
if (!mailbox)
mailbox = "";
ast_log(LOG_DEBUG, "Mailbox: %s\n",mailbox);
/* password must be in valid format (numeric) */
if (sscanf(tmp,"%d",&j) < 1) continue;
/* if we got it */
@@ -287,83 +284,75 @@ static int disa_exec(struct ast_channel *chan, void *data)
}
/* password good, set to dial state */
ast_log(LOG_WARNING,"DISA on chan %s password is good\n",chan->name);
k = 1;
ast_log(LOG_DEBUG,"DISA on chan %s password is good\n",chan->name);
play_dialtone(chan, mailbox);
k|=1; /* In number mode */
i = 0; /* re-set buffer pointer */
exten[sizeof(acctcode)] = 0;
strcpy(acctcode,exten);
strncpy(acctcode,exten, sizeof(acctcode) - 1);
exten[0] = 0;
ast_log(LOG_DEBUG,"Successful DISA log-in on chan %s\n",chan->name);
continue;
}
}
exten[i++] = j; /* save digit */
exten[i] = 0;
if (!k) continue; /* if getting password, continue doing it */
if (!(k&1)) continue; /* if getting password, continue doing it */
/* if this exists */
if (ast_ignore_pattern(ourcontext, exten)) {
play_dialtone(chan, "");
did_ignore = 1;
} else
if (did_ignore) {
ast_playtones_stop(chan);
did_ignore = 0;
}
/* if can do some more, do it */
if (!ast_matchmore_extension(chan,ourcontext,exten,1, chan->callerid))
if (!ast_matchmore_extension(chan,ourcontext,exten,1, chan->cid.cid_num)) {
break;
}
}
}
if (k && ast_exists_extension(chan,ourcontext,exten,1, chan->callerid))
if (k==3 && ast_exists_extension(chan,ourcontext,exten,1, chan->cid.cid_num))
{
ast_playtones_stop(chan);
/* We're authenticated and have a valid extension */
if (ourcallerid && *ourcallerid)
{
if (chan->callerid) free(chan->callerid);
chan->callerid = strdup(ourcallerid);
ast_callerid_split(ourcallerid, ourcidname, sizeof(ourcidname), ourcidnum, sizeof(ourcidnum));
ast_set_callerid(chan, ourcidnum, ourcidname, ourcidnum);
}
strncpy(chan->exten, exten, sizeof(chan->exten) - 1);
strncpy(chan->context, ourcontext, sizeof(chan->context) - 1);
if (!ast_strlen_zero(acctcode)) {
strncpy(chan->accountcode, acctcode, sizeof(chan->accountcode) - 1);
}
strcpy(chan->exten,exten);
strcpy(chan->context,ourcontext);
strcpy(chan->accountcode,acctcode);
chan->priority = 0;
ast_cdr_init(chan->cdr,chan);
ast_cdr_reset(chan->cdr,AST_CDR_FLAG_POSTED);
LOCAL_USER_REMOVE(u);
return 0;
}
reorder:
/* something is invalid, give em reorder forever */
x = 0;
k = 0; /* k = 0 means busy tone, k = 1 means silence) */
i = 0; /* Number of samples we've done */
for(;;)
ast_indicate(chan,AST_CONTROL_CONGESTION);
/* something is invalid, give em reorder for several seconds */
time(&rstart);
while(time(NULL) < rstart + 10)
{
if (ast_waitfor(chan, -1) < 0)
break;
f = ast_read(chan);
if (!f)
break;
if (f->frametype == AST_FRAME_VOICE) {
wf.frametype = AST_FRAME_VOICE;
wf.subclass = AST_FORMAT_ULAW;
wf.offset = AST_FRIENDLY_OFFSET;
wf.mallocd = 0;
wf.data = tone_block.buf;
wf.datalen = f->datalen;
wf.samples = wf.datalen;
if (k)
memset(tone_block.buf, 0x7f, wf.datalen);
else
make_tone_block(tone_block.buf,480.0, 620.0,wf.datalen, &x);
i += wf.datalen / 8;
if (i > 250) {
i = 0;
k = !k;
}
if (ast_write(chan, &wf))
{
ast_log(LOG_WARNING, "DISA Failed to write frame on %s\n",chan->name);
LOCAL_USER_REMOVE(u);
return -1;
}
}
ast_frfree(f);
}
ast_playtones_stop(chan);
LOCAL_USER_REMOVE(u);
return -1;
}

170
apps/app_dumpchan.c Normal file
View File

@@ -0,0 +1,170 @@
/*
* Asterisk -- A telephony toolkit for Linux.
*
* Application to dump channel variables
*
* Copyright (C) 2004 - 2005, Anthony Minessale II.
*
* Anthony Minessale <anthmct@yahoo.com>
*
* This program is free software, distributed under the terms of
* the GNU General Public License (and disclaimed to Digium)
*/
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/file.h"
#include "asterisk/logger.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
#include "asterisk/options.h"
#include "asterisk/utils.h"
#include "asterisk/lock.h"
#include "asterisk/utils.h"
static char *tdesc = "Dump Info About The Calling Channel";
static char *app = "DumpChan";
static char *synopsis = "Dump Info About The Calling Channel";
static char *desc =
" DumpChan([<min_verbose_level>])\n"
"Displays information on channel and listing of all channel\n"
"variables. If min_verbose_level is specified, output is only\n"
"displayed when the verbose level is currently set to that number\n"
"or greater. Always returns 0.\n\n";
STANDARD_LOCAL_USER;
LOCAL_USER_DECL;
static int ast_serialize_showchan(struct ast_channel *c, char *buf, size_t size)
{
struct timeval now;
long elapsed_seconds=0;
int hour=0, min=0, sec=0;
char cgrp[256];
char pgrp[256];
now = ast_tvnow();
memset(buf,0,size);
if (!c)
return 0;
if (c->cdr) {
elapsed_seconds = now.tv_sec - c->cdr->start.tv_sec;
hour = elapsed_seconds / 3600;
min = (elapsed_seconds % 3600) / 60;
sec = elapsed_seconds % 60;
}
snprintf(buf,size,
"Name= %s\n"
"Type= %s\n"
"UniqueID= %s\n"
"CallerID= %s\n"
"CallerIDName= %s\n"
"DNIDDigits= %s\n"
"State= %s (%d)\n"
"Rings= %d\n"
"NativeFormat= %d\n"
"WriteFormat= %d\n"
"ReadFormat= %d\n"
"1stFileDescriptor= %d\n"
"Framesin= %d %s\n"
"Framesout= %d %s\n"
"TimetoHangup= %ld\n"
"ElapsedTime= %dh%dm%ds\n"
"Context= %s\n"
"Extension= %s\n"
"Priority= %d\n"
"CallGroup= %s\n"
"PickupGroup= %s\n"
"Application= %s\n"
"Data= %s\n"
"Blocking_in= %s\n",
c->name,
c->type,
c->uniqueid,
(c->cid.cid_num ? c->cid.cid_num : "(N/A)"),
(c->cid.cid_name ? c->cid.cid_name : "(N/A)"),
(c->cid.cid_dnid ? c->cid.cid_dnid : "(N/A)" ),
ast_state2str(c->_state),
c->_state,
c->rings,
c->nativeformats,
c->writeformat,
c->readformat,
c->fds[0], c->fin & 0x7fffffff, (c->fin & 0x80000000) ? " (DEBUGGED)" : "",
c->fout & 0x7fffffff, (c->fout & 0x80000000) ? " (DEBUGGED)" : "", (long)c->whentohangup,
hour,
min,
sec,
c->context,
c->exten,
c->priority,
ast_print_group(cgrp, sizeof(cgrp), c->callgroup),
ast_print_group(pgrp, sizeof(pgrp), c->pickupgroup),
( c->appl ? c->appl : "(N/A)" ),
( c-> data ? (!ast_strlen_zero(c->data) ? c->data : "(Empty)") : "(None)"),
(ast_test_flag(c, AST_FLAG_BLOCKING) ? c->blockproc : "(Not Blocking)"));
return 0;
}
static int dumpchan_exec(struct ast_channel *chan, void *data)
{
int res=0;
struct localuser *u;
char vars[1024];
char info[1024];
int level = 0;
static char *line = "================================================================================";
LOCAL_USER_ADD(u);
if (data) {
level = atoi(data);
}
pbx_builtin_serialize_variables(chan, vars, sizeof(vars));
ast_serialize_showchan(chan, info, sizeof(info));
if (option_verbose >= level)
ast_verbose("\nDumping Info For Channel: %s:\n%s\nInfo:\n%s\nVariables:\n%s%s\n",chan->name, line, info, vars, line);
LOCAL_USER_REMOVE(u);
return res;
}
int unload_module(void)
{
STANDARD_HANGUP_LOCALUSERS;
return ast_unregister_application(app);
}
int load_module(void)
{
return ast_register_application(app, dumpchan_exec, synopsis, desc);
}
char *description(void)
{
return tdesc;
}
int usecount(void)
{
int res;
STANDARD_USECOUNT(res);
return res;
}
char *key()
{
return ASTERISK_GPL_KEY;
}

19
apps/app_echo.c Executable file → Normal file
View File

@@ -11,19 +11,20 @@
* the GNU General Public License
*/
#include <asterisk/lock.h>
#include <asterisk/file.h>
#include <asterisk/logger.h>
#include <asterisk/channel.h>
#include <asterisk/pbx.h>
#include <asterisk/module.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <pthread.h>
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/lock.h"
#include "asterisk/file.h"
#include "asterisk/logger.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
static char *tdesc = "Simple Echo Application";
@@ -52,6 +53,8 @@ static int echo_exec(struct ast_channel *chan, void *data)
f = ast_read(chan);
if (!f)
break;
f->delivery.tv_sec = 0;
f->delivery.tv_usec = 0;
if (f->frametype == AST_FRAME_VOICE) {
if (ast_write(chan, f))
break;

86
apps/app_enumlookup.c Executable file → Normal file
View File

@@ -1,33 +1,36 @@
/*
* Asterisk -- A telephony toolkit for Linux.
*
* Time of day - Report the time of day
*
* Copyright (C) 1999, Mark Spencer
* Enumlookup - lookup entry in ENUM
*
* Mark Spencer <markster@linux-support.net>
* Copyright (C) 1999 - 2005, Digium, Inc.
*
* Mark Spencer <markster@digium.com>
*
* This program is free software, distributed under the terms of
* the GNU General Public License
*/
#include <asterisk/lock.h>
#include <asterisk/file.h>
#include <asterisk/logger.h>
#include <asterisk/channel.h>
#include <asterisk/pbx.h>
#include <asterisk/options.h>
#include <asterisk/config.h>
#include <asterisk/module.h>
#include <asterisk/enum.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include <pthread.h>
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/lock.h"
#include "asterisk/file.h"
#include "asterisk/logger.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/options.h"
#include "asterisk/config.h"
#include "asterisk/module.h"
#include "asterisk/enum.h"
#include "asterisk/utils.h"
static char *tdesc = "ENUM Lookup";
@@ -39,23 +42,28 @@ static char *descrip =
" EnumLookup(exten): Looks up an extension via ENUM and sets\n"
"the variable 'ENUM'. For VoIP URIs this variable will \n"
"look like 'TECHNOLOGY/URI' with the appropriate technology.\n"
"Returns -1 on hangup, or 0 on completion regardless of whether the \n"
"lookup was successful. \n"
"Returns -1 on hangup, or 0 on completion\n"
"Currently, the enumservices SIP, H323, IAX, IAX2 and TEL are recognized. \n"
"A good SIP, H323, IAX or IAX2 entry will result in normal priority handling, \n"
"whereas a good TEL entry will increase the priority by 51 (if existing).\n"
"\nReturns status in the ENUMSTATUS channel variable:\n"
" ERROR Failed to do a lookup\n"
" <tech> Technology of the successful lookup: SIP, H323, IAX, IAX2 or TEL\n"
" BADURI Got URI Asterisk does not understand.\n"
"\nOld, depreciated, behaviour:\n"
"\nA SIP, H323, IAX or IAX2 entry will result in normal priority handling, \n"
"whereas a TEL entry will increase the priority by 51 (if existing).\n"
"If the lookup was *not* successful and there exists a priority n + 101,\n"
"then that priority will be taken next.\n" ;
#define ENUM_CONFIG "enum.conf"
static char h323driver[80];
static char h323driver[80] = "";
#define H323DRIVERDEFAULT "H323"
STANDARD_LOCAL_USER;
LOCAL_USER_DECL;
/*--- enumlookup_exec: Look up number in ENUM and return result */
static int enumlookup_exec(struct ast_channel *chan, void *data)
{
int res=0;
@@ -64,9 +72,10 @@ static int enumlookup_exec(struct ast_channel *chan, void *data)
char tmp[256];
char *c,*t;
struct localuser *u;
if (!data || !strlen(data)) {
if (!data || ast_strlen_zero(data)) {
ast_log(LOG_WARNING, "EnumLookup requires an argument (extension)\n");
res = 1;
res = 0;
}
LOCAL_USER_ADD(u);
if (!res) {
@@ -74,6 +83,13 @@ static int enumlookup_exec(struct ast_channel *chan, void *data)
printf("ENUM got '%d'\n", res);
}
LOCAL_USER_REMOVE(u);
if (!res) { /* Failed to do a lookup */
/* Look for a "busy" place */
ast_goto_if_exists(chan, chan->context, chan->exten, chan->priority + 101);
pbx_builtin_setvar_helper(chan, "ENUMSTATUS", "ERROR");
return 0;
}
pbx_builtin_setvar_helper(chan, "ENUMSTATUS", tech);
/* Parse it out */
if (res > 0) {
if (!strcasecmp(tech, "SIP")) {
@@ -123,38 +139,32 @@ static int enumlookup_exec(struct ast_channel *chan, void *data)
*t = 0;
pbx_builtin_setvar_helper(chan, "ENUM", tmp);
ast_log(LOG_NOTICE, "tel: ENUM set to \"%s\"\n", tmp);
if (ast_exists_extension(chan, chan->context, chan->exten, chan->priority + 51, chan->callerid))
chan->priority += 50;
else
if (ast_goto_if_exists(chan, chan->context, chan->exten, chan->priority + 51))
res = 0;
}
} else if (strlen(tech)) {
} else if (!ast_strlen_zero(tech)) {
ast_log(LOG_NOTICE, "Don't know how to handle technology '%s'\n", tech);
pbx_builtin_setvar_helper(chan, "ENUMSTATUS", "BADURI");
res = 0;
}
}
if (!res) {
/* Look for a "busy" place */
if (ast_exists_extension(chan, chan->context, chan->exten, chan->priority + 101, chan->callerid))
chan->priority += 100;
} else if (res > 0)
res = 0;
return res;
return 0;
}
/*--- load_config: Load enum.conf and find out how to handle H.323 */
static int load_config(void)
{
struct ast_config *cfg;
char *s;
cfg = ast_load(ENUM_CONFIG);
cfg = ast_config_load(ENUM_CONFIG);
if (cfg) {
if (!(s=ast_variable_retrieve(cfg, "general", "h323driver"))) {
strcpy(h323driver, H323DRIVERDEFAULT);
strncpy(h323driver, H323DRIVERDEFAULT, sizeof(h323driver) - 1);
} else {
strcpy(h323driver, s);
strncpy(h323driver, s, sizeof(h323driver) - 1);
}
ast_destroy(cfg);
ast_config_destroy(cfg);
return 0;
}
ast_log(LOG_NOTICE, "No ENUM Config file, using defaults\n");
@@ -162,12 +172,14 @@ static int load_config(void)
}
/*--- unload_module: Unload this application from PBX */
int unload_module(void)
{
STANDARD_HANGUP_LOCALUSERS;
return ast_unregister_application(app);
}
/*--- load_module: Load this application into PBX */
int load_module(void)
{
int res;
@@ -180,12 +192,14 @@ int load_module(void)
return(0);
}
/*--- reload: Reload configuration file */
int reload(void)
{
return(load_config());
}
/*--- description: Describe module */
char *description(void)
{
return tdesc;

112
apps/app_eval.c Normal file
View File

@@ -0,0 +1,112 @@
/*
* Asterisk -- A telephony toolkit for Linux.
*
* Eval application
*
* Copyright (c) 2004 - 2005, Tilghman Lesher. All rights reserved.
*
* Tilghman Lesher <app_eval__v001@the-tilghman.com>
*
* $Id$
*
* This code is released by the author with no restrictions on usage.
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/file.h"
#include "asterisk/logger.h"
#include "asterisk/options.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
/* Maximum length of any variable */
#define MAXRESULT 1024
static char *tdesc = "Reevaluates strings";
static char *app_eval = "Eval";
static char *eval_synopsis = "Evaluates a string";
static char *eval_descrip =
"Usage: Eval(newvar=somestring)\n"
" Normally Asterisk evaluates variables inline. But what if you want to\n"
"store variable offsets in a database, to be evaluated later? Eval is\n"
"the answer, by allowing a string to be evaluated twice in the dialplan,\n"
"the first time as part of the normal dialplan, and the second using Eval.\n";
STANDARD_LOCAL_USER;
LOCAL_USER_DECL;
static int eval_exec(struct ast_channel *chan, void *data)
{
int res=0;
struct localuser *u;
char *s, *newvar=NULL, tmp[MAXRESULT];
static int dep_warning = 0;
if (!dep_warning) {
ast_log(LOG_WARNING, "This application has been deprecated in favor of the dialplan function, EVAL\n");
dep_warning = 1;
}
LOCAL_USER_ADD(u);
/* Check and parse arguments */
if (data) {
s = ast_strdupa((char *)data);
if (s) {
newvar = strsep(&s, "=");
if (newvar && (newvar[0] != '\0')) {
memset(tmp, 0, MAXRESULT);
pbx_substitute_variables_helper(chan, s, tmp, MAXRESULT - 1);
pbx_builtin_setvar_helper(chan, newvar, tmp);
}
} else {
ast_log(LOG_ERROR, "Out of memory\n");
res = -1;
}
}
LOCAL_USER_REMOVE(u);
return res;
}
int unload_module(void)
{
STANDARD_HANGUP_LOCALUSERS;
return ast_unregister_application(app_eval);
}
int load_module(void)
{
return ast_register_application(app_eval, eval_exec, eval_synopsis, eval_descrip);
}
char *description(void)
{
return tdesc;
}
int usecount(void)
{
int res;
STANDARD_USECOUNT(res);
return res;
}
char *key()
{
return ASTERISK_GPL_KEY;
}

119
apps/app_exec.c Normal file
View File

@@ -0,0 +1,119 @@
/*
* Asterisk -- A telephony toolkit for Linux.
*
* Exec application
*
* Copyright (c) 2004 - 2005, Tilghman Lesher. All rights reserved.
*
* Tilghman Lesher <app_exec__v001@the-tilghman.com>
*
* $Id$
*
* This code is released by the author with no restrictions on usage.
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/file.h"
#include "asterisk/logger.h"
#include "asterisk/options.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
/* Maximum length of any variable */
#define MAXRESULT 1024
static char *tdesc = "Executes applications";
static char *app_exec = "Exec";
static char *exec_synopsis = "Executes internal application";
static char *exec_descrip =
"Usage: Exec(appname(arguments))\n"
" Allows an arbitrary application to be invoked even when not\n"
"hardcoded into the dialplan. To invoke external applications\n"
"see the application System. Returns whatever value the\n"
"app returns or a non-zero value if the app cannot be found.\n";
STANDARD_LOCAL_USER;
LOCAL_USER_DECL;
static int exec_exec(struct ast_channel *chan, void *data)
{
int res=0;
struct localuser *u;
char *s, *appname, *endargs, args[MAXRESULT];
struct ast_app *app;
LOCAL_USER_ADD(u);
memset(args, 0, MAXRESULT);
/* Check and parse arguments */
if (data) {
s = ast_strdupa((char *)data);
if (s) {
appname = strsep(&s, "(");
if (s) {
endargs = strrchr(s, ')');
if (endargs)
*endargs = '\0';
pbx_substitute_variables_helper(chan, s, args, MAXRESULT - 1);
}
if (appname) {
app = pbx_findapp(appname);
if (app) {
res = pbx_exec(chan, app, args, 1);
} else {
ast_log(LOG_WARNING, "Could not find application (%s)\n", appname);
res = -1;
}
}
} else {
ast_log(LOG_ERROR, "Out of memory\n");
res = -1;
}
}
LOCAL_USER_REMOVE(u);
return res;
}
int unload_module(void)
{
STANDARD_HANGUP_LOCALUSERS;
return ast_unregister_application(app_exec);
}
int load_module(void)
{
return ast_register_application(app_exec, exec_exec, exec_synopsis, exec_descrip);
}
char *description(void)
{
return tdesc;
}
int usecount(void)
{
int res;
STANDARD_USECOUNT(res);
return res;
}
char *key()
{
return ASTERISK_GPL_KEY;
}

561
apps/app_externalivr.c Normal file
View File

@@ -0,0 +1,561 @@
/*
* Asterisk -- A telephony toolkit for Linux.
*
* External IVR application interface
*
* Copyright (C) 2005, Digium, Inc.
*
* Kevin P. Fleming <kpfleming@digium.com>
*
* Portions taken from the file-based music-on-hold work
* created by Anthony Minessale II in res_musiconhold.c
*
* This program is free software, distributed under the terms of
* the GNU General Public License
*/
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <errno.h>
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/lock.h"
#include "asterisk/file.h"
#include "asterisk/logger.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
#include "asterisk/linkedlists.h"
static const char *tdesc = "External IVR Interface Application";
static const char *app = "ExternalIVR";
static const char *synopsis = "Interfaces with an external IVR application";
static const char *descrip =
" ExternalIVR(command[|arg[|arg...]]): Forks an process to run the supplied command,\n"
"and starts a generator on the channel. The generator's play list is\n"
"controlled by the external application, which can add and clear entries\n"
"via simple commands issued over its stdout. The external application\n"
"will receive all DTMF events received on the channel, and notification\n"
"if the channel is hung up. The application will not be forcibly terminated\n"
"when the channel is hung up.\n"
"See doc/README.externalivr for a protocol specification.\n";
#define ast_chan_log(level, channel, format, ...) ast_log(level, "%s: " format, channel->name, ## __VA_ARGS__)
struct playlist_entry {
AST_LIST_ENTRY(playlist_entry) list;
char filename[1];
};
struct localuser {
struct ast_channel *chan;
struct localuser *next;
AST_LIST_HEAD(playlist, playlist_entry) playlist;
AST_LIST_HEAD(finishlist, playlist_entry) finishlist;
int list_cleared;
int playing_silence;
int option_autoclear;
};
LOCAL_USER_DECL;
struct gen_state {
struct localuser *u;
struct ast_filestream *stream;
struct playlist_entry *current;
int sample_queue;
};
static void send_child_event(FILE *handle, const char event, const char *data,
const struct ast_channel *chan)
{
char tmp[256];
if (!data) {
snprintf(tmp, sizeof(tmp), "%c,%10ld", event, time(NULL));
} else {
snprintf(tmp, sizeof(tmp), "%c,%10ld,%s", event, time(NULL), data);
}
fprintf(handle, "%s\n", tmp);
ast_chan_log(LOG_DEBUG, chan, "sent '%s'\n", tmp);
}
static void *gen_alloc(struct ast_channel *chan, void *params)
{
struct localuser *u = params;
struct gen_state *state;
state = calloc(1, sizeof(*state));
if (!state)
return NULL;
state->u = u;
return state;
}
static void gen_closestream(struct gen_state *state)
{
if (!state->stream)
return;
ast_closestream(state->stream);
state->u->chan->stream = NULL;
state->stream = NULL;
}
static void gen_release(struct ast_channel *chan, void *data)
{
struct gen_state *state = data;
gen_closestream(state);
free(data);
}
/* caller has the playlist locked */
static int gen_nextfile(struct gen_state *state)
{
struct localuser *u = state->u;
char *file_to_stream;
u->list_cleared = 0;
u->playing_silence = 0;
gen_closestream(state);
while (!state->stream) {
state->current = AST_LIST_REMOVE_HEAD(&u->playlist, list);
if (state->current) {
file_to_stream = state->current->filename;
} else {
file_to_stream = "silence-10";
u->playing_silence = 1;
}
if (!(state->stream = ast_openstream_full(u->chan, file_to_stream, u->chan->language, 1))) {
ast_chan_log(LOG_WARNING, u->chan, "File '%s' could not be opened: %s\n", file_to_stream, strerror(errno));
if (!u->playing_silence) {
continue;
} else {
break;
}
}
}
return (!state->stream);
}
static struct ast_frame *gen_readframe(struct gen_state *state)
{
struct ast_frame *f = NULL;
struct localuser *u = state->u;
if (u->list_cleared ||
(u->playing_silence && AST_LIST_FIRST(&u->playlist))) {
gen_closestream(state);
AST_LIST_LOCK(&u->playlist);
gen_nextfile(state);
AST_LIST_UNLOCK(&u->playlist);
}
if (!(state->stream && (f = ast_readframe(state->stream)))) {
if (state->current) {
AST_LIST_LOCK(&u->finishlist);
AST_LIST_INSERT_TAIL(&u->finishlist, state->current, list);
AST_LIST_UNLOCK(&u->finishlist);
state->current = NULL;
}
if (!gen_nextfile(state))
f = ast_readframe(state->stream);
}
return f;
}
static int gen_generate(struct ast_channel *chan, void *data, int len, int samples)
{
struct gen_state *state = data;
struct ast_frame *f = NULL;
int res = 0;
state->sample_queue += samples;
while (state->sample_queue > 0) {
if (!(f = gen_readframe(state)))
return -1;
res = ast_write(chan, f);
ast_frfree(f);
if (res < 0) {
ast_chan_log(LOG_WARNING, chan, "Failed to write frame: %s\n", strerror(errno));
return -1;
}
state->sample_queue -= f->samples;
}
return res;
}
static struct ast_generator gen =
{
alloc: gen_alloc,
release: gen_release,
generate: gen_generate,
};
static struct playlist_entry *make_entry(const char *filename)
{
struct playlist_entry *entry;
entry = calloc(1, sizeof(*entry) + strlen(filename) + 10);
if (!entry)
return NULL;
strcpy(entry->filename, filename);
return entry;
}
static int app_exec(struct ast_channel *chan, void *data)
{
struct localuser *u = NULL;
struct playlist_entry *entry;
const char *args = data;
int child_stdin[2] = { 0,0 };
int child_stdout[2] = { 0,0 };
int child_stderr[2] = { 0,0 };
int res = -1;
int gen_active = 0;
int pid;
char *command;
char *argv[32];
int argc = 1;
char *buf;
FILE *child_commands = NULL;
FILE *child_errors = NULL;
FILE *child_events = NULL;
if (!args || ast_strlen_zero(args)) {
ast_log(LOG_WARNING, "ExternalIVR requires a command to execute\n");
goto exit;
}
buf = ast_strdupa(data);
command = strsep(&buf, "|");
memset(argv, 0, sizeof(argv) / sizeof(argv[0]));
argv[0] = command;
while ((argc < 31) && (argv[argc++] = strsep(&buf, "|")));
argv[argc] = NULL;
LOCAL_USER_ADD(u);
if (pipe(child_stdin)) {
ast_chan_log(LOG_WARNING, chan, "Could not create pipe for child input: %s\n", strerror(errno));
goto exit;
}
if (pipe(child_stdout)) {
ast_chan_log(LOG_WARNING, chan, "Could not create pipe for child output: %s\n", strerror(errno));
goto exit;
}
if (pipe(child_stderr)) {
ast_chan_log(LOG_WARNING, chan, "Could not create pipe for child errors: %s\n", strerror(errno));
goto exit;
}
u->list_cleared = 0;
AST_LIST_HEAD_INIT(&u->playlist);
AST_LIST_HEAD_INIT(&u->finishlist);
if (chan->_state != AST_STATE_UP) {
ast_answer(chan);
}
if (ast_activate_generator(chan, &gen, u) < 0) {
ast_chan_log(LOG_WARNING, chan, "Failed to activate generator\n");
goto exit;
} else
gen_active = 1;
pid = fork();
if (pid < 0) {
ast_log(LOG_WARNING, "Failed to fork(): %s\n", strerror(errno));
goto exit;
}
if (!pid) {
/* child process */
int i;
dup2(child_stdin[0], STDIN_FILENO);
dup2(child_stdout[1], STDOUT_FILENO);
dup2(child_stderr[1], STDERR_FILENO);
close(child_stdin[1]);
close(child_stdout[0]);
close(child_stderr[0]);
for (i = STDERR_FILENO + 1; i < 1024; i++)
close(i);
execv(command, argv);
fprintf(stderr, "Failed to execute '%s': %s\n", command, strerror(errno));
exit(1);
} else {
/* parent process */
int child_events_fd = child_stdin[1];
int child_commands_fd = child_stdout[0];
int child_errors_fd = child_stderr[0];
struct ast_frame *f;
int ms;
int exception;
int ready_fd;
int waitfds[2] = { child_errors_fd, child_commands_fd };
struct ast_channel *rchan;
close(child_stdin[0]);
close(child_stdout[1]);
close(child_stderr[1]);
if (!(child_events = fdopen(child_events_fd, "w"))) {
ast_chan_log(LOG_WARNING, chan, "Could not open stream for child events\n");
goto exit;
}
setvbuf(child_events, NULL, _IONBF, 0);
if (!(child_commands = fdopen(child_commands_fd, "r"))) {
ast_chan_log(LOG_WARNING, chan, "Could not open stream for child commands\n");
goto exit;
}
if (!(child_errors = fdopen(child_errors_fd, "r"))) {
ast_chan_log(LOG_WARNING, chan, "Could not open stream for child errors\n");
goto exit;
}
res = 0;
while (1) {
if (ast_test_flag(chan, AST_FLAG_ZOMBIE)) {
ast_chan_log(LOG_NOTICE, chan, "Is a zombie\n");
res = -1;
break;
}
if (ast_check_hangup(chan)) {
ast_chan_log(LOG_NOTICE, chan, "Got check_hangup\n");
send_child_event(child_events, 'H', NULL, chan);
res = -1;
break;
}
ready_fd = 0;
ms = 100;
errno = 0;
exception = 0;
rchan = ast_waitfor_nandfds(&chan, 1, waitfds, 2, &exception, &ready_fd, &ms);
if (!AST_LIST_EMPTY(&u->finishlist)) {
AST_LIST_LOCK(&u->finishlist);
while ((entry = AST_LIST_REMOVE_HEAD(&u->finishlist, list))) {
send_child_event(child_events, 'F', entry->filename, chan);
free(entry);
}
AST_LIST_UNLOCK(&u->finishlist);
}
if (rchan) {
/* the channel has something */
f = ast_read(chan);
if (!f) {
ast_chan_log(LOG_NOTICE, chan, "Returned no frame\n");
send_child_event(child_events, 'H', NULL, chan);
res = -1;
break;
}
if (f->frametype == AST_FRAME_DTMF) {
send_child_event(child_events, f->subclass, NULL, chan);
if (u->option_autoclear) {
if (!u->list_cleared && !u->playing_silence)
send_child_event(child_events, 'T', NULL, chan);
AST_LIST_LOCK(&u->playlist);
while ((entry = AST_LIST_REMOVE_HEAD(&u->playlist, list))) {
if (!u->playing_silence)
send_child_event(child_events, 'D', entry->filename, chan);
free(entry);
}
u->list_cleared = 1;
AST_LIST_UNLOCK(&u->playlist);
}
} else if ((f->frametype == AST_FRAME_CONTROL) && (f->subclass == AST_CONTROL_HANGUP)) {
ast_chan_log(LOG_NOTICE, chan, "Got AST_CONTROL_HANGUP\n");
send_child_event(child_events, 'H', NULL, chan);
ast_frfree(f);
res = -1;
break;
}
ast_frfree(f);
} else if (ready_fd == child_commands_fd) {
char input[1024];
if (exception || feof(child_commands)) {
ast_chan_log(LOG_WARNING, chan, "Child process went away\n");
res = -1;
break;
}
if (!fgets(input, sizeof(input), child_commands))
continue;
command = ast_strip(input);
ast_chan_log(LOG_DEBUG, chan, "got command '%s'\n", input);
if (strlen(input) < 4)
continue;
if (input[0] == 'S') {
if (ast_fileexists(&input[2], NULL, NULL) == -1) {
ast_chan_log(LOG_WARNING, chan, "Unknown file requested '%s'\n", &input[2]);
send_child_event(child_events, 'Z', NULL, chan);
strcpy(&input[2], "exception");
}
if (!u->list_cleared && !u->playing_silence)
send_child_event(child_events, 'T', NULL, chan);
AST_LIST_LOCK(&u->playlist);
while ((entry = AST_LIST_REMOVE_HEAD(&u->playlist, list))) {
if (!u->playing_silence)
send_child_event(child_events, 'D', entry->filename, chan);
free(entry);
}
u->list_cleared = 1;
entry = make_entry(&input[2]);
if (entry)
AST_LIST_INSERT_TAIL(&u->playlist, entry, list);
AST_LIST_UNLOCK(&u->playlist);
} else if (input[0] == 'A') {
if (ast_fileexists(&input[2], NULL, NULL) == -1) {
ast_chan_log(LOG_WARNING, chan, "Unknown file requested '%s'\n", &input[2]);
send_child_event(child_events, 'Z', NULL, chan);
strcpy(&input[2], "exception");
}
entry = make_entry(&input[2]);
if (entry) {
AST_LIST_LOCK(&u->playlist);
AST_LIST_INSERT_TAIL(&u->playlist, entry, list);
AST_LIST_UNLOCK(&u->playlist);
}
} else if (input[0] == 'H') {
ast_chan_log(LOG_NOTICE, chan, "Hanging up: %s\n", &input[2]);
send_child_event(child_events, 'H', NULL, chan);
break;
} else if (input[0] == 'O') {
if (!strcasecmp(&input[2], "autoclear"))
u->option_autoclear = 1;
else if (!strcasecmp(&input[2], "noautoclear"))
u->option_autoclear = 0;
else
ast_chan_log(LOG_WARNING, chan, "Unknown option requested '%s'\n", &input[2]);
}
} else if (ready_fd == child_errors_fd) {
char input[1024];
if (exception || feof(child_errors)) {
ast_chan_log(LOG_WARNING, chan, "Child process went away\n");
res = -1;
break;
}
if (fgets(input, sizeof(input), child_errors)) {
command = ast_strip(input);
ast_chan_log(LOG_NOTICE, chan, "stderr: %s\n", command);
}
} else if ((ready_fd < 0) && ms) {
if (errno == 0 || errno == EINTR)
continue;
ast_chan_log(LOG_WARNING, chan, "Wait failed (%s)\n", strerror(errno));
break;
}
}
}
exit:
if (gen_active)
ast_deactivate_generator(chan);
if (child_events)
fclose(child_events);
if (child_commands)
fclose(child_commands);
if (child_errors)
fclose(child_errors);
if (child_stdin[0]) {
close(child_stdin[0]);
close(child_stdin[1]);
}
if (child_stdout[0]) {
close(child_stdout[0]);
close(child_stdout[1]);
}
if (child_stderr[0]) {
close(child_stderr[0]);
close(child_stderr[1]);
}
if (u) {
while ((entry = AST_LIST_REMOVE_HEAD(&u->playlist, list)))
free(entry);
LOCAL_USER_REMOVE(u);
}
return res;
}
int unload_module(void)
{
STANDARD_HANGUP_LOCALUSERS;
return ast_unregister_application(app);
}
int load_module(void)
{
return ast_register_application(app, app_exec, synopsis, descrip);
}
char *description(void)
{
return (char *) tdesc;
}
int usecount(void)
{
int res;
STANDARD_USECOUNT(res);
return res;
}
char *key()
{
return ASTERISK_GPL_KEY;
}

74
apps/app_festival.c Executable file → Normal file
View File

@@ -5,20 +5,13 @@
*
* Copyright (C) 2002, Christos Ricudis
*
* Christos Ricudis <ricudis@paiko.gr>
* Christos Ricudis <ricudis@itc.auth.gr>
*
* This program is free software, distributed under the terms of
* the GNU General Public License
*/
#include <sys/types.h>
#include <asterisk/file.h>
#include <asterisk/logger.h>
#include <asterisk/channel.h>
#include <asterisk/pbx.h>
#include <asterisk/module.h>
#include <asterisk/md5.h>
#include <asterisk/config.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
@@ -34,8 +27,20 @@
#include <unistd.h>
#include <fcntl.h>
#include <ctype.h>
#include <pthread.h>
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/file.h"
#include "asterisk/logger.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
#include "asterisk/md5.h"
#include "asterisk/config.h"
#include "asterisk/utils.h"
#include "asterisk/lock.h"
#define FESTIVAL_CONFIG "festival.conf"
@@ -119,7 +124,7 @@ static int send_waveform_to_fd(char *waveform, int length, int fd) {
if (x != fd)
close(x);
}
//IAS
/*IAS */
#ifdef __PPC__
for( x=0; x<length; x+=2)
{
@@ -130,7 +135,6 @@ static int send_waveform_to_fd(char *waveform, int length, int fd) {
#endif
write(fd,waveform,length);
write(fd,"a",1);
close(fd);
exit(0);
}
@@ -155,6 +159,9 @@ static int send_waveform_to_channel(struct ast_channel *chan, char *waveform, in
return -1;
}
/* Answer if it's not already going */
if (chan->_state != AST_STATE_UP)
ast_answer(chan);
ast_stopstream(chan);
owriteformat = chan->writeformat;
@@ -195,7 +202,7 @@ static int send_waveform_to_channel(struct ast_channel *chan, char *waveform, in
needed = f->samples * 2;
if (needed > sizeof(myf.frdata)) {
ast_log(LOG_WARNING, "Only able to deliver %d of %d requested samples\n",
sizeof(myf.frdata) / 2, needed/2);
(int)sizeof(myf.frdata) / 2, needed/2);
needed = sizeof(myf.frdata);
}
res = read(fds[0], myf.frdata, needed);
@@ -212,7 +219,7 @@ static int send_waveform_to_channel(struct ast_channel *chan, char *waveform, in
res = -1;
break;
}
if (res < needed) { // last frame
if (res < needed) { /* last frame */
ast_log(LOG_DEBUG, "Last frame\n");
res=0;
break;
@@ -227,8 +234,9 @@ static int send_waveform_to_channel(struct ast_channel *chan, char *waveform, in
}
close(fds[0]);
close(fds[1]);
// if (pid > -1)
// kill(pid, SIGKILL);
/* if (pid > -1) */
/* kill(pid, SIGKILL); */
if (!res && owriteformat)
ast_set_write_format(chan, owriteformat);
return res;
@@ -247,6 +255,7 @@ static int festival_exec(struct ast_channel *chan, void *vdata)
struct localuser *u;
struct sockaddr_in serv_addr;
struct hostent *serverhost;
struct ast_hostent ahp;
int fd;
FILE *fs;
char *host;
@@ -263,9 +272,9 @@ static int festival_exec(struct ast_channel *chan, void *vdata)
int i;
struct MD5Context md5ctx;
unsigned char MD5Res[16];
char MD5Hex[32];
char koko[4];
char cachefile[MAXFESTLEN];
char MD5Hex[33] = "";
char koko[4] = "";
char cachefile[MAXFESTLEN]="";
int readcache=0;
int writecache=0;
int strln;
@@ -276,7 +285,7 @@ static int festival_exec(struct ast_channel *chan, void *vdata)
char *intstr;
struct ast_config *cfg;
cfg = ast_load(FESTIVAL_CONFIG);
cfg = ast_config_load(FESTIVAL_CONFIG);
if (!cfg) {
ast_log(LOG_WARNING, "No such configuration file %s\n", FESTIVAL_CONFIG);
return -1;
@@ -300,11 +309,9 @@ static int festival_exec(struct ast_channel *chan, void *vdata)
if (!(festivalcommand = ast_variable_retrieve(cfg, "general", "festivalcommand"))) {
festivalcommand = "(tts_textasterisk \"%s\" 'file)(quit)\n";
}
if (!vdata || !strlen(vdata)) {
if (!vdata || ast_strlen_zero(vdata)) {
ast_log(LOG_WARNING, "festival requires an argument (text)\n");
ast_config_destroy(cfg);
return -1;
}
strncpy(data, vdata, sizeof(data) - 1);
@@ -322,14 +329,16 @@ static int festival_exec(struct ast_channel *chan, void *vdata)
if (fd < 0) {
ast_log(LOG_WARNING,"festival_client: can't get socket\n");
ast_config_destroy(cfg);
return -1;
}
memset(&serv_addr, 0, sizeof(serv_addr));
if ((serv_addr.sin_addr.s_addr = inet_addr(host)) == -1) {
/* its a name rather than an ipnum */
serverhost = gethostbyname(host);
serverhost = ast_gethostbyname(host, &ahp);
if (serverhost == (struct hostent *)0) {
ast_log(LOG_WARNING,"festival_client: gethostbyname failed\n");
ast_config_destroy(cfg);
return -1;
}
memmove(&serv_addr.sin_addr,serverhost->h_addr, serverhost->h_length);
@@ -339,6 +348,7 @@ static int festival_exec(struct ast_channel *chan, void *vdata)
if (connect(fd, (struct sockaddr *)&serv_addr, sizeof(serv_addr)) != 0) {
ast_log(LOG_WARNING,"festival_client: connect to server failed\n");
ast_config_destroy(cfg);
return -1;
}
@@ -346,21 +356,21 @@ static int festival_exec(struct ast_channel *chan, void *vdata)
MD5Init(&md5ctx);
MD5Update(&md5ctx,(unsigned char const *)data,strlen(data));
MD5Final(MD5Res,&md5ctx);
strcpy(MD5Hex,"");
MD5Hex[0] = '\0';
/* Convert to HEX and look if there is any matching file in the cache
directory */
for (i=0;i<16;i++) {
sprintf(koko,"%X",MD5Res[i]);
strcat(MD5Hex,koko);
snprintf(koko, sizeof(koko), "%X",MD5Res[i]);
strncat(MD5Hex, koko, sizeof(MD5Hex) - strlen(MD5Hex) - 1);
}
readcache=0;
writecache=0;
if (strlen(cachedir)+strlen(MD5Hex)+1<=MAXFESTLEN && (usecache==-1)) {
sprintf(cachefile,"%s/%s",cachedir,MD5Hex);
snprintf(cachefile, sizeof(cachefile), "%s/%s", cachedir, MD5Hex);
fdesc=open(cachefile,O_RDWR);
if (fdesc==-1) {
fdesc=open(cachefile,O_CREAT|O_RDWR,0);
fdesc=open(cachefile,O_CREAT|O_RDWR,0777);
if (fdesc!=-1) {
writecache=1;
strln=strlen((char *)data);
@@ -372,11 +382,12 @@ static int festival_exec(struct ast_channel *chan, void *vdata)
}
} else {
read(fdesc,&strln,sizeof(int));
ast_log(LOG_DEBUG,"Cache file exists, strln=%d, strlen=%d\n",strln,strlen((char *)data));
ast_log(LOG_DEBUG,"Cache file exists, strln=%d, strlen=%d\n",strln,(int)strlen((char *)data));
if (strlen((char *)data)==strln) {
ast_log(LOG_DEBUG,"Size OK\n");
read(fdesc,&bigstring,strln);
if (strcmp(bigstring,data)==0) {
bigstring[strln] = 0;
if (strcmp(bigstring,data)==0) {
readcache=1;
} else {
ast_log(LOG_WARNING,"Strings do not match\n");
@@ -440,6 +451,7 @@ static int festival_exec(struct ast_channel *chan, void *vdata)
}
} while (strcmp(ack,"OK\n") != 0);
close(fd);
ast_config_destroy(cfg);
LOCAL_USER_REMOVE(u);
return res;

32
apps/app_flash.c Executable file → Normal file
View File

@@ -11,21 +11,29 @@
* the GNU General Public License
*/
#include <asterisk/lock.h>
#include <asterisk/file.h>
#include <asterisk/logger.h>
#include <asterisk/channel.h>
#include <asterisk/pbx.h>
#include <asterisk/module.h>
#include <asterisk/translate.h>
#include <asterisk/image.h>
#include <asterisk/options.h>
#include <sys/ioctl.h>
#include <linux/zaptel.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <pthread.h>
#include <sys/ioctl.h>
#ifdef __linux__
#include <linux/zaptel.h>
#else
#include <zaptel.h>
#endif /* __linux__ */
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/lock.h"
#include "asterisk/file.h"
#include "asterisk/logger.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
#include "asterisk/translate.h"
#include "asterisk/image.h"
#include "asterisk/options.h"
static char *tdesc = "Flash zap trunk application";

100
apps/app_forkcdr.c Normal file
View File

@@ -0,0 +1,100 @@
/*
* Asterisk -- A telephony toolkit for Linux.
*
* Fork CDR application
* Copyright Anthony Minessale anthmct@yahoo.com
* Development of this app Sponsered/Funded by TAAN Softworks Corp
*
* This program is free software, distributed under the terms of
* the GNU General Public License
*/
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <pthread.h>
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/file.h"
#include "asterisk/logger.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/cdr.h"
#include "asterisk/module.h"
static char *tdesc = "Fork The CDR into 2 separate entities.";
static char *app = "ForkCDR";
static char *synopsis =
"Forks the Call Data Record";
static char *descrip =
" ForkCDR([options]): Causes the Call Data Record to fork an additional\n"
"cdr record starting from the time of the fork call\n"
"If the option 'v' is passed all cdr variables will be passed along also.\n"
"";
STANDARD_LOCAL_USER;
LOCAL_USER_DECL;
static void ast_cdr_fork(struct ast_channel *chan)
{
struct ast_cdr *cdr;
struct ast_cdr *newcdr;
if (!chan || !(cdr = chan->cdr))
return;
while (cdr->next)
cdr = cdr->next;
if (!(newcdr = ast_cdr_dup(cdr)))
return;
ast_cdr_append(cdr, newcdr);
ast_cdr_reset(newcdr, AST_CDR_FLAG_KEEP_VARS);
if (!ast_test_flag(cdr, AST_CDR_FLAG_KEEP_VARS))
ast_cdr_free_vars(cdr, 0);
ast_set_flag(cdr, AST_CDR_FLAG_CHILD | AST_CDR_FLAG_LOCKED);
}
static int forkcdr_exec(struct ast_channel *chan, void *data)
{
int res=0;
struct localuser *u;
LOCAL_USER_ADD(u);
if (data && !ast_strlen_zero(data))
ast_set2_flag(chan->cdr, strchr((char *)data, 'v'), AST_CDR_FLAG_KEEP_VARS);
ast_cdr_fork(chan);
LOCAL_USER_REMOVE(u);
return res;
}
int unload_module(void)
{
STANDARD_HANGUP_LOCALUSERS;
return ast_unregister_application(app);
}
int load_module(void)
{
return ast_register_application(app, forkcdr_exec, synopsis, descrip);
}
char *description(void)
{
return tdesc;
}
int usecount(void)
{
int res;
STANDARD_USECOUNT(res);
return res;
}
char *key()
{
return ASTERISK_GPL_KEY;
}

51
apps/app_getcpeid.c Executable file → Normal file
View File

@@ -3,29 +3,30 @@
*
* Execute arbitrary system commands
*
* Copyright (C) 1999, Mark Spencer
* Copyright (C) 1999-2005, Digium, inc
*
* Mark Spencer <markster@linux-support.net>
* Mark Spencer <markster@digium.com>
*
* This program is free software, distributed under the terms of
* the GNU General Public License
*/
#include <asterisk/lock.h>
#include <asterisk/file.h>
#include <asterisk/logger.h>
#include <asterisk/channel.h>
#include <asterisk/pbx.h>
#include <asterisk/module.h>
#include <asterisk/adsi.h>
#include <asterisk/options.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <pthread.h>
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/lock.h"
#include "asterisk/file.h"
#include "asterisk/logger.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
#include "asterisk/adsi.h"
#include "asterisk/options.h"
static char *tdesc = "Get ADSI CPE ID";
@@ -34,9 +35,9 @@ static char *app = "GetCPEID";
static char *synopsis = "Get ADSI CPE ID";
static char *descrip =
" GetCPEID: Obtains and displays CPE ID and other information in order to\n"
"properly setup zapata.conf for on-hook operations. Returns -1 on hanup\n"
"only.";
" GetCPEID: Obtains and displays ADSI CPE ID and other information in order\n"
"to properly setup zapata.conf for on-hook operations.\n"
"Returns -1 on hangup only.\n";
STANDARD_LOCAL_USER;
@@ -70,9 +71,9 @@ static int cpeid_exec(struct ast_channel *chan, void *idata)
stuff[2] = data[2];
stuff[3] = data[3];
memset(data, 0, sizeof(data));
strcpy(stuff[0], "** CPE Info **");
strcpy(stuff[1], "Identifying CPE...");
strcpy(stuff[2], "Please wait...");
strncpy(stuff[0], "** CPE Info **", sizeof(data[0]) - 1);
strncpy(stuff[1], "Identifying CPE...", sizeof(data[1]) - 1);
strncpy(stuff[2], "Please wait...", sizeof(data[2]) - 1);
res = adsi_load_session(chan, NULL, 0, 1);
if (res > 0) {
cpeid_setstatus(chan, stuff, 0);
@@ -83,8 +84,8 @@ static int cpeid_exec(struct ast_channel *chan, void *idata)
ast_verbose(VERBOSE_PREFIX_3 "Got CPEID of '%02x:%02x:%02x:%02x' on '%s'\n", cpeid[0], cpeid[1], cpeid[2], cpeid[3], chan->name);
}
if (res > -1) {
strcpy(stuff[1], "Measuring CPE...");
strcpy(stuff[2], "Please wait...");
strncpy(stuff[1], "Measuring CPE...", sizeof(data[1]) - 1);
strncpy(stuff[2], "Please wait...", sizeof(data[2]) - 1);
cpeid_setstatus(chan, stuff, 0);
res = adsi_get_cpeinfo(chan, &width, &height, &buttons, 0);
if (res > -1) {
@@ -95,14 +96,14 @@ static int cpeid_exec(struct ast_channel *chan, void *idata)
}
if (res > -1) {
if (gotcpeid)
sprintf(stuff[1], "CPEID: %02x:%02x:%02x:%02x", cpeid[0], cpeid[1], cpeid[2], cpeid[3]);
snprintf(stuff[1], sizeof(data[1]), "CPEID: %02x:%02x:%02x:%02x", cpeid[0], cpeid[1], cpeid[2], cpeid[3]);
else
strcpy(stuff[1], "CPEID Unknown");
strncpy(stuff[1], "CPEID Unknown", sizeof(data[1]) - 1);
if (gotgeometry)
sprintf(stuff[2], "Geom: %dx%d, %d buttons", width, height, buttons);
snprintf(stuff[2], sizeof(data[2]), "Geom: %dx%d, %d buttons", width, height, buttons);
else
strcpy(stuff[2], "Geometry unknown");
strcpy(stuff[3], "Press # to exit");
strncpy(stuff[2], "Geometry unknown", sizeof(data[2]) - 1);
strncpy(stuff[3], "Press # to exit", sizeof(data[3]) - 1);
cpeid_setstatus(chan, stuff, 1);
for(;;) {
res = ast_waitfordigit(chan, 1000);

296
apps/app_groupcount.c Normal file
View File

@@ -0,0 +1,296 @@
/*
* Asterisk -- A telephony toolkit for Linux.
*
* Group Manipulation Applications
*
* Copyright (c) 2004 - 2005, Digium Inc.
*
* Mark Spencer <markster@digium.com>
*
* This program is free software, distributed under the terms of
* the GNU General Public License
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <regex.h>
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/file.h"
#include "asterisk/logger.h"
#include "asterisk/options.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
#include "asterisk/utils.h"
#include "asterisk/cli.h"
#include "asterisk/app.h"
STANDARD_LOCAL_USER;
LOCAL_USER_DECL;
static int group_count_exec(struct ast_channel *chan, void *data)
{
int res = 0;
int count;
struct localuser *u;
char group[80] = "";
char category[80] = "";
char ret[80] = "";
char *grp;
static int deprecation_warning = 0;
LOCAL_USER_ADD(u);
if (!deprecation_warning) {
ast_log(LOG_WARNING, "The GetGroupCount application has been deprecated, please use the GROUP_COUNT function.\n");
deprecation_warning = 1;
}
ast_app_group_split_group(data, group, sizeof(group), category, sizeof(category));
if (ast_strlen_zero(group)) {
grp = pbx_builtin_getvar_helper(chan, category);
strncpy(group, grp, sizeof(group) - 1);
}
count = ast_app_group_get_count(group, category);
snprintf(ret, sizeof(ret), "%d", count);
pbx_builtin_setvar_helper(chan, "GROUPCOUNT", ret);
LOCAL_USER_REMOVE(u);
return res;
}
static int group_match_count_exec(struct ast_channel *chan, void *data)
{
int res = 0;
int count;
struct localuser *u;
char group[80] = "";
char category[80] = "";
char ret[80] = "";
static int deprecation_warning = 0;
LOCAL_USER_ADD(u);
if (!deprecation_warning) {
ast_log(LOG_WARNING, "The GetGroupMatchCount application has been deprecated, please use the GROUP_MATCH_COUNT function.\n");
deprecation_warning = 1;
}
ast_app_group_split_group(data, group, sizeof(group), category, sizeof(category));
if (!ast_strlen_zero(group)) {
count = ast_app_group_match_get_count(group, category);
snprintf(ret, sizeof(ret), "%d", count);
pbx_builtin_setvar_helper(chan, "GROUPCOUNT", ret);
}
LOCAL_USER_REMOVE(u);
return res;
}
static int group_set_exec(struct ast_channel *chan, void *data)
{
int res = 0;
struct localuser *u;
static int deprecation_warning = 0;
if (!deprecation_warning) {
ast_log(LOG_WARNING, "The SetGroup application has been deprecated, please use the GROUP() function.\n");
deprecation_warning = 1;
}
LOCAL_USER_ADD(u);
if (ast_app_group_set_channel(chan, data))
ast_log(LOG_WARNING, "SetGroup requires an argument (group name)\n");
LOCAL_USER_REMOVE(u);
return res;
}
static int group_check_exec(struct ast_channel *chan, void *data)
{
int res = 0;
int max, count;
struct localuser *u;
char limit[80]="";
char category[80]="";
static int deprecation_warning = 0;
LOCAL_USER_ADD(u);
if (!deprecation_warning) {
ast_log(LOG_WARNING, "The CheckGroup application has been deprecated, please use a combination of the GotoIf application and the GROUP_COUNT() function.\n");
deprecation_warning = 1;
}
if (!data || ast_strlen_zero(data)) {
ast_log(LOG_WARNING, "CheckGroup requires an argument(max[@category])\n");
return res;
}
ast_app_group_split_group(data, limit, sizeof(limit), category, sizeof(category));
if ((sscanf(limit, "%d", &max) == 1) && (max > -1)) {
count = ast_app_group_get_count(pbx_builtin_getvar_helper(chan, category), category);
if (count > max) {
if (ast_exists_extension(chan, chan->context, chan->exten, chan->priority + 101, chan->cid.cid_num))
chan->priority += 100;
else
res = -1;
}
} else
ast_log(LOG_WARNING, "CheckGroup requires a positive integer argument (max)\n");
LOCAL_USER_REMOVE(u);
return res;
}
static int group_show_channels(int fd, int argc, char *argv[])
{
#define FORMAT_STRING "%-25s %-20s %-20s\n"
struct ast_channel *c = NULL;
int numchans = 0;
struct ast_var_t *current;
struct varshead *headp;
regex_t regexbuf;
int havepattern = 0;
if (argc < 3 || argc > 4)
return RESULT_SHOWUSAGE;
if (argc == 4) {
if (regcomp(&regexbuf, argv[3], REG_EXTENDED | REG_NOSUB))
return RESULT_SHOWUSAGE;
havepattern = 1;
}
ast_cli(fd, FORMAT_STRING, "Channel", "Group", "Category");
while ( (c = ast_channel_walk_locked(c)) != NULL) {
headp=&c->varshead;
AST_LIST_TRAVERSE(headp,current,entries) {
if (!strncmp(ast_var_name(current), GROUP_CATEGORY_PREFIX "_", strlen(GROUP_CATEGORY_PREFIX) + 1)) {
if (!havepattern || !regexec(&regexbuf, ast_var_value(current), 0, NULL, 0)) {
ast_cli(fd, FORMAT_STRING, c->name, ast_var_value(current),
(ast_var_name(current) + strlen(GROUP_CATEGORY_PREFIX) + 1));
numchans++;
}
} else if (!strcmp(ast_var_name(current), GROUP_CATEGORY_PREFIX)) {
if (!havepattern || !regexec(&regexbuf, ast_var_value(current), 0, NULL, 0)) {
ast_cli(fd, FORMAT_STRING, c->name, ast_var_value(current), "(default)");
numchans++;
}
}
}
numchans++;
ast_mutex_unlock(&c->lock);
}
if (havepattern)
regfree(&regexbuf);
ast_cli(fd, "%d active channel%s\n", numchans, (numchans != 1) ? "s" : "");
return RESULT_SUCCESS;
#undef FORMAT_STRING
}
static char *tdesc = "Group Management Routines";
static char *app_group_count = "GetGroupCount";
static char *app_group_set = "SetGroup";
static char *app_group_check = "CheckGroup";
static char *app_group_match_count = "GetGroupMatchCount";
static char *group_count_synopsis = "Get the channel count of a group";
static char *group_set_synopsis = "Set the channel's group";
static char *group_check_synopsis = "Check the channel count of a group against a limit";
static char *group_match_count_synopsis = "Get the channel count of all groups that match a pattern";
static char *group_count_descrip =
"Usage: GetGroupCount([groupname][@category])\n"
" Calculates the group count for the specified group, or uses\n"
"the current channel's group if not specifed (and non-empty).\n"
"Stores result in GROUPCOUNT. Always returns 0.\n"
"This application has been deprecated, please use the function\n"
"GroupCount.\n";
static char *group_set_descrip =
"Usage: SetGroup(groupname[@category])\n"
" Sets the channel group to the specified value. Equivalent to\n"
"Set(GROUP=group). Always returns 0.\n";
static char *group_check_descrip =
"Usage: CheckGroup(max[@category])\n"
" Checks that the current number of total channels in the\n"
"current channel's group does not exceed 'max'. If the number\n"
"does not exceed 'max', we continue to the next step. If the\n"
"number does in fact exceed max, if priority n+101 exists, then\n"
"execution continues at that step, otherwise -1 is returned.\n";
static char *group_match_count_descrip =
"Usage: GetGroupMatchCount(groupmatch[@category])\n"
" Calculates the group count for all groups that match the specified\n"
"pattern. Uses standard regular expression matching (see regex(7)).\n"
"Stores result in GROUPCOUNT. Always returns 0.\n"
"This application has been deprecated, please use the function\n"
"GroupMatchCount.\n";
static char show_channels_usage[] =
"Usage: group show channels [pattern]\n"
" Lists all currently active channels with channel group(s) specified.\n Optional regular expression pattern is matched to group names for each channel.\n";
static struct ast_cli_entry cli_show_channels =
{ { "group", "show", "channels", NULL }, group_show_channels, "Show active channels with group(s)", show_channels_usage};
int unload_module(void)
{
int res;
STANDARD_HANGUP_LOCALUSERS;
ast_cli_unregister(&cli_show_channels);
res = ast_unregister_application(app_group_count);
res |= ast_unregister_application(app_group_set);
res |= ast_unregister_application(app_group_check);
res |= ast_unregister_application(app_group_match_count);
return res;
}
int load_module(void)
{
int res;
res = ast_register_application(app_group_count, group_count_exec, group_count_synopsis, group_count_descrip);
res |= ast_register_application(app_group_set, group_set_exec, group_set_synopsis, group_set_descrip);
res |= ast_register_application(app_group_check, group_check_exec, group_check_synopsis, group_check_descrip);
res |= ast_register_application(app_group_match_count, group_match_count_exec, group_match_count_synopsis, group_match_count_descrip);
ast_cli_register(&cli_show_channels);
return res;
}
char *description(void)
{
return tdesc;
}
int usecount(void)
{
int res;
STANDARD_USECOUNT(res);
return res;
}
char *key()
{
return ASTERISK_GPL_KEY;
}

95
apps/app_hasnewvoicemail.c Executable file → Normal file
View File

@@ -1,8 +1,11 @@
/*
* Asterisk -- A telephony toolkit for Linux.
*
* HasNewVoicemail application
*
* HasVoicemail application
* Changes Copyright (c) 2004 - 2005 Todd Freeman <freeman@andrews.edu>
*
* 95% based on HasNewVoicemail by:
*
* Copyright (c) 2003 Tilghman Lesher. All rights reserved.
*
* Tilghman Lesher <asterisk-hasnewvoicemail-app@the-tilghman.com>
@@ -29,61 +32,85 @@
*/
#include <sys/types.h>
#include <asterisk/file.h>
#include <asterisk/logger.h>
#include <asterisk/channel.h>
#include <asterisk/pbx.h>
#include <asterisk/module.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <dirent.h>
#include <pthread.h>
#include "asterisk.h"
#include "../astconf.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/file.h"
#include "asterisk/logger.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
#include "asterisk/lock.h"
#include "asterisk/utils.h"
static char *tdesc = "Indicator for whether a voice mailbox has messages in a given folder.";
static char *app_hasvoicemail = "HasVoicemail";
static char *hasvoicemail_synopsis = "Conditionally branches to priority + 101";
static char *hasvoicemail_descrip =
"HasVoicemail(vmbox[@context][:folder][|varname])\n"
" Branches to priority + 101, if there is voicemail in folder indicated."
" Optionally sets <varname> to the number of messages in that folder."
" Assumes folder of INBOX if not specified.\n";
static char *tdesc = "Indicator for whether a voice mailbox has new messages.";
static char *app_hasnewvoicemail = "HasNewVoicemail";
static char *hasnewvoicemail_synopsis = "Conditionally branches to priority + 101";
static char *hasnewvoicemail_descrip =
"HasNewVoicemail(vmbox[@context][|varname])\n"
" Branches to priority + 101, if there is new voicemail"
" Optionally sets <varname> to the number of new messages.\n";
"HasNewVoicemail(vmbox[/folder][@context][|varname])\n"
" Branches to priority + 101, if there is voicemail in folder 'folder' or INBOX.\n"
"if folder is not specified. Optionally sets <varname> to the number of messages\n"
"in that folder.\n";
STANDARD_LOCAL_USER;
LOCAL_USER_DECL;
static int hasnewvoicemail_exec(struct ast_channel *chan, void *data)
static int hasvoicemail_exec(struct ast_channel *chan, void *data)
{
int res=0;
struct localuser *u;
char vmpath[256], *input, *varname = NULL, *vmbox, *context = "default";
char vmpath[256], *temps, *input, *varname = NULL, *vmbox, *context = "default";
char *vmfolder;
DIR *vmdir;
struct dirent *vment;
int vmcount = 0;
if (!data) {
ast_log(LOG_WARNING, "HasNewVoicemail requires an argument (vm-box[@context]|varname)\n");
ast_log(LOG_WARNING, "HasVoicemail requires an argument (vm-box[@context][:folder]|varname)\n");
return -1;
}
LOCAL_USER_ADD(u);
input = ast_strdupa((char *)data);
if (input) {
if ((vmbox = strsep(&input,"|")))
varname = input;
else
vmbox = input;
if (index(vmbox,'@')) {
context = vmbox;
vmbox = strsep(&context,"@");
temps = input;
if ((temps = strsep(&input, "|"))) {
if (input && !ast_strlen_zero(input))
varname = input;
input = temps;
}
snprintf(vmpath,sizeof(vmpath), "%s/voicemail/%s/%s/INBOX", (char *)ast_config_AST_SPOOL_DIR, context, vmbox);
if ((temps = strsep(&input, ":"))) {
if (input && !ast_strlen_zero(input))
vmfolder = input;
input = temps;
}
if ((vmbox = strsep(&input, "@")))
if (input && !ast_strlen_zero(input))
context = input;
if (!vmbox)
vmbox = input;
vmfolder = strchr(vmbox, '/');
if (vmfolder) {
*vmfolder = '\0';
vmfolder++;
} else
vmfolder = "INBOX";
snprintf(vmpath,sizeof(vmpath), "%s/voicemail/%s/%s/%s", (char *)ast_config_AST_SPOOL_DIR, context, vmbox, vmfolder);
if (!(vmdir = opendir(vmpath))) {
ast_log(LOG_NOTICE, "Voice mailbox %s at %s does not exist\n", vmbox, vmpath);
} else {
@@ -97,13 +124,13 @@ static int hasnewvoicemail_exec(struct ast_channel *chan, void *data)
/* Set the count in the channel variable */
if (varname) {
char tmp[12];
snprintf(tmp, sizeof(tmp) - 1, "%d", vmcount);
snprintf(tmp, sizeof(tmp), "%d", vmcount);
pbx_builtin_setvar_helper(chan, varname, tmp);
}
if (vmcount > 0) {
/* Branch to the next extension */
if (ast_exists_extension(chan, chan->context, chan->exten, chan->priority + 101, chan->callerid)) {
if (ast_exists_extension(chan, chan->context, chan->exten, chan->priority + 101, chan->cid.cid_num)) {
chan->priority += 100;
} else
ast_log(LOG_WARNING, "VM box %s@%s has new voicemail, but extension %s, priority %d doesn't exist\n", vmbox, context, chan->exten, chan->priority + 101);
@@ -118,13 +145,19 @@ static int hasnewvoicemail_exec(struct ast_channel *chan, void *data)
int unload_module(void)
{
int res;
STANDARD_HANGUP_LOCALUSERS;
return ast_unregister_application(app_hasnewvoicemail);
res = ast_unregister_application(app_hasvoicemail);
res |= ast_unregister_application(app_hasnewvoicemail);
return res;
}
int load_module(void)
{
return ast_register_application(app_hasnewvoicemail, hasnewvoicemail_exec, hasnewvoicemail_synopsis, hasnewvoicemail_descrip);
int res;
res = ast_register_application(app_hasvoicemail, hasvoicemail_exec, hasvoicemail_synopsis, hasvoicemail_descrip);
res |= ast_register_application(app_hasnewvoicemail, hasvoicemail_exec, hasnewvoicemail_synopsis, hasnewvoicemail_descrip);
return res;
}
char *description(void)

200
apps/app_ices.c Normal file
View File

@@ -0,0 +1,200 @@
/*
* Asterisk -- A telephony toolkit for Linux.
*
* Stream to an icecast server via ICES (see contrib/asterisk-ices.xml)
*
* Copyright (C) 1999, Mark Spencer
*
* Mark Spencer <markster@linux-support.net>
*
* This program is free software, distributed under the terms of
* the GNU General Public License
*/
#include <string.h>
#include <stdio.h>
#include <signal.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/time.h>
#include <errno.h>
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/lock.h"
#include "asterisk/file.h"
#include "asterisk/logger.h"
#include "asterisk/channel.h"
#include "asterisk/frame.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
#include "asterisk/translate.h"
#define ICES "/usr/bin/ices"
#define LOCAL_ICES "/usr/local/bin/ices"
static char *tdesc = "Encode and Stream via icecast and ices";
static char *app = "ICES";
static char *synopsis = "Encode and stream using 'ices'";
static char *descrip =
" ICES(config.xml) Streams to an icecast server using ices\n"
"(available separately). A configuration file must be supplied\n"
"for ices (see examples/asterisk-ices.conf). Returns -1 on\n"
"hangup or 0 otherwise.\n";
STANDARD_LOCAL_USER;
LOCAL_USER_DECL;
static int icesencode(char *filename, int fd)
{
int res;
int x;
res = fork();
if (res < 0)
ast_log(LOG_WARNING, "Fork failed\n");
if (res)
return res;
dup2(fd, STDIN_FILENO);
for (x=STDERR_FILENO + 1;x<256;x++) {
if ((x != STDIN_FILENO) && (x != STDOUT_FILENO))
close(x);
}
/* Most commonly installed in /usr/local/bin */
execl(ICES, "ices", filename, (char *)NULL);
/* But many places has it in /usr/bin */
execl(LOCAL_ICES, "ices", filename, (char *)NULL);
/* As a last-ditch effort, try to use PATH */
execlp("ices", "ices", filename, (char *)NULL);
ast_log(LOG_WARNING, "Execute of ices failed\n");
return -1;
}
static int ices_exec(struct ast_channel *chan, void *data)
{
int res=0;
struct localuser *u;
int fds[2];
int ms = -1;
int pid = -1;
int flags;
int oreadformat;
struct timeval last;
struct ast_frame *f;
char filename[256]="";
char *c;
last.tv_usec = 0;
last.tv_sec = 0;
if (!data || !strlen(data)) {
ast_log(LOG_WARNING, "ICES requires an argument (configfile.xml)\n");
return -1;
}
if (pipe(fds)) {
ast_log(LOG_WARNING, "Unable to create pipe\n");
return -1;
}
flags = fcntl(fds[1], F_GETFL);
fcntl(fds[1], F_SETFL, flags | O_NONBLOCK);
LOCAL_USER_ADD(u);
ast_stopstream(chan);
if (chan->_state != AST_STATE_UP)
res = ast_answer(chan);
if (res) {
close(fds[0]);
close(fds[1]);
ast_log(LOG_WARNING, "Answer failed!\n");
return -1;
}
oreadformat = chan->readformat;
res = ast_set_read_format(chan, AST_FORMAT_SLINEAR);
if (res < 0) {
close(fds[0]);
close(fds[1]);
ast_log(LOG_WARNING, "Unable to set write format to signed linear\n");
return -1;
}
if (((char *)data)[0] == '/')
strncpy(filename, (char *)data, sizeof(filename) - 1);
else
snprintf(filename, sizeof(filename), "%s/%s", (char *)ast_config_AST_CONFIG_DIR, (char *)data);
/* Placeholder for options */
c = strchr(filename, '|');
if (c)
*c = '\0';
res = icesencode(filename, fds[0]);
close(fds[0]);
if (res >= 0) {
pid = res;
for (;;) {
/* Wait for audio, and stream */
ms = ast_waitfor(chan, -1);
if (ms < 0) {
ast_log(LOG_DEBUG, "Hangup detected\n");
res = -1;
break;
}
f = ast_read(chan);
if (!f) {
ast_log(LOG_DEBUG, "Null frame == hangup() detected\n");
res = -1;
break;
}
if (f->frametype == AST_FRAME_VOICE) {
res = write(fds[1], f->data, f->datalen);
if (res < 0) {
if (errno != EAGAIN) {
ast_log(LOG_WARNING, "Write failed to pipe: %s\n", strerror(errno));
res = -1;
break;
}
}
}
ast_frfree(f);
}
}
close(fds[1]);
LOCAL_USER_REMOVE(u);
if (pid > -1)
kill(pid, SIGKILL);
if (!res && oreadformat)
ast_set_read_format(chan, oreadformat);
return res;
}
int unload_module(void)
{
STANDARD_HANGUP_LOCALUSERS;
return ast_unregister_application(app);
}
int load_module(void)
{
return ast_register_application(app, ices_exec, synopsis, descrip);
}
char *description(void)
{
return tdesc;
}
int usecount(void)
{
int res;
STANDARD_USECOUNT(res);
return res;
}
char *key()
{
return ASTERISK_GPL_KEY;
}

28
apps/app_image.c Executable file → Normal file
View File

@@ -3,25 +3,29 @@
*
* App to transmit an image
*
* Copyright (C) 1999, Mark Spencer
* Copyright (C) 1999 - 2005, Digium, Inc.
*
* Mark Spencer <markster@linux-support.net>
* Mark Spencer <markster@digium.com>
*
* This program is free software, distributed under the terms of
* the GNU General Public License
*/
#include <asterisk/lock.h>
#include <asterisk/file.h>
#include <asterisk/logger.h>
#include <asterisk/channel.h>
#include <asterisk/pbx.h>
#include <asterisk/module.h>
#include <asterisk/translate.h>
#include <asterisk/image.h>
#include <string.h>
#include <stdlib.h>
#include <pthread.h>
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/lock.h"
#include "asterisk/file.h"
#include "asterisk/logger.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
#include "asterisk/translate.h"
#include "asterisk/image.h"
static char *tdesc = "Image Transmission Application";
@@ -52,7 +56,7 @@ static int sendimage_exec(struct ast_channel *chan, void *data)
LOCAL_USER_ADD(u);
if (!ast_supports_images(chan)) {
/* Does not support transport */
if (ast_exists_extension(chan, chan->context, chan->exten, chan->priority + 101, chan->callerid))
if (ast_exists_extension(chan, chan->context, chan->exten, chan->priority + 101, chan->cid.cid_num))
chan->priority += 100;
return 0;
}

31
apps/app_intercom.c Executable file → Normal file
View File

@@ -11,29 +11,34 @@
* the GNU General Public License
*/
#include <asterisk/lock.h>
#include <asterisk/file.h>
#include <asterisk/frame.h>
#include <asterisk/logger.h>
#include <asterisk/channel.h>
#include <asterisk/pbx.h>
#include <asterisk/module.h>
#include <asterisk/translate.h>
#include <unistd.h>
#include <errno.h>
#include <sys/ioctl.h>
#include <string.h>
#include <stdlib.h>
#include <pthread.h>
#include <sys/time.h>
#ifdef __linux__
#include <netinet/in.h>
#if defined(__linux__)
#include <linux/soundcard.h>
#elif defined(__FreeBSD__)
#include <machine/soundcard.h>
#include <sys/soundcard.h>
#else
#include <soundcard.h>
#endif
#include <netinet/in.h>
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/lock.h"
#include "asterisk/file.h"
#include "asterisk/frame.h"
#include "asterisk/logger.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
#include "asterisk/translate.h"
#ifdef __OpenBSD__
#define DEV_DSP "/dev/audio"
@@ -58,7 +63,7 @@ STANDARD_LOCAL_USER;
LOCAL_USER_DECL;
static ast_mutex_t sound_lock = AST_MUTEX_INITIALIZER;
AST_MUTEX_DEFINE_STATIC(sound_lock);
static int sound = -1;
static int write_audio(short *data, int len)

120
apps/app_ivrdemo.c Normal file
View File

@@ -0,0 +1,120 @@
/*
* Asterisk -- A telephony toolkit for Linux.
*
* IVR Demo application
*
* Copyright (C) 2005, Mark Spencer
*
* Mark Spencer <markster@digium.com>
*
* This program is free software, distributed under the terms of
* the GNU General Public License
*/
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/file.h"
#include "asterisk/logger.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
#include "asterisk/lock.h"
#include "asterisk/app.h"
static char *tdesc = "IVR Demo Application";
static char *app = "IVRDemo";
static char *synopsis =
" This is a skeleton application that shows you the basic structure to create your\n"
"own asterisk applications and demonstrates the IVR demo.\n";
static int ivr_demo_func(struct ast_channel *chan, void *data)
{
ast_verbose("IVR Demo, data is %s!\n", (char *)data);
return 0;
}
AST_IVR_DECLARE_MENU(ivr_submenu, "IVR Demo Sub Menu", 0,
{
{ "s", AST_ACTION_BACKGROUND, "demo-abouttotry" },
{ "s", AST_ACTION_WAITOPTION },
{ "1", AST_ACTION_PLAYBACK, "digits/1" },
{ "1", AST_ACTION_PLAYBACK, "digits/1" },
{ "1", AST_ACTION_RESTART },
{ "2", AST_ACTION_PLAYLIST, "digits/2;digits/3" },
{ "3", AST_ACTION_CALLBACK, ivr_demo_func },
{ "4", AST_ACTION_TRANSFER, "demo|s|1" },
{ "*", AST_ACTION_REPEAT },
{ "#", AST_ACTION_UPONE },
{ NULL }
});
AST_IVR_DECLARE_MENU(ivr_demo, "IVR Demo Main Menu", 0,
{
{ "s", AST_ACTION_BACKGROUND, "demo-congrats" },
{ "g", AST_ACTION_BACKGROUND, "demo-instruct" },
{ "g", AST_ACTION_WAITOPTION },
{ "1", AST_ACTION_PLAYBACK, "digits/1" },
{ "1", AST_ACTION_RESTART },
{ "2", AST_ACTION_MENU, &ivr_submenu },
{ "2", AST_ACTION_RESTART },
{ "i", AST_ACTION_PLAYBACK, "invalid" },
{ "i", AST_ACTION_REPEAT, (void *)(unsigned long)2 },
{ "#", AST_ACTION_EXIT },
{ NULL },
});
STANDARD_LOCAL_USER;
LOCAL_USER_DECL;
static int skel_exec(struct ast_channel *chan, void *data)
{
int res=0;
struct localuser *u;
if (!data) {
ast_log(LOG_WARNING, "skel requires an argument (filename)\n");
return -1;
}
LOCAL_USER_ADD(u);
/* Do our thing here */
if (chan->_state != AST_STATE_UP)
res = ast_answer(chan);
if (!res)
res = ast_ivr_menu_run(chan, &ivr_demo, data);
LOCAL_USER_REMOVE(u);
return res;
}
int unload_module(void)
{
STANDARD_HANGUP_LOCALUSERS;
return ast_unregister_application(app);
}
int load_module(void)
{
return ast_register_application(app, skel_exec, tdesc, synopsis);
}
char *description(void)
{
return tdesc;
}
int usecount(void)
{
int res;
STANDARD_USECOUNT(res);
return res;
}
char *key()
{
return ASTERISK_GPL_KEY;
}

56
apps/app_lookupblacklist.c Executable file → Normal file
View File

@@ -3,28 +3,32 @@
*
* App to lookup the callerid number, and see if it is blacklisted
*
* Copyright (C) 1999, Mark Spencer
* Copyright (C) 1999 - 2005, Digium, Inc.
*
* Mark Spencer <markster@linux-support.net>
* Mark Spencer <markster@digium.com>
*
* This program is free software, distributed under the terms of
* the GNU General Public License
*/
#include <asterisk/lock.h>
#include <asterisk/file.h>
#include <asterisk/logger.h>
#include <asterisk/options.h>
#include <asterisk/channel.h>
#include <asterisk/pbx.h>
#include <asterisk/module.h>
#include <asterisk/translate.h>
#include <asterisk/image.h>
#include <asterisk/callerid.h>
#include <asterisk/astdb.h>
#include <string.h>
#include <stdlib.h>
#include <pthread.h>
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/lock.h"
#include "asterisk/file.h"
#include "asterisk/logger.h"
#include "asterisk/options.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
#include "asterisk/translate.h"
#include "asterisk/image.h"
#include "asterisk/callerid.h"
#include "asterisk/astdb.h"
static char *tdesc = "Look up Caller*ID name/number from blacklist database";
@@ -49,38 +53,30 @@ LOCAL_USER_DECL;
static int
lookupblacklist_exec (struct ast_channel *chan, void *data)
{
char old_cid[144] = "", *num, *name;
char blacklist[1];
char shrunknum[64] = "";
struct localuser *u;
int bl = 0;
LOCAL_USER_ADD (u);
if (chan->callerid)
if (chan->cid.cid_num)
{
strncpy (old_cid, chan->callerid, sizeof (old_cid) - 1);
ast_callerid_parse (old_cid, &name, &num);
if (num)
strncpy (shrunknum, num, sizeof (shrunknum) - 1);
else
num = shrunknum;
ast_shrink_phone_number (shrunknum);
if (!ast_db_get ("blacklist", shrunknum, blacklist, sizeof (blacklist)))
if (!ast_db_get ("blacklist", chan->cid.cid_num, blacklist, sizeof (blacklist)))
{
if (option_verbose > 2)
ast_log(LOG_NOTICE, "Blacklisted number %s found\n",shrunknum);
ast_log(LOG_NOTICE, "Blacklisted number %s found\n",chan->cid.cid_num);
bl = 1;
}
else if (!ast_db_get ("blacklist", name, blacklist, sizeof (blacklist)))
}
if (chan->cid.cid_name) {
if (!ast_db_get ("blacklist", chan->cid.cid_name, blacklist, sizeof (blacklist)))
{
if (option_verbose > 2)
ast_log (LOG_NOTICE,"Blacklisted name \"%s\" found\n",name);
ast_log (LOG_NOTICE,"Blacklisted name \"%s\" found\n",chan->cid.cid_name);
bl = 1;
}
}
if (bl && ast_exists_extension(chan, chan->context, chan->exten, chan->priority + 101, chan->callerid))
if (bl && ast_exists_extension(chan, chan->context, chan->exten, chan->priority + 101, chan->cid.cid_num))
chan->priority+=100;
LOCAL_USER_REMOVE (u);
return 0;

60
apps/app_lookupcidname.c Executable file → Normal file
View File

@@ -3,28 +3,32 @@
*
* App to set callerid name from database, based on directory number
*
* Copyright (C) 1999, Mark Spencer
* Copyright (C) 1999 - 2005, Digium, Inc.
*
* Mark Spencer <markster@linux-support.net>
* Mark Spencer <markster@digium.com>
*
* This program is free software, distributed under the terms of
* the GNU General Public License
*/
#include <asterisk/lock.h>
#include <asterisk/file.h>
#include <asterisk/logger.h>
#include <asterisk/options.h>
#include <asterisk/channel.h>
#include <asterisk/pbx.h>
#include <asterisk/module.h>
#include <asterisk/translate.h>
#include <asterisk/image.h>
#include <asterisk/callerid.h>
#include <asterisk/astdb.h>
#include <string.h>
#include <stdlib.h>
#include <pthread.h>
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/lock.h"
#include "asterisk/file.h"
#include "asterisk/logger.h"
#include "asterisk/options.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
#include "asterisk/translate.h"
#include "asterisk/image.h"
#include "asterisk/callerid.h"
#include "asterisk/astdb.h"
static char *tdesc = "Look up CallerID Name from local database";
@@ -47,32 +51,18 @@ LOCAL_USER_DECL;
static int
lookupcidname_exec (struct ast_channel *chan, void *data)
{
char old_cid[144] = "", *num, *name;
char new_cid[144];
char dbname[64];
char shrunknum[64] = "";
struct localuser *u;
LOCAL_USER_ADD (u);
if (chan->callerid)
{
strncpy (old_cid, chan->callerid, sizeof (old_cid) - 1);
ast_callerid_parse (old_cid, &name, &num); /* this destroys the original string */
if (num) /* It's possible to get an empty number */
strncpy (shrunknum, num, sizeof (shrunknum) - 1);
else
num = shrunknum;
ast_shrink_phone_number (shrunknum);
if (!ast_db_get ("cidname", shrunknum, dbname, sizeof (dbname)))
{
snprintf (new_cid, sizeof (new_cid), "\"%s\" <%s>", dbname, num);
ast_set_callerid (chan, new_cid, 0);
if (option_verbose > 2)
ast_verbose (VERBOSE_PREFIX_3 "Changed Caller*ID to %s\n",
new_cid);
if (chan->cid.cid_num) {
if (!ast_db_get ("cidname", chan->cid.cid_num, dbname, sizeof (dbname))) {
ast_set_callerid (chan, NULL, dbname, NULL);
if (option_verbose > 2)
ast_verbose (VERBOSE_PREFIX_3 "Changed Caller*ID name to %s\n",
dbname);
}
}
}
LOCAL_USER_REMOVE (u);
return 0;
}

415
apps/app_macro.c Executable file → Normal file
View File

@@ -3,7 +3,7 @@
*
* Macro Implementation
*
* Copyright (C) 2003, Digium
* Copyright (C) 2003 - 2005, Digium, Inc.
*
* Mark Spencer <markster@digium.com>
*
@@ -12,39 +12,64 @@
*/
#include <sys/types.h>
#include <asterisk/file.h>
#include <asterisk/logger.h>
#include <asterisk/channel.h>
#include <asterisk/pbx.h>
#include <asterisk/module.h>
#include <asterisk/options.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <pthread.h>
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/file.h"
#include "asterisk/logger.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
#include "asterisk/options.h"
#include "asterisk/config.h"
#include "asterisk/utils.h"
#include "asterisk/lock.h"
#define MAX_ARGS 80
/* special result value used to force macro exit */
#define MACRO_EXIT_RESULT 1024
static char *tdesc = "Extension Macros";
static char *descrip =
" Macro(macroname|arg1|arg2...): Executes a macro using the context\n"
"'macro-<macroname>', jumping to the 's' extension of that context and\n"
"executing each step, then returning when the steps end. The calling\n"
"extension, context, and priority are stored in ${MACRO_EXTEN}, \n"
"executing each step, then returning when the steps end. \n"
"The calling extension, context, and priority are stored in ${MACRO_EXTEN}, \n"
"${MACRO_CONTEXT} and ${MACRO_PRIORITY} respectively. Arguments become\n"
"${ARG1}, ${ARG2}, etc in the macro context. Macro returns -1 if\n"
"any step in the macro returns -1, and 0 otherwise. If you Goto out\n"
"of the Macro context, the Macro will terminate and control will be return\n"
"at the location of the Goto. Otherwise if ${MACRO_OFFSET} is set at\n"
"termination, Macro will attempt to continue at priority\n"
"MACRO_OFFSET + N + 1 if such a step exists, and N + 1 otherwise.\n";
"${ARG1}, ${ARG2}, etc in the macro context.\n"
"If you Goto out of the Macro context, the Macro will terminate and control\n"
"will be returned at the location of the Goto.\n"
"Macro returns -1 if any step in the macro returns -1, and 0 otherwise.\n"
"If ${MACRO_OFFSET} is set at termination, Macro will attempt to continue\n"
"at priority MACRO_OFFSET + N + 1 if such a step exists, and N + 1 otherwise.\n";
static char *if_descrip =
" MacroIf(<expr>?macroname_a[|arg1][:macroname_b[|arg1]])\n"
"Executes macro defined in <macroname_a> if <expr> is true\n"
"(otherwise <macroname_b> if provided)\n"
"Arguments and return values as in application macro()\n";
static char *exit_descrip =
" MacroExit():\n"
"Causes the currently running macro to exit as if it had\n"
"ended normally by running out of priorities to execute.\n"
"If used outside a macro, will likely cause unexpected\n"
"behavior.\n";
static char *app = "Macro";
static char *if_app = "MacroIf";
static char *exit_app = "MacroExit";
static char *synopsis = "Macro Implementation";
static char *if_synopsis = "Conditional Macro Implementation";
static char *exit_synopsis = "Exit From Macro";
STANDARD_LOCAL_USER;
@@ -52,184 +77,240 @@ LOCAL_USER_DECL;
static int macro_exec(struct ast_channel *chan, void *data)
{
char tmp[256] = "";
char *cur, *rest;
char *macro;
char fullmacro[80];
char varname[80];
char *oldargs[MAX_ARGS + 1] = { NULL, };
int argc, x;
int res=0;
char oldexten[256]="";
int oldpriority;
char pc[80];
char oldcontext[256] = "";
char *offsets;
int offset;
int setmacrocontext=0;
char *tmp;
char *cur, *rest;
char *macro;
char fullmacro[80];
char varname[80];
char *oldargs[MAX_ARGS + 1] = { NULL, };
int argc, x;
int res=0;
char oldexten[256]="";
int oldpriority;
char pc[80];
char oldcontext[AST_MAX_CONTEXT] = "";
char *offsets;
int offset;
int setmacrocontext=0;
int autoloopflag;
char *save_macro_exten;
char *save_macro_context;
char *save_macro_priority;
char *save_macro_offset;
char *save_macro_exten;
char *save_macro_context;
char *save_macro_priority;
char *save_macro_offset;
struct localuser *u;
if (!data || !strlen(data)) {
ast_log(LOG_WARNING, "Invalid Macro incantation\n");
return 0;
}
strncpy(tmp, data, sizeof(tmp) - 1);
rest = tmp;
macro = strsep(&rest, "|");
if (!macro || !strlen(macro)) {
ast_log(LOG_WARNING, "Invalid macro name specified\n");
return 0;
}
snprintf(fullmacro, sizeof(fullmacro), "macro-%s", macro);
if (!ast_exists_extension(chan, fullmacro, "s", 1, chan->callerid)) {
if (!ast_context_find(fullmacro))
ast_log(LOG_WARNING, "No such context '%s' for macro '%s'\n", fullmacro, macro);
else
ast_log(LOG_WARNING, "Context '%s' for macro '%s' lacks 's' extension, priority 1\n", fullmacro, macro);
return 0;
}
/* Save old info */
oldpriority = chan->priority;
strncpy(oldexten, chan->exten, sizeof(oldexten) - 1);
strncpy(oldcontext, chan->context, sizeof(oldcontext) - 1);
if (!strlen(chan->macrocontext)) {
strncpy(chan->macrocontext, chan->context, sizeof(chan->macrocontext) - 1);
strncpy(chan->macroexten, chan->exten, sizeof(chan->macroexten) - 1);
chan->macropriority = chan->priority;
setmacrocontext=1;
}
argc = 1;
/* Save old macro variables */
save_macro_exten = pbx_builtin_getvar_helper(chan, "MACRO_EXTEN");
if (save_macro_exten) save_macro_exten = strdup(save_macro_exten);
pbx_builtin_setvar_helper(chan, "MACRO_EXTEN", oldexten);
if (!data || ast_strlen_zero(data)) {
ast_log(LOG_WARNING, "Macro() requires arguments. See \"show application macro\" for help.\n");
return 0;
}
save_macro_context = pbx_builtin_getvar_helper(chan, "MACRO_CONTEXT");
if (save_macro_context) save_macro_context = strdup(save_macro_context);
pbx_builtin_setvar_helper(chan, "MACRO_CONTEXT", oldcontext);
tmp = ast_strdupa((char *) data);
rest = tmp;
macro = strsep(&rest, "|");
if (!macro || ast_strlen_zero(macro)) {
ast_log(LOG_WARNING, "Invalid macro name specified\n");
return 0;
}
snprintf(fullmacro, sizeof(fullmacro), "macro-%s", macro);
if (!ast_exists_extension(chan, fullmacro, "s", 1, chan->cid.cid_num)) {
if (!ast_context_find(fullmacro))
ast_log(LOG_WARNING, "No such context '%s' for macro '%s'\n", fullmacro, macro);
else
ast_log(LOG_WARNING, "Context '%s' for macro '%s' lacks 's' extension, priority 1\n", fullmacro, macro);
return 0;
}
save_macro_priority = pbx_builtin_getvar_helper(chan, "MACRO_PRIORITY");
if (save_macro_priority) save_macro_priority = strdup(save_macro_priority);
snprintf(pc, sizeof(pc), "%d", oldpriority);
pbx_builtin_setvar_helper(chan, "MACRO_PRIORITY", pc);
LOCAL_USER_ADD(u);
/* Save old info */
oldpriority = chan->priority;
ast_copy_string(oldexten, chan->exten, sizeof(oldexten));
ast_copy_string(oldcontext, chan->context, sizeof(oldcontext));
if (ast_strlen_zero(chan->macrocontext)) {
ast_copy_string(chan->macrocontext, chan->context, sizeof(chan->macrocontext));
ast_copy_string(chan->macroexten, chan->exten, sizeof(chan->macroexten));
chan->macropriority = chan->priority;
setmacrocontext=1;
}
argc = 1;
/* Save old macro variables */
save_macro_exten = pbx_builtin_getvar_helper(chan, "MACRO_EXTEN");
if (save_macro_exten)
save_macro_exten = strdup(save_macro_exten);
pbx_builtin_setvar_helper(chan, "MACRO_EXTEN", oldexten);
save_macro_context = pbx_builtin_getvar_helper(chan, "MACRO_CONTEXT");
if (save_macro_context)
save_macro_context = strdup(save_macro_context);
pbx_builtin_setvar_helper(chan, "MACRO_CONTEXT", oldcontext);
save_macro_priority = pbx_builtin_getvar_helper(chan, "MACRO_PRIORITY");
if (save_macro_priority)
save_macro_priority = strdup(save_macro_priority);
snprintf(pc, sizeof(pc), "%d", oldpriority);
pbx_builtin_setvar_helper(chan, "MACRO_PRIORITY", pc);
save_macro_offset = pbx_builtin_getvar_helper(chan, "MACRO_OFFSET");
if (save_macro_offset) save_macro_offset = strdup(save_macro_offset);
pbx_builtin_setvar_helper(chan, "MACRO_OFFSET", NULL);
save_macro_offset = pbx_builtin_getvar_helper(chan, "MACRO_OFFSET");
if (save_macro_offset)
save_macro_offset = strdup(save_macro_offset);
pbx_builtin_setvar_helper(chan, "MACRO_OFFSET", NULL);
/* Setup environment for new run */
strcpy(chan->exten, "s");
strncpy(chan->context, fullmacro, sizeof(chan->context));
chan->priority = 1;
/* Setup environment for new run */
chan->exten[0] = 's';
chan->exten[1] = '\0';
ast_copy_string(chan->context, fullmacro, sizeof(chan->context));
chan->priority = 1;
while((cur = strsep(&rest, "|")) && (argc < MAX_ARGS)) {
/* Save copy of old arguments if we're overwriting some, otherwise
let them pass through to the other macro */
snprintf(varname, sizeof(varname), "ARG%d", argc);
oldargs[argc] = pbx_builtin_getvar_helper(chan, varname);
if (oldargs[argc])
oldargs[argc] = strdup(oldargs[argc]);
pbx_builtin_setvar_helper(chan, varname, cur);
argc++;
}
while(ast_exists_extension(chan, chan->context, chan->exten, chan->priority, chan->callerid)) {
if ((res = ast_spawn_extension(chan, chan->context, chan->exten, chan->priority, chan->callerid))) {
/* Something bad happened, or a hangup has been requested. */
if (((res >= '0') && (res <= '9')) || ((res >= 'A') && (res <= 'F'))) {
/* Just return result as to the previous application as if it had been dialed */
ast_log(LOG_DEBUG, "Oooh, got something to jump out with ('%c')!\n", res);
while((cur = strsep(&rest, "|")) && (argc < MAX_ARGS)) {
/* Save copy of old arguments if we're overwriting some, otherwise
let them pass through to the other macro */
snprintf(varname, sizeof(varname), "ARG%d", argc);
oldargs[argc] = pbx_builtin_getvar_helper(chan, varname);
if (oldargs[argc])
oldargs[argc] = strdup(oldargs[argc]);
pbx_builtin_setvar_helper(chan, varname, cur);
argc++;
}
autoloopflag = ast_test_flag(chan, AST_FLAG_IN_AUTOLOOP);
ast_set_flag(chan, AST_FLAG_IN_AUTOLOOP);
while(ast_exists_extension(chan, chan->context, chan->exten, chan->priority, chan->cid.cid_num)) {
if ((res = ast_spawn_extension(chan, chan->context, chan->exten, chan->priority, chan->cid.cid_num))) {
/* Something bad happened, or a hangup has been requested. */
if (((res >= '0') && (res <= '9')) || ((res >= 'A') && (res <= 'F')) ||
(res == '*') || (res == '#')) {
/* Just return result as to the previous application as if it had been dialed */
ast_log(LOG_DEBUG, "Oooh, got something to jump out with ('%c')!\n", res);
break;
}
switch(res) {
case MACRO_EXIT_RESULT:
res = 0;
goto out;
case AST_PBX_KEEPALIVE:
if (option_debug)
ast_log(LOG_DEBUG, "Spawn extension (%s,%s,%d) exited KEEPALIVE in macro %s on '%s'\n", chan->context, chan->exten, chan->priority, macro, chan->name);
else if (option_verbose > 1)
ast_verbose( VERBOSE_PREFIX_2 "Spawn extension (%s, %s, %d) exited KEEPALIVE in macro '%s' on '%s'\n", chan->context, chan->exten, chan->priority, macro, chan->name);
goto out;
break;
default:
if (option_debug)
ast_log(LOG_DEBUG, "Spawn extension (%s,%s,%d) exited non-zero on '%s' in macro '%s'\n", chan->context, chan->exten, chan->priority, chan->name, macro);
else if (option_verbose > 1)
ast_verbose( VERBOSE_PREFIX_2 "Spawn extension (%s, %s, %d) exited non-zero on '%s' in macro '%s'\n", chan->context, chan->exten, chan->priority, chan->name, macro);
goto out;
}
}
if (strcasecmp(chan->context, fullmacro)) {
if (option_verbose > 1)
ast_verbose(VERBOSE_PREFIX_2 "Channel '%s' jumping out of macro '%s'\n", chan->name, macro);
break;
}
switch(res) {
case AST_PBX_KEEPALIVE:
if (option_debug)
ast_log(LOG_DEBUG, "Spawn extension (%s,%s,%d) exited KEEPALIVE in macro %s on '%s'\n", chan->context, chan->exten, chan->priority, macro, chan->name);
else if (option_verbose > 1)
ast_verbose( VERBOSE_PREFIX_2 "Spawn extension (%s, %s, %d) exited KEEPALIVE in macro '%s' on '%s'\n", chan->context, chan->exten, chan->priority, macro, chan->name);
goto out;
break;
default:
if (option_debug)
ast_log(LOG_DEBUG, "Spawn extension (%s,%s,%d) exited non-zero on '%s' in macro '%s'\n", chan->context, chan->exten, chan->priority, chan->name, macro);
else if (option_verbose > 1)
ast_verbose( VERBOSE_PREFIX_2 "Spawn extension (%s, %s, %d) exited non-zero on '%s' in macro '%s'\n", chan->context, chan->exten, chan->priority, chan->name, macro);
/* don't stop executing extensions when we're in "h" */
if (chan->_softhangup && strcasecmp(oldexten,"h")) {
ast_log(LOG_DEBUG, "Extension %s, priority %d returned normally even though call was hung up\n",
chan->exten, chan->priority);
goto out;
}
}
if (strcasecmp(chan->context, fullmacro)) {
if (option_verbose > 1)
ast_verbose(VERBOSE_PREFIX_2 "Channel '%s' jumping out of macro '%s'\n", chan->name, macro);
break;
}
/* don't stop executing extensions when we're in "h" */
if (chan->_softhangup && strcasecmp(oldexten,"h")) {
ast_log(LOG_DEBUG, "Extension %s, priority %d returned normally even though call was hung up\n",
chan->exten, chan->priority);
goto out;
}
chan->priority++;
}
out:
for (x=1;x<argc;x++) {
/* Restore old arguments and delete ours */
snprintf(varname, sizeof(varname), "ARG%d", x);
if (oldargs[x]) {
pbx_builtin_setvar_helper(chan, varname, oldargs[x]);
free(oldargs[x]);
} else {
pbx_builtin_setvar_helper(chan, varname, NULL);
}
}
chan->priority++;
}
out:
ast_set2_flag(chan, autoloopflag, AST_FLAG_IN_AUTOLOOP);
for (x=1; x<argc; x++) {
/* Restore old arguments and delete ours */
snprintf(varname, sizeof(varname), "ARG%d", x);
if (oldargs[x]) {
pbx_builtin_setvar_helper(chan, varname, oldargs[x]);
free(oldargs[x]);
} else {
pbx_builtin_setvar_helper(chan, varname, NULL);
}
}
/* Restore macro variables */
pbx_builtin_setvar_helper(chan, "MACRO_EXTEN", save_macro_exten);
if (save_macro_exten) free(save_macro_exten);
pbx_builtin_setvar_helper(chan, "MACRO_CONTEXT", save_macro_context);
if (save_macro_context) free(save_macro_context);
pbx_builtin_setvar_helper(chan, "MACRO_PRIORITY", save_macro_priority);
if (save_macro_priority) free(save_macro_priority);
if (setmacrocontext) {
strcpy(chan->macrocontext, "");
strcpy(chan->macroexten, "");
chan->macropriority = 0;
}
/* Restore macro variables */
pbx_builtin_setvar_helper(chan, "MACRO_EXTEN", save_macro_exten);
if (save_macro_exten)
free(save_macro_exten);
pbx_builtin_setvar_helper(chan, "MACRO_CONTEXT", save_macro_context);
if (save_macro_context)
free(save_macro_context);
pbx_builtin_setvar_helper(chan, "MACRO_PRIORITY", save_macro_priority);
if (save_macro_priority)
free(save_macro_priority);
if (setmacrocontext) {
chan->macrocontext[0] = '\0';
chan->macroexten[0] = '\0';
chan->macropriority = 0;
}
if (!strcasecmp(chan->context, fullmacro)) {
/* If we're leaving the macro normally, restore original information */
chan->priority = oldpriority;
strncpy(chan->context, oldcontext, sizeof(chan->context) - 1);
if (!chan->_softhangup) {
/* Copy the extension, so long as we're not in softhangup, where we could be given an asyncgoto */
strncpy(chan->exten, oldexten, sizeof(chan->exten) - 1);
if ((offsets = pbx_builtin_getvar_helper(chan, "MACRO_OFFSET"))) {
/* Handle macro offset if it's set by checking the availability of step n + offset + 1, otherwise continue
normally if there is any problem */
if (sscanf(offsets, "%d", &offset) == 1) {
if (ast_exists_extension(chan, chan->context, chan->exten, chan->priority + offset + 1, chan->callerid)) {
chan->priority += offset;
if (!strcasecmp(chan->context, fullmacro)) {
/* If we're leaving the macro normally, restore original information */
chan->priority = oldpriority;
ast_copy_string(chan->context, oldcontext, sizeof(chan->context));
if (!(chan->_softhangup & AST_SOFTHANGUP_ASYNCGOTO)) {
/* Copy the extension, so long as we're not in softhangup, where we could be given an asyncgoto */
ast_copy_string(chan->exten, oldexten, sizeof(chan->exten));
if ((offsets = pbx_builtin_getvar_helper(chan, "MACRO_OFFSET"))) {
/* Handle macro offset if it's set by checking the availability of step n + offset + 1, otherwise continue
normally if there is any problem */
if (sscanf(offsets, "%d", &offset) == 1) {
if (ast_exists_extension(chan, chan->context, chan->exten, chan->priority + offset + 1, chan->cid.cid_num)) {
chan->priority += offset;
}
}
}
}
}
}
pbx_builtin_setvar_helper(chan, "MACRO_OFFSET", save_macro_offset);
if (save_macro_offset) free(save_macro_offset);
return res;
pbx_builtin_setvar_helper(chan, "MACRO_OFFSET", save_macro_offset);
if (save_macro_offset)
free(save_macro_offset);
LOCAL_USER_REMOVE(u);
return res;
}
static int macroif_exec(struct ast_channel *chan, void *data)
{
char *expr = NULL, *label_a = NULL, *label_b = NULL;
int res = 0;
if((expr = ast_strdupa((char *) data))) {
if ((label_a = strchr(expr, '?'))) {
*label_a = '\0';
label_a++;
if ((label_b = strchr(label_a, ':'))) {
*label_b = '\0';
label_b++;
}
if (ast_true(expr))
macro_exec(chan, label_a);
else if (label_b)
macro_exec(chan, label_b);
} else
ast_log(LOG_WARNING, "Invalid Syntax.\n");
} else
ast_log(LOG_ERROR, "Out of Memory!\n");
return res;
}
static int macro_exit_exec(struct ast_channel *chan, void *data)
{
return MACRO_EXIT_RESULT;
}
int unload_module(void)
{
STANDARD_HANGUP_LOCALUSERS;
ast_unregister_application(if_app);
ast_unregister_application(exit_app);
return ast_unregister_application(app);
}
int load_module(void)
{
ast_register_application(exit_app, macro_exit_exec, exit_synopsis, exit_descrip);
ast_register_application(if_app, macroif_exec, if_synopsis, if_descrip);
return ast_register_application(app, macro_exec, synopsis, descrip);
}

278
apps/app_math.c Normal file
View File

@@ -0,0 +1,278 @@
/*
* Asterisk -- A telephony toolkit for Linux.
*
* simple math application
*
* Copyright (C) 2004 - 2005, Andy Powell
*
* Updated by Mark Spencer <markster@digium.com>
*
*/
#include <stdlib.h>
#include <errno.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <sys/time.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <time.h>
#include <dirent.h>
#include <ctype.h>
#include <sys/file.h>
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/lock.h"
#include "asterisk/file.h"
#include "asterisk/logger.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/options.h"
#include "asterisk/config.h"
#include "asterisk/say.h"
#include "asterisk/module.h"
#include "asterisk/app.h"
#include "asterisk/manager.h"
#include "asterisk/localtime.h"
#include "asterisk/cli.h"
#include "asterisk/utils.h"
#include "asterisk/module.h"
#include "asterisk/translate.h"
static char *tdesc = "Basic Math Functions";
static char *app_math = "Math";
static char *math_synopsis = "Performs Mathematical Functions";
static char *math_descrip =
"Math(returnvar,<number1><op><number 2>\n\n"
"Perform floating point calculation on number 1 to number 2 and \n"
"store the result in returnvar. Valid ops are: \n"
" +,-,/,*,%,<,>,>=,<=,==\n"
"and behave as their C equivalents. Always returns 0.\n";
#define ADDFUNCTION 0
#define DIVIDEFUNCTION 1
#define MULTIPLYFUNCTION 2
#define SUBTRACTFUNCTION 3
#define MODULUSFUNCTION 4
#define GTFUNCTION 5
#define LTFUNCTION 6
#define GTEFUNCTION 7
#define LTEFUNCTION 8
#define EQFUNCTION 9
STANDARD_LOCAL_USER;
LOCAL_USER_DECL;
static int math_exec(struct ast_channel *chan, void *data)
{
float fnum1;
float fnum2;
float ftmp = 0;
char *op;
int iaction=-1;
static int deprecation_warning = 0;
/* dunno, big calulations :D */
char user_result[30];
char *s;
char *mvar, *mvalue1, *mvalue2=NULL;
struct localuser *u;
if (!deprecation_warning) {
ast_log(LOG_WARNING, "Math() is deprecated, please use Set(var=${MATH(...)} instead.\n");
deprecation_warning = 1;
}
if (!data) {
ast_log(LOG_WARNING, "No parameters passed. !\n");
return -1;
}
LOCAL_USER_ADD(u);
s = ast_strdupa((void *) data);
mvar = strsep(&s, "|");
mvalue1 = strsep(&s, "|");
if ((op = strchr(mvalue1, '+'))) {
iaction = ADDFUNCTION;
*op = '\0';
} else if ((op = strchr(mvalue1, '-'))) {
iaction = SUBTRACTFUNCTION;
*op = '\0';
} else if ((op = strchr(mvalue1, '*'))) {
iaction = MULTIPLYFUNCTION;
*op = '\0';
} else if ((op = strchr(mvalue1, '/'))) {
iaction = DIVIDEFUNCTION;
*op = '\0';
} else if ((op = strchr(mvalue1, '>'))) {
iaction = GTFUNCTION;
*op = '\0';
if (*(op+1) == '=') {
op++;
*op = '\0';
iaction = GTEFUNCTION;
}
} else if ((op = strchr(mvalue1, '<'))) {
iaction = LTFUNCTION;
*op = '\0';
if (*(op+1) == '=') {
op++;
*op = '\0';
iaction = LTEFUNCTION;
}
} else if ((op = strchr(mvalue1, '='))) {
iaction = GTFUNCTION;
*op = '\0';
if (*(op+1) == '=') {
op++;
*op = '\0';
iaction = EQFUNCTION;
} else
op = NULL;
}
if (op)
mvalue2 = op + 1;
if (!mvar || !mvalue1 || !mvalue2) {
ast_log(LOG_WARNING, "Supply all the parameters - just this once, please\n");
LOCAL_USER_REMOVE(u);
return -1;
}
if (!strcmp(mvar,"")) {
ast_log(LOG_WARNING, "No return variable set.\n");
LOCAL_USER_REMOVE(u);
return -1;
}
if (sscanf(mvalue1, "%f", &fnum1) != 1) {
ast_log(LOG_WARNING, "'%s' is not a valid number\n", mvalue1);
LOCAL_USER_REMOVE(u);
return -1;
}
if (sscanf(mvalue2, "%f", &fnum2) != 1) {
ast_log(LOG_WARNING, "'%s' is not a valid number\n", mvalue2);
LOCAL_USER_REMOVE(u);
return -1;
}
switch (iaction) {
case ADDFUNCTION :
ftmp = fnum1 + fnum2;
break;
case DIVIDEFUNCTION :
if (fnum2 <=0)
ftmp = 0; /* can't do a divide by 0 */
else
ftmp = (fnum1 / fnum2);
break;
case MULTIPLYFUNCTION :
ftmp = (fnum1 * fnum2);
break;
case SUBTRACTFUNCTION :
ftmp = (fnum1 - fnum2);
break;
case MODULUSFUNCTION : {
int inum1 = fnum1;
int inum2 = fnum2;
ftmp = (inum1 % inum2);
break;
}
case GTFUNCTION :
if (fnum1 > fnum2)
strcpy(user_result, "TRUE");
else
strcpy(user_result, "FALSE");
break;
case LTFUNCTION :
if (fnum1 < fnum2)
strcpy(user_result, "TRUE");
else
strcpy(user_result, "FALSE");
break;
case GTEFUNCTION :
if (fnum1 >= fnum2)
strcpy(user_result, "TRUE");
else
strcpy(user_result, "FALSE");
break;
case LTEFUNCTION :
if (fnum1 <= fnum2)
strcpy(user_result, "TRUE");
else
strcpy(user_result, "FALSE");
break;
case EQFUNCTION :
if (fnum1 == fnum2)
strcpy(user_result, "TRUE");
else
strcpy(user_result, "FALSE");
break;
default :
ast_log(LOG_WARNING, "Something happened that neither of us should be proud of %d\n", iaction);
LOCAL_USER_REMOVE(u);
return -1;
}
if (iaction < GTFUNCTION || iaction > EQFUNCTION)
snprintf(user_result,sizeof(user_result),"%f",ftmp);
pbx_builtin_setvar_helper(chan, mvar, user_result);
LOCAL_USER_REMOVE(u);
return 0;
}
int unload_module(void)
{
int res;
STANDARD_HANGUP_LOCALUSERS;
res = ast_unregister_application(app_math);
return res;
}
int load_module(void)
{
int res;
res = ast_register_application(app_math, math_exec, math_synopsis, math_descrip);
return res;
}
char *description(void)
{
return tdesc;
}
int usecount(void)
{
int res;
STANDARD_USECOUNT(res);
return res;
}
char *key()
{
return ASTERISK_GPL_KEY;
}
/* Fading everything to black and blue... */

163
apps/app_md5.c Normal file
View File

@@ -0,0 +1,163 @@
/*
* Asterisk -- A telephony toolkit for Linux.
*
* MD5 checksum application
*
* Copyright (C) 2005, Olle E. Johansson, Edvina.net
*
* This program is free software, distributed under the terms of
* the GNU General Public License
*/
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/file.h"
#include "asterisk/logger.h"
#include "asterisk/utils.h"
#include "asterisk/options.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
#include "asterisk/lock.h"
static char *tdesc_md5 = "MD5 checksum applications";
static char *app_md5 = "MD5";
static char *desc_md5 = "Calculate MD5 checksum";
static char *synopsis_md5 =
" MD5(<var>=<string>): Calculates a MD5 checksum on <string>.\n"
"Returns hash value in a channel variable. Always return 0\n";
static char *app_md5check = "MD5Check";
static char *desc_md5check = "Check MD5 checksum";
static char *synopsis_md5check =
" MD5Check(<md5hash>,<string>): Calculates a MD5 checksum on <string>\n"
"and compares it with the hash. Returns 0 if <md5hash> is correct for <string>.\n"
"Jumps to priority+101 if incorrect.\n";
STANDARD_LOCAL_USER;
LOCAL_USER_DECL;
/*--- md5_exec: Calculate MD5 checksum (hash) on given string and
return it in channel variable ---*/
static int md5_exec(struct ast_channel *chan, void *data)
{
int res=0;
struct localuser *u;
char *varname= NULL; /* Variable to set */
char *string = NULL; /* String to calculate on */
char retvar[50]; /* Return value */
static int dep_warning = 0;
if (!dep_warning) {
ast_log(LOG_WARNING, "This application has been deprecated, please use the MD5 function instead.\n");
dep_warning = 1;
}
if (!data) {
ast_log(LOG_WARNING, "Syntax: md5(<varname>=<string>) - missing argument!\n");
return -1;
}
LOCAL_USER_ADD(u);
memset(retvar,0, sizeof(retvar));
string = ast_strdupa(data);
varname = strsep(&string,"=");
if (ast_strlen_zero(varname)) {
ast_log(LOG_WARNING, "Syntax: md5(<varname>=<string>) - missing argument!\n");
LOCAL_USER_REMOVE(u);
return -1;
}
ast_md5_hash(retvar, string);
pbx_builtin_setvar_helper(chan, varname, retvar);
LOCAL_USER_REMOVE(u);
return res;
}
/*--- md5check_exec: Calculate MD5 checksum and compare it with
existing checksum. ---*/
static int md5check_exec(struct ast_channel *chan, void *data)
{
int res=0;
struct localuser *u;
char *hash= NULL; /* Hash to compare with */
char *string = NULL; /* String to calculate on */
char newhash[50]; /* Return value */
static int dep_warning = 0;
if (!dep_warning) {
ast_log(LOG_WARNING, "This application has been deprecated, please use the CHECK_MD5 function instead.\n");
dep_warning = 1;
}
if (!data) {
ast_log(LOG_WARNING, "Syntax: MD5Check(<md5hash>,<string>) - missing argument!\n");
return -1;
}
LOCAL_USER_ADD(u);
memset(newhash,0, sizeof(newhash));
string = ast_strdupa(data);
hash = strsep(&string,"|");
if (ast_strlen_zero(hash)) {
ast_log(LOG_WARNING, "Syntax: MD5Check(<md5hash>,<string>) - missing argument!\n");
LOCAL_USER_REMOVE(u);
return -1;
}
ast_md5_hash(newhash, string);
if (!strcmp(newhash, hash)) { /* Verification ok */
if (option_debug > 2)
ast_log(LOG_DEBUG, "MD5 verified ok: %s -- %s\n", hash, string);
LOCAL_USER_REMOVE(u);
return 0;
}
if (option_debug > 2)
ast_log(LOG_DEBUG, "ERROR: MD5 not verified: %s -- %s\n", hash, string);
if (ast_exists_extension(chan, chan->context, chan->exten, chan->priority + 101, chan->cid.cid_num))
chan->priority += 100;
else if (option_debug > 2)
ast_log(LOG_DEBUG, "ERROR: Can't jump to exten+101 (e%s,p%d), sorry\n", chan->exten,chan->priority+101);
LOCAL_USER_REMOVE(u);
return res;
}
int unload_module(void)
{
int res;
STANDARD_HANGUP_LOCALUSERS;
res =ast_unregister_application(app_md5);
res |= ast_unregister_application(app_md5check);
return res;
}
int load_module(void)
{
int res;
res = ast_register_application(app_md5check, md5check_exec, desc_md5check, synopsis_md5check);
res |= ast_register_application(app_md5, md5_exec, desc_md5, synopsis_md5);
return res;
}
char *description(void)
{
return tdesc_md5;
}
int usecount(void)
{
int res;
STANDARD_USECOUNT(res);
return res;
}
char *key()
{
return ASTERISK_GPL_KEY;
}

1689
apps/app_meetme.c Executable file → Normal file

File diff suppressed because it is too large Load Diff

21
apps/app_milliwatt.c Executable file → Normal file
View File

@@ -11,19 +11,22 @@
* the GNU General Public License
*/
#include <asterisk/lock.h>
#include <asterisk/file.h>
#include <asterisk/logger.h>
#include <asterisk/channel.h>
#include <asterisk/pbx.h>
#include <asterisk/module.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <errno.h>
#include <pthread.h>
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/lock.h"
#include "asterisk/file.h"
#include "asterisk/logger.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
static char *tdesc = "Digital Milliwatt (mu-law) Test Application";
@@ -64,7 +67,7 @@ static int milliwatt_generate(struct ast_channel *chan, void *data, int len, int
if (len > sizeof(buf))
{
ast_log(LOG_WARNING,"Only doing %d bytes (%d bytes requested)\n",sizeof(buf),len);
ast_log(LOG_WARNING,"Only doing %d bytes (%d bytes requested)\n",(int)sizeof(buf),len);
len = sizeof(buf);
}
waste[0] = 0; /* make compiler happy */
@@ -76,6 +79,8 @@ static int milliwatt_generate(struct ast_channel *chan, void *data, int len, int
wf.datalen = len;
wf.samples = wf.datalen;
wf.src = "app_milliwatt";
wf.delivery.tv_sec = 0;
wf.delivery.tv_usec = 0;
/* create a buffer containing the digital milliwatt pattern */
for(i = 0; i < len; i++)
{

119
apps/app_mp3.c Executable file → Normal file
View File

@@ -3,31 +3,35 @@
*
* Silly application to play an MP3 file -- uses mpg123
*
* Copyright (C) 1999, Mark Spencer
* Copyright (C) 1999 - 2005, Digium, Inc.
*
* Mark Spencer <markster@linux-support.net>
* Mark Spencer <markster@digium.com>
*
* This program is free software, distributed under the terms of
* the GNU General Public License
*/
#include <asterisk/lock.h>
#include <asterisk/file.h>
#include <asterisk/logger.h>
#include <asterisk/channel.h>
#include <asterisk/frame.h>
#include <asterisk/pbx.h>
#include <asterisk/module.h>
#include <asterisk/translate.h>
#include <string.h>
#include <stdio.h>
#include <signal.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <pthread.h>
#include <sys/time.h>
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/lock.h"
#include "asterisk/file.h"
#include "asterisk/logger.h"
#include "asterisk/channel.h"
#include "asterisk/frame.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
#include "asterisk/translate.h"
#define LOCAL_MPG_123 "/usr/local/bin/mpg123"
#define MPG_123 "/usr/bin/mpg123"
@@ -39,8 +43,8 @@ static char *synopsis = "Play an MP3 file or stream";
static char *descrip =
" MP3Player(location) Executes mpg123 to play the given location\n"
"which typically would be a filename or a URL. Returns -1 on\n"
"hangup or 0 otherwise. User can exit by pressing any key\n.";
"which typically would be a filename o a URL. User can exit by pressing any key\n."
"Returns -1 on hangup or 0 otherwise.";
STANDARD_LOCAL_USER;
@@ -61,36 +65,35 @@ static int mp3play(char *filename, int fd)
close(x);
}
/* Execute mpg123, but buffer if it's a net connection */
if (strncmp(filename, "http://", 7)) {
if (!strncasecmp(filename, "http://", 7)) {
/* Most commonly installed in /usr/local/bin */
execl(LOCAL_MPG_123, "mpg123", "-q", "-s", "-b", "1024", "--mono", "-r", "8000", filename, (char *)NULL);
execl(LOCAL_MPG_123, "mpg123", "-q", "-s", "-b", "1024", "-f", "8192", "--mono", "-r", "8000", filename, (char *)NULL);
/* But many places has it in /usr/bin */
execl(MPG_123, "mpg123", "-q", "-s", "-b", "1024", "--mono", "-r", "8000", filename, (char *)NULL);
execl(MPG_123, "mpg123", "-q", "-s", "-b", "1024","-f", "8192", "--mono", "-r", "8000", filename, (char *)NULL);
/* As a last-ditch effort, try to use PATH */
execlp("mpg123", "mpg123", "-q", "-s", "-b", "1024", "--mono", "-r", "8000", filename, (char *)NULL);
execlp("mpg123", "mpg123", "-q", "-s", "-b", "1024", "-f", "8192", "--mono", "-r", "8000", filename, (char *)NULL);
}
else {
/* Most commonly installed in /usr/local/bin */
execl(MPG_123, "mpg123", "-q", "-s", "--mono", "-r", "8000", filename, (char *)NULL);
execl(MPG_123, "mpg123", "-q", "-s", "-f", "8192", "--mono", "-r", "8000", filename, (char *)NULL);
/* But many places has it in /usr/bin */
execl(LOCAL_MPG_123, "mpg123", "-q", "-s", "--mono", "-r", "8000", filename, (char *)NULL);
execl(LOCAL_MPG_123, "mpg123", "-q", "-s", "-f", "8192", "--mono", "-r", "8000", filename, (char *)NULL);
/* As a last-ditch effort, try to use PATH */
execlp("mpg123", "mpg123", "-q", "-s", "--mono", "-r", "8000", filename, (char *)NULL);
execlp("mpg123", "mpg123", "-q", "-s", "-f", "8192", "--mono", "-r", "8000", filename, (char *)NULL);
}
ast_log(LOG_WARNING, "Execute of mpg123 failed\n");
return -1;
}
static int timed_read(int fd, void *data, int datalen)
static int timed_read(int fd, void *data, int datalen, int timeout)
{
int res;
fd_set fds;
struct timeval tv = { 2, 0 }; /* Wait no more than 2 seconds */
FD_ZERO(&fds);
FD_SET(fd, &fds);
res = ast_select(fd + 1, &fds, NULL, NULL, &tv);
struct pollfd fds[1];
fds[0].fd = fd;
fds[0].events = POLLIN;
res = poll(fds, 1, timeout);
if (res < 1) {
ast_log(LOG_NOTICE, "Selected timed out/errored out with %d\n", res);
ast_log(LOG_NOTICE, "Poll timed out/errored out with %d\n", res);
return -1;
}
return read(fd, data, datalen);
@@ -105,15 +108,14 @@ static int mp3_exec(struct ast_channel *chan, void *data)
int ms = -1;
int pid = -1;
int owriteformat;
struct timeval last;
int timeout = 2000;
struct timeval next;
struct ast_frame *f;
struct myframe {
struct ast_frame f;
char offset[AST_FRIENDLY_OFFSET];
short frdata[160];
} myf;
last.tv_usec = 0;
last.tv_sec = 0;
if (!data) {
ast_log(LOG_WARNING, "MP3 Playback requires an argument (filename)\n");
return -1;
@@ -133,35 +135,20 @@ static int mp3_exec(struct ast_channel *chan, void *data)
}
res = mp3play((char *)data, fds[1]);
if (!strncasecmp((char *)data, "http://", 7)) {
timeout = 10000;
}
/* Wait 1000 ms first */
ms = 1000;
next = ast_tvnow();
next.tv_sec += 1;
if (res >= 0) {
pid = res;
/* Order is important -- there's almost always going to be mp3... we want to prioritize the
user */
for (;;) {
ms = ast_waitfor(chan, ms);
if (ms < 0) {
ast_log(LOG_DEBUG, "Hangup detected\n");
res = -1;
break;
}
if (ms) {
f = ast_read(chan);
if (!f) {
ast_log(LOG_DEBUG, "Null frame == hangup() detected\n");
res = -1;
break;
}
if (f->frametype == AST_FRAME_DTMF) {
ast_log(LOG_DEBUG, "User pressed a key\n");
ast_frfree(f);
res = 0;
break;
}
ast_frfree(f);
} else {
res = timed_read(fds[0], myf.frdata, sizeof(myf.frdata));
ms = ast_tvdiff_ms(next, ast_tvnow());
if (ms <= 0) {
res = timed_read(fds[0], myf.frdata, sizeof(myf.frdata), timeout);
if (res > 0) {
myf.f.frametype = AST_FRAME_VOICE;
myf.f.subclass = AST_FORMAT_SLINEAR;
@@ -170,6 +157,8 @@ static int mp3_exec(struct ast_channel *chan, void *data)
myf.f.mallocd = 0;
myf.f.offset = AST_FRIENDLY_OFFSET;
myf.f.src = __PRETTY_FUNCTION__;
myf.f.delivery.tv_sec = 0;
myf.f.delivery.tv_usec = 0;
myf.f.data = myf.frdata;
if (ast_write(chan, &myf.f) < 0) {
res = -1;
@@ -180,7 +169,29 @@ static int mp3_exec(struct ast_channel *chan, void *data)
res = 0;
break;
}
ms = res / 16;
next = ast_tvadd(next, ast_samp2tv(myf.f.samples, 8000));
} else {
ms = ast_waitfor(chan, ms);
if (ms < 0) {
ast_log(LOG_DEBUG, "Hangup detected\n");
res = -1;
break;
}
if (ms) {
f = ast_read(chan);
if (!f) {
ast_log(LOG_DEBUG, "Null frame == hangup() detected\n");
res = -1;
break;
}
if (f->frametype == AST_FRAME_DTMF) {
ast_log(LOG_DEBUG, "User pressed a key\n");
ast_frfree(f);
res = 0;
break;
}
ast_frfree(f);
}
}
}
}

217
apps/app_nbscat.c Normal file
View File

@@ -0,0 +1,217 @@
/*
* Asterisk -- A telephony toolkit for Linux.
*
* Silly application to play an NBScat file -- uses nbscat8k
*
* Copyright (C) 1999, Mark Spencer
*
* Mark Spencer <markster@linux-support.net>
*
* This program is free software, distributed under the terms of
* the GNU General Public License
*/
#include <string.h>
#include <stdio.h>
#include <signal.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/time.h>
#include <sys/socket.h>
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/lock.h"
#include "asterisk/file.h"
#include "asterisk/logger.h"
#include "asterisk/channel.h"
#include "asterisk/frame.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
#include "asterisk/translate.h"
#define LOCAL_NBSCAT "/usr/local/bin/nbscat8k"
#define NBSCAT "/usr/bin/nbscat8k"
#ifndef AF_LOCAL
#define AF_LOCAL AF_UNIX
#endif
static char *tdesc = "Silly NBS Stream Application";
static char *app = "NBScat";
static char *synopsis = "Play an NBS local stream";
static char *descrip =
" NBScat: Executes nbscat to listen to the local NBS stream.\n"
"Returns -1 on\n hangup or 0 otherwise. User can exit by \n"
"pressing any key\n.";
STANDARD_LOCAL_USER;
LOCAL_USER_DECL;
static int NBScatplay(int fd)
{
int res;
int x;
res = fork();
if (res < 0)
ast_log(LOG_WARNING, "Fork failed\n");
if (res)
return res;
dup2(fd, STDOUT_FILENO);
for (x=0;x<256;x++) {
if (x != STDOUT_FILENO)
close(x);
}
/* Most commonly installed in /usr/local/bin */
execl(NBSCAT, "nbscat8k", "-d", (char *)NULL);
execl(LOCAL_NBSCAT, "nbscat8k", "-d", (char *)NULL);
ast_log(LOG_WARNING, "Execute of nbscat8k failed\n");
return -1;
}
static int timed_read(int fd, void *data, int datalen)
{
int res;
struct pollfd fds[1];
fds[0].fd = fd;
fds[0].events = POLLIN;
res = poll(fds, 1, 2000);
if (res < 1) {
ast_log(LOG_NOTICE, "Selected timed out/errored out with %d\n", res);
return -1;
}
return read(fd, data, datalen);
}
static int NBScat_exec(struct ast_channel *chan, void *data)
{
int res=0;
struct localuser *u;
int fds[2];
int ms = -1;
int pid = -1;
int owriteformat;
struct timeval next;
struct ast_frame *f;
struct myframe {
struct ast_frame f;
char offset[AST_FRIENDLY_OFFSET];
short frdata[160];
} myf;
if (socketpair(AF_LOCAL, SOCK_STREAM, 0, fds)) {
ast_log(LOG_WARNING, "Unable to create socketpair\n");
return -1;
}
LOCAL_USER_ADD(u);
ast_stopstream(chan);
owriteformat = chan->writeformat;
res = ast_set_write_format(chan, AST_FORMAT_SLINEAR);
if (res < 0) {
ast_log(LOG_WARNING, "Unable to set write format to signed linear\n");
return -1;
}
res = NBScatplay(fds[1]);
/* Wait 1000 ms first */
next = ast_tvnow();
next.tv_sec += 1;
if (res >= 0) {
pid = res;
/* Order is important -- there's almost always going to be mp3... we want to prioritize the
user */
for (;;) {
ms = ast_tvdiff_ms(next, ast_tvnow());
if (ms <= 0) {
res = timed_read(fds[0], myf.frdata, sizeof(myf.frdata));
if (res > 0) {
myf.f.frametype = AST_FRAME_VOICE;
myf.f.subclass = AST_FORMAT_SLINEAR;
myf.f.datalen = res;
myf.f.samples = res / 2;
myf.f.mallocd = 0;
myf.f.offset = AST_FRIENDLY_OFFSET;
myf.f.src = __PRETTY_FUNCTION__;
myf.f.delivery.tv_sec = 0;
myf.f.delivery.tv_usec = 0;
myf.f.data = myf.frdata;
if (ast_write(chan, &myf.f) < 0) {
res = -1;
break;
}
} else {
ast_log(LOG_DEBUG, "No more mp3\n");
res = 0;
break;
}
next = ast_tvadd(next, ast_samp2tv(myf.f.samples, 8000));
} else {
ms = ast_waitfor(chan, ms);
if (ms < 0) {
ast_log(LOG_DEBUG, "Hangup detected\n");
res = -1;
break;
}
if (ms) {
f = ast_read(chan);
if (!f) {
ast_log(LOG_DEBUG, "Null frame == hangup() detected\n");
res = -1;
break;
}
if (f->frametype == AST_FRAME_DTMF) {
ast_log(LOG_DEBUG, "User pressed a key\n");
ast_frfree(f);
res = 0;
break;
}
ast_frfree(f);
}
}
}
}
close(fds[0]);
close(fds[1]);
LOCAL_USER_REMOVE(u);
if (pid > -1)
kill(pid, SIGKILL);
if (!res && owriteformat)
ast_set_write_format(chan, owriteformat);
return res;
}
int unload_module(void)
{
STANDARD_HANGUP_LOCALUSERS;
return ast_unregister_application(app);
}
int load_module(void)
{
return ast_register_application(app, NBScat_exec, synopsis, descrip);
}
char *description(void)
{
return tdesc;
}
int usecount(void)
{
int res;
STANDARD_USECOUNT(res);
return res;
}
char *key()
{
return ASTERISK_GPL_KEY;
}

282
apps/app_osplookup.c Normal file
View File

@@ -0,0 +1,282 @@
/*
* Asterisk -- A telephony toolkit for Linux.
*
* Open Settlement Protocol Lookup
*
* Copyright (C) 1999 - 2005, Digium, Inc.
*
* Mark Spencer <markster@digium.com>
*
* This program is free software, distributed under the terms of
* the GNU General Public License
*/
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <ctype.h>
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/lock.h"
#include "asterisk/file.h"
#include "asterisk/logger.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/options.h"
#include "asterisk/config.h"
#include "asterisk/module.h"
#include "asterisk/utils.h"
#include "asterisk/causes.h"
#include "asterisk/astosp.h"
static char *tdesc = "OSP Lookup";
static char *app = "OSPLookup";
static char *app2 = "OSPNext";
static char *app3 = "OSPFinish";
static char *synopsis = "Lookup number in OSP";
static char *synopsis2 = "Lookup next OSP entry";
static char *synopsis3 = "Record OSP entry";
static char *descrip =
" OSPLookup(exten[|provider[|options]]): Looks up an extension via OSP and sets\n"
"the variables, where 'n' is the number of the result beginning with 1:\n"
" ${OSPTECH}: The technology to use for the call\n"
" ${OSPDEST}: The destination to use for the call\n"
" ${OSPTOKEN}: The actual OSP token as a string\n"
" ${OSPHANDLE}: The OSP Handle for anything remaining\n"
" ${OSPRESULTS}: The number of OSP results total remaining\n"
"\n"
"If the lookup was *not* successful and there exists a priority n + 101,\n"
"then that priority will be taken next.\n" ;
static char *descrip2 =
" OSPNext: Looks up the next OSP Destination for ${OSPHANDLE}\n"
"See OSPLookup for more information\n"
"\n"
"If the lookup was *not* successful and there exists a priority n + 101,\n"
"then that priority will be taken next.\n" ;
static char *descrip3 =
" OSPFinish(status): Records call state for ${OSPHANDLE}, according to\n"
"status, which should be one of BUSY, CONGESTION, ANSWER, NOANSWER, or NOCHANAVAIL\n"
"or coincidentally, just what the Dial application stores in its ${DIALSTATUS}\n"
"\n"
"If the finishing was *not* successful and there exists a priority n + 101,\n"
"then that priority will be taken next.\n" ;
STANDARD_LOCAL_USER;
LOCAL_USER_DECL;
static int str2cause(char *cause)
{
if (!strcasecmp(cause, "BUSY"))
return AST_CAUSE_BUSY;
if (!strcasecmp(cause, "CONGESTION"))
return AST_CAUSE_CONGESTION;
if (!strcasecmp(cause, "ANSWER"))
return AST_CAUSE_NORMAL;
if (!strcasecmp(cause, "CANCEL"))
return AST_CAUSE_NORMAL;
if (!strcasecmp(cause, "NOANSWER"))
return AST_CAUSE_NOANSWER;
if (!strcasecmp(cause, "NOCHANAVAIL"))
return AST_CAUSE_CONGESTION;
ast_log(LOG_WARNING, "Unknown cause '%s', using NORMAL\n", cause);
return AST_CAUSE_NORMAL;
}
static int osplookup_exec(struct ast_channel *chan, void *data)
{
int res=0;
struct localuser *u;
char *temp;
char *provider, *opts=NULL;
struct ast_osp_result result;
if (!data || ast_strlen_zero(data) || !(temp = ast_strdupa(data))) {
ast_log(LOG_WARNING, "OSPLookup requires an argument (extension)\n");
return -1;
}
provider = strchr(temp, '|');
if (provider) {
*provider = '\0';
provider++;
opts = strchr(provider, '|');
if (opts) {
*opts = '\0';
opts++;
}
}
LOCAL_USER_ADD(u);
ast_log(LOG_DEBUG, "Whoo hoo, looking up OSP on '%s' via '%s'\n", temp, provider ? provider : "<default>");
if ((res = ast_osp_lookup(chan, provider, temp, chan->cid.cid_num, &result)) > 0) {
char tmp[80];
snprintf(tmp, sizeof(tmp), "%d", result.handle);
pbx_builtin_setvar_helper(chan, "_OSPHANDLE", tmp);
pbx_builtin_setvar_helper(chan, "_OSPTECH", result.tech);
pbx_builtin_setvar_helper(chan, "_OSPDEST", result.dest);
pbx_builtin_setvar_helper(chan, "_OSPTOKEN", result.token);
snprintf(tmp, sizeof(tmp), "%d", result.numresults);
pbx_builtin_setvar_helper(chan, "_OSPRESULTS", tmp);
} else {
if (!res)
ast_log(LOG_NOTICE, "OSP Lookup failed for '%s' (provider '%s')\n", temp, provider ? provider : "<default>");
else
ast_log(LOG_DEBUG, "Got hangup on '%s' while doing OSP Lookup for '%s' (provider '%s')!\n", chan->name, temp, provider ? provider : "<default>" );
}
if (!res) {
/* Look for a "busy" place */
if (ast_exists_extension(chan, chan->context, chan->exten, chan->priority + 101, chan->cid.cid_num))
chan->priority += 100;
} else if (res > 0)
res = 0;
LOCAL_USER_REMOVE(u);
return res;
}
static int ospnext_exec(struct ast_channel *chan, void *data)
{
int res=0;
struct localuser *u;
char *temp;
int cause;
struct ast_osp_result result;
if (!data || ast_strlen_zero(data)) {
ast_log(LOG_WARNING, "OSPNext should have an argument (cause)\n");
}
LOCAL_USER_ADD(u);
cause = str2cause((char *)data);
temp = pbx_builtin_getvar_helper(chan, "OSPHANDLE");
result.handle = -1;
if (temp && strlen(temp) && (sscanf(temp, "%d", &result.handle) == 1) && (result.handle > -1)) {
if ((res = ast_osp_next(&result, cause)) > 0) {
char tmp[80];
snprintf(tmp, sizeof(tmp), "%d", result.handle);
pbx_builtin_setvar_helper(chan, "_OSPHANDLE", tmp);
pbx_builtin_setvar_helper(chan, "_OSPTECH", result.tech);
pbx_builtin_setvar_helper(chan, "_OSPDEST", result.dest);
pbx_builtin_setvar_helper(chan, "_OSPTOKEN", result.token);
snprintf(tmp, sizeof(tmp), "%d", result.numresults);
pbx_builtin_setvar_helper(chan, "_OSPRESULTS", tmp);
}
} else {
if (!res) {
if (result.handle < 0)
ast_log(LOG_NOTICE, "OSP Lookup Next failed for handle '%d'\n", result.handle);
else
ast_log(LOG_DEBUG, "No OSP handle specified\n");
} else
ast_log(LOG_DEBUG, "Got hangup on '%s' while doing OSP Next!\n", chan->name);
}
if (!res) {
/* Look for a "busy" place */
if (ast_exists_extension(chan, chan->context, chan->exten, chan->priority + 101, chan->cid.cid_num))
chan->priority += 100;
} else if (res > 0)
res = 0;
LOCAL_USER_REMOVE(u);
return res;
}
static int ospfinished_exec(struct ast_channel *chan, void *data)
{
int res=0;
struct localuser *u;
char *temp;
int cause;
time_t start=0, duration=0;
struct ast_osp_result result;
if (!data || ast_strlen_zero(data)) {
ast_log(LOG_WARNING, "OSPFinish should have an argument (cause)\n");
}
if (chan->cdr) {
start = chan->cdr->answer.tv_sec;
if (start)
duration = time(NULL) - start;
else
duration = 0;
} else
ast_log(LOG_WARNING, "OSPFinish called on channel '%s' with no CDR!\n", chan->name);
LOCAL_USER_ADD(u);
cause = str2cause((char *)data);
temp = pbx_builtin_getvar_helper(chan, "OSPHANDLE");
result.handle = -1;
if (temp && strlen(temp) && (sscanf(temp, "%d", &result.handle) == 1) && (result.handle > -1)) {
if (!ast_osp_terminate(result.handle, cause, start, duration)) {
pbx_builtin_setvar_helper(chan, "_OSPHANDLE", "");
res = 1;
}
} else {
if (!res) {
if (result.handle > -1)
ast_log(LOG_NOTICE, "OSP Finish failed for handle '%d'\n", result.handle);
else
ast_log(LOG_DEBUG, "No OSP handle specified\n");
} else
ast_log(LOG_DEBUG, "Got hangup on '%s' while doing OSP Terminate!\n", chan->name);
}
if (!res) {
/* Look for a "busy" place */
if (ast_exists_extension(chan, chan->context, chan->exten, chan->priority + 101, chan->cid.cid_num))
chan->priority += 100;
} else if (res > 0)
res = 0;
LOCAL_USER_REMOVE(u);
return res;
}
int unload_module(void)
{
int res;
STANDARD_HANGUP_LOCALUSERS;
res = ast_unregister_application(app3);
res |= ast_unregister_application(app2);
res |= ast_unregister_application(app);
return res;
}
int load_module(void)
{
int res;
res = ast_register_application(app, osplookup_exec, synopsis, descrip);
if (res)
return(res);
res = ast_register_application(app2, ospnext_exec, synopsis2, descrip2);
if (res)
return(res);
res = ast_register_application(app3, ospfinished_exec, synopsis3, descrip3);
if (res)
return(res);
return(0);
}
int reload(void)
{
return 0;
}
char *description(void)
{
return tdesc;
}
int usecount(void)
{
int res;
STANDARD_USECOUNT(res);
return res;
}
char *key()
{
return ASTERISK_GPL_KEY;
}

314
apps/app_parkandannounce.c Executable file → Normal file
View File

@@ -6,32 +6,33 @@
* With TONS of help from Mark!
*
* Asterisk is Copyrighted as follows
* Copyright (C) 1999, Mark Spencer
* Copyright (C) 1999 - 2005, Digium, Inc.
*
* Mark Spencer <markster@linux-support.net>
* Mark Spencer <markster@digium.com>
*
* This program is free software, distributed under the terms of
* the GNU General Public License
*/
#include <sys/types.h>
#include <asterisk/file.h>
#include <asterisk/logger.h>
#include <asterisk/channel.h>
#include <asterisk/channel_pvt.h>
#include <asterisk/pbx.h>
#include <asterisk/module.h>
#include <asterisk/parking.h>
#include <asterisk/options.h>
#include <asterisk/logger.h>
#include <asterisk/say.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <pthread.h>
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/file.h"
#include "asterisk/logger.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
#include "asterisk/features.h"
#include "asterisk/options.h"
#include "asterisk/logger.h"
#include "asterisk/say.h"
#include "asterisk/lock.h"
static char *tdesc = "Call Parking and Announce Application";
@@ -42,7 +43,7 @@ static char *synopsis = "Park and Announce";
static char *descrip =
" ParkAndAnnounce(announce:template|timeout|dial|[return_context]):\n"
"Park a call into the parkinglot and announce the call over the console.\n"
"announce template: colon seperated list of files to announce, the word PARKED\n"
"announce template: colon separated list of files to announce, the word PARKED\n"
" will be replaced by a say_digits of the ext the call is parked in\n"
"timeout: time in seconds before the call returns into the return context.\n"
"dial: The app_dial style resource to call to make the announcement. Console/dsp calls the console.\n"
@@ -55,170 +56,171 @@ LOCAL_USER_DECL;
static int parkandannounce_exec(struct ast_channel *chan, void *data)
{
int res=0;
char *return_context;
int l, lot, timeout, dres;
char *working, *context, *exten, *priority, *dial, *dialtech, *dialstr;
char *template, *tpl_working, *tpl_current;
char *tmp[100];
int looptemp=0,i=0;
char *s,*orig_s;
int res=0;
char *return_context;
int l, lot, timeout = 0, dres;
char *working, *context, *exten, *priority, *dial, *dialtech, *dialstr;
char *template, *tpl_working, *tpl_current;
char *tmp[100];
int looptemp=0,i=0;
char *s,*orig_s;
struct ast_channel *dchan;
int outstate;
struct ast_channel *dchan;
int outstate;
struct localuser *u;
if (!data) {
ast_log(LOG_WARNING, "Park requires an argument (parkinglot)\n");
return -1;
}
struct localuser *u;
if(!data || (data && !strlen(data))) {
ast_log(LOG_WARNING, "ParkAndAnnounce requires arguments: (announce:template|timeout|dial|[return_context])\n");
return -1;
}
l=strlen(data)+2;
orig_s=malloc(l);
s=orig_s;
strncpy(s,data,l);
l=strlen(data)+2;
orig_s=malloc(l);
if(!orig_s) {
ast_log(LOG_WARNING, "Out of memory\n");
return -1;
}
s=orig_s;
strncpy(s,data,l);
template=strsep(&s,"|");
if (! template) {
ast_log(LOG_WARNING, "PARK: An announce template must be defined\n");
free(orig_s);
return -1;
}
template=strsep(&s,"|");
if(! template) {
ast_log(LOG_WARNING, "PARK: An announce template must be defined\n");
free(orig_s);
return -1;
}
timeout = atoi(strsep(&s, "|"));
timeout *= 1000;
if(s) {
timeout = atoi(strsep(&s, "|"));
timeout *= 1000;
}
dial=strsep(&s, "|");
if(!dial) {
ast_log(LOG_WARNING, "PARK: A dial resource must be specified i.e: Console/dsp or Zap/g1/5551212\n");
free(orig_s);
return -1;
} else {
dialtech=strsep(&dial, "/");
dialstr=dial;
ast_verbose( VERBOSE_PREFIX_3 "Dial Tech,String: (%s,%s)\n", dialtech,dialstr);
}
dial=strsep(&s, "|");
if (! dial) {
ast_log(LOG_WARNING, "PARK: A dial resouce must be specified i.e: Console/dsp or Zap/g1/5551212\n");
free(orig_s);
return -1;
}
else {
dialtech=strsep(&dial, "/");
dialstr=dial;
ast_verbose( VERBOSE_PREFIX_3 "Dial Tech,String: (%s,%s)\n", dialtech,dialstr);
}
return_context = s;
return_context = s;
if (return_context != NULL) {
/* set the return context. Code borrowed from the Goto builtin */
if(return_context != NULL) {
/* set the return context. Code borrowed from the Goto builtin */
working = return_context;
context = strsep(&working, "|");
exten = strsep(&working, "|");
if (!exten) {
/* Only a priority in this one */
priority = context;
exten = NULL;
context = NULL;
} else {
priority = strsep(&working, "|");
if (!priority) {
/* Only an extension and priority in this one */
priority = exten;
exten = context;
context = NULL;
}
}
if (atoi(priority) < 0) {
ast_log(LOG_WARNING, "Priority '%s' must be a number > 0\n", priority);
free(orig_s);
return -1;
}
/* At this point we have a priority and maybe an extension and a context */
chan->priority = atoi(priority);
if (exten && strcasecmp(exten, "BYEXTENSION"))
strncpy(chan->exten, exten, sizeof(chan->exten)-1);
if (context)
strncpy(chan->context, context, sizeof(chan->context)-1);
}
else { /* increment the priority by default*/
chan->priority++;
}
working = return_context;
context = strsep(&working, "|");
exten = strsep(&working, "|");
if(!exten) {
/* Only a priority in this one */
priority = context;
exten = NULL;
context = NULL;
} else {
priority = strsep(&working, "|");
if(!priority) {
/* Only an extension and priority in this one */
priority = exten;
exten = context;
context = NULL;
}
}
if(atoi(priority) < 0) {
ast_log(LOG_WARNING, "Priority '%s' must be a number > 0\n", priority);
free(orig_s);
return -1;
}
/* At this point we have a priority and maybe an extension and a context */
chan->priority = atoi(priority);
if(exten && strcasecmp(exten, "BYEXTENSION"))
strncpy(chan->exten, exten, sizeof(chan->exten)-1);
if(context)
strncpy(chan->context, context, sizeof(chan->context)-1);
} else { /* increment the priority by default*/
chan->priority++;
}
if (option_verbose > 2) {
ast_verbose( VERBOSE_PREFIX_3 "Return Context: (%s,%s,%d) ID: %s\n", chan->context,chan->exten, chan->priority, chan->callerid);
if (!ast_exists_extension(chan, chan->context, chan->exten, chan->priority, chan->callerid)) {
ast_verbose( VERBOSE_PREFIX_3 "Warning: Return Context Invalid, call will return to default|s\n");
}
}
if(option_verbose > 2) {
ast_verbose( VERBOSE_PREFIX_3 "Return Context: (%s,%s,%d) ID: %s\n", chan->context,chan->exten, chan->priority, chan->cid.cid_num);
if(!ast_exists_extension(chan, chan->context, chan->exten, chan->priority, chan->cid.cid_num)) {
ast_verbose( VERBOSE_PREFIX_3 "Warning: Return Context Invalid, call will return to default|s\n");
}
}
LOCAL_USER_ADD(u);
LOCAL_USER_ADD(u);
/* we are using masq_park here to protect * from touching the channel once we park it. If the channel comes out of timeout
before we are done announcing and the channel is messed with, Kablooeee. So we use Masq to prevent this. */
/* we are using masq_park here to protect * from touching the channel once we park it. If the channel comes out of timeout
before we are done announcing and the channel is messed with, Kablooeee. So we use Masq to prevent this. */
ast_masq_park_call(chan, NULL, timeout, &lot);
ast_masq_park_call(chan, NULL, timeout, &lot);
res=-1;
res=-1;
ast_verbose( VERBOSE_PREFIX_3 "Call Parking Called, lot: %d, timeout: %d, context: %s\n", lot, timeout, return_context);
ast_verbose( VERBOSE_PREFIX_3 "Call Parking Called, lot: %d, timeout: %d, context: %s\n", lot, timeout, return_context);
/* Now place the call to the extention */
/* Now place the call to the extention */
dchan = ast_request_and_dial(dialtech, AST_FORMAT_SLINEAR, dialstr,30000, &outstate, chan->callerid);
dchan = ast_request_and_dial(dialtech, AST_FORMAT_SLINEAR, dialstr,30000, &outstate, chan->cid.cid_num, chan->cid.cid_name);
if (dchan) {
if (dchan->_state == AST_STATE_UP) {
if (option_verbose > 3)
ast_verbose(VERBOSE_PREFIX_4 "Channel %s was answered.\n", dchan->name);
} else {
if (option_verbose > 3)
ast_verbose(VERBOSE_PREFIX_4 "Channel %s was never answered.\n", dchan->name);
ast_log(LOG_WARNING, "PARK: Channel %s was never answered for the announce.\n", dchan->name);
ast_hangup(dchan);
free(orig_s);
LOCAL_USER_REMOVE(u);
return -1;
}
}
else {
ast_log(LOG_WARNING, "PARK: Unable to allocate announce channel.\n");
free(orig_s);
LOCAL_USER_REMOVE(u);
return -1;
}
if(dchan) {
if(dchan->_state == AST_STATE_UP) {
if(option_verbose > 3)
ast_verbose(VERBOSE_PREFIX_4 "Channel %s was answered.\n", dchan->name);
} else {
if(option_verbose > 3)
ast_verbose(VERBOSE_PREFIX_4 "Channel %s was never answered.\n", dchan->name);
ast_log(LOG_WARNING, "PARK: Channel %s was never answered for the announce.\n", dchan->name);
ast_hangup(dchan);
free(orig_s);
LOCAL_USER_REMOVE(u);
return -1;
}
} else {
ast_log(LOG_WARNING, "PARK: Unable to allocate announce channel.\n");
free(orig_s);
LOCAL_USER_REMOVE(u);
return -1;
}
ast_stopstream(dchan);
ast_stopstream(dchan);
/* now we have the call placed and are ready to play stuff to it */
/* now we have the call placed and are ready to play stuff to it */
ast_verbose(VERBOSE_PREFIX_4 "Announce Template:%s\n", template);
ast_verbose(VERBOSE_PREFIX_4 "Announce Template:%s\n", template);
tpl_working = template;
tpl_current=strsep(&tpl_working, ":");
tpl_working = template;
tpl_current=strsep(&tpl_working, ":");
while ( tpl_current && looptemp < sizeof(tmp)) {
tmp[looptemp]=tpl_current;
looptemp++;
tpl_current=strsep(&tpl_working,":");
}
while(tpl_current && looptemp < sizeof(tmp)) {
tmp[looptemp]=tpl_current;
looptemp++;
tpl_current=strsep(&tpl_working,":");
}
for(i=0; i<looptemp; i++) {
ast_verbose(VERBOSE_PREFIX_4 "Announce:%s\n", tmp[i]);
if (!strcmp(tmp[i], "PARKED")) {
ast_say_digits(dchan, lot, "", dchan->language);
}
else {
dres = ast_streamfile(dchan, tmp[i], dchan->language);
if (!dres)
dres = ast_waitstream(dchan, "");
else {
ast_log(LOG_WARNING, "ast_streamfile of %s failed on %s\n", tmp[i], dchan->name);
dres = 0;
}
}
}
for(i=0; i<looptemp; i++) {
ast_verbose(VERBOSE_PREFIX_4 "Announce:%s\n", tmp[i]);
if(!strcmp(tmp[i], "PARKED")) {
ast_say_digits(dchan, lot, "", dchan->language);
} else {
dres = ast_streamfile(dchan, tmp[i], dchan->language);
if(!dres) {
dres = ast_waitstream(dchan, "");
} else {
ast_log(LOG_WARNING, "ast_streamfile of %s failed on %s\n", tmp[i], dchan->name);
dres = 0;
}
}
}
ast_stopstream(dchan);
ast_hangup(dchan);
ast_stopstream(dchan);
ast_hangup(dchan);
LOCAL_USER_REMOVE(u);
free(orig_s);
return res;
LOCAL_USER_REMOVE(u);
free(orig_s);
return res;
}
@@ -231,8 +233,8 @@ int unload_module(void)
int load_module(void)
{
/* return ast_register_application(app, park_exec); */
return ast_register_application(app, parkandannounce_exec, synopsis, descrip);
/* return ast_register_application(app, park_exec); */
return ast_register_application(app, parkandannounce_exec, synopsis, descrip);
}
char *description(void)

81
apps/app_playback.c Executable file → Normal file
View File

@@ -3,41 +3,46 @@
*
* Trivial application to playback a sound file
*
* Copyright (C) 1999, Mark Spencer
* Copyright (C) 1999-2005, Mark Spencer
*
* Mark Spencer <markster@linux-support.net>
* Mark Spencer <markster@digium.com>
*
* This program is free software, distributed under the terms of
* the GNU General Public License
*/
#include <asterisk/lock.h>
#include <asterisk/file.h>
#include <asterisk/logger.h>
#include <asterisk/channel.h>
#include <asterisk/pbx.h>
#include <asterisk/module.h>
#include <asterisk/translate.h>
#include <string.h>
#include <stdlib.h>
#include <pthread.h>
static char *tdesc = "Trivial Playback Application";
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/lock.h"
#include "asterisk/file.h"
#include "asterisk/logger.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
#include "asterisk/translate.h"
#include "asterisk/utils.h"
static char *tdesc = "Sound File Playback Application";
static char *app = "Playback";
static char *synopsis = "Play a file";
static char *descrip =
" Playback(filename[|option]): Plays back a given filename (do not put\n"
"extension). Options may also be included following a pipe symbol. The only\n"
"defined option at this time is 'skip', which causes the playback of the\n"
"message to be skipped if the channel is not in the 'up' state (i.e. it\n"
"hasn't been answered yet. If 'skip' is specified, the application will\n"
"return immediately should the channel not be off hook. Otherwise, unless\n"
"'noanswer' is specified, the channel channel will be answered before the sound\n"
"is played. Not all channels support playing messages while on hook. Returns -1\n"
"if the channel was hung up, or if the file does not exist. Returns 0 otherwise.\n";
" Playback(filename[&filename2...][|option]): Plays back given filenames (do not put\n"
"extension). Options may also be included following a pipe symbol. The 'skip'\n"
"option causes the playback of the message to be skipped if the channel\n"
"is not in the 'up' state (i.e. it hasn't been answered yet. If 'skip' is \n"
"specified, the application will return immediately should the channel not be\n"
"off hook. Otherwise, unless 'noanswer' is specified, the channel channel will\n"
"be answered before the sound is played. Not all channels support playing\n"
"messages while still hook. Returns -1 if the channel was hung up. If the\n"
"file does not exist, will jump to priority n+101 if present.\n";
STANDARD_LOCAL_USER;
@@ -47,17 +52,17 @@ static int playback_exec(struct ast_channel *chan, void *data)
{
int res = 0;
struct localuser *u;
char tmp[256];
char *options;
char *tmp = NULL;
char *options = NULL;
int option_skip=0;
int option_noanswer = 0;
char *stringp;
if (!data || !strlen((char *)data)) {
char *stringp = NULL;
char *front = NULL, *back = NULL;
if (!data || ast_strlen_zero((char *)data) || !(tmp = ast_strdupa(data))) {
ast_log(LOG_WARNING, "Playback requires an argument (filename)\n");
return -1;
}
strncpy(tmp, (char *)data, sizeof(tmp)-1);
stringp=tmp;
stringp = tmp;
strsep(&stringp, "|");
options = strsep(&stringp, "|");
if (options && !strcasecmp(options, "skip"))
@@ -76,14 +81,24 @@ static int playback_exec(struct ast_channel *chan, void *data)
}
if (!res) {
ast_stopstream(chan);
res = ast_streamfile(chan, tmp, chan->language);
if (!res)
res = ast_waitstream(chan, "");
else {
ast_log(LOG_WARNING, "ast_streamfile failed on %s for %s\n", chan->name, (char *)data);
res = 0;
front = tmp;
while (!res && front) {
if ((back = strchr(front, '&'))) {
*back = '\0';
back++;
}
res = ast_streamfile(chan, front, chan->language);
if (!res) {
res = ast_waitstream(chan, "");
ast_stopstream(chan);
} else {
ast_log(LOG_WARNING, "ast_streamfile failed on %s for %s\n", chan->name, (char *)data);
if (ast_exists_extension(chan, chan->context, chan->exten, chan->priority + 101, chan->cid.cid_num))
chan->priority+=100;
res = 0;
}
front = back;
}
ast_stopstream(chan);
}
LOCAL_USER_REMOVE(u);
return res;

90
apps/app_privacy.c Executable file → Normal file
View File

@@ -3,29 +3,34 @@
*
* Block all calls without Caller*ID, require phone # to be entered
*
* Copyright (C) 1999, Mark Spencer
* Copyright (C) 1999 - 2005, Digium, Inc.
*
* Mark Spencer <markster@linux-support.net>
* Mark Spencer <markster@digium.com>
*
* This program is free software, distributed under the terms of
* the GNU General Public License
*/
#include <asterisk/lock.h>
#include <asterisk/file.h>
#include <asterisk/logger.h>
#include <asterisk/options.h>
#include <asterisk/channel.h>
#include <asterisk/pbx.h>
#include <asterisk/module.h>
#include <asterisk/translate.h>
#include <asterisk/image.h>
#include <asterisk/callerid.h>
#include <asterisk/app.h>
#include <asterisk/config.h>
#include <string.h>
#include <stdlib.h>
#include <pthread.h>
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/lock.h"
#include "asterisk/file.h"
#include "asterisk/utils.h"
#include "asterisk/logger.h"
#include "asterisk/options.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
#include "asterisk/translate.h"
#include "asterisk/image.h"
#include "asterisk/callerid.h"
#include "asterisk/app.h"
#include "asterisk/config.h"
#define PRIV_CONFIG "privacy.conf"
@@ -37,39 +42,42 @@ static char *synopsis = "Require phone number to be entered, if no CallerID sent
static char *descrip =
" PrivacyManager: If no Caller*ID is sent, PrivacyManager answers the\n"
"channel and asks the caller to enter their 10 digit phone number.\n"
"channel and asks the caller to enter their phone number.\n"
"The caller is given 3 attempts. If after 3 attempts, they do not enter\n"
"their 10 digit phone number, and if there exists a priority n + 101,\n"
"at least a 10 digit phone number, and if there exists a priority n + 101,\n"
"where 'n' is the priority of the current instance, then the\n"
"channel will be setup to continue at that priority level.\n"
"Otherwise, it returns 0. Does nothing if Caller*ID was received on the\n"
"channel.\n";
"channel.\n"
" Configuration file privacy.conf contains two variables:\n"
" maxretries default 3 -maximum number of attempts the caller is allowed to input a callerid.\n"
" minlength default 10 -minimum allowable digits in the input callerid number.\n"
;
STANDARD_LOCAL_USER;
LOCAL_USER_DECL;
static int
privacy_exec (struct ast_channel *chan, void *data)
{
int res=0;
int retries;
int maxretries = 3;
int minlength = 10;
int x;
char *s;
char phone[10];
char new_cid[144];
char phone[30];
struct localuser *u;
struct ast_config *cfg;
LOCAL_USER_ADD (u);
if (chan->callerid)
{
if (chan->cid.cid_num && !ast_strlen_zero(chan->cid.cid_num)) {
if (option_verbose > 2)
ast_verbose (VERBOSE_PREFIX_3 "CallerID Present: Skipping\n");
}
else
{
} else {
/*Answer the channel if it is not already*/
if (chan->_state != AST_STATE_UP) {
res = ast_answer(chan);
@@ -79,7 +87,7 @@ privacy_exec (struct ast_channel *chan, void *data)
}
}
/*Read in the config file*/
cfg = ast_load(PRIV_CONFIG);
cfg = ast_config_load(PRIV_CONFIG);
/*Play unidentified call*/
@@ -96,16 +104,29 @@ privacy_exec (struct ast_channel *chan, void *data)
ast_log(LOG_WARNING, "Invalid max retries argument\n");
}
}
if (cfg && (s = ast_variable_retrieve(cfg, "general", "minlength"))) {
if (sscanf(s, "%d", &x) == 1) {
minlength = x;
} else {
ast_log(LOG_WARNING, "Invalid min length argument\n");
}
}
/*Ask for 10 digit number, give 3 attempts*/
for (retries = 0; retries < maxretries; retries++) {
if (!res)
res = ast_app_getdata(chan, "privacy-prompt", phone, sizeof(phone), 0);
res = ast_streamfile(chan, "privacy-prompt", chan->language);
if (!res)
res = ast_waitstream(chan, "");
if (!res )
res = ast_readstring(chan, phone, sizeof(phone) - 1, /* digit timeout ms */ 3200, /* first digit timeout */ 5000, "#");
if (res < 0)
break;
/*Make sure we get 10 digits*/
if (strlen(phone) == 10)
/*Make sure we get at least digits*/
if (strlen(phone) >= minlength )
break;
else {
res = ast_streamfile(chan, "privacy-incorrect", chan->language);
@@ -115,21 +136,20 @@ privacy_exec (struct ast_channel *chan, void *data)
}
/*Got a number, play sounds and send them on their way*/
if ((retries < maxretries) && !res) {
if ((retries < maxretries) && res == 1 ) {
res = ast_streamfile(chan, "privacy-thankyou", chan->language);
if (!res)
res = ast_waitstream(chan, "");
snprintf (new_cid, sizeof (new_cid), "\"%s\" <%s>", "Privacy Manager", phone);
ast_set_callerid (chan, new_cid, 0);
ast_set_callerid (chan, phone, "Privacy Manager", NULL);
if (option_verbose > 2)
ast_verbose (VERBOSE_PREFIX_3 "Changed Caller*ID to %s\n",new_cid);
ast_verbose (VERBOSE_PREFIX_3 "Changed Caller*ID to %s\n",phone);
} else {
/*Send the call to n+101 priority, where n is the current priority*/
if (ast_exists_extension(chan, chan->context, chan->exten, chan->priority + 101, chan->callerid))
if (ast_exists_extension(chan, chan->context, chan->exten, chan->priority + 101, chan->cid.cid_num))
chan->priority+=100;
}
if (cfg)
ast_destroy(cfg);
ast_config_destroy(cfg);
}
LOCAL_USER_REMOVE (u);

View File

@@ -1,386 +0,0 @@
/** @file app_qcall.c
*
* Asterisk -- A telephony toolkit for Linux.
*
* Call back a party and connect them to a running pbx thread
*
* Copyright (C) 1999, Mark Spencer
*
* Mark Spencer <markster@linux-support.net>
*
* This program is free software, distributed under the terms of
* the GNU General Public License
*
* Call a user from a file contained within a queue (/var/spool/asterisk/qcall)
*
* The queue is a directory containing files with the call request information
* as a single line of text as follows:
*
* Dialstring Caller-ID Extension Maxsecs [Identifier] [Required-response]
*
* Dialstring -- A Dial String (The number to be called) in the
* format Technology/Number, such IAX/mysys/1234 or Zap/g1/1234
*
* Caller-ID -- A Standard nomalized representation of the Caller-ID of
* the number being dialed (generally 10 digits in the US). Leave as
* "asreceived" to use the default Caller*ID
*
* Extension -- The Extension (optionally Extension@context) that the
* user should be "transferred" to after acceptance of the call.
*
* Maxsecs -- The Maximum time of the call in seconds. Specify 0 for infinite.
*
* Identifier -- The "Identifier" of the request. This is used to determine
* the names of the audio prompt files played. The first prompt, the one that
* asks for the input, is just the exact string specified as the identifier.
* The second prompt, the one that is played after the correct input is given,
* (generally a "thank you" recording), is the specified string with "-ok"
* added to the end. So, if you specify "foo" as the identifier, your first
* prompt file that will be played will be "foo" and the second one will be
* "foo-ok". If omitted no prompt is given
*
* Required-Response (Optional) -- Specify a digit string to be used as the
* acceptance "code" if you desire it to be something other then "1". This
* can be used to implement some sort of PIN or security system. It may be
* more then a single character.
*
* NOTE: It is important to remember that the process that creates these
* files needs keep and maintain a write lock (using flock with the LOCK_EX
* option) when writing these files.
*
*/
#include <asterisk/lock.h>
#include <asterisk/file.h>
#include <asterisk/logger.h>
#include <asterisk/channel.h>
#include <asterisk/pbx.h>
#include <asterisk/module.h>
#include <asterisk/translate.h>
#include <asterisk/options.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <pthread.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
#include <dirent.h>
#include <ctype.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/file.h>
#include "../astconf.h"
static char qdir[255];
static char *tdesc = "Call from Queue";
static pthread_t qcall_thread;
static int debug = 0;
STANDARD_LOCAL_USER;
LOCAL_USER_DECL;
#define OLDESTOK 14400 /* not any more then this number of secs old */
#define INITIALONE 1 /* initial wait before the first one in secs */
#define NEXTONE 600 /* wait before trying it again in secs */
#define MAXWAITFORANSWER 45000 /* max call time before answer */
/* define either one or both of these two if your application requires it */
#if 0
#define ACCTCODE "SOMETHING" /* Account code */
#define AMAFLAGS AST_CDR_BILLING /* AMA flags */
#endif
/* define this if you want to have a particular CLID display on the user's
phone when they receive the call */
#if 0
#define OURCLID "2564286275" /* The callerid to be displayed when calling */
#endif
static void *qcall_do(void *arg);
static void *qcall(void *ignore)
{
pthread_t dialer_thread;
DIR *dirp;
FILE *fp;
struct dirent *dp;
char fname[80];
struct stat mystat;
time_t t;
void *arg;
pthread_attr_t attr;
time(&t);
if (debug) printf("@@@@ qcall starting at %s",ctime(&t));
for(;;)
{
time(&t);
dirp = opendir(qdir);
if (!dirp)
{
perror("app_qcall:Cannot open queue directory");
break;
}
while((dp = readdir(dirp)) != NULL)
{
if (dp->d_name[0] == '.') continue;
sprintf(fname,"%s/%s",qdir,dp->d_name);
if (stat(fname,&mystat) == -1)
{
perror("app_qcall:stat");
fprintf(stderr,"%s\n",fname);
continue;
}
/* if not a regular file, skip it */
if ((mystat.st_mode & S_IFMT) != S_IFREG) continue;
/* if not yet .... */
if (mystat.st_atime == mystat.st_mtime)
{ /* first time */
if ((mystat.st_atime + INITIALONE) > t)
continue;
}
else
{ /* already looked at once */
if ((mystat.st_atime + NEXTONE) > t) continue;
}
/* if too old */
if (mystat.st_mtime < (t - OLDESTOK))
{
/* kill it, its too old */
unlink(fname);
continue;
}
/* "touch" file's access time */
fp = fopen(fname,"r");
if (fp) fclose(fp);
/* make a copy of the filename string, so that we
may go on and use the buffer */
arg = (void *) strdup(fname);
pthread_attr_init(&attr);
pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
if (pthread_create(&dialer_thread,&attr,qcall_do,arg) == -1)
{
perror("qcall: Cannot create thread");
continue;
}
}
closedir(dirp);
sleep(1);
}
pthread_exit(NULL);
}
/* single thread with one file (request) to dial */
static void *qcall_do(void *arg)
{
char fname[300],dialstr[300],extstr[300],ident[300],reqinp[300],buf[300];
char clid[300],*tele,*context;
FILE *fp;
int ms = MAXWAITFORANSWER,maxsecs;
struct ast_channel *channel;
time_t t;
/* get the filename from the arg */
strcpy(fname,(char *)arg);
free(arg);
time(&t);
fp = fopen(fname,"r");
if (!fp) /* if cannot open request file */
{
perror("qcall_do:fopen");
fprintf(stderr,"%s\n",fname);
unlink(fname);
pthread_exit(NULL);
}
/* lock the file */
if (flock(fileno(fp),LOCK_EX) == -1)
{
perror("qcall_do:flock");
fprintf(stderr,"%s\n",fname);
pthread_exit(NULL);
}
strcpy(reqinp,"1"); /* default required input for acknowledgement */
strcpy(ident, ""); /* default no ident */
if (fscanf(fp,"%s %s %s %d %s %s",dialstr,clid,
extstr,&maxsecs,ident,reqinp) < 4)
{
fprintf(stderr,"qcall_do:file line invalid in file %s:\n",fname);
pthread_exit(NULL);
}
flock(fileno(fp),LOCK_UN);
fclose(fp);
tele = strchr(dialstr,'/');
if (!tele)
{
fprintf(stderr,"qcall_do:Dial number must be in format tech/number\n");
unlink(fname);
pthread_exit(NULL);
}
*tele++ = 0;
channel = ast_request(dialstr,AST_FORMAT_SLINEAR,tele);
if (channel)
{
ast_set_read_format(channel,AST_FORMAT_SLINEAR);
ast_set_write_format(channel,AST_FORMAT_SLINEAR);
#ifdef OURCLID
if (channel->callerid)
free(channel->callerid);
channel->callerid = strdup(OURCLID);
if (channel->ani)
free(channel->ani);
channel->ani = strdup(OURCLID);
#endif
channel->whentohangup = 0;
channel->appl = "AppQcall";
channel->data = "(Outgoing Line)";
if (option_verbose > 2)
ast_verbose(VERBOSE_PREFIX_3 "Qcall initiating call to %s/%s on %s (%s)\n",
dialstr,tele,channel->name,fname);
ast_call(channel,tele,MAXWAITFORANSWER);
}
else
{
fprintf(stderr,"qcall_do:Sorry unable to obtain channel\n");
pthread_exit(NULL);
}
if (strcasecmp(clid, "asreceived")) {
if (channel->callerid) free(channel->callerid);
channel->callerid = NULL;
if (channel->ani) free(channel->ani);
channel->ani = NULL;
}
if (channel->_state == AST_STATE_UP)
if (debug) printf("@@@@ Autodial:Line is Up\n");
if (option_verbose > 2)
ast_verbose(VERBOSE_PREFIX_3 "Qcall waiting for answer on %s\n",
channel->name);
while(ms > 0){
struct ast_frame *f;
ms = ast_waitfor(channel,ms);
f = ast_read(channel);
if (!f)
{
if (debug) printf("@@@@ qcall_do:Hung Up\n");
unlink(fname);
break;
}
if (f->frametype == AST_FRAME_CONTROL)
{
if (f->subclass == AST_CONTROL_HANGUP)
{
if (debug) printf("@@@@ qcall_do:Hung Up\n");
unlink(fname);
ast_frfree(f);
break;
}
if (f->subclass == AST_CONTROL_ANSWER)
{
if (debug) printf("@@@@ qcall_do:Phone Answered\n");
if (channel->_state == AST_STATE_UP)
{
unlink(fname);
if (option_verbose > 2)
ast_verbose(VERBOSE_PREFIX_3 "Qcall got answer on %s\n",
channel->name);
usleep(1500000);
if (strlen(ident)) {
ast_streamfile(channel,ident,0);
if (ast_readstring(channel,buf,strlen(reqinp),10000,5000,"#"))
{
ast_stopstream(channel);
if (debug) printf("@@@@ qcall_do: timeout or hangup in dtmf read\n");
ast_frfree(f);
break;
}
ast_stopstream(channel);
if (strcmp(buf,reqinp)) /* if not match */
{
if (debug) printf("@@@@ qcall_do: response (%s) does not match required (%s)\n",buf,reqinp);
ast_frfree(f);
break;
}
ast_frfree(f);
}
/* okay, now we go for it */
context = strchr(extstr,'@');
if (!context) context = "default";
else *context++ = 0;
if (option_verbose > 2)
ast_verbose(VERBOSE_PREFIX_3 "Qcall got accept, now putting through to %s@%s on %s\n",
extstr,context,channel->name);
if (strlen(ident)) {
strcat(ident,"-ok");
/* if file existant, play it */
if (!ast_streamfile(channel,ident,0))
{
ast_waitstream(channel,"");
ast_stopstream(channel);
}
}
if (strcasecmp(clid, "asreceived")) {
channel->callerid = strdup(clid);
channel->ani = strdup(clid);
}
channel->language[0] = 0;
channel->dnid = strdup(extstr);
#ifdef AMAFLAGS
channel->amaflags = AMAFLAGS;
#endif
#ifdef ACCTCODE
strcpy(channel->accountcode,ACCTCODE);
#else
channel->accountcode[0] = 0;
#endif
if (maxsecs) /* if finite length call */
{
time(&channel->whentohangup);
channel->whentohangup += maxsecs;
}
strcpy(channel->exten,extstr);
strcpy(channel->context,context);
channel->priority = 1;
printf("Caller ID is %s\n", channel->callerid);
ast_pbx_run(channel);
pthread_exit(NULL);
}
}
else if(f->subclass==AST_CONTROL_RINGING)
if (debug) printf("@@@@ qcall_do:Phone Ringing end\n");
}
ast_frfree(f);
}
ast_hangup(channel);
if (debug) printf("@@@@ qcall_do:Hung up channel\n");
pthread_exit(NULL);
return NULL;
}
int unload_module(void)
{
STANDARD_HANGUP_LOCALUSERS;
return 0;
}
int load_module(void)
{
snprintf((char *)qdir,sizeof(qdir)-1,"%s/%s",(char *)ast_config_AST_SPOOL_DIR,"qcall");
mkdir(qdir,0760);
pthread_create(&qcall_thread,NULL,qcall,NULL);
return 0;
}
char *description(void)
{
return tdesc;
}
int usecount(void)
{
int res;
STANDARD_USECOUNT(res);
return res;
}
char *key()
{
return ASTERISK_GPL_KEY;
}

3388
apps/app_queue.c Executable file → Normal file

File diff suppressed because it is too large Load Diff

65
apps/app_random.c Executable file → Normal file
View File

@@ -3,25 +3,29 @@
*
* Random application
*
* Copyright (c) 2003-2004 Tilghman Lesher. All rights reserved.
* Copyright (c) 2003 - 2005 Tilghman Lesher. All rights reserved.
*
* Tilghman Lesher <asterisk__app_random__20040111@the-tilghman.com>
* Tilghman Lesher <asterisk__app_random__200508@the-tilghman.com>
*
* This code is released by the author with no restrictions on usage or distribution.
*
*/
#include <asterisk/file.h>
#include <asterisk/logger.h>
#include <asterisk/options.h>
#include <asterisk/channel.h>
#include <asterisk/pbx.h>
#include <asterisk/module.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/file.h"
#include "asterisk/logger.h"
#include "asterisk/options.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
static char *tdesc = "Random goto";
@@ -37,15 +41,16 @@ STANDARD_LOCAL_USER;
LOCAL_USER_DECL;
static char random_state[256];
static int random_exec(struct ast_channel *chan, void *data)
{
int res=0;
struct localuser *u;
char *s, *ts;
char *exten, *pri, *context;
char *s;
char *prob;
int probint, priorityint;
int probint;
if (!data) {
ast_log(LOG_WARNING, "Random requires an argument ([probability]:[[context|]extension|]priority)\n");
@@ -54,47 +59,17 @@ static int random_exec(struct ast_channel *chan, void *data)
LOCAL_USER_ADD(u);
s = ast_strdupa((void *) data);
prob = strsep(&ts,":");
prob = strsep(&s,":");
if ((!prob) || (sscanf(prob, "%d", &probint) != 1))
probint = 0;
if ((random() % 100) + probint > 100) {
context = strsep(&s, "|");
exten = strsep(&s, "|");
if (!exten) {
/* Only a priority */
pri = context;
exten = NULL;
context = NULL;
} else {
pri = strsep(&s, "|");
if (!pri) {
pri = exten;
exten = context;
context = NULL;
}
}
if (!pri) {
ast_log(LOG_WARNING, "No label specified\n");
LOCAL_USER_REMOVE(u);
return -1;
} else if (sscanf(pri, "%d", &priorityint) != 1) {
ast_log(LOG_WARNING, "Priority '%s' must be a number > 0\n", pri);
LOCAL_USER_REMOVE(u);
return -1;
}
/* At this point we have a priority and */
/* maybe an extension and a context */
chan->priority = priorityint - 1;
if (exten && strcasecmp(exten, "BYEXTENSION"))
strncpy(chan->exten, exten, sizeof(chan->exten)-1);
if (context)
strncpy(chan->context, context, sizeof(chan->context)-1);
res = ast_parseable_goto(chan, s);
if (option_verbose > 2)
ast_verbose( VERBOSE_PREFIX_3 "Random branches to (%s,%s,%d)\n",
chan->context,chan->exten, chan->priority+1);
LOCAL_USER_REMOVE(u);
}
LOCAL_USER_REMOVE(u);
return res;
}
@@ -106,7 +81,7 @@ int unload_module(void)
int load_module(void)
{
srandom((unsigned int)getpid() + (unsigned int)time(NULL));
initstate((getppid() * 65535 + getpid()) % RAND_MAX, random_state, 256);
return ast_register_application(app_random, random_exec, random_synopsis, random_descrip);
}

162
apps/app_read.c Executable file → Normal file
View File

@@ -11,18 +11,23 @@
* the GNU General Public License
*/
#include <asterisk/lock.h>
#include <asterisk/file.h>
#include <asterisk/logger.h>
#include <asterisk/channel.h>
#include <asterisk/pbx.h>
#include <asterisk/app.h>
#include <asterisk/module.h>
#include <asterisk/translate.h>
#include <asterisk/options.h>
#include <string.h>
#include <stdlib.h>
#include <pthread.h>
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/lock.h"
#include "asterisk/file.h"
#include "asterisk/logger.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/app.h"
#include "asterisk/module.h"
#include "asterisk/translate.h"
#include "asterisk/options.h"
#include "asterisk/utils.h"
static char *tdesc = "Read Variable Application";
@@ -31,45 +36,140 @@ static char *app = "Read";
static char *synopsis = "Read a variable";
static char *descrip =
" Read(variable[|filename]): Reads a '#' terminated string of digits from\n"
"the user, optionally playing a given filename first. Returns -1 on hangup or\n"
"error and 0 otherwise.\n";
" Read(variable[|filename][|maxdigits][|option][|attempts][|timeout])\n\n"
"Reads a #-terminated string of digits a certain number of times from the\n"
"user in to the given variable.\n"
" filename -- file to play before reading digits.\n"
" maxdigits -- maximum acceptable number of digits. Stops reading after\n"
" maxdigits have been entered (without requiring the user to\n"
" press the '#' key).\n"
" Defaults to 0 - no limit - wait for the user press the '#' key.\n"
" Any value below 0 means the same. Max accepted value is 255.\n"
" option -- may be 'skip' to return immediately if the line is not up,\n"
" or 'noanswer' to read digits even if the line is not up.\n"
" attempts -- if greater than 1, that many attempts will be made in the \n"
" event no data is entered.\n"
" timeout -- if greater than 0, that value will override the default timeout.\n\n"
"Returns -1 on hangup or error and 0 otherwise.\n";
STANDARD_LOCAL_USER;
LOCAL_USER_DECL;
#define ast_next_data(instr,ptr,delim) if((ptr=strchr(instr,delim))) { *(ptr) = '\0' ; ptr++;}
static int read_exec(struct ast_channel *chan, void *data)
{
int res = 0;
struct localuser *u;
char tmp[256];
char tmp2[128]="";
char *filename;
char *stringp;
if (!data || !strlen((char *)data)) {
ast_log(LOG_WARNING, "Read requires an argument (variable)\n");
char *timeout = NULL;
char *varname = NULL;
char *filename = NULL;
char *loops;
char *maxdigitstr=NULL;
char *options=NULL;
int option_skip = 0;
int option_noanswer = 0;
int maxdigits=255;
int tries = 1;
int to = 0;
int x = 0;
char *argcopy = NULL;
char *args[8];
if (data)
argcopy = ast_strdupa((char *)data);
if (ast_separate_app_args(argcopy, '|', args, sizeof(args) / sizeof(args[0])) < 1) {
ast_log(LOG_WARNING, "Cannot Parse Arguements.\n");
return -1;
}
strncpy(tmp, (char *)data, sizeof(tmp)-1);
stringp=tmp;
strsep(&stringp, "|");
filename = strsep(&stringp, "|");
if (!strlen(tmp)) {
ast_log(LOG_WARNING, "Read requires an variable name\n");
varname = args[x++];
filename = args[x++];
maxdigitstr = args[x++];
options = args[x++];
loops = args[x++];
timeout = args[x++];
if (options) {
if (!strcasecmp(options, "skip"))
option_skip = 1;
else if (!strcasecmp(options, "noanswer"))
option_noanswer = 1;
else {
if (strchr(options, 's'))
option_skip = 1;
if (strchr(options, 'n'))
option_noanswer = 1;
}
}
if(loops) {
tries = atoi(loops);
if(tries <= 0)
tries = 1;
}
if(timeout) {
to = atoi(timeout);
if (to <= 0)
to = 0;
else
to *= 1000;
}
if (!(filename) || ast_strlen_zero(filename))
filename = NULL;
if (maxdigitstr) {
maxdigits = atoi(maxdigitstr);
if ((maxdigits<1) || (maxdigits>255)) {
maxdigits = 255;
} else if (option_verbose > 2)
ast_verbose(VERBOSE_PREFIX_3 "Accepting a maximum of %d digits.\n", maxdigits);
}
if (!(varname) || ast_strlen_zero(varname)) {
ast_log(LOG_WARNING, "Invalid! Usage: Read(variable[|filename][|maxdigits][|option][|attempts][|timeout])\n\n");
return -1;
}
LOCAL_USER_ADD(u);
if (chan->_state != AST_STATE_UP) {
/* Answer if the line isn't up. */
res = ast_answer(chan);
if (option_skip) {
/* At the user's option, skip if the line is not up */
pbx_builtin_setvar_helper(chan, varname, "\0");
LOCAL_USER_REMOVE(u);
return 0;
} else if (!option_noanswer) {
/* Otherwise answer unless we're supposed to read while on-hook */
res = ast_answer(chan);
}
}
if (!res) {
ast_stopstream(chan);
res = ast_app_getdata(chan, filename, tmp2, sizeof(tmp2) - 1, 0);
if (!res)
pbx_builtin_setvar_helper(chan, tmp, tmp2);
ast_verbose(VERBOSE_PREFIX_3 "User entered '%s'\n", tmp2);
while(tries && !res) {
ast_stopstream(chan);
res = ast_app_getdata(chan, filename, tmp, maxdigits, to);
if (res > -1) {
pbx_builtin_setvar_helper(chan, varname, tmp);
if (!ast_strlen_zero(tmp)) {
if (option_verbose > 2)
ast_verbose(VERBOSE_PREFIX_3 "User entered '%s'\n", tmp);
tries = 0;
} else {
tries--;
if (option_verbose > 2) {
if (tries)
ast_verbose(VERBOSE_PREFIX_3 "User entered nothing, %d chance%s left\n", tries, (tries != 1) ? "s" : "");
else
ast_verbose(VERBOSE_PREFIX_3 "User entered nothing.\n");
}
}
res = 0;
} else {
if (option_verbose > 2)
ast_verbose(VERBOSE_PREFIX_3 "User disconnected\n");
}
}
}
LOCAL_USER_REMOVE(u);
return res;

121
apps/app_readfile.c Normal file
View File

@@ -0,0 +1,121 @@
/*
* Asterisk -- A telephony toolkit for Linux.
*
* ReadFile application -- Reads in a File for you.
*
* Copyright (C) 2005 Digium, Inc.
*
* Matt O'Gorman <mogorman@digium.com>
*
* This program is free software, distributed under the terms of
* the GNU General Public License
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/file.h"
#include "asterisk/logger.h"
#include "asterisk/options.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/app.h"
#include "asterisk/module.h"
static char *tdesc = "Stores output of file into a variable";
static char *app_readfile = "ReadFile";
static char *readfile_synopsis = "ReadFile(varname=file,length)";
static char *readfile_descrip =
"ReadFile(varname=file,length)\n"
" Varname - Result stored here.\n"
" File - The name of the file to read.\n"
" Length - Maximum number of characters to capture.\n";
STANDARD_LOCAL_USER;
LOCAL_USER_DECL;
static int readfile_exec(struct ast_channel *chan, void *data)
{
int res=0;
struct localuser *u;
char *s, *varname=NULL, *file=NULL, *length=NULL, *returnvar=NULL;
int len=0;
s = ast_strdupa(data);
if (!s) {
ast_log(LOG_ERROR, "Out of memory\n");
return -1;
}
varname = strsep(&s, "=");
file = strsep(&s, "|");
length = s;
if (!varname || !file) {
ast_log(LOG_ERROR, "No file or variable specified!\n");
return -1;
}
LOCAL_USER_ADD(u);
if (length) {
if ((sscanf(length, "%d", &len) != 1) || (len < 0)) {
ast_log(LOG_WARNING, "%s is not a positive number, defaulting length to max\n", length);
len = 0;
}
}
returnvar = ast_read_textfile(file);
if(len > 0){
if(len < strlen(returnvar))
returnvar[len]='\0';
else
ast_log(LOG_WARNING,"%s is longer than %d, and %d \n", file, len, (int)strlen(returnvar));
}
pbx_builtin_setvar_helper(chan, varname, returnvar);
free(returnvar);
LOCAL_USER_REMOVE(u);
return res;
}
int unload_module(void)
{
STANDARD_HANGUP_LOCALUSERS;
return ast_unregister_application(app_readfile);
}
int load_module(void)
{
return ast_register_application(app_readfile, readfile_exec, readfile_synopsis, readfile_descrip);
}
char *description(void)
{
return tdesc;
}
int usecount(void)
{
int res;
STANDARD_USECOUNT(res);
return res;
}
char *key()
{
return ASTERISK_GPL_KEY;
}

235
apps/app_realtime.c Normal file
View File

@@ -0,0 +1,235 @@
/*
* Asterisk -- A telephony toolkit for Linux.
*
* RealTime App
*
* Copyright (C) 1999 - 2005, Digium, Inc.
*
* Anthony Minessale <anthmct@yahoo.com>
* Mark Spencer <markster@digium.com>
*
* This program is free software, distributed under the terms of
* the GNU General Public License
*/
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/file.h"
#include "asterisk/logger.h"
#include "asterisk/channel.h"
#include "asterisk/options.h"
#include "asterisk/pbx.h"
#include "asterisk/config.h"
#include "asterisk/module.h"
#include "asterisk/lock.h"
#include "asterisk/cli.h"
#define next_one(var) var = var->next
#define crop_data(str) { *(str) = '\0' ; (str)++; }
static char *tdesc = "Realtime Data Lookup/Rewrite";
static char *app = "RealTime";
static char *uapp = "RealTimeUpdate";
static char *synopsis = "Realtime Data Lookup";
static char *usynopsis = "Realtime Data Rewrite";
static char *USAGE = "RealTime(<family>|<colmatch>|<value>[|<prefix>])";
static char *UUSAGE = "RealTimeUpdate(<family>|<colmatch>|<value>|<newcol>|<newval>)";
static char *desc = "Use the RealTime config handler system to read data into channel variables.\n"
"RealTime(<family>|<colmatch>|<value>[|<prefix>])\n\n"
"All unique column names will be set as channel variables with optional prefix to the name.\n"
"e.g. prefix of 'var_' would make the column 'name' become the variable ${var_name}\n\n";
static char *udesc = "Use the RealTime config handler system to update a value\n"
"RealTimeUpdate(<family>|<colmatch>|<value>|<newcol>|<newval>)\n\n"
"The column <newcol> in 'family' matching column <colmatch>=<value> will be updated to <newval>\n";
STANDARD_LOCAL_USER;
LOCAL_USER_DECL;
static int cli_load_realtime(int fd, int argc, char **argv)
{
char *header_format = "%30s %-30s\n";
struct ast_variable *var=NULL;
if(argc<5) {
ast_cli(fd, "You must supply a family name, a column to match on, and a value to match to.\n");
return RESULT_FAILURE;
}
var = ast_load_realtime(argv[2], argv[3], argv[4], NULL);
if(var) {
ast_cli(fd, header_format, "Column Name", "Column Value");
ast_cli(fd, header_format, "--------------------", "--------------------");
while(var) {
ast_cli(fd, header_format, var->name, var->value);
var = var->next;
}
} else {
ast_cli(fd, "No rows found matching search criteria.\n");
}
return RESULT_SUCCESS;
}
static int cli_update_realtime(int fd, int argc, char **argv) {
int res = 0;
if(argc<7) {
ast_cli(fd, "You must supply a family name, a column to update on, a new value, column to match, and value to to match.\n");
ast_cli(fd, "Ex: realtime update sipfriends name bobsphone port 4343\n will execute SQL as UPDATE sipfriends SET port = 4343 WHERE name = bobsphone\n");
return RESULT_FAILURE;
}
res = ast_update_realtime(argv[2], argv[3], argv[4], argv[5], argv[6], NULL);
if(res < 0) {
ast_cli(fd, "Failed to update. Check the debug log for possible SQL related entries.\n");
return RESULT_SUCCESS;
}
ast_cli(fd, "Updated %d RealTime record%s.\n", res, (res != 1) ? "s" : "");
return RESULT_SUCCESS;
}
static char cli_load_realtime_usage[] =
"Usage: realtime load <family> <colmatch> <value>\n"
" Prints out a list of variables using the RealTime driver.\n";
static struct ast_cli_entry cli_load_realtime_cmd = {
{ "realtime", "load", NULL, NULL }, cli_load_realtime,
"Used to print out RealTime variables.", cli_load_realtime_usage, NULL };
static char cli_update_realtime_usage[] =
"Usage: realtime update <family> <colmatch> <value>\n"
" Update a single variable using the RealTime driver.\n";
static struct ast_cli_entry cli_update_realtime_cmd = {
{ "realtime", "update", NULL, NULL }, cli_update_realtime,
"Used to update RealTime variables.", cli_update_realtime_usage, NULL };
static int realtime_update_exec(struct ast_channel *chan, void *data)
{
char *family=NULL, *colmatch=NULL, *value=NULL, *newcol=NULL, *newval=NULL;
struct localuser *u;
int res = 0;
if (!data) {
ast_log(LOG_ERROR,"Invalid input %s\n",UUSAGE);
return -1;
}
LOCAL_USER_ADD(u);
if ((family = ast_strdupa(data))) {
if ((colmatch = strchr(family,'|'))) {
crop_data(colmatch);
if ((value = strchr(colmatch,'|'))) {
crop_data(value);
if ((newcol = strchr(value,'|'))) {
crop_data(newcol);
if ((newval = strchr(newcol,'|')))
crop_data(newval);
}
}
}
}
if (! (family && value && colmatch && newcol && newval) ) {
ast_log(LOG_ERROR,"Invalid input: usage %s\n",UUSAGE);
res = -1;
} else {
ast_update_realtime(family,colmatch,value,newcol,newval,NULL);
}
LOCAL_USER_REMOVE(u);
return res;
}
static int realtime_exec(struct ast_channel *chan, void *data)
{
int res=0;
struct localuser *u;
struct ast_variable *var, *itt;
char *family=NULL, *colmatch=NULL, *value=NULL, *prefix=NULL, *vname=NULL;
size_t len;
if (!data) {
ast_log(LOG_ERROR,"Invalid input: usage %s\n",USAGE);
return -1;
}
LOCAL_USER_ADD(u);
if ((family = ast_strdupa(data))) {
if ((colmatch = strchr(family,'|'))) {
crop_data(colmatch);
if ((value = strchr(colmatch,'|'))) {
crop_data(value);
if ((prefix = strchr(value,'|')))
crop_data(prefix);
}
}
}
if (! (family && value && colmatch) ) {
ast_log(LOG_ERROR,"Invalid input: usage %s\n",USAGE);
res = -1;
} else {
if (option_verbose > 3)
ast_verbose(VERBOSE_PREFIX_4"Realtime Lookup: family:'%s' colmatch:'%s' value:'%s'\n",family,colmatch,value);
if ((var = ast_load_realtime(family, colmatch, value, NULL))) {
for (itt = var; itt; itt = itt->next) {
if(prefix) {
len = strlen(prefix) + strlen(itt->name) + 2;
vname = alloca(len);
snprintf(vname,len,"%s%s",prefix,itt->name);
} else
vname = itt->name;
pbx_builtin_setvar_helper(chan, vname, itt->value);
}
ast_variables_destroy(var);
} else if (option_verbose > 3)
ast_verbose(VERBOSE_PREFIX_4"No Realtime Matches Found.\n");
}
LOCAL_USER_REMOVE(u);
return res;
}
int unload_module(void)
{
STANDARD_HANGUP_LOCALUSERS;
ast_cli_unregister(&cli_load_realtime_cmd);
ast_cli_unregister(&cli_update_realtime_cmd);
ast_unregister_application(uapp);
return ast_unregister_application(app);
}
int load_module(void)
{
ast_cli_register(&cli_load_realtime_cmd);
ast_cli_register(&cli_update_realtime_cmd);
ast_register_application(uapp, realtime_update_exec, usynopsis, udesc);
return ast_register_application(app, realtime_exec, synopsis, desc);
}
char *description(void)
{
return tdesc;
}
int usecount(void)
{
int res;
STANDARD_USECOUNT(res);
return res;
}
char *key()
{
return ASTERISK_GPL_KEY;
}

267
apps/app_record.c Executable file → Normal file
View File

@@ -11,17 +11,22 @@
* the GNU General Public License
*/
#include <asterisk/lock.h>
#include <asterisk/file.h>
#include <asterisk/logger.h>
#include <asterisk/channel.h>
#include <asterisk/pbx.h>
#include <asterisk/module.h>
#include <asterisk/translate.h>
#include <asterisk/dsp.h>
#include <string.h>
#include <stdlib.h>
#include <pthread.h>
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/lock.h"
#include "asterisk/file.h"
#include "asterisk/logger.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
#include "asterisk/translate.h"
#include "asterisk/dsp.h"
#include "asterisk/utils.h"
static char *tdesc = "Trivial Record Application";
@@ -30,10 +35,24 @@ static char *app = "Record";
static char *synopsis = "Record to a file";
static char *descrip =
" Record(filename:extension|silence): Records from the channel into a given\n"
"filename. If the file exists it will be overwritten. The 'extension'\n"
"is the extension of the file type to be recorded (wav, gsm, etc).\n"
"'silence' is the number of seconds of silence to allow before returning.\n"
" Record(filename.format|silence[|maxduration][|options])\n\n"
"Records from the channel into a given filename. If the file exists it will\n"
"be overwritten.\n"
"- 'format' is the format of the file type to be recorded (wav, gsm, etc).\n"
"- 'silence' is the number of seconds of silence to allow before returning.\n"
"- 'maxduration' is the maximum recording duration in seconds. If missing\n"
"or 0 there is no maximum.\n"
"- 'options' may contain any of the following letters:\n"
" 's' : skip recording if the line is not yet answered\n"
" 'n' : do not answer, but record anyway if line not yet answered\n"
" 'a' : append to existing recording rather than replacing\n"
" 't' : use alternate '*' terminator key instead of default '#'\n"
" 'q' : quiet (do not play a beep tone)\n"
"\n"
"If filename contains '%d', these characters will be replaced with a number\n"
"incremented by one each time the file is recorded. \n\n"
"Use 'show file formats' to see the available formats on your system\n\n"
"User can press '#' to terminate the recording and continue to the next priority.\n\n"
"Returns -1 when the user hangs up.\n";
STANDARD_LOCAL_USER;
@@ -45,12 +64,10 @@ static int record_exec(struct ast_channel *chan, void *data)
int res = 0;
int count = 0;
int percentflag = 0;
char fil[256];
char tmp[256];
char ext[10];
char * vdata; /* Used so I don't have to typecast every use of *data */
char *filename, *ext = NULL, *silstr, *maxstr, *options;
char *vdata, *p;
int i = 0;
int j = 0;
char tmp[256];
struct ast_filestream *s = '\0';
struct localuser *u;
@@ -61,99 +78,155 @@ static int record_exec(struct ast_channel *chan, void *data)
int dspsilence = 0;
int silence = 0; /* amount of silence to allow */
int gotsilence = 0; /* did we timeout for silence? */
char silencestr[5];
int k = 0;
int maxduration = 0; /* max duration of recording */
int gottimeout = 0; /* did we timeout for maxduration exceeded? */
time_t timeout = 0;
int option_skip = 0;
int option_noanswer = 0;
int option_append = 0;
int terminator = '#';
int option_quiet = 0;
int rfmt = 0;
int flags;
vdata = data; /* explained above */
/* The next few lines of code parse out the filename and header from the input string */
if (!vdata) { /* no data implies no filename or anything is present */
if (!data || ast_strlen_zero(data)) { /* no data implies no filename or anything is present */
ast_log(LOG_WARNING, "Record requires an argument (filename)\n");
return -1;
}
/* Yay for strsep being easy */
vdata = ast_strdupa(data);
p = vdata;
for (; vdata[i] && (vdata[i] != ':') && (vdata[i] != '|'); i++ ) {
if ((vdata[i] == '%') && (vdata[i+1] == 'd')) {
percentflag = 1; /* the wildcard is used */
filename = strsep(&p, "|");
silstr = strsep(&p, "|");
maxstr = strsep(&p, "|");
options = strsep(&p, "|");
if (filename) {
if (strstr(filename, "%d"))
percentflag = 1;
ext = strrchr(filename, '.'); /* to support filename with a . in the filename, not format */
if (!ext)
ext = strchr(filename, ':');
if (ext) {
*ext = '\0';
ext++;
}
if (i == strlen(vdata) ) {
ast_log(LOG_WARNING, "No extension found\n");
return -1;
}
if (!ext) {
ast_log(LOG_WARNING, "No extension specified to filename!\n");
return -1;
}
if (silstr) {
if ((sscanf(silstr, "%d", &i) == 1) && (i > -1)) {
silence = i * 1000;
} else if (!ast_strlen_zero(silstr)) {
ast_log(LOG_WARNING, "'%s' is not a valid silence duration\n", silstr);
}
fil[i] = vdata[i];
}
fil[i++] = '\0';
for (; j < 10 && i < strlen(data) && (vdata[i] != '|'); i++, j++)
ext[j] = vdata[i];
ext[j] = '\0';
if (vdata[i] && (vdata[i] == '|')) i++;
for (; vdata[i] && (vdata[i] != '|') && (k < 3) && i < strlen(data); i++, k++)
silencestr[k] = vdata[i];
silencestr[k] = '\0';
if (silencestr) {
silence = atoi(silencestr);
if (silence > 0)
silence *= 1000;
if (maxstr) {
if ((sscanf(maxstr, "%d", &i) == 1) && (i > -1))
maxduration = i;
else if (!ast_strlen_zero(maxstr))
ast_log(LOG_WARNING, "'%s' is not a valid maximum duration\n", maxstr);
}
if (options) {
/* Retain backwards compatibility with old style options */
if (!strcasecmp(options, "skip"))
option_skip = 1;
else if (!strcasecmp(options, "noanswer"))
option_noanswer = 1;
else {
if (strchr(options, 's'))
option_skip = 1;
if (strchr(options, 'n'))
option_noanswer = 1;
if (strchr(options, 'a'))
option_append = 1;
if (strchr(options, 't'))
terminator = '*';
if (strchr(options, 'q'))
option_quiet = 1;
}
}
/* done parsing */
/* these are to allow the use of the %d in the config file for a wild card of sort to
create a new file with the inputed name scheme */
if (percentflag) {
do {
snprintf(tmp, 256, fil, count);
snprintf(tmp, sizeof(tmp), filename, count);
count++;
} while ( ast_fileexists(tmp, ext, chan->language) != -1 );
pbx_builtin_setvar_helper(chan, "RECORDED_FILE", tmp);
} else
strncpy(tmp, fil, 256-1);
strncpy(tmp, filename, sizeof(tmp)-1);
/* end of routine mentioned */
LOCAL_USER_ADD(u);
if (chan->_state != AST_STATE_UP) {
res = ast_answer(chan); /* Shouldn't need this, but checking to see if channel is already answered
* Theoretically asterisk should already have answered before running the app */
if (option_skip) {
/* At the user's option, skip if the line is not up */
LOCAL_USER_REMOVE(u);
return 0;
} else if (!option_noanswer) {
/* Otherwise answer unless we're supposed to record while on-hook */
res = ast_answer(chan);
}
}
if (!res) {
/* Some code to play a nice little beep to signify the start of the record operation */
res = ast_streamfile(chan, "beep", chan->language);
if (!res) {
res = ast_waitstream(chan, "");
} else {
ast_log(LOG_WARNING, "ast_streamfile failed on %s\n", chan->name);
}
ast_stopstream(chan);
/* The end of beep code. Now the recording starts */
if (silence > 0) {
rfmt = chan->readformat;
res = ast_set_read_format(chan, AST_FORMAT_SLINEAR);
if (res < 0) {
ast_log(LOG_WARNING, "Unable to set to linear mode, giving up\n");
return -1;
}
sildet = ast_dsp_new();
if (!sildet) {
ast_log(LOG_WARNING, "Unable to create silence detector :(\n");
return -1;
}
ast_dsp_set_threshold(sildet, 256);
}
s = ast_writefile( tmp, ext, NULL, O_CREAT|O_TRUNC|O_WRONLY , 0, 0644);
if (!option_quiet) {
/* Some code to play a nice little beep to signify the start of the record operation */
res = ast_streamfile(chan, "beep", chan->language);
if (!res) {
res = ast_waitstream(chan, "");
} else {
ast_log(LOG_WARNING, "ast_streamfile failed on %s\n", chan->name);
}
ast_stopstream(chan);
}
/* The end of beep code. Now the recording starts */
if (silence > 0) {
rfmt = chan->readformat;
res = ast_set_read_format(chan, AST_FORMAT_SLINEAR);
if (res < 0) {
ast_log(LOG_WARNING, "Unable to set to linear mode, giving up\n");
return -1;
}
sildet = ast_dsp_new();
if (!sildet) {
ast_log(LOG_WARNING, "Unable to create silence detector :(\n");
return -1;
}
ast_dsp_set_threshold(sildet, 256);
}
flags = option_append ? O_CREAT|O_APPEND|O_WRONLY : O_CREAT|O_TRUNC|O_WRONLY;
s = ast_writefile( tmp, ext, NULL, flags , 0, 0644);
if (s) {
if (maxduration > 0)
timeout = time(NULL) + (time_t)maxduration;
while (ast_waitfor(chan, -1) > -1) {
if (maxduration > 0 && time(NULL) > timeout) {
gottimeout = 1;
break;
}
f = ast_read(chan);
if (!f) {
res = -1;
@@ -166,7 +239,7 @@ static int record_exec(struct ast_channel *chan, void *data)
ast_log(LOG_WARNING, "Problem writing frame\n");
break;
}
if (silence > 0) {
dspsilence = 0;
ast_dsp_silence(sildet, f, &dspsilence);
@@ -175,12 +248,12 @@ static int record_exec(struct ast_channel *chan, void *data)
} else {
totalsilence = 0;
}
if (totalsilence > silence) {
/* Ended happily with silence */
if (totalsilence > silence) {
/* Ended happily with silence */
ast_frfree(f);
gotsilence = 1;
break;
}
break;
}
}
}
if (f->frametype == AST_FRAME_VIDEO) {
@@ -192,36 +265,36 @@ static int record_exec(struct ast_channel *chan, void *data)
}
}
if ((f->frametype == AST_FRAME_DTMF) &&
(f->subclass == '#')) {
(f->subclass == terminator)) {
ast_frfree(f);
break;
}
ast_frfree(f);
}
if (!f) {
ast_log(LOG_DEBUG, "Got hangup\n");
res = -1;
ast_log(LOG_DEBUG, "Got hangup\n");
res = -1;
}
if (gotsilence) {
ast_stream_rewind(s, silence-1000);
ast_truncstream(s);
} else {
} else if (!gottimeout) {
/* Strip off the last 1/4 second of it */
ast_stream_rewind(s, 250);
ast_truncstream(s);
}
ast_closestream(s);
} else
ast_log(LOG_WARNING, "Could not create file %s\n", fil);
ast_log(LOG_WARNING, "Could not create file %s\n", filename);
} else
ast_log(LOG_WARNING, "Could not answer channel '%s'\n", chan->name);
LOCAL_USER_REMOVE(u);
if (silence > 0) {
res = ast_set_read_format(chan, rfmt);
if (res)
ast_log(LOG_WARNING, "Unable to restore read format on '%s'\n", chan->name);
if ((silence > 0) && rfmt) {
res = ast_set_read_format(chan, rfmt);
if (res)
ast_log(LOG_WARNING, "Unable to restore read format on '%s'\n", chan->name);
if (sildet)
ast_dsp_free(sildet);
}

5606
apps/app_rpt.c Executable file → Normal file

File diff suppressed because it is too large Load Diff

58
apps/app_sayunixtime.c Executable file → Normal file
View File

@@ -15,18 +15,24 @@
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <asterisk/file.h>
#include <asterisk/logger.h>
#include <asterisk/options.h>
#include <asterisk/channel.h>
#include <asterisk/pbx.h>
#include <asterisk/module.h>
#include <asterisk/say.h>
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/file.h"
#include "asterisk/logger.h"
#include "asterisk/options.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
#include "asterisk/say.h"
static char *tdesc = "Say time";
static char *app_sayunixtime = "SayUnixTime";
static char *app_datetime = "DateTime";
static char *sayunixtime_synopsis = "Says a specified time in a custom format";
@@ -39,6 +45,15 @@ static char *sayunixtime_descrip =
" format: a format the time is to be said in. See voicemail.conf.\n"
" defaults to \"ABdY 'digits/at' IMp\"\n"
" Returns 0 or -1 on hangup.\n";
static char *datetime_descrip =
"DateTime([unixtime][|[timezone][|format]])\n"
" unixtime: time, in seconds since Jan 1, 1970. May be negative.\n"
" defaults to now.\n"
" timezone: timezone, see /usr/share/zoneinfo for a list.\n"
" defaults to machine default.\n"
" format: a format the time is to be said in. See voicemail.conf.\n"
" defaults to \"ABdY 'digits/at' IMp\"\n"
" Returns 0 or -1 on hangup.\n";
STANDARD_LOCAL_USER;
@@ -48,16 +63,23 @@ static int sayunixtime_exec(struct ast_channel *chan, void *data)
{
int res=0;
struct localuser *u;
char *s,*zone=NULL,*timec;
char *s,*zone=NULL,*timec,*format;
time_t unixtime;
char *format = "ABdY 'digits/at' IMp";
struct timeval tv;
LOCAL_USER_ADD(u);
gettimeofday(&tv,NULL);
tv = ast_tvnow();
unixtime = (time_t)tv.tv_sec;
if( !strcasecmp(chan->language, "da" ) ) {
format = "A dBY HMS";
} else if ( !strcasecmp(chan->language, "de" ) ) {
format = "A dBY HMS";
} else {
format = "ABdY 'digits/at' IMp";
}
if (data) {
s = data;
s = ast_strdupa(s);
@@ -94,13 +116,23 @@ static int sayunixtime_exec(struct ast_channel *chan, void *data)
int unload_module(void)
{
int res;
STANDARD_HANGUP_LOCALUSERS;
return ast_unregister_application(app_sayunixtime);
res = ast_unregister_application(app_sayunixtime);
if (! res)
return ast_unregister_application(app_datetime);
else
return res;
}
int load_module(void)
{
return ast_register_application(app_sayunixtime, sayunixtime_exec, sayunixtime_synopsis, sayunixtime_descrip);
int res;
res = ast_register_application(app_sayunixtime, sayunixtime_exec, sayunixtime_synopsis, sayunixtime_descrip);
if (! res)
return ast_register_application(app_datetime, sayunixtime_exec, sayunixtime_synopsis, datetime_descrip);
else
return res;
}
char *description(void)

71
apps/app_senddtmf.c Executable file → Normal file
View File

@@ -11,17 +11,23 @@
* the GNU General Public License
*/
#include <asterisk/lock.h>
#include <asterisk/file.h>
#include <asterisk/logger.h>
#include <asterisk/channel.h>
#include <asterisk/pbx.h>
#include <asterisk/module.h>
#include <asterisk/translate.h>
#include <asterisk/options.h>
#include <string.h>
#include <stdlib.h>
#include <pthread.h>
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/lock.h"
#include "asterisk/file.h"
#include "asterisk/logger.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
#include "asterisk/translate.h"
#include "asterisk/options.h"
#include "asterisk/utils.h"
#include "asterisk/app.h"
static char *tdesc = "Send DTMF digits Application";
@@ -30,8 +36,9 @@ static char *app = "SendDTMF";
static char *synopsis = "Sends arbitrary DTMF digits";
static char *descrip =
" SendDTMF(digits): Sends DTMF digits on a channel. Returns 0 on success"
"or -1 on a hangup.\n";
" SendDTMF(digits[|timeout_ms]): Sends DTMF digits on a channel. \n"
" Accepted digits: 0-9, *#abcd\n"
" Returns 0 on success or -1 on a hangup.\n";
STANDARD_LOCAL_USER;
@@ -41,32 +48,24 @@ static int senddtmf_exec(struct ast_channel *chan, void *data)
{
int res = 0;
struct localuser *u;
char *digits = data;
struct ast_frame f;
int x;
if (!digits || !strlen(digits)) {
ast_log(LOG_WARNING, "SendDTMF requires an argument (digits)\n");
return -1;
char *digits = NULL, *to = NULL;
int timeout = 250;
if (data && !ast_strlen_zero(data) && (digits = ast_strdupa((char *)data))) {
if((to = strchr(digits,'|'))) {
*to = '\0';
to++;
timeout = atoi(to);
}
LOCAL_USER_ADD(u);
if(timeout <= 0)
timeout = 250;
res = ast_dtmf_stream(chan,NULL,digits,timeout);
LOCAL_USER_REMOVE(u);
} else {
ast_log(LOG_WARNING, "SendDTMF requires an argument (digits or *#aAbBcCdD)\n");
}
LOCAL_USER_ADD(u);
for (x=0;x<strlen(digits);x++) {
memset(&f, 0, sizeof(f));
f.frametype = AST_FRAME_DTMF;
f.subclass = digits[x];
f.src = "app_senddtmf";
res = ast_write(chan, &f);
if (res)
break;
/* Wait 250ms */
res = ast_safe_sleep(chan, 250);
if (res)
break;
}
if (!res)
if (option_verbose > 2)
ast_verbose(VERBOSE_PREFIX_3 "Sent digit string '%s' on %s\n", digits, chan->name);
LOCAL_USER_REMOVE(u);
return res;
}

117
apps/app_sendtext.c Normal file
View File

@@ -0,0 +1,117 @@
/*
* Asterisk -- A telephony toolkit for Linux.
*
* App to transmit a text message
*
* Copyright (C) 1999 - 2005, Digium, Inc.
*
* Mark Spencer <markster@digium.com>
*
* This program is free software, distributed under the terms of
* the GNU General Public License
*/
#include <string.h>
#include <stdlib.h>
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/lock.h"
#include "asterisk/file.h"
#include "asterisk/logger.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
#include "asterisk/translate.h"
#include "asterisk/image.h"
#include "asterisk/options.h"
static const char *tdesc = "Send Text Applications";
static const char *app = "SendText";
static const char *synopsis = "Send a Text Message";
static const char *descrip =
" SendText(text): Sends text to current channel (callee).\n"
"Otherwise, execution will continue at the next priority level.\n"
"Result of transmission will be stored in the SENDTEXTSTATUS\n"
"channel variable:\n"
" SUCCESS Transmission succeeded\n"
" FAILURE Transmission failed\n"
" UNSUPPORTED Text transmission not supported by channel\n"
"\n"
"At this moment, text is supposed to be 7 bit ASCII in most channels.\n"
"Old deprecated behavior: \n"
" SendText only returns 0 if the text was sent correctly or if\n"
" the channel does not support text transport.\n"
" If the client does not support text transport, and there exists a\n"
" step with priority n + 101, then execution will continue at that step.\n";
STANDARD_LOCAL_USER;
LOCAL_USER_DECL;
static int sendtext_exec(struct ast_channel *chan, void *data)
{
int res = 0;
struct localuser *u;
char *status = "UNSUPPORTED";
if (!data || !strlen((char *)data)) {
ast_log(LOG_WARNING, "SendText requires an argument (text)\n");
return -1;
}
LOCAL_USER_ADD(u);
ast_mutex_lock(&chan->lock);
if (!chan->tech->send_text) {
ast_mutex_unlock(&chan->lock);
/* Does not support transport */
if (option_priority_jumping)
ast_goto_if_exists(chan, chan->context, chan->exten, chan->priority + 101);
LOCAL_USER_REMOVE(u);
return 0;
}
status = "FAILURE";
ast_mutex_unlock(&chan->lock);
res = ast_sendtext(chan, (char *)data);
if (!res)
status = "SUCCESS";
pbx_builtin_setvar_helper(chan, "SENDTEXTSTATUS", status);
LOCAL_USER_REMOVE(u);
return 0;
}
int unload_module(void)
{
STANDARD_HANGUP_LOCALUSERS;
return ast_unregister_application(app);
}
int load_module(void)
{
return ast_register_application(app, sendtext_exec, synopsis, descrip);
}
char *description(void)
{
return (char *) tdesc;
}
int usecount(void)
{
int res;
STANDARD_USECOUNT(res);
return res;
}
char *key()
{
return ASTERISK_GPL_KEY;
}

81
apps/app_setcallerid.c Executable file → Normal file
View File

@@ -11,17 +11,67 @@
* the GNU General Public License
*/
#include <asterisk/lock.h>
#include <asterisk/file.h>
#include <asterisk/logger.h>
#include <asterisk/channel.h>
#include <asterisk/pbx.h>
#include <asterisk/module.h>
#include <asterisk/translate.h>
#include <asterisk/image.h>
#include <string.h>
#include <stdlib.h>
#include <pthread.h>
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/lock.h"
#include "asterisk/file.h"
#include "asterisk/logger.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
#include "asterisk/translate.h"
#include "asterisk/image.h"
#include "asterisk/callerid.h"
static char *app2 = "SetCallerPres";
static char *synopsis2 = "Set CallerID Presentation";
STANDARD_LOCAL_USER;
LOCAL_USER_DECL;
static char *descrip2 =
" SetCallerPres(presentation): Set Caller*ID presentation on a call.\n"
" Always returns 0. Valid presentations are:\n"
"\n"
" allowed_not_screened : Presentation Allowed, Not Screened\n"
" allowed_passed_screen : Presentation Allowed, Passed Screen\n"
" allowed_failed_screen : Presentation Allowed, Failed Screen\n"
" allowed : Presentation Allowed, Network Number\n"
" prohib_not_screened : Presentation Prohibited, Not Screened\n"
" prohib_passed_screen : Presentation Prohibited, Passed Screen\n"
" prohib_failed_screen : Presentation Prohibited, Failed Screen\n"
" prohib : Presentation Prohibited, Network Number\n"
" unavailable : Number Unavailable\n"
"\n"
;
static int setcallerid_pres_exec(struct ast_channel *chan, void *data)
{
struct localuser *u;
int pres = -1;
pres = ast_parse_caller_presentation(data);
if (pres < 0) {
ast_log(LOG_WARNING, "'%s' is not a valid presentation (see 'show application SetCallerPres')\n",
(char *) data);
return 0;
}
LOCAL_USER_ADD(u);
chan->cid.cid_pres = pres;
LOCAL_USER_REMOVE(u);
return 0;
}
static char *tdesc = "Set CallerID Application";
@@ -33,19 +83,17 @@ static char *descrip =
" SetCallerID(clid[|a]): Set Caller*ID on a call to a new\n"
"value. Sets ANI as well if a flag is used. Always returns 0\n";
STANDARD_LOCAL_USER;
LOCAL_USER_DECL;
static int setcallerid_exec(struct ast_channel *chan, void *data)
{
int res = 0;
char tmp[256] = "";
char name[256];
char num[256];
struct localuser *u;
char *opt;
int anitoo = 0;
if (data)
strncpy(tmp, (char *)data, sizeof(tmp) - 1);
ast_copy_string(tmp, (char *)data, sizeof(tmp));
opt = strchr(tmp, '|');
if (opt) {
*opt = '\0';
@@ -54,7 +102,8 @@ static int setcallerid_exec(struct ast_channel *chan, void *data)
anitoo = 1;
}
LOCAL_USER_ADD(u);
ast_set_callerid(chan, strlen(tmp) ? tmp : NULL, anitoo);
ast_callerid_split(tmp, name, sizeof(name), num, sizeof(num));
ast_set_callerid(chan, num, name, anitoo ? num : NULL);
LOCAL_USER_REMOVE(u);
return res;
}
@@ -62,11 +111,13 @@ static int setcallerid_exec(struct ast_channel *chan, void *data)
int unload_module(void)
{
STANDARD_HANGUP_LOCALUSERS;
ast_unregister_application(app2);
return ast_unregister_application(app);
}
int load_module(void)
{
ast_register_application(app2, setcallerid_pres_exec, synopsis2, descrip2);
return ast_register_application(app, setcallerid_exec, synopsis, descrip);
}

51
apps/app_setcdruserfield.c Executable file → Normal file
View File

@@ -12,15 +12,22 @@
*/
#include <sys/types.h>
#include <asterisk/channel.h>
#include <asterisk/cdr.h>
#include <asterisk/module.h>
#include <asterisk/pbx.h>
#include <asterisk/logger.h>
#include <stdlib.h>
#include <string.h>
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/channel.h"
#include "asterisk/cdr.h"
#include "asterisk/module.h"
#include "asterisk/pbx.h"
#include "asterisk/logger.h"
#include "asterisk/config.h"
#include "asterisk/manager.h"
#include "asterisk/utils.h"
static char *tdesc = "CDR user field apps";
@@ -59,6 +66,35 @@ STANDARD_LOCAL_USER;
LOCAL_USER_DECL;
static int action_setcdruserfield(struct mansession *s, struct message *m)
{
struct ast_channel *c = NULL;
char *userfield = astman_get_header(m, "UserField");
char *channel = astman_get_header(m, "Channel");
char *append = astman_get_header(m, "Append");
if (ast_strlen_zero(channel)) {
astman_send_error(s, m, "No Channel specified");
return 0;
}
if (ast_strlen_zero(userfield)) {
astman_send_error(s, m, "No UserField specified");
return 0;
}
c = ast_get_channel_by_name_locked(channel);
if (!c) {
astman_send_error(s, m, "No such channel");
return 0;
}
if (ast_true(append))
ast_cdr_appenduserfield(c, userfield);
else
ast_cdr_setuserfield(c, userfield);
ast_mutex_unlock(&c->lock);
astman_send_ack(s, m, "CDR Userfield Set");
return 0;
}
static int setcdruserfield_exec(struct ast_channel *chan, void *data)
{
struct localuser *u;
@@ -97,6 +133,7 @@ int unload_module(void)
STANDARD_HANGUP_LOCALUSERS;
res = ast_unregister_application(setcdruserfield_app);
res |= ast_unregister_application(appendcdruserfield_app);
ast_manager_unregister("SetCDRUserField");
return res;
}
@@ -105,7 +142,7 @@ int load_module(void)
int res;
res = ast_register_application(setcdruserfield_app, setcdruserfield_exec, setcdruserfield_synopsis, setcdruserfield_descrip);
res |= ast_register_application(appendcdruserfield_app, appendcdruserfield_exec, appendcdruserfield_synopsis, appendcdruserfield_descrip);
ast_manager_register("SetCDRUserField", EVENT_FLAG_CALL, action_setcdruserfield, "Set the CDR UserField");
return res;
}

60
apps/app_setcidname.c Executable file → Normal file
View File

@@ -11,18 +11,23 @@
* the GNU General Public License
*/
#include <asterisk/lock.h>
#include <asterisk/file.h>
#include <asterisk/logger.h>
#include <asterisk/channel.h>
#include <asterisk/pbx.h>
#include <asterisk/module.h>
#include <asterisk/translate.h>
#include <asterisk/image.h>
#include <asterisk/callerid.h>
#include <string.h>
#include <stdlib.h>
#include <pthread.h>
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/lock.h"
#include "asterisk/file.h"
#include "asterisk/logger.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
#include "asterisk/translate.h"
#include "asterisk/image.h"
#include "asterisk/callerid.h"
#include "asterisk/utils.h"
static char *tdesc = "Set CallerID Name";
@@ -34,7 +39,9 @@ static char *descrip =
" SetCIDName(cname[|a]): Set Caller*ID Name on a call to a new\n"
"value, while preserving the original Caller*ID number. This is\n"
"useful for providing additional information to the called\n"
"party. Sets ANI as well if a flag is used. Always returns 0\n";
"party. Always returns 0\n"
"SetCIDName has been deprecated in favor of the function\n"
"CALLERID(name)\n";
STANDARD_LOCAL_USER;
@@ -44,36 +51,23 @@ static int setcallerid_exec(struct ast_channel *chan, void *data)
{
int res = 0;
char tmp[256] = "";
char oldcid[256] = "", *l, *n;
char newcid[256] = "";
struct localuser *u;
char *opt;
int anitoo = 0;
static int deprecation_warning = 0;
if (!deprecation_warning) {
ast_log(LOG_WARNING, "SetCIDName is deprecated, please use Set(CALLERID(name)=value) instead.\n");
deprecation_warning = 1;
}
if (data)
strncpy(tmp, (char *)data, sizeof(tmp) - 1);
ast_copy_string(tmp, (char *)data, sizeof(tmp));
opt = strchr(tmp, '|');
if (opt) {
*opt = '\0';
opt++;
if (*opt == 'a')
anitoo = 1;
}
LOCAL_USER_ADD(u);
if (chan->callerid) {
strncpy(oldcid, chan->callerid, sizeof(oldcid) - 1);
ast_callerid_parse(oldcid, &n, &l);
n = tmp;
if (strlen(n)) {
if (l && strlen(l))
snprintf(newcid, sizeof(newcid), "\"%s\" <%s>", n, l);
else
strncpy(newcid, tmp, sizeof(newcid) - 1);
} else if (l && strlen(l)) {
strncpy(newcid, l, sizeof(newcid) - 1);
}
} else
strncpy(newcid, tmp, sizeof(newcid));
ast_set_callerid(chan, strlen(newcid) ? newcid : NULL, anitoo);
ast_set_callerid(chan, NULL, tmp, NULL);
LOCAL_USER_REMOVE(u);
return res;
}

62
apps/app_setcidnum.c Executable file → Normal file
View File

@@ -3,27 +3,32 @@
*
* App to set callerid
*
* Copyright (C) 1999, Mark Spencer
* Copyright (C) 1999 - 2005, Digium, Inc.
*
* Mark Spencer <markster@linux-support.net>
* Mark Spencer <markster@digium.com>
* Oliver Daudey <traveler@xs4all.nl>
*
* This program is free software, distributed under the terms of
* the GNU General Public License
*/
#include <asterisk/lock.h>
#include <asterisk/file.h>
#include <asterisk/logger.h>
#include <asterisk/channel.h>
#include <asterisk/pbx.h>
#include <asterisk/module.h>
#include <asterisk/translate.h>
#include <asterisk/image.h>
#include <asterisk/callerid.h>
#include <string.h>
#include <stdlib.h>
#include <pthread.h>
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/lock.h"
#include "asterisk/file.h"
#include "asterisk/logger.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
#include "asterisk/translate.h"
#include "asterisk/image.h"
#include "asterisk/callerid.h"
#include "asterisk/utils.h"
static char *tdesc = "Set CallerID Number";
@@ -35,7 +40,9 @@ static char *descrip =
" SetCIDNum(cnum[|a]): Set Caller*ID Number on a call to a new\n"
"value, while preserving the original Caller*ID name. This is\n"
"useful for providing additional information to the called\n"
"party. Sets ANI as well if a flag is used. Always returns 0\n";
"party. Sets ANI as well if a flag is used. Always returns 0\n"
"SetCIDNum has been deprecated in favor of the function\n"
"CALLERID(number)\n";
STANDARD_LOCAL_USER;
@@ -44,14 +51,19 @@ LOCAL_USER_DECL;
static int setcallerid_exec(struct ast_channel *chan, void *data)
{
int res = 0;
char tmp[256] = "";
char oldcid[256] = "", *l, *n;
char newcid[256] = "";
struct localuser *u;
char *opt;
int anitoo = 0;
char tmp[256];
static int deprecation_warning = 0;
if (!deprecation_warning) {
ast_log(LOG_WARNING, "SetCIDNum is deprecated, please use Set(CALLERID(number)=value) instead.\n");
deprecation_warning = 1;
}
if (data)
strncpy(tmp, (char *)data, sizeof(tmp) - 1);
ast_copy_string(tmp, (char *)data, sizeof(tmp));
opt = strchr(tmp, '|');
if (opt) {
*opt = '\0';
@@ -60,21 +72,7 @@ static int setcallerid_exec(struct ast_channel *chan, void *data)
anitoo = 1;
}
LOCAL_USER_ADD(u);
if (chan->callerid) {
strncpy(oldcid, chan->callerid, sizeof(oldcid) - 1);
ast_callerid_parse(oldcid, &n, &l);
l = tmp;
if (strlen(l)) {
if (n && strlen(n))
snprintf(newcid, sizeof(newcid), "\"%s\" <%s>", n, l);
else
strncpy(newcid, tmp, sizeof(newcid) - 1);
} else if (n && strlen(n)) {
strncpy(newcid, n, sizeof(newcid) - 1);
}
} else
strncpy(newcid, tmp, sizeof(newcid));
ast_set_callerid(chan, strlen(newcid) ? newcid : NULL, anitoo);
ast_set_callerid(chan, tmp, NULL, anitoo ? tmp : NULL);
LOCAL_USER_REMOVE(u);
return res;
}

109
apps/app_setrdnis.c Normal file
View File

@@ -0,0 +1,109 @@
/*
* Asterisk -- A telephony toolkit for Linux.
*
* App to set rdnis
*
* Copyright (C) 1999 - 2005, Digium, Inc.
*
* Mark Spencer <markster@digium.com>
* Oliver Daudey <traveler@xs4all.nl>
*
* This program is free software, distributed under the terms of
* the GNU General Public License
*/
#include <string.h>
#include <stdlib.h>
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/lock.h"
#include "asterisk/file.h"
#include "asterisk/logger.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
#include "asterisk/translate.h"
#include "asterisk/image.h"
#include "asterisk/callerid.h"
#include "asterisk/utils.h"
static char *tdesc = "Set RDNIS Number";
static char *app = "SetRDNIS";
static char *synopsis = "Set RDNIS Number";
static char *descrip =
" SetRDNIS(cnum): Set RDNIS Number on a call to a new\n"
"value. Always returns 0\n"
"SetRDNIS has been deprecated in favor of the function\n"
"CALLERID(rdnis)\n";
STANDARD_LOCAL_USER;
LOCAL_USER_DECL;
static int setrdnis_exec(struct ast_channel *chan, void *data)
{
struct localuser *u;
char *opt, *n, *l;
char tmp[256];
static int deprecation_warning = 0;
if (!deprecation_warning) {
ast_log(LOG_WARNING, "SetRDNIS is deprecated, please use Set(CALLERID(rdnis)=value) instead.\n");
deprecation_warning = 1;
}
if (data)
ast_copy_string(tmp, (char *)data, sizeof(tmp));
else
tmp[0] = '\0';
opt = strchr(tmp, '|');
if (opt)
*opt = '\0';
LOCAL_USER_ADD(u);
n = l = NULL;
ast_callerid_parse(tmp, &n, &l);
if (l) {
ast_shrink_phone_number(l);
ast_mutex_lock(&chan->lock);
if (chan->cid.cid_rdnis)
free(chan->cid.cid_rdnis);
chan->cid.cid_rdnis = (l[0]) ? strdup(l) : NULL;
ast_mutex_unlock(&chan->lock);
}
LOCAL_USER_REMOVE(u);
return 0;
}
int unload_module(void)
{
STANDARD_HANGUP_LOCALUSERS;
return ast_unregister_application(app);
}
int load_module(void)
{
return ast_register_application(app, setrdnis_exec, synopsis, descrip);
}
char *description(void)
{
return tdesc;
}
int usecount(void)
{
int res;
STANDARD_USECOUNT(res);
return res;
}
char *key()
{
return ASTERISK_GPL_KEY;
}

View File

@@ -0,0 +1,119 @@
/*
* Asterisk -- A telephony toolkit for Linux.
*
* App to set the ISDN Transfer Capability
*
* Copyright (C) 2005, Frank Sautter, levigo holding gmbh, www.levigo.de
*
* Frank Sautter - asterisk+at+sautter+dot+com
*
* This program is free software, distributed under the terms of
* the GNU General Public License
*/
#include <string.h>
#include <stdlib.h>
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/logger.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
#include "asterisk/options.h"
#include "asterisk/transcap.h"
static char *app = "SetTransferCapability";
static char *synopsis = "Set ISDN Transfer Capability";
STANDARD_LOCAL_USER;
LOCAL_USER_DECL;
static struct { int val; char *name; } transcaps[] = {
{ AST_TRANS_CAP_SPEECH, "SPEECH" },
{ AST_TRANS_CAP_DIGITAL, "DIGITAL" },
{ AST_TRANS_CAP_RESTRICTED_DIGITAL, "RESTRICTED_DIGITAL" },
{ AST_TRANS_CAP_3_1K_AUDIO, "3K1AUDIO" },
{ AST_TRANS_CAP_DIGITAL_W_TONES, "DIGITAL_W_TONES" },
{ AST_TRANS_CAP_VIDEO, "VIDEO" },
};
static char *descrip =
" SetTransferCapability(transfercapability): Set the ISDN Transfer \n"
"Capability of a call to a new value.\n"
"Always returns 0. Valid Transfer Capabilities are:\n"
"\n"
" SPEECH : 0x00 - Speech (default, voice calls)\n"
" DIGITAL : 0x08 - Unrestricted digital information (data calls)\n"
" RESTRICTED_DIGITAL : 0x09 - Restricted digital information\n"
" 3K1AUDIO : 0x10 - 3.1kHz Audio (fax calls)\n"
" DIGITAL_W_TONES : 0x11 - Unrestricted digital information with tones/announcements\n"
" VIDEO : 0x18 - Video:\n"
"\n"
;
static int settransfercapability_exec(struct ast_channel *chan, void *data)
{
char tmp[256] = "";
struct localuser *u;
int x;
char *opts;
int transfercapability = -1;
if (data)
ast_copy_string(tmp, (char *)data, sizeof(tmp));
opts = strchr(tmp, '|');
if (opts)
*opts = '\0';
for (x=0;x<sizeof(transcaps) / sizeof(transcaps[0]);x++) {
if (!strcasecmp(transcaps[x].name, tmp)) {
transfercapability = transcaps[x].val;
break;
}
}
if (transfercapability < 0) {
ast_log(LOG_WARNING, "'%s' is not a valid transfer capability (see 'show application SetTransferCapability')\n", tmp);
return 0;
} else {
LOCAL_USER_ADD(u);
chan->transfercapability = (unsigned short)transfercapability;
LOCAL_USER_REMOVE(u);
if (option_verbose > 2)
ast_verbose(VERBOSE_PREFIX_3 "Setting transfer capability to: 0x%.2x - %s.\n", transfercapability, tmp);
return 0;
}
}
int unload_module(void)
{
STANDARD_HANGUP_LOCALUSERS;
return ast_unregister_application(app);
}
int load_module(void)
{
return ast_register_application(app, settransfercapability_exec, synopsis, descrip);
}
char *description(void)
{
return synopsis;
}
int usecount(void)
{
int res;
STANDARD_USECOUNT(res);
return res;
}
char *key()
{
return ASTERISK_GPL_KEY;
}

82
apps/app_skel.c Executable file → Normal file
View File

@@ -3,43 +3,93 @@
*
* Skeleton application
*
* Copyright (C) 1999, Mark Spencer
* Copyright (C) <Year>, <Your Name Here>
*
* Mark Spencer <markster@linux-support.net>
* <Your Name Here> <<You Email Here>>
*
* This program is free software, distributed under the terms of
* the GNU General Public License
*/
#include <asterisk/file.h>
#include <asterisk/logger.h>
#include <asterisk/channel.h>
#include <asterisk/pbx.h>
#include <asterisk/module.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <pthread.h>
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/file.h"
#include "asterisk/logger.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
#include "asterisk/lock.h"
#include "asterisk/app.h"
static char *tdesc = "Trivial skeleton Application";
static char *app = "skel";
static char *app = "Skel";
static char *synopsis =
" This is a skeleton application that shows you the basic structure to create your\n"
"own asterisk applications.\n";
"Skeleton application.";
static char *descrip = "This application is a template to build other applications from.\n"
" It shows you the basic structure to create your own Asterisk applications.\n";
#define OPTION_A (1 << 0) /* Option A */
#define OPTION_B (1 << 1) /* Option B(n) */
#define OPTION_C (1 << 2) /* Option C(str) */
#define OPTION_NULL (1 << 3) /* Dummy Termination */
AST_DECLARE_OPTIONS(app_opts,{
['a'] = { OPTION_A },
['b'] = { OPTION_B, 1 },
['c'] = { OPTION_C, 2 }
});
STANDARD_LOCAL_USER;
LOCAL_USER_DECL;
static int skel_exec(struct ast_channel *chan, void *data)
static int app_exec(struct ast_channel *chan, void *data)
{
int res=0;
int res = 0;
struct ast_flags flags;
struct localuser *u;
if (!data) {
ast_log(LOG_WARNING, "skel requires an argument (filename)\n");
char *options=NULL;
char *dummy = NULL;
char *args;
int argc = 0;
char *opts[2];
char *argv[2];
if (!(args = ast_strdupa((char *)data))) {
ast_log(LOG_ERROR, "Out of memory!\n");
return -1;
}
if (!data) {
ast_log(LOG_WARNING, "%s requires an argument (dummy|[options])\n",app);
return -1;
}
LOCAL_USER_ADD(u);
if ((argc = ast_separate_app_args(args, '|', argv, sizeof(argv) / sizeof(argv[0])))) {
dummy = argv[0];
options = argv[1];
ast_parseoptions(app_opts, &flags, opts, options);
}
if (dummy && !ast_strlen_zero(dummy))
ast_log(LOG_NOTICE, "Dummy value is : %s\n", dummy);
if (ast_test_flag(&flags, OPTION_A))
ast_log(LOG_NOTICE, "Option A is set\n");
if (ast_test_flag(&flags, OPTION_B))
ast_log(LOG_NOTICE,"Option B is set with : %s\n", opts[0] ? opts[0] : "<unspecified>");
if (ast_test_flag(&flags, OPTION_C))
ast_log(LOG_NOTICE,"Option C is set with : %s\n", opts[1] ? opts[1] : "<unspecified>");
/* Do our thing here */
LOCAL_USER_REMOVE(u);
return res;
@@ -53,7 +103,7 @@ int unload_module(void)
int load_module(void)
{
return ast_register_application(app, skel_exec, synopsis, tdesc);
return ast_register_application(app, app_exec, synopsis, descrip);
}
char *description(void)

1532
apps/app_sms.c Normal file

File diff suppressed because it is too large Load Diff

57
apps/app_softhangup.c Executable file → Normal file
View File

@@ -12,25 +12,29 @@
*/
#include <sys/types.h>
#include <asterisk/file.h>
#include <asterisk/logger.h>
#include <asterisk/channel.h>
#include <asterisk/pbx.h>
#include <asterisk/module.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <pthread.h>
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/file.h"
#include "asterisk/logger.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
#include "asterisk/lock.h"
static char *synopsis = "Soft Hangup Application";
static char *tdesc = "Hangs up the requested channel";
static char *desc = " SoftHangup(Technology/resource)\n"
"Hangs up the requested channel. Always returns 0\n";
static char *desc = " SoftHangup(Technology/resource|options)\n"
"Hangs up the requested channel. Always returns 0\n"
"- 'options' may contain the following letter:\n"
" 'a' : hang up all channels on a specified device instead of a single resource\n";
static char *app = "SoftHangup";
@@ -42,18 +46,43 @@ static int softhangup_exec(struct ast_channel *chan, void *data)
{
struct localuser *u;
struct ast_channel *c=NULL;
char *options, *cut, *cdata, *match;
char name[AST_CHANNEL_NAME] = "";
int all = 0;
if (!data) {
ast_log(LOG_WARNING, "SoftHangup requires an argument (Technology/resource)\n");
return 0;
}
cdata = ast_strdupa(data);
match = strsep(&cdata, "|");
options = strsep(&cdata, "|");
all = options && strchr(options,'a');
LOCAL_USER_ADD(u);
c = ast_channel_walk(NULL);
c = ast_channel_walk_locked(NULL);
while (c) {
if (!strcasecmp(c->name, data)) {
ast_softhangup(c, AST_SOFTHANGUP_EXPLICIT);
break;
strncpy(name, c->name, sizeof(name)-1);
ast_mutex_unlock(&c->lock);
/* XXX watch out, i think it is wrong to access c-> after unlocking! */
if (all) {
/* CAPI is set up like CAPI[foo/bar]/clcnt */
if (!strcmp(c->type,"CAPI"))
cut = strrchr(name,'/');
/* Basically everything else is Foo/Bar-Z */
else
cut = strchr(name,'-');
/* Get rid of what we've cut */
if (cut)
*cut = 0;
}
c = ast_channel_walk(c);
if (!strcasecmp(name, match)) {
ast_log(LOG_WARNING, "Soft hanging %s up.\n",c->name);
ast_softhangup(c, AST_SOFTHANGUP_EXPLICIT);
if(!all)
break;
}
c = ast_channel_walk_locked(c);
}
LOCAL_USER_REMOVE(u);

173
apps/app_sql_postgres.c Executable file → Normal file
View File

@@ -5,31 +5,35 @@
*
* Copyright (C) 2002, Christos Ricudis
*
* Christos Ricudis <ricudis@paiko.gr>
* Christos Ricudis <ricudis@itc.auth.gr>
*
* This program is free software, distributed under the terms of
* the GNU General Public License
*/
#include <asterisk/file.h>
#include <asterisk/logger.h>
#include <asterisk/channel.h>
#include <asterisk/pbx.h>
#include <asterisk/module.h>
#include <asterisk/linkedlists.h>
#include <asterisk/chanvars.h>
#include <asterisk/lock.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <sys/types.h>
#include <stdio.h>
#include <unistd.h>
#include <pthread.h>
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/file.h"
#include "asterisk/logger.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
#include "asterisk/linkedlists.h"
#include "asterisk/chanvars.h"
#include "asterisk/lock.h"
#include "libpq-fe.h"
#define EXTRA_LOG 0
static char *tdesc = "Simple PostgreSQL Interface";
@@ -39,57 +43,67 @@ static char *app = "PGSQL";
static char *synopsis = "Do several SQLy things";
static char *descrip =
" PGSQL(): Do several SQLy things\n";
"PGSQL(): Do several SQLy things\n"
"Syntax:\n"
" PGSQL(Connect var option-string)\n"
" Connects to a database. Option string contains standard PostgreSQL\n"
" parameters like host=, dbname=, user=. Connection identifer returned\n"
" in ${var}\n"
" PGSQL(Query var ${connection_identifier} query-string)\n"
" Executes standard SQL query contained in query-string using established\n"
" connection identified by ${connection_identifier}. Reseult of query is\n"
" is stored in ${var}.\n"
" PGSQL(Fetch statusvar ${result_identifier} var1 var2 ... varn)\n"
" Fetches a single row from a result set contained in ${result_identifier}.\n"
" Assigns returned fields to ${var1} ... ${varn}. ${statusvar} is set TRUE\n"
" if additional rows exist in reseult set.\n"
" PGSQL(Clear ${result_identifier})\n"
" Frees memory and datastructures associated with result set.\n"
" PGSQL(Disconnect ${connection_identifier})\n"
" Disconnects from named connection to PostgreSQL.\n" ;
/*
Syntax of SQL commands :
Connect #var option-string
Connect var option-string
Connects to a database using the option-string and stores the
connection identifier in $var
connection identifier in ${var}
Query var connection-identifier query-string
Query var ${connection_identifier} query-string
Submits query-string to database backend and stores the result
identifier in ${var}
Fetch statusvar result-identifier var1 var2 var3 ... varn
Fetch statusvar ${result_identifier} var1 var2 var3 ... varn
Fetches a row from the query and stores end-of-table status in
${statusvar} and columns in ${var1}..${varn}
Clear result-identifier
Clear ${result_identifier}
Clears data structures associated with result-identifier
Clears data structures associated with ${result_identifier}
Disconnect connection-identifier
Disconnect ${connection_identifier}
Disconnects from named connection
EXAMPLES OF USE :
(
$2 = Connection Identifier
$3 = Result Identifier
$4 = Fetch Status Identifier (0 = no more rows)
$5, $6 = Data variables
)
exten => s,2,PGSQL,"Connect connid host=localhost user=asterisk dbname=credit";
exten => s,3,PGSQL,"Query resultid ${connid} SELECT username,credit FROM credit WHERE callerid=${callerid}";
exten => s,4,PGSQL,"Fetch fetchid ${resultid} datavar1 datavar2";
exten => s,5,GotoIf,"${fetchid}=1?s|6:s|8";
exten => s,6,blablabla ${datavar1} ${datavar2} (does blablabla, datavar1 = username, datavar2 = credit);
exten => s,7,Goto,s|4
exten => s,8,PGSQL,"Clear ${resultid}";
exten => s,9,PGSQL,"Disconnect ${connid}";
exten => s,2,PGSQL(Connect connid host=localhost user=asterisk dbname=credit)
exten => s,3,PGSQL(Query resultid ${connid} SELECT username,credit FROM credit WHERE callerid=${CALLERIDNUM})
exten => s,4,PGSQL(Fetch fetchid ${resultid} datavar1 datavar2)
exten => s,5,GotoIf(${fetchid}?6:8)
exten => s,6,Festival("User ${datavar1} currently has credit balance of ${datavar2} dollars.")
exten => s,7,Goto(s,4)
exten => s,8,PGSQL(Clear ${resultid})
exten => s,9,PGSQL(Disconnect ${connid})
*/
@@ -97,8 +111,6 @@ STANDARD_LOCAL_USER;
LOCAL_USER_DECL;
extern void pbx_builtin_setvar_helper(struct ast_channel *chan, char *name, char *value);
#define AST_PGSQL_ID_DUMMY 0
#define AST_PGSQL_ID_CONNID 1
#define AST_PGSQL_ID_RESID 2
@@ -182,7 +194,7 @@ static int del_identifier(int identifier,int identifier_type) {
AST_LIST_TRAVERSE(headp,i,entries) {
if ((i->identifier==identifier) &&
(i->identifier_type==identifier_type)) {
AST_LIST_REMOVE(headp,i,ast_PGSQL_id,entries);
AST_LIST_REMOVE(headp,i,entries);
free(i);
found=1;
break;
@@ -201,8 +213,8 @@ static int del_identifier(int identifier,int identifier_type) {
static int aPGSQL_connect(struct ast_channel *chan, void *data) {
char *s1,*s4;
char s[100];
char *s1;
char s[100] = "";
char *optionstring;
char *var;
int l;
@@ -215,9 +227,9 @@ static int aPGSQL_connect(struct ast_channel *chan, void *data) {
res=0;
l=strlen(data)+2;
s1=malloc(l);
strncpy(s1,data,l);
strncpy(s1, data, l -1);
stringp=s1;
strsep(&stringp," "); // eat the first token, we already know it :P
strsep(&stringp," "); /* eat the first token, we already know it :P */
var=strsep(&stringp," ");
optionstring=strsep(&stringp,"\n");
@@ -229,8 +241,7 @@ static int aPGSQL_connect(struct ast_channel *chan, void *data) {
} else {
ast_log(LOG_WARNING,"adding identifier\n");
id=add_identifier(AST_PGSQL_ID_CONNID,karoto);
s4=&s[0];
sprintf(s4,"%d",id);
snprintf(s, sizeof(s), "%d", id);
pbx_builtin_setvar_helper(chan,var,s);
}
@@ -240,8 +251,9 @@ static int aPGSQL_connect(struct ast_channel *chan, void *data) {
static int aPGSQL_query(struct ast_channel *chan, void *data) {
char *s1,*s2,*s3,*s4,*s5;
char s[100];
char *s1,*s2,*s3,*s4;
char s[100] = "";
char *querystring;
char *var;
int l;
@@ -256,11 +268,11 @@ static int aPGSQL_query(struct ast_channel *chan, void *data) {
l=strlen(data)+2;
s1=malloc(l);
s2=malloc(l);
strcpy(s1,data);
strncpy(s1, data, l - 1);
stringp=s1;
strsep(&stringp," "); // eat the first token, we already know it :P
strsep(&stringp," "); /* eat the first token, we already know it :P */
s3=strsep(&stringp," ");
while (1) { // ugly trick to make branches with break;
while (1) { /* ugly trick to make branches with break; */
var=s3;
s4=strsep(&stringp," ");
id=atoi(s4);
@@ -285,21 +297,21 @@ static int aPGSQL_query(struct ast_channel *chan, void *data) {
}
nres=PQnfields(PGSQLres);
id1=add_identifier(AST_PGSQL_ID_RESID,PGSQLres);
s5=&s[0];
sprintf(s5,"%d",id1);
snprintf(s, sizeof(s), "%d", id1);
pbx_builtin_setvar_helper(chan,var,s);
break;
}
free(s1);
free(s2);
return(res);
}
static int aPGSQL_fetch(struct ast_channel *chan, void *data) {
char *s1,*s2,*s3,*s4,*s5,*s6,*s7;
char *s1,*s2,*fetchid_var,*s4,*s5,*s6,*s7;
char s[100];
char *var;
int l;
@@ -319,16 +331,16 @@ static int aPGSQL_fetch(struct ast_channel *chan, void *data) {
s7=NULL;
s1=malloc(l);
s2=malloc(l);
strcpy(s1,data);
strncpy(s1, data, l - 1);
stringp=s1;
strsep(&stringp," "); // eat the first token, we already know it :P
s3=strsep(&stringp," ");
while (1) { // ugly trick to make branches with break;
var=s3; // fetchid
strsep(&stringp," "); /* eat the first token, we already know it :P */
fetchid_var=strsep(&stringp," ");
while (1) { /* ugly trick to make branches with break; */
var=fetchid_var; /* fetchid */
fnd=0;
AST_LIST_TRAVERSE(headp,variables,entries) {
if (strncasecmp(ast_var_name(variables),s3,strlen(s3))==0) {
if (strncasecmp(ast_var_name(variables),fetchid_var,strlen(fetchid_var))==0) {
s7=ast_var_value(variables);
fnd=1;
break;
@@ -337,24 +349,26 @@ static int aPGSQL_fetch(struct ast_channel *chan, void *data) {
if (fnd==0) {
s7="0";
pbx_builtin_setvar_helper(chan,s3,s7);
pbx_builtin_setvar_helper(chan,fetchid_var,s7);
}
s4=strsep(&stringp," ");
id=atoi(s4); // resultid
id=atoi(s4); /* resultid */
if ((PGSQLres=find_identifier(id,AST_PGSQL_ID_RESID))==NULL) {
ast_log(LOG_WARNING,"Invalid result identifier %d passed in aPGSQL_fetch\n",id);
res=-1;
break;
}
id=atoi(s7); //fetchid
id=atoi(s7); /*fetchid */
if ((lalares=find_identifier(id,AST_PGSQL_ID_FETCHID))==NULL) {
i=0;
i=0; /* fetching the very first row */
} else {
i=*lalares;
free(lalares);
del_identifier(id,AST_PGSQL_ID_FETCHID);
del_identifier(id,AST_PGSQL_ID_FETCHID); /* will re-add it a bit later */
}
if (i<PQntuples(PGSQLres)) {
nres=PQnfields(PGSQLres);
ast_log(LOG_WARNING,"ast_PGSQL_fetch : nres = %d i = %d ;\n",nres,i);
for (j=0;j<nres;j++) {
@@ -363,7 +377,6 @@ static int aPGSQL_fetch(struct ast_channel *chan, void *data) {
ast_log(LOG_WARNING,"ast_PGSQL_fetch : More tuples (%d) than variables (%d)\n",nres,j);
break;
}
s6=PQgetvalue(PGSQLres,i,j);
if (s6==NULL) {
ast_log(LOG_WARNING,"PWgetvalue(res,%d,%d) returned NULL in ast_PGSQL_fetch\n",i,j);
@@ -372,18 +385,16 @@ static int aPGSQL_fetch(struct ast_channel *chan, void *data) {
ast_log(LOG_WARNING,"===setting variable '%s' to '%s'\n",s5,s6);
pbx_builtin_setvar_helper(chan,s5,s6);
}
i++;
if (i<PQntuples(PGSQLres)) {
lalares=malloc(sizeof(int));
*lalares=i;
id1=add_identifier(AST_PGSQL_ID_FETCHID,lalares);
*lalares = ++i; /* advance to the next row */
id1 = add_identifier(AST_PGSQL_ID_FETCHID,lalares);
} else {
id1=0;
ast_log(LOG_WARNING,"ast_PGSQL_fetch : EOF\n");
id1 = 0; /* no more rows */
}
s5=&s[0];
sprintf(s5,"%d",id1);
ast_log(LOG_WARNING,"Setting var '%s' to value '%s'\n",s3,s);
pbx_builtin_setvar_helper(chan,s3,s);
snprintf(s, sizeof(s), "%d", id1);
ast_log(LOG_WARNING,"Setting var '%s' to value '%s'\n",fetchid_var,s);
pbx_builtin_setvar_helper(chan,fetchid_var,s);
break;
}
@@ -403,9 +414,9 @@ static int aPGSQL_reset(struct ast_channel *chan, void *data) {
l=strlen(data)+2;
s1=malloc(l);
strcpy(s1,data);
strncpy(s1, data, l - 1);
stringp=s1;
strsep(&stringp," "); // eat the first token, we already know it :P
strsep(&stringp," "); /* eat the first token, we already know it :P */
s3=strsep(&stringp," ");
id=atoi(s3);
if ((karoto=find_identifier(id,AST_PGSQL_ID_CONNID))==NULL) {
@@ -429,9 +440,9 @@ static int aPGSQL_clear(struct ast_channel *chan, void *data) {
l=strlen(data)+2;
s1=malloc(l);
strcpy(s1,data);
strncpy(s1, data, l - 1);
stringp=s1;
strsep(&stringp," "); // eat the first token, we already know it :P
strsep(&stringp," "); /* eat the first token, we already know it :P */
s3=strsep(&stringp," ");
id=atoi(s3);
if ((karoto=find_identifier(id,AST_PGSQL_ID_RESID))==NULL) {
@@ -459,9 +470,9 @@ static int aPGSQL_disconnect(struct ast_channel *chan, void *data) {
l=strlen(data)+2;
s1=malloc(l);
strcpy(s1,data);
strncpy(s1, data, l - 1);
stringp=s1;
strsep(&stringp," "); // eat the first token, we already know it :P
strsep(&stringp," "); /* eat the first token, we already know it :P */
s3=strsep(&stringp," ");
id=atoi(s3);
if ((karoto=find_identifier(id,AST_PGSQL_ID_CONNID))==NULL) {
@@ -487,6 +498,10 @@ static int PGSQL_exec(struct ast_channel *chan, void *data)
struct localuser *u;
int result;
#if EXTRA_LOG
printf("PRSQL_exec: data=%s\n",(char*)data);
#endif
if (!data) {
ast_log(LOG_WARNING, "APP_PGSQL requires an argument (see manual)\n");
return -1;

49
apps/app_striplsd.c Executable file → Normal file
View File

@@ -11,19 +11,21 @@
* the GNU General Public License
*/
#include <sys/types.h>
#include <asterisk/file.h>
#include <asterisk/logger.h>
#include <asterisk/channel.h>
#include <asterisk/pbx.h>
#include <asterisk/module.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <sys/types.h>
#include <pthread.h>
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/file.h"
#include "asterisk/logger.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
#include "asterisk/lock.h"
static char *tdesc = "Strip trailing digits";
@@ -47,16 +49,27 @@ LOCAL_USER_DECL;
static int striplsd_exec(struct ast_channel *chan, void *data)
{
char newexten[AST_MAX_EXTENSION] = "";
if (!data || !atoi(data)) {
ast_log(LOG_DEBUG, "Ignoring, since number of digits to strip is 0\n");
return 0;
}
if (strlen(chan->exten) > atoi(data)) {
strncpy(newexten, chan->exten, strlen(chan->exten)-atoi(data));
}
strncpy(chan->exten, newexten, sizeof(chan->exten)-1);
return 0;
char newexten[AST_MAX_EXTENSION] = "";
int maxbytes = 0;
int stripcount = 0;
int extlen = strlen(chan->exten);
maxbytes = sizeof(newexten) - 1;
if (data) {
stripcount = atoi(data);
}
if (!stripcount) {
ast_log(LOG_DEBUG, "Ignoring, since number of digits to strip is 0\n");
return 0;
}
if (extlen > stripcount) {
if (extlen - stripcount <= maxbytes) {
maxbytes = extlen - stripcount;
}
strncpy(newexten, chan->exten, maxbytes);
}
strncpy(chan->exten, newexten, sizeof(chan->exten)-1);
return 0;
}
int unload_module(void)

26
apps/app_substring.c Executable file → Normal file
View File

@@ -12,23 +12,28 @@
*/
#include <sys/types.h>
#include <asterisk/file.h>
#include <asterisk/logger.h>
#include <asterisk/channel.h>
#include <asterisk/pbx.h>
#include <asterisk/module.h>
#include <asterisk/pbx.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <pthread.h>
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
static char *tdesc = "Save substring digits in a given variable";
#include "asterisk/file.h"
#include "asterisk/logger.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
#include "asterisk/pbx.h"
#include "asterisk/lock.h"
static char *tdesc = "(Deprecated) Save substring digits in a given variable";
static char *descrip =
" (Deprecated, use ${variable:a:b} instead)\n"
"\n"
" SubString(variable=string_of_digits|count1|count2): Assigns the substring\n"
"of string_of_digits to a given variable. Parameter count1 may be positive\n"
"or negative. If it's positive then we skip the first count1 digits from the\n"
@@ -48,7 +53,7 @@ static char *descrip =
static char *app = "SubString";
static char *synopsis = "Save substring digits in a given variable";
static char *synopsis = "(Deprecated) Save substring digits in a given variable";
STANDARD_LOCAL_USER;
@@ -59,9 +64,10 @@ static int substring_exec(struct ast_channel *chan, void *data)
char newexten[AST_MAX_EXTENSION] = "";
char *count1, *count2;
char *first, *second, *stringp;
stringp=alloca(strlen(data)+1);
ast_log(LOG_WARNING, "The use of Substring application is deprecated. Please use ${variable:a:b} instead\n");
strncpy(stringp,data,strlen(data)+1);
strncpy(stringp,data,strlen(data));
if (strchr(stringp,'|')&&strchr(stringp,'=')) {
int icount1,icount2;
first=strsep(&stringp,"=");

61
apps/app_system.c Executable file → Normal file
View File

@@ -3,34 +3,42 @@
*
* Execute arbitrary system commands
*
* Copyright (C) 1999, Mark Spencer
* Copyright (C) 1999 - 2005, Digium, Inc.
*
* Mark Spencer <markster@linux-support.net>
* Mark Spencer <markster@digium.com>
*
* This program is free software, distributed under the terms of
* the GNU General Public License
*/
#include <asterisk/lock.h>
#include <asterisk/file.h>
#include <asterisk/logger.h>
#include <asterisk/channel.h>
#include <asterisk/pbx.h>
#include <asterisk/module.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <errno.h>
#include <pthread.h>
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/lock.h"
#include "asterisk/file.h"
#include "asterisk/logger.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
#include "asterisk/app.h"
static char *tdesc = "Generic System() application";
static char *app = "System";
static char *app2 = "TrySystem";
static char *synopsis = "Execute a system command";
static char *synopsis2 = "Try executing a system command";
static char *descrip =
" System(command): Executes a command by using system(). Returns -1 on\n"
"failure to execute the specified command. If the command itself executes\n"
@@ -38,29 +46,38 @@ static char *descrip =
"priority of the current instance, then the channel will be setup to\n"
"continue at that priority level. Otherwise, System returns 0.\n";
static char *descrip2 =
" TrySystem(command): Executes a command by using system(). Returns 0\n"
"on any situation. If the command itself executes but is in error, and if\n"
"there exists a priority n + 101, where 'n' is the priority of the current\n"
"instance, then the channel will be setup to continue at that\n"
"priority level. Otherwise, System returns 0.\n";
STANDARD_LOCAL_USER;
LOCAL_USER_DECL;
static int system_exec(struct ast_channel *chan, void *data)
static int system_exec_helper(struct ast_channel *chan, void *data, int failmode)
{
int res=0;
struct localuser *u;
if (!data) {
ast_log(LOG_WARNING, "System requires an argument(command)\n");
return -1;
return failmode;
}
LOCAL_USER_ADD(u);
/* Do our thing here */
res = system((char *)data);
if (res < 0) {
res = ast_safe_system((char *)data);
if ((res < 0) && (errno != ECHILD)) {
ast_log(LOG_WARNING, "Unable to execute '%s'\n", (char *)data);
res = -1;
res = failmode;
} else if (res == 127) {
ast_log(LOG_WARNING, "Unable to execute '%s'\n", (char *)data);
res = -1;
res = failmode;
} else {
if (res && ast_exists_extension(chan, chan->context, chan->exten, chan->priority + 101, chan->callerid))
if (res < 0)
res = 0;
if (res && ast_exists_extension(chan, chan->context, chan->exten, chan->priority + 101, chan->cid.cid_num))
chan->priority+=100;
res = 0;
}
@@ -68,14 +85,26 @@ static int system_exec(struct ast_channel *chan, void *data)
return res;
}
static int system_exec(struct ast_channel *chan, void *data)
{
return system_exec_helper(chan, data, -1);
}
static int trysystem_exec(struct ast_channel *chan, void *data)
{
return system_exec_helper(chan, data, 0);
}
int unload_module(void)
{
STANDARD_HANGUP_LOCALUSERS;
ast_unregister_application(app2);
return ast_unregister_application(app);
}
int load_module(void)
{
ast_register_application(app2, trysystem_exec, synopsis2, descrip2);
return ast_register_application(app, system_exec, synopsis, descrip);
}

227
apps/app_talkdetect.c Normal file
View File

@@ -0,0 +1,227 @@
/*
* Asterisk -- A telephony toolkit for Linux.
*
* Playback a file with audio detect
*
* Copyright (C) 2004 - 2005, Digium, Inc.
*
* Mark Spencer <markster@digium.com>
*
* This program is free software, distributed under the terms of
* the GNU General Public License
*/
#include <string.h>
#include <stdlib.h>
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/lock.h"
#include "asterisk/file.h"
#include "asterisk/logger.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
#include "asterisk/translate.h"
#include "asterisk/utils.h"
#include "asterisk/dsp.h"
static char *tdesc = "Playback with Talk Detection";
static char *app = "BackgroundDetect";
static char *synopsis = "Background a file with talk detect";
static char *descrip =
" BackgroundDetect(filename[|sil[|min|[max]]]): Plays back a given\n"
"filename, waiting for interruption from a given digit (the digit must\n"
"start the beginning of a valid extension, or it will be ignored).\n"
"During the playback of the file, audio is monitored in the receive\n"
"direction, and if a period of non-silence which is greater than 'min' ms\n"
"yet less than 'max' ms is followed by silence for at least 'sil' ms then\n"
"the audio playback is aborted and processing jumps to the 'talk' extension\n"
"if available. If unspecified, sil, min, and max default to 1000, 100, and\n"
"infinity respectively. Returns -1 on hangup, and 0 on successful playback\n"
"completion with no exit conditions.\n";
STANDARD_LOCAL_USER;
LOCAL_USER_DECL;
static int background_detect_exec(struct ast_channel *chan, void *data)
{
int res = 0;
struct localuser *u;
char tmp[256];
char *options;
char *stringp;
struct ast_frame *fr;
int notsilent=0;
struct timeval start = { 0, 0};
int sil = 1000;
int min = 100;
int max = -1;
int x;
int origrformat=0;
struct ast_dsp *dsp;
if (!data || ast_strlen_zero((char *)data)) {
ast_log(LOG_WARNING, "BackgroundDetect requires an argument (filename)\n");
return -1;
}
ast_copy_string(tmp, (char *)data, sizeof(tmp));
stringp=tmp;
strsep(&stringp, "|");
options = strsep(&stringp, "|");
if (options) {
if ((sscanf(options, "%d", &x) == 1) && (x > 0))
sil = x;
options = strsep(&stringp, "|");
if (options) {
if ((sscanf(options, "%d", &x) == 1) && (x > 0))
min = x;
options = strsep(&stringp, "|");
if (options) {
if ((sscanf(options, "%d", &x) == 1) && (x > 0))
max = x;
}
}
}
ast_log(LOG_DEBUG, "Preparing detect of '%s', sil=%d,min=%d,max=%d\n",
tmp, sil, min, max);
LOCAL_USER_ADD(u);
if (chan->_state != AST_STATE_UP) {
/* Otherwise answer unless we're supposed to send this while on-hook */
res = ast_answer(chan);
}
if (!res) {
origrformat = chan->readformat;
if ((res = ast_set_read_format(chan, AST_FORMAT_SLINEAR)))
ast_log(LOG_WARNING, "Unable to set read format to linear!\n");
}
if (!(dsp = ast_dsp_new())) {
ast_log(LOG_WARNING, "Unable to allocate DSP!\n");
res = -1;
}
if (!res) {
ast_stopstream(chan);
res = ast_streamfile(chan, tmp, chan->language);
if (!res) {
while(chan->stream) {
res = ast_sched_wait(chan->sched);
if ((res < 0) && !chan->timingfunc) {
res = 0;
break;
}
if (res < 0)
res = 1000;
res = ast_waitfor(chan, res);
if (res < 0) {
ast_log(LOG_WARNING, "Waitfor failed on %s\n", chan->name);
break;
} else if (res > 0) {
fr = ast_read(chan);
if (!fr) {
res = -1;
break;
} else if (fr->frametype == AST_FRAME_DTMF) {
char t[2];
t[0] = fr->subclass;
t[1] = '\0';
if (ast_canmatch_extension(chan, chan->context, t, 1, chan->cid.cid_num)) {
/* They entered a valid extension, or might be anyhow */
res = fr->subclass;
ast_frfree(fr);
break;
}
} else if ((fr->frametype == AST_FRAME_VOICE) && (fr->subclass == AST_FORMAT_SLINEAR)) {
int totalsilence;
int ms;
res = ast_dsp_silence(dsp, fr, &totalsilence);
if (res && (totalsilence > sil)) {
/* We've been quiet a little while */
if (notsilent) {
/* We had heard some talking */
ms = ast_tvdiff_ms(ast_tvnow(), start);
ms -= sil;
if (ms < 0)
ms = 0;
if ((ms > min) && ((max < 0) || (ms < max))) {
char ms_str[10];
ast_log(LOG_DEBUG, "Found qualified token of %d ms\n", ms);
/* Save detected talk time (in milliseconds) */
sprintf(ms_str, "%d", ms );
pbx_builtin_setvar_helper(chan, "TALK_DETECTED", ms_str);
if (ast_exists_extension(chan, chan->context, "talk", 1, chan->cid.cid_num)) {
ast_copy_string(chan->exten, "talk", sizeof(chan->exten));
chan->priority = 0;
}
res = 0;
ast_frfree(fr);
break;
} else
ast_log(LOG_DEBUG, "Found unqualified token of %d ms\n", ms);
notsilent = 0;
}
} else {
if (!notsilent) {
/* Heard some audio, mark the begining of the token */
start = ast_tvnow();
ast_log(LOG_DEBUG, "Start of voice token!\n");
notsilent = 1;
}
}
}
ast_frfree(fr);
}
ast_sched_runq(chan->sched);
}
ast_stopstream(chan);
} else {
ast_log(LOG_WARNING, "ast_streamfile failed on %s for %s\n", chan->name, (char *)data);
res = 0;
}
}
if (res > -1) {
if (origrformat && ast_set_read_format(chan, origrformat)) {
ast_log(LOG_WARNING, "Failed to restore read format for %s to %s\n",
chan->name, ast_getformatname(origrformat));
}
}
if (dsp)
ast_dsp_free(dsp);
LOCAL_USER_REMOVE(u);
return res;
}
int unload_module(void)
{
STANDARD_HANGUP_LOCALUSERS;
return ast_unregister_application(app);
}
int load_module(void)
{
return ast_register_application(app, background_detect_exec, synopsis, descrip);
}
char *description(void)
{
return tdesc;
}
int usecount(void)
{
int res;
STANDARD_USECOUNT(res);
return res;
}
char *key()
{
return ASTERISK_GPL_KEY;
}

506
apps/app_test.c Normal file
View File

@@ -0,0 +1,506 @@
/*
* Asterisk -- A telephony toolkit for Linux.
*
* Applications to test connection and produce report in text file
*
* Copyright (C) 2004 - 2005, Digium, Inc.
*
* Mark Spencer <markster@digium.com>
* Russell Bryant <russelb@clemson.edu>
*
* This program is free software, distributed under the terms of
* the GNU General Public License
*/
#include <sys/types.h>
#include <sys/stat.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/channel.h"
#include "asterisk/options.h"
#include "asterisk/module.h"
#include "asterisk/logger.h"
#include "asterisk/lock.h"
#include "asterisk/app.h"
#include "asterisk/pbx.h"
#include "asterisk/utils.h"
static char *tdesc = "Interface Test Application";
static char *tests_descrip =
"TestServer(): Perform test server function and write call report.\n"
"Results stored in /var/log/asterisk/testreports/<testid>-server.txt";
static char *tests_app = "TestServer";
static char *tests_synopsis = "Execute Interface Test Server";
static char *testc_descrip =
"TestClient(testid): Executes test client with given testid.\n"
"Results stored in /var/log/asterisk/testreports/<testid>-client.txt";
static char *testc_app = "TestClient";
static char *testc_synopsis = "Execute Interface Test Client";
static int measurenoise(struct ast_channel *chan, int ms, char *who)
{
int res=0;
int mssofar;
int noise=0;
int samples=0;
int x;
short *foo;
struct timeval start;
struct ast_frame *f;
int rformat;
rformat = chan->readformat;
if (ast_set_read_format(chan, AST_FORMAT_SLINEAR)) {
ast_log(LOG_NOTICE, "Unable to set to linear mode!\n");
return -1;
}
start = ast_tvnow();
for(;;) {
mssofar = ast_tvdiff_ms(ast_tvnow(), start);
if (mssofar > ms)
break;
res = ast_waitfor(chan, ms - mssofar);
if (res < 1)
break;
f = ast_read(chan);
if (!f) {
res = -1;
break;
}
if ((f->frametype == AST_FRAME_VOICE) && (f->subclass == AST_FORMAT_SLINEAR)) {
foo = (short *)f->data;
for (x=0;x<f->samples;x++) {
noise += abs(foo[x]);
samples++;
}
}
}
if (rformat) {
if (ast_set_read_format(chan, rformat)) {
ast_log(LOG_NOTICE, "Unable to restore original format!\n");
return -1;
}
}
if (res < 0)
return res;
if (!samples) {
ast_log(LOG_NOTICE, "No samples were received from the other side!\n");
return -1;
}
ast_log(LOG_DEBUG, "%s: Noise: %d, samples: %d, avg: %d\n", who, noise, samples, noise / samples);
return (noise / samples);
}
static int sendnoise(struct ast_channel *chan, int ms)
{
int res;
res = ast_tonepair_start(chan, 1537, 2195, ms, 8192);
if (!res) {
res = ast_waitfordigit(chan, ms);
ast_tonepair_stop(chan);
}
return res;
}
STANDARD_LOCAL_USER;
LOCAL_USER_DECL;
static int testclient_exec(struct ast_channel *chan, void *data)
{
struct localuser *u;
int res = 0;
char *testid=data;
char fn[80];
char serverver[80];
FILE *f;
LOCAL_USER_ADD(u);
/* Check for test id */
if (!testid || ast_strlen_zero(testid)) {
ast_log(LOG_WARNING, "TestClient requires an argument - the test id\n");
return -1;
}
if (chan->_state != AST_STATE_UP)
res = ast_answer(chan);
/* Wait a few just to be sure things get started */
res = ast_safe_sleep(chan, 3000);
/* Transmit client version */
if (!res)
res = ast_dtmf_stream(chan, NULL, "8378*1#", 0);
if (option_debug)
ast_log(LOG_DEBUG, "Transmit client version\n");
/* Read server version */
if (option_debug)
ast_log(LOG_DEBUG, "Read server version\n");
if (!res)
res = ast_app_getdata(chan, NULL, serverver, sizeof(serverver) - 1, 0);
if (res > 0)
res = 0;
if (option_debug)
ast_log(LOG_DEBUG, "server version: %s\n", serverver);
if (res > 0)
res = 0;
if (!res)
res = ast_safe_sleep(chan, 1000);
/* Send test id */
if (!res)
res = ast_dtmf_stream(chan, NULL, testid, 0);
if (!res)
res = ast_dtmf_stream(chan, NULL, "#", 0);
if (option_debug)
ast_log(LOG_DEBUG, "send test identifier: %s\n", testid);
if ((res >=0) && (!ast_strlen_zero(testid))) {
/* Make the directory to hold the test results in case it's not there */
snprintf(fn, sizeof(fn), "%s/testresults", ast_config_AST_LOG_DIR);
mkdir(fn, 0777);
snprintf(fn, sizeof(fn), "%s/testresults/%s-client.txt", ast_config_AST_LOG_DIR, testid);
if ((f = fopen(fn, "w+"))) {
setlinebuf(f);
fprintf(f, "CLIENTCHAN: %s\n", chan->name);
fprintf(f, "CLIENTTEST ID: %s\n", testid);
fprintf(f, "ANSWER: PASS\n");
res = 0;
if (!res) {
/* Step 1: Wait for "1" */
if (option_debug)
ast_log(LOG_DEBUG, "TestClient: 2. Wait DTMF 1\n");
res = ast_waitfordigit(chan, 3000);
fprintf(f, "WAIT DTMF 1: %s\n", (res != '1') ? "FAIL" : "PASS");
if (res == '1')
res = 0;
else
res = -1;
}
if (!res)
res = ast_safe_sleep(chan, 1000);
if (!res) {
/* Step 2: Send "2" */
if (option_debug)
ast_log(LOG_DEBUG, "TestClient: 2. Send DTMF 2\n");
res = ast_dtmf_stream(chan, NULL, "2", 0);
fprintf(f, "SEND DTMF 2: %s\n", (res < 0) ? "FAIL" : "PASS");
if (res > 0)
res = 0;
}
if (!res) {
/* Step 3: Wait one second */
if (option_debug)
ast_log(LOG_DEBUG, "TestClient: 3. Wait one second\n");
res = ast_safe_sleep(chan, 1000);
fprintf(f, "WAIT 1 SEC: %s\n", (res < 0) ? "FAIL" : "PASS");
if (res > 0)
res = 0;
}
if (!res) {
/* Step 4: Measure noise */
if (option_debug)
ast_log(LOG_DEBUG, "TestClient: 4. Measure noise\n");
res = measurenoise(chan, 5000, "TestClient");
fprintf(f, "MEASURENOISE: %s (%d)\n", (res < 0) ? "FAIL" : "PASS", res);
if (res > 0)
res = 0;
}
if (!res) {
/* Step 5: Wait for "4" */
if (option_debug)
ast_log(LOG_DEBUG, "TestClient: 5. Wait DTMF 4\n");
res = ast_waitfordigit(chan, 3000);
fprintf(f, "WAIT DTMF 4: %s\n", (res != '4') ? "FAIL" : "PASS");
if (res == '4')
res = 0;
else
res = -1;
}
if (!res) {
/* Step 6: Transmit tone noise */
if (option_debug)
ast_log(LOG_DEBUG, "TestClient: 6. Transmit tone\n");
res = sendnoise(chan, 6000);
fprintf(f, "SENDTONE: %s\n", (res < 0) ? "FAIL" : "PASS");
}
if (!res || (res == '5')) {
/* Step 7: Wait for "5" */
if (option_debug)
ast_log(LOG_DEBUG, "TestClient: 7. Wait DTMF 5\n");
if (!res)
res = ast_waitfordigit(chan, 3000);
fprintf(f, "WAIT DTMF 5: %s\n", (res != '5') ? "FAIL" : "PASS");
if (res == '5')
res = 0;
else
res = -1;
}
if (!res) {
/* Step 8: Wait one second */
if (option_debug)
ast_log(LOG_DEBUG, "TestClient: 8. Wait one second\n");
res = ast_safe_sleep(chan, 1000);
fprintf(f, "WAIT 1 SEC: %s\n", (res < 0) ? "FAIL" : "PASS");
if (res > 0)
res = 0;
}
if (!res) {
/* Step 9: Measure noise */
if (option_debug)
ast_log(LOG_DEBUG, "TestClient: 6. Measure tone\n");
res = measurenoise(chan, 4000, "TestClient");
fprintf(f, "MEASURETONE: %s (%d)\n", (res < 0) ? "FAIL" : "PASS", res);
if (res > 0)
res = 0;
}
if (!res) {
/* Step 10: Send "7" */
if (option_debug)
ast_log(LOG_DEBUG, "TestClient: 7. Send DTMF 7\n");
res = ast_dtmf_stream(chan, NULL, "7", 0);
fprintf(f, "SEND DTMF 7: %s\n", (res < 0) ? "FAIL" : "PASS");
if (res > 0)
res =0;
}
if (!res) {
/* Step 11: Wait for "8" */
if (option_debug)
ast_log(LOG_DEBUG, "TestClient: 11. Wait DTMF 8\n");
res = ast_waitfordigit(chan, 3000);
fprintf(f, "WAIT DTMF 8: %s\n", (res != '8') ? "FAIL" : "PASS");
if (res == '8')
res = 0;
else
res = -1;
}
if (option_debug && !res ) {
/* Step 12: Hangup! */
ast_log(LOG_DEBUG, "TestClient: 12. Hangup\n");
}
if (option_debug)
ast_log(LOG_DEBUG, "-- TEST COMPLETE--\n");
fprintf(f, "-- END TEST--\n");
fclose(f);
res = -1;
} else
res = -1;
} else {
ast_log(LOG_NOTICE, "Did not read a test ID on '%s'\n", chan->name);
res = -1;
}
LOCAL_USER_REMOVE(u);
return res;
}
static int testserver_exec(struct ast_channel *chan, void *data)
{
struct localuser *u;
int res = 0;
char testid[80]="";
char fn[80];
FILE *f;
LOCAL_USER_ADD(u);
if (chan->_state != AST_STATE_UP)
res = ast_answer(chan);
/* Read version */
if (option_debug)
ast_log(LOG_DEBUG, "Read client version\n");
if (!res)
res = ast_app_getdata(chan, NULL, testid, sizeof(testid) - 1, 0);
if (res > 0)
res = 0;
if (option_debug) {
ast_log(LOG_DEBUG, "client version: %s\n", testid);
ast_log(LOG_DEBUG, "Transmit server version\n");
}
res = ast_safe_sleep(chan, 1000);
if (!res)
res = ast_dtmf_stream(chan, NULL, "8378*1#", 0);
if (res > 0)
res = 0;
if (!res)
res = ast_app_getdata(chan, NULL, testid, sizeof(testid) - 1, 0);
if (option_debug)
ast_log(LOG_DEBUG, "read test identifier: %s\n", testid);
/* Check for sneakyness */
if (strchr(testid, '/'))
res = -1;
if ((res >=0) && (!ast_strlen_zero(testid))) {
/* Got a Test ID! Whoo hoo! */
/* Make the directory to hold the test results in case it's not there */
snprintf(fn, sizeof(fn), "%s/testresults", ast_config_AST_LOG_DIR);
mkdir(fn, 0777);
snprintf(fn, sizeof(fn), "%s/testresults/%s-server.txt", ast_config_AST_LOG_DIR, testid);
if ((f = fopen(fn, "w+"))) {
setlinebuf(f);
fprintf(f, "SERVERCHAN: %s\n", chan->name);
fprintf(f, "SERVERTEST ID: %s\n", testid);
fprintf(f, "ANSWER: PASS\n");
ast_log(LOG_DEBUG, "Processing Test ID '%s'\n", testid);
res = ast_safe_sleep(chan, 1000);
if (!res) {
/* Step 1: Send "1" */
if (option_debug)
ast_log(LOG_DEBUG, "TestServer: 1. Send DTMF 1\n");
res = ast_dtmf_stream(chan, NULL, "1", 0);
fprintf(f, "SEND DTMF 1: %s\n", (res < 0) ? "FAIL" : "PASS");
if (res > 0)
res = 0;
}
if (!res) {
/* Step 2: Wait for "2" */
if (option_debug)
ast_log(LOG_DEBUG, "TestServer: 2. Wait DTMF 2\n");
res = ast_waitfordigit(chan, 3000);
fprintf(f, "WAIT DTMF 2: %s\n", (res != '2') ? "FAIL" : "PASS");
if (res == '2')
res = 0;
else
res = -1;
}
if (!res) {
/* Step 3: Measure noise */
if (option_debug)
ast_log(LOG_DEBUG, "TestServer: 3. Measure noise\n");
res = measurenoise(chan, 6000, "TestServer");
fprintf(f, "MEASURENOISE: %s (%d)\n", (res < 0) ? "FAIL" : "PASS", res);
if (res > 0)
res = 0;
}
if (!res) {
/* Step 4: Send "4" */
if (option_debug)
ast_log(LOG_DEBUG, "TestServer: 4. Send DTMF 4\n");
res = ast_dtmf_stream(chan, NULL, "4", 0);
fprintf(f, "SEND DTMF 4: %s\n", (res < 0) ? "FAIL" : "PASS");
if (res > 0)
res = 0;
}
if (!res) {
/* Step 5: Wait one second */
if (option_debug)
ast_log(LOG_DEBUG, "TestServer: 5. Wait one second\n");
res = ast_safe_sleep(chan, 1000);
fprintf(f, "WAIT 1 SEC: %s\n", (res < 0) ? "FAIL" : "PASS");
if (res > 0)
res = 0;
}
if (!res) {
/* Step 6: Measure noise */
if (option_debug)
ast_log(LOG_DEBUG, "TestServer: 6. Measure tone\n");
res = measurenoise(chan, 4000, "TestServer");
fprintf(f, "MEASURETONE: %s (%d)\n", (res < 0) ? "FAIL" : "PASS", res);
if (res > 0)
res = 0;
}
if (!res) {
/* Step 7: Send "5" */
if (option_debug)
ast_log(LOG_DEBUG, "TestServer: 7. Send DTMF 5\n");
res = ast_dtmf_stream(chan, NULL, "5", 0);
fprintf(f, "SEND DTMF 5: %s\n", (res < 0) ? "FAIL" : "PASS");
if (res > 0)
res = 0;
}
if (!res) {
/* Step 8: Transmit tone noise */
if (option_debug)
ast_log(LOG_DEBUG, "TestServer: 8. Transmit tone\n");
res = sendnoise(chan, 6000);
fprintf(f, "SENDTONE: %s\n", (res < 0) ? "FAIL" : "PASS");
}
if (!res || (res == '7')) {
/* Step 9: Wait for "7" */
if (option_debug)
ast_log(LOG_DEBUG, "TestServer: 9. Wait DTMF 7\n");
if (!res)
res = ast_waitfordigit(chan, 3000);
fprintf(f, "WAIT DTMF 7: %s\n", (res != '7') ? "FAIL" : "PASS");
if (res == '7')
res = 0;
else
res = -1;
}
if (!res)
res = ast_safe_sleep(chan, 1000);
if (!res) {
/* Step 10: Send "8" */
if (option_debug)
ast_log(LOG_DEBUG, "TestServer: 10. Send DTMF 8\n");
res = ast_dtmf_stream(chan, NULL, "8", 0);
fprintf(f, "SEND DTMF 8: %s\n", (res < 0) ? "FAIL" : "PASS");
if (res > 0)
res = 0;
}
if (!res) {
/* Step 11: Wait for hangup to arrive! */
if (option_debug)
ast_log(LOG_DEBUG, "TestServer: 11. Waiting for hangup\n");
res = ast_safe_sleep(chan, 10000);
fprintf(f, "WAIT HANGUP: %s\n", (res < 0) ? "PASS" : "FAIL");
}
ast_log(LOG_NOTICE, "-- TEST COMPLETE--\n");
fprintf(f, "-- END TEST--\n");
fclose(f);
res = -1;
} else
res = -1;
} else {
ast_log(LOG_NOTICE, "Did not read a test ID on '%s'\n", chan->name);
res = -1;
}
LOCAL_USER_REMOVE(u);
return res;
}
int unload_module(void)
{
STANDARD_HANGUP_LOCALUSERS;
ast_unregister_application(testc_app);
return ast_unregister_application(tests_app);
}
int load_module(void)
{
ast_register_application(testc_app, testclient_exec, testc_synopsis, testc_descrip);
return ast_register_application(tests_app, testserver_exec, tests_synopsis, tests_descrip);
}
char *description(void)
{
return tdesc;
}
int usecount(void)
{
int res;
STANDARD_USECOUNT(res);
return res;
}
char *key(void)
{
return ASTERISK_GPL_KEY;
}

108
apps/app_transfer.c Executable file → Normal file
View File

@@ -1,41 +1,53 @@
/*
* Asterisk -- A telephony toolkit for Linux.
*
* Time of day - Report the time of day
* Transfer a caller
*
* Copyright (C) 1999, Mark Spencer
* Copyright (C) 1999 - 2005, Digium, Inc.
*
* Mark Spencer <markster@linux-support.net>
* Mark Spencer <markster@digium.com>
*
* This program is free software, distributed under the terms of
* the GNU General Public License
*/
#include <asterisk/lock.h>
#include <asterisk/file.h>
#include <asterisk/logger.h>
#include <asterisk/channel.h>
#include <asterisk/pbx.h>
#include <asterisk/module.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <pthread.h>
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
static char *tdesc = "Transfer";
#include "asterisk/lock.h"
#include "asterisk/file.h"
#include "asterisk/logger.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
#include "asterisk/options.h"
static char *app = "Transfer";
static const char *tdesc = "Transfer";
static char *synopsis = "Transfer caller to remote extension";
static const char *app = "Transfer";
static char *descrip =
" Transfer(exten): Requests the remote caller be transferred to\n"
"a given extension. Returns -1 on hangup, or 0 on completion\n"
"regardless of whether the transfer was successful. If the transfer\n"
"was *not* supported or successful and there exists a priority n + 101,\n"
static const char *synopsis = "Transfer caller to remote extension";
static const char *descrip =
" Transfer([Tech/]dest): Requests the remote caller be transfered\n"
"to a given extension. If TECH (SIP, IAX2, LOCAL etc) is used, only\n"
"an incoming call with the same channel technology will be transfered.\n"
"Note that for SIP, if you transfer before call is setup, a 302 redirect\n"
"SIP message will be returned to the caller.\n"
"\nThe result of the application will be reported in the TRANSFERSTATUS\n"
"channel variable:\n"
" SUCCESS Transfer succeeded\n"
" FAILURE Transfer failed\n"
" UNSUPPORTED Transfer unsupported by channel driver\n"
"Returns -1 on hangup, or 0 on completion regardless of whether the\n"
"transfer was successful.\n\n"
"Old depraciated behaviour: If the transfer was *not* supported or\n"
"successful and there exists a priority n + 101,\n"
"then that priority will be taken next.\n" ;
STANDARD_LOCAL_USER;
@@ -44,30 +56,60 @@ LOCAL_USER_DECL;
static int transfer_exec(struct ast_channel *chan, void *data)
{
int res=0;
int res;
int len;
struct localuser *u;
if (!data || !strlen(data)) {
ast_log(LOG_WARNING, "Transfer requires an argument (destination)\n");
res = 1;
char *slash;
char *tech = NULL;
char *dest = data;
char *status;
if (!dest || ast_strlen_zero(dest)) {
ast_log(LOG_WARNING, "Transfer requires an argument ([Tech/]destination)\n");
pbx_builtin_setvar_helper(chan, "TRANSFERSTATUS", "FAILURE");
return 0;
}
if ((slash = strchr(dest, '/')) && (len = (slash - dest))) {
tech = dest;
dest = slash + 1;
/* Allow execution only if the Tech/destination agrees with the type of the channel */
if (strncasecmp(chan->type, tech, len)) {
pbx_builtin_setvar_helper(chan, "TRANSFERSTATUS", "FAILURE");
return 0;
}
}
/* Check if the channel supports transfer before we try it */
if (!chan->tech->transfer) {
pbx_builtin_setvar_helper(chan, "TRANSFERSTATUS", "UNSUPPORTED");
return 0;
}
LOCAL_USER_ADD(u);
res = ast_transfer(chan, dest);
if (!res) {
res = ast_transfer(chan, data);
}
if (!res) {
/* Look for a "busy" place */
if (ast_exists_extension(chan, chan->context, chan->exten, chan->priority + 101, chan->callerid))
chan->priority += 100;
}
if (res > 0)
status = "FAILURE";
if (option_priority_jumping)
ast_goto_if_exists(chan, chan->context, chan->exten, chan->priority + 101);
} else {
status = "SUCCESS";
res = 0;
}
pbx_builtin_setvar_helper(chan, "TRANSFERSTATUS", status);
LOCAL_USER_REMOVE(u);
return res;
}
int unload_module(void)
{
STANDARD_HANGUP_LOCALUSERS;
return ast_unregister_application(app);
}
@@ -78,13 +120,15 @@ int load_module(void)
char *description(void)
{
return tdesc;
return (char *) tdesc;
}
int usecount(void)
{
int res;
STANDARD_USECOUNT(res);
return res;
}

Some files were not shown because too many files have changed in this diff Show More