Commit graph

6056 commits

Author SHA1 Message Date
Kevin P. Fleming
9835bc4330 add ast_build_string_va(), which accepts a varargs list directly
ensure the _entire_ manager_event() output is either queued or sent via ast_carefulwrite()


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6708 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-01 15:41:27 +00:00
Russell Bryant
270b98d2f4 clarify option description (issue #5351)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6705 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-01 01:24:15 +00:00
Kevin P. Fleming
44a7b88d82 don't take session lock in astman_send_error() and astman_send_response(), since it is no longer needed
don't build authority string and event string for every session in manager_event(), do it only once


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6704 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-30 23:52:04 +00:00
Kevin P. Fleming
a08f3f75ff tell the user about invalid/unknown commands before sending queued events
s->challenge does not need to be protected by the lock, since only process_message() (and functions it calls) ever use it, and process_message() is a blocking operation by definition


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6703 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-30 23:44:12 +00:00
Kevin P. Fleming
7f429e3b02 ensure structure has enough space for embedded string
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6702 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-30 16:49:23 +00:00
Kevin P. Fleming
9d1fc454d4 properly clear out manager header structure between actions
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6701 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-30 16:27:14 +00:00
Kevin P. Fleming
834193c08a support a 'post install' script for local modifications after installation
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6700 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-30 14:48:41 +00:00
Kevin P. Fleming
e0680525e7 fix queues properly (issue #5300, take two)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6699 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-30 14:01:56 +00:00
Mark Spencer
2b883819be Fix manager bug (can't destroy a session while a thread is using it!)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6698 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-29 20:37:01 +00:00
Kevin P. Fleming
8e4697d8f2 ensure that peer codec preferences take precedence over global preferences
clean and simplify SDP-building code


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6697 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-29 17:41:00 +00:00
Kevin P. Fleming
62209ede0c code cleanups
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6696 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-29 17:40:24 +00:00
Kevin P. Fleming
7eb43aa05d re-factor variable/function name parsing, and add substring support to function results (issue #5284)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6695 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-29 04:39:14 +00:00
Mark Spencer
6c54fa36dd Print anomlies at free / show memory allocations time
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6694 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-29 04:34:11 +00:00
Kevin P. Fleming
d45b683bdd ensure that app_queue won't crash if no members are defined via Realtime (issue #5300)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6693 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-29 04:12:08 +00:00
Kevin P. Fleming
91b72f5ff0 ensure scheduling priority is inherited into new threads (issue #5293)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6692 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-29 04:08:18 +00:00
Kevin P. Fleming
3b7332c5e6 allow some more paths to be overridden on the command line (issue #5292)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6691 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-29 04:06:15 +00:00
Kevin P. Fleming
13519f72e7 support both regular and Feature Group D dialing syntax on EM_WINK trunks (issue #5323)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6690 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-29 03:25:25 +00:00
Kevin P. Fleming
35b5891b74 don't replace CLID/CNAM when RPID is being generated (issue #5301)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6689 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-29 03:12:46 +00:00
Kevin P. Fleming
61a0f7a65e install 'rasterisk' symlink and update process name when used remotely (issue #5318 with minor mod)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6688 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-29 02:38:24 +00:00
Mark Spencer
ea215f5b7d Remove possibility of manager deadlocks from manager actions
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6687 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-28 23:10:14 +00:00
Kevin P. Fleming
4287cb7f42 more whitespace fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6686 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-28 21:29:40 +00:00
Kevin P. Fleming
b450a235b2 more whitespace cleanup
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6685 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-28 21:23:54 +00:00
Kevin P. Fleming
f8f7d21252 whitespace fix
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6684 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-28 20:46:43 +00:00
Kevin P. Fleming
eb91322494 fix comment typo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6683 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-28 20:40:24 +00:00
Kevin P. Fleming
2685a48e37 missed a line...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6682 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-28 20:35:47 +00:00
Kevin P. Fleming
35c4afd0fd code cleanup
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6681 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-28 20:34:11 +00:00
Kevin P. Fleming
b40ba965d6 minor fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6680 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-28 20:26:41 +00:00
Kevin P. Fleming
b5e6b8af98 clean up formatting, use the same flag bit for both GR-303 modes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6679 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-28 20:06:22 +00:00
Russell Bryant
9f0cf49bca make sure to LOCAL_USER_REMOVE in all cases where the application can exit (issue #5307)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6678 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-28 19:42:36 +00:00
Russell Bryant
90aec0b0e3 fix logic error that breaks queue exit (issue #5312)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6677 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-28 19:33:00 +00:00
Russell Bryant
380005fea4 fix variable name (issue #5302)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6676 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-28 19:24:30 +00:00
Russell Bryant
3c020accfd don't declare the priority inside of the for loop so that the priority
can actually be switched at each iteration (issue #5319)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6675 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-28 19:18:48 +00:00
Mark Spencer
bca61024ca 486 (and friends) are really BUSY (bug #5257)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6674 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-28 04:08:57 +00:00
Kevin P. Fleming
bc596e3543 say minutes/seconds using existing 'say number' code for Danish (issue #5277)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6673 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-27 02:25:12 +00:00
Kevin P. Fleming
626582a84c store tag in the private structure as formatted text, instead of formatting every time we send a packet
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6672 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-27 02:12:36 +00:00
Kevin P. Fleming
8af7725f98 support optional sending of Remote-Party-ID headers (issue #2471, heavily modified to actually work properly)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6671 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-27 01:54:17 +00:00
Mark Spencer
266529a503 Fix "console" help (thanks to Andy Dvorak)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6670 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-27 00:55:55 +00:00
Kevin P. Fleming
fdccf66d52 add domains documentation and rename config option
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6669 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-26 23:14:59 +00:00
Kevin P. Fleming
9bbf4c3854 add basic SIP domain support (issue #4466, with major mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6668 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-26 23:07:50 +00:00
Russell Bryant
da7ca691b2 move variable declaration to the beginning of the function (issue #5299)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6667 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-26 20:53:33 +00:00
Kevin P. Fleming
02c80ab20b one more oops (when global variables need substitutions)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6666 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-26 19:51:58 +00:00
Kevin P. Fleming
5156c0621f oops
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6665 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-26 19:31:03 +00:00
Kevin P. Fleming
44aff84c2e use a more generic means to decide whether we need to provide poll/dlfcn functionality (issue #5297)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6664 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-26 17:17:56 +00:00
Kevin P. Fleming
f68285950b minor code and stack space optimizations
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6663 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-26 16:58:40 +00:00
Kevin P. Fleming
852bf07caa ensure that if the verbose buffer is full, we send it out even if it's not complete (issue #5263, patch modified to actually compile)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6662 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-26 15:43:16 +00:00
Kevin P. Fleming
24cdb73f92 handle polarity reversal hangup indication during an incoming call that is still ringing (issue #5191)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6661 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-26 03:14:44 +00:00
Kevin P. Fleming
78fa3593b1 properly ignore retransmitted INVITEs on long latency links (issue #3658)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6660 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-26 03:05:37 +00:00
Kevin P. Fleming
aae3bb3e48 minor optimizations
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6659 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-26 03:02:06 +00:00
Kevin P. Fleming
9d63d731aa fix minor build problem on *BSD (issue #5290)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6658 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-26 02:08:06 +00:00
Kevin P. Fleming
f0b4072039 fix some buglets in 'agents' Manager action (issue #5235)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6657 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-26 02:04:07 +00:00