Commit Graph

597 Commits (97a653518dc6dbdc927521e92b51dedaffe149bc)

Author SHA1 Message Date
Leif Madsen 2de9cd0d38 Add documentation clarifying when 't' and 'T' can be used.
15 years ago
Russell Bryant 33aa72d592 Resolve compiler warnings on FreeBSD.
15 years ago
Richard Mudgett 73ef4b8daf Removed cdrflags from ast_channel structure.
15 years ago
Tilghman Lesher dd1c5f27ee Properly respect GOSUB_RESULT as to what to do with the master channel.
15 years ago
Mark Michelson 2fa64b3ad4 Mismerged a bit.
16 years ago
Mark Michelson c9d1ffcae8 Add a missing part of the connected line work into trunk.
16 years ago
Alec L Davis 7537d3c0cb app_dial optional parameter to option 'r' to allow play indication from indications.conf
16 years ago
Tilghman Lesher 5e2aa190fe Display a list of channel variables in each channel-oriented event.
16 years ago
Matthew Nicholson 317435a932 Added the 'a' option to app dial and modified app_dial to set the answertime when the called channel answers.
16 years ago
Matthew Nicholson ed2ed2717a Merged revisions 227827 via svnmerge from
16 years ago
Tilghman Lesher d8e0c58437 Expand codec bitfield from 32 bits to 64 bits.
16 years ago
Joshua Colp 7a17d87740 Merged revisions 226889 via svnmerge from
16 years ago
Joshua Colp b7a50aeddc Merged revisions 224565 via svnmerge from
16 years ago
Jeff Peeler 832be82dfb Merged revisions 223804 via svnmerge from
16 years ago
Mark Michelson 66e993de95 Fix potential memory leaks.
16 years ago
Jeff Peeler f150b48bc0 Add bridge related dial flags to the bridge app
16 years ago
Russell Bryant 0b2b01a1fa Merged revisions 208592 via svnmerge from
16 years ago
Mark Michelson 5e51a6bb1e I AM A TERRIBLE PERSON
16 years ago
Mark Michelson b25242a819 Reset the sentringing indication when redirects occur.
16 years ago
Russell Bryant 0264eef115 Merge the new Channel Event Logging (CEL) subsystem.
16 years ago
Russell Bryant 12ff77f975 Global var cleanup - constification and removing unused vars.
16 years ago
David Vossel c42344b319 ast_call_forward() todo notes and originate flag copy.
16 years ago
Mark Michelson 298d745fb4 Add the ability to execute connected line interception macros.
16 years ago
Sean Bright 9241877c10 Merged revisions 198251 via svnmerge from
16 years ago
Kevin P. Fleming e6b2e9a750 Const-ify the world (or at least a good part of it)
16 years ago
Mark Michelson 8139c8ed4e Plug a memory leak in app_dial.
16 years ago
Eliel C. Sardanons d24179825f Warn about the use of the application WaitExten() within a Macro().
16 years ago
Kevin P. Fleming 1c988d8996 add 'const' qualifiers in various places where they should have been
16 years ago
Richard Mudgett 7019ff68db Fixed crashes from issue8824 review board channel locking changes.
16 years ago
Terry Wilson 7164958d9d Merged revisions 189465 via svnmerge from
16 years ago
Terry Wilson f505cb43bf Merged revisions 189463 via svnmerge from
16 years ago
Mark Michelson fd833f14ed Make the cancellation of the dial timeout on a call forward optional.
16 years ago
Mark Michelson df28954a84 Make sure tc is unlocked before calling ast_call since calling a Local
16 years ago
David Vossel bd23adbc8a Even more changes concerning r187426. Revised where locks are placed yet once again. ast_call() should not be called with a channel locked. could cause deadlock issues with local channels.
16 years ago
David Vossel e6052e79d0 More changes concerning r187426. Revised where locks are placed.
16 years ago
Jeff Peeler de4af72f9f Add ability for dialplan execution to continue when caller hangs up.
16 years ago
David Vossel 19f381b484 Fixes deadlock caused by calling get_cid_name with chan locked.
16 years ago
Mark Michelson 6f53ed4c67 This commit introduces COLP/CONP and Redirecting party information into Asterisk.
16 years ago
Joshua Colp 63de834395 Merge in the RTP engine API.
16 years ago
David Vossel 9d3527bddf Merged revisions 183386 via svnmerge from
16 years ago
David Vossel 2764c2821f Merged revisions 183126 via svnmerge from
16 years ago
David Vossel e559cae4ec Option to send DTMF when receiving PROGRESS status
16 years ago
Joshua Colp 499ca8de65 Fix crash when sleep and retries argument was not given to RetryDial application.
16 years ago
Joshua Colp 15090ba1df Remove duplicate 'k' and 'K' Dial options.
16 years ago
Mark Michelson 47ebea6a8d Fix 'd' option for app_dial and add new option to Answer application
16 years ago
Steve Murphy 53d9b77898 This reverts the changes I made for 11583; will
16 years ago
Steve Murphy c61e8a7865 This change allows the disconnect feature (as in "one-touch" in features.c)
16 years ago
Terry Wilson 8d782f96b8 Merged revisions 172517 via svnmerge from
16 years ago
Olle Johansson 7ecda45482 Fix "cancel answered elsewhere" through app_queue with members in chan_local.
16 years ago
Joshua Colp 665bba38f1 Merged revisions 170568 via svnmerge from
17 years ago
Terry Wilson c37aa68d77 Set peer context and exten values so MACRO_EXTEN and MACRO_CONTEXT will be set
17 years ago
Mark Michelson ff20b9116a Update app_queue to deal with the removal of AST_PBX_KEEPALIVE
17 years ago
Steve Murphy aa905e347e Merged revisions 166093 via svnmerge from
17 years ago
Russell Bryant 50a25ac847 Remove the need for AST_PBX_KEEPALIVE with the GoSub option from Dial.
17 years ago
Mark Michelson a53877b469 Add some safety measures when using gosub, especially when using the options
17 years ago
Mark Michelson 5cf09591b0 Add some necessary hangup commands in the case that forwarding
17 years ago
Mark Michelson 7a554a7386 Merged revisions 158053 via svnmerge from
17 years ago
Mark Michelson d91f1df3e0 Merged revisions 157305 via svnmerge from
17 years ago
Tilghman Lesher 1287486dbf Can't use items duplicated off the stack frame in an element returned from
17 years ago
Tilghman Lesher 10afda33c7 Merged revisions 156386 via svnmerge from
17 years ago
Mark Michelson a9e84c1e51 Merged revisions 156167 via svnmerge from
17 years ago
Sean Bright 9ef09ad1d4 Merged revisions 155553 via svnmerge from
17 years ago
Kevin P. Fleming bd4eb070f3 bring over all the fixes for the warnings found by gcc 4.3.x from the 1.4 branch, and add the ones needed for all the new code here too
17 years ago
Russell Bryant 6f314f4d42 Fix various spelling and grammatical issues in documentation
17 years ago
Russell Bryant 5b168ee34b Merge changes from team/group/appdocsxml
17 years ago
Terry Wilson 5fe37e47c6 Recent CDR fixes moved execution of the 'h' exten into the bridging code, so variables that were set after ast_bridge_call was called would not show up in the 'h' exten. Added a callback function to handle setting variables, etc. from w/in the bridging code. Calls back into a nested function within the function calling ast_bridge_call
17 years ago
Steve Murphy d736ac2b19 Merged revisions 152538 via svnmerge from
17 years ago
Steve Murphy 6fad66dfb3 Merged revisions 152535 via svnmerge from
17 years ago
Tilghman Lesher dd049d429d Merged revisions 152368 via svnmerge from
17 years ago
Mark Michelson dc36a357d2 When specifying an invalid timeout to Dial, take it
17 years ago
Sean Bright d1f257ba53 Move the DAHDI-to-DAHDI operator mode check from app_dial into chan_dahdi
17 years ago
Sean Bright 61664ec58b Make sure to compare the correct number of characters when special-casing
17 years ago
Tilghman Lesher 8fbee1307c Repair IAXVAR implementation so that it works again (regression?)
17 years ago
Steve Murphy 67f7ac0499 Merged revisions 142675 via svnmerge from
17 years ago
Steve Murphy 2488366a75 Merged revisions 139347 via svnmerge from
17 years ago
Sean Bright 3ffb39833b More RSW merges. Everything from apps/ except for the big offenders
17 years ago
Steve Murphy 5eaf8450d6 Merged revisions 135799 via svnmerge from
17 years ago
Kevin P. Fleming 7df8b8b848 make datastore creation and destruction a generic API since it is not really channel related, and add the ability to add/find/remove datastores to manager sessions
17 years ago
Mark Michelson bd1bb0d0e2 Merged revisions 130792 via svnmerge from
17 years ago
Tilghman Lesher da03cdd174 Merged revisions 129149 via svnmerge from
17 years ago
Kevin P. Fleming da14954bdc another minor ast_channel memory size decrease... for nearly all channels, 'dialcontext' is only going to be set once during the channel's lifetime, so make it a string field instead of a char array
17 years ago
Mark Michelson 0178d0ccd6 Improve consistency between app_dial and app_queue with regards
17 years ago
Tilghman Lesher 90867b2b0c Channel lock janitor -- add locks around retrieval of channel variables
17 years ago
Steve Murphy f4c85ebd22 (closes issue #12689)
17 years ago
Jeff Peeler ef3b214728 Goodbye Zaptel, hello DAHDI. Removes Zaptel driver support with DAHDI. Configuration file and dialplan backwards compatability has been put in place where appropiate. Release announcement to follow.
17 years ago
Russell Bryant db5f489865 Merged revisions 119530 via svnmerge from
17 years ago
Michiel van Baak 0da2734cb5 Merged revisions 119478 via svnmerge from
17 years ago
Tilghman Lesher c7191467d2 Add native AGI command GOSUB, as invoking Gosub with EXEC does not work
17 years ago
Michiel van Baak f1e9371da8 - revert change to ast_queue_hangup and create ast_queue_hangup_with_cause
17 years ago
Tilghman Lesher b5a127daac Modify TIMEOUT() to be accurate down to the millisecond.
17 years ago
Tilghman Lesher 6a81da594d Add incomplete matching to PBX code and app_dial
17 years ago
Tilghman Lesher 463a5dbd0a Whitespace changes only
17 years ago
Michiel van Baak 08e674bce0 Pass the hangup cause all the way to the calling app/channel.
17 years ago
Mark Michelson df7cb6b30b Merged revisions 114112 via svnmerge from
17 years ago
Tilghman Lesher 1c691646a9 Permit callee to continue in the dialplan, after caller has hung up.
17 years ago
Mark Michelson 5176911dfe Remove some redundant logic from wait_for_answer. This also let's us get rid of one of
17 years ago
Joshua Colp af7e1964f2 Merged revisions 107016 via svnmerge from
17 years ago
Steve Murphy 377e51c4d4 (closes issue #6002)
17 years ago
Joshua Colp 496adc6fc0 Merged revisions 106235 via svnmerge from
17 years ago
Tilghman Lesher 8a411ccf83 Create a centralized configuration option for silencethreshold
17 years ago
Terry Wilson 7d1891d5c3 Asterisk, when parking can drop rights a caller when a parking timeout occurs. Also, when doing built-in attended transfers, sometimes incorrectly passes rights from the transferrer to the transferee. This patch tries to fixes the parking issue and lays some groundwork for later fixing the transfer issue.
17 years ago
Michiel van Baak 4dccb58fb7 whitespace fixes only.
17 years ago
Mark Michelson fe9821cc10 Get rid of any remaining ast_verbose calls in the code in favor of
17 years ago
Olle Johansson cc648a40ae Merged revisions 99592 via svnmerge from
18 years ago
Tilghman Lesher d5b454bf8d Convert ast_verbose to ast_verb.
18 years ago
Tilghman Lesher 99308dfb4e Conversions of free to ast_free, where applicable, and several other formatting fixes.
18 years ago
Russell Bryant 3a4d1c852b Merged revisions 91783 via svnmerge from
18 years ago
Russell Bryant 547083e21a Merged revisions 91693 via svnmerge from
18 years ago
Russell Bryant c72fa81580 Merged revisions 91677 via svnmerge from
18 years ago
Olle Johansson 807d5e1ef7 - Dial event
18 years ago
Mark Michelson b32e39cbda Merged revisions 91273 via svnmerge from
18 years ago
Jason Parker 814a7f66c0 Fix build in trunk. This was fixed in 1.4, but blocked in trunk since this hadn't been merged yet.
18 years ago
Mark Michelson c52d8a1cd5 Merged revisions 90735 via svnmerge from
18 years ago
Joshua Colp 4201a5af8b Remove the file descriptors from the main poll channel when the channel is hung up during the dialing attempt, and make sure a channel exists before trying to remove it at the end.
18 years ago
Mark Michelson 6b08c442c7 Adding support for the "automixmonitor" dial and queue options.
18 years ago
Steve Murphy 4d8932a6dc Merged revisions 89622 via svnmerge from
18 years ago
Steve Murphy 86476c607f closes issue #11285, where an unload of a module that creates a dialplan context, causes a crash when you do a 'dialplan show' of that context. This is because the registrar string is defined in the module, and the stale pointer is traversed. The reporter offered a patch that would always strdup the registrar string, which is practical, but I preferred to destroy the created contexts in each module where one is created. That seemed more symmetric. There were only 6 place in asterisk where this is done: chan_sip, chan_iax2, chan_skinny, res_features, app_dial, and app_queue. The two apps destroyed the context, but left the contexts. All is fixed now and unloads should be dialplan friendly.
18 years ago
Luigi Rizzo 7e8835e0d7 remove another set of redundant #include "asterisk/options.h"
18 years ago
Luigi Rizzo a23c055c3d move asterisk/paths.h outside asterisk.h and into those files
18 years ago
Luigi Rizzo 0595b5e2aa include "logger.h" and errno.h from asterisk.h - usage shows that they
18 years ago
Luigi Rizzo fdb7f7ba3d Start untangling header inclusion in a way that does not affect
18 years ago
Russell Bryant 0df5e50e97 Use BEGIN_OPTIONS / END_OPTIONS to make the syntax highlighting in my editor happy
18 years ago
Steve Murphy 63f2f04cf4 This commits the performance mods that give the priority processing engine in the pbx, a 25-30% speed boost. The two updates used, are, first, to merge the ast_exists_extension() and the ast_spawn_extension() where they are called sequentially in a loop in the code, into a slightly upgraded version of ast_spawn_extension(), with a few extra args; and, second, I modified the substitute_variables_helper_full, so it zeroes out the byte after the evaluated string instead of demanding you pre-zero the buffer; I also went thru the code and removed the code that zeroed this buffer before every call to the substitute_variables_helper_full. The first fix provides about a 9% speedup, and the second the rest. These figures come from the 'PIPS' benchmark I describe in blogs, conf. reports, etc.
18 years ago
Matthew Fredrickson a4be521c89 Make sure we propogate ANI2 to the outbound channel
18 years ago
Tilghman Lesher 7adbd6bb16 Remove redundant includes (patch by snuffy) (Closes issue #10922)
18 years ago
Russell Bryant bff784d509 Merged revisions 84166 via svnmerge from
18 years ago
Joshua Colp 3ed4d505b7 Merged revisions 84158 via svnmerge from
18 years ago
Russell Bryant 9388173f85 Make the MALLOC_DEBUG output for free() useful again. After changing calls to
18 years ago
Jason Parker 836c550ce3 Merged revisions 81412 via svnmerge from
18 years ago
Joshua Colp 22114b509d Add support for using epoll instead of poll. This should increase scalability and is done in such a way that we should be able to add support for other poll() replacements.
18 years ago
Joshua Colp 9ef1b0a974 Extend the ast_senddigit and ast_dtmf_stream API calls to allow the duration of the DTMF digit(s) to be specified and make the SendDTMF application have the capability to use it.
18 years ago
Russell Bryant 4e0947c5f1 Convert code that checks the _softhangup member of ast_channel directory to use
18 years ago
Steve Murphy ceca4d97e1 These fixes take care of two problems: a complaint in asterisk-dev that goto's aren't working in trunk, a side effect of the move to commas as arg seps in apps and funcs; and a problem I spotted myself with dial's 'e' option, where gotos were off by one, because I forgot to set the AUTOLOOP flag in the peer channel.
18 years ago
Russell Bryant f8483a0d04 Do a massive conversion for using the ast_verb() macro
18 years ago
Tilghman Lesher 55b1ee298e Merge the dialplan_aesthetics branch. Most of this patch simply converts applications
18 years ago
Steve Murphy 0e969271ae After some study, thought, comparing, etc. I've backed out the previous universal mod to make ast_flags a 64 bit thing. Instead, I added a 64-bit version of ast_flags (ast_flags64), and 64-bit versions of the test-flag, set-flag, etc. macros, and an app_parse_options64 routine, and I use these in app_dial alone, to eliminate the 30-option limit it had grown to meet. There is room now for 32 more options and flags. I was heavily tempted to implement some of the other ideas that were presented, but this solution does not intro any new versions of dial, doesn't have a different API, has a minimal/zero impact on code outside of dial, and doesn't seriously (I hope) affect the code structure of dial. It's the best I can think of right now. My goal was NOT to rewrite dial. I leave that to a future, coordinated effort.
18 years ago
Mark Michelson ee6d59eef2 Merged revisions 75405 via svnmerge from
18 years ago
Steve Murphy 8a7732f067 via 10206, I have added an option (e) to Dial to allow the h exten to get run on peer. Had to upgrade ast_flag stuff to 64 bits to do this.
18 years ago
Jason Parker 766121a5bc Fix an incorrect parenthesization (TODO: Find a better word) in app_dial
18 years ago
Mark Michelson ce8f95d750 Merged revisions 75253 via svnmerge from
18 years ago
Joshua Colp b8cd949cce Applications no longer need to call ast_module_user_add and ast_module_user_remove. This is now taken care of in the pbx_exec function outside of the application.
18 years ago
Joshua Colp 96a646734f It is no longer required for each module that deals with a channel to call ast_module_user_hangup_all in it's unload function. The loader will automatically perform this action for it.
18 years ago
Olle Johansson a1b9cbcd31 Implementation of a feature that will disable "missed calls" counters on SIP phones.
18 years ago
Tilghman Lesher 8b93f50dfc Merged revisions 73053 via svnmerge from
18 years ago
Tilghman Lesher a1bc823136 Issue 9990 - New API ast_mkdir, which creates parent directories as necessary (and is faster than an outcall to mkdir -p)
18 years ago
Steve Murphy 2462d5ab4f Cleaning up a small disaster I created earlier
18 years ago
Steve Murphy 57526b35cc As per 9228, now app_queue should have the proper machinery to do gosubs.
18 years ago
Tilghman Lesher ce2c52d519 Merged revisions 70445 via svnmerge from
18 years ago
Tilghman Lesher 704c756c4a Merge work to make U(...) option work for Dial
18 years ago
Steve Murphy 866bbaa515 Via bug9228, no way to create macros via AEL, and some of the apps allow you to call macros..., I modded the apps that allow macro calls to allow gosubs calls also, to make them AEL compliant.
18 years ago
Russell Bryant 055d82cbce Add a massive set of changes for converting to use the ast_debug() macro.
18 years ago
Russell Bryant 9e0458e9f1 Completely remove all of the code related to jumping to priority n + 101. yay!
18 years ago
Joshua Colp 2492bf26fb Merged revisions 68071 via svnmerge from
18 years ago
Tilghman Lesher 9d05ff8ed5 Issue 9869 - replace malloc and memset with ast_calloc, and other coding guidelines changes
18 years ago
Joshua Colp bae04fd90e Merged revisions 67066 via svnmerge from
18 years ago
Steve Murphy 4572edae31 Merged revisions 65200 via svnmerge from
18 years ago
Russell Bryant 83d0b0417c Merged revisions 64756 via svnmerge from
18 years ago
Joshua Colp e2871220e2 Merged revisions 61656 via svnmerge from
18 years ago
Russell Bryant be874b92d3 Remove unused instances of unnamed enums.
18 years ago
Joshua Colp 840f1e61e0 Merged revisions 60798 via svnmerge from
18 years ago
Joshua Colp 726928cb60 Properly hangup the original dialed channel, not the new channel that appeared from the forwarding. (issue #9161 reported by PhilSmith)
18 years ago
Joshua Colp fb9e48ca9e Merged revisions 55154 via svnmerge from
18 years ago
Joshua Colp 8e92c73a1d Merged revisions 54924 via svnmerge from
18 years ago
Joshua Colp 821c941976 Merged revisions 54884 via svnmerge from
18 years ago
Joshua Colp a11b56a8e5 Merged revisions 54623 via svnmerge from
18 years ago
Joshua Colp 68a66656e6 Merged revisions 54481 via svnmerge from
18 years ago
Joshua Colp 32cd307d6f Merged revisions 53749 via svnmerge from
18 years ago
Russell Bryant ce321f87e9 Merged revisions 53136 via svnmerge from
19 years ago
Joshua Colp a378353ecc Merged revisions 50298 via svnmerge from
19 years ago
Luigi Rizzo 83f52ed5e2 better name for struct dial_localuser.
19 years ago
Luigi Rizzo a755ec928a introduce a temporary variable for tmp->chan to shorten expressions.
19 years ago
Luigi Rizzo 9c81431c93 stop what i think is a memory leak in case Dial fails to
19 years ago
Luigi Rizzo 9d4531d636 move a large block related to privacy handling to a separate function.
19 years ago
Kevin P. Fleming 359a553961 Merged revisions 48193 via svnmerge from
19 years ago
Luigi Rizzo bbba4e5a20 better fix for the previous bug.
19 years ago
Luigi Rizzo 64a9c28c3b do not ast_hangup() on a NULL channel.
19 years ago
Joshua Colp af51be05a6 Merged revisions 47850 via svnmerge from
19 years ago
Jason Parker 938c4bdc29 Merged revisions 47782 via svnmerge from
19 years ago
Joshua Colp a8ef79fa6f Make local copy of arguments to parse. (issue #8362 reported by homesick)
19 years ago
Luigi Rizzo 8b3fe4556c move out another large block to a large function, and document
19 years ago
Luigi Rizzo a55ca0d6ec fix indentation of a block, and do minor simplifications at the end of
19 years ago
Luigi Rizzo 0f58d97707 complete previous commit.
19 years ago
Luigi Rizzo 01ec7d63d9 move another block into a function.
19 years ago
Luigi Rizzo 1385b6f047 move a large block into a separate function.
19 years ago
Luigi Rizzo ab4f699065 another small set of simplifications
19 years ago
Luigi Rizzo acf5e87b0f change HANDLE_CAUSE into a function.
19 years ago
Luigi Rizzo c3a6bbddb8 remove redundant checks
19 years ago
Luigi Rizzo 534da0ecfd start integrating the simplifications proposed in bug 0005860,
19 years ago
Steve Murphy 6d81c47801 These changes submitted by moy via bug 6992, to add a Dial 'End' event to asterisk. I include some changes to astman to cover other events that have been added.
19 years ago
Joshua Colp 1e3c5bc5ba Inherit the context and extension until the channel is answered
19 years ago
Matt O'Gorman ae8cc3e18b bug #8076 check option_debug before printing to debug channel.
19 years ago
Joshua Colp 3e4a081e1c Make callerid fields in Manager events more consistent. CallerIDNum for number and CallerIDName for name. (issue #7976 reported by suhler)
19 years ago
Joshua Colp 1c764935f2 SS7 marked the start of an open season for trunk again but here's something minor - abstract early bridging into the technology so that we don't always assume they use RTP and try it.
19 years ago
Matt O'Gorman d0a1a0033d similar patch for verbose vs debug with minor changes
19 years ago
Steve Murphy 7c9b6e1d29 These small app documentation changes to app_dial and app_read will hopefully avert any more 7544 type bug reports\!
19 years ago
Kevin P. Fleming 0a27d8bfe5 merge new_loader_completion branch, including (at least):
19 years ago
Russell Bryant 774bba093b Merged revisions 38928 via svnmerge from
19 years ago
Kevin P. Fleming 6d0742fc16 merge Russell's 'hold_handling' branch, finally implementing music-on-hold handling the way it was decided at AstriDevCon Europe 2006 (and the way people really want it to be)
19 years ago
Mark Spencer 4c90cf59b7 Support hold/unhold in Zap, update IAX2 parser to know about modern commands, forward hold/unhold in dial, add hold device state
19 years ago
BJ Weschke 2e8a142c85 Don't ast_request a channel structure twice when a call is being forwarded. (#7362 - twlison / vechers confirming fix)
19 years ago