aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_dial.c
AgeCommit message (Collapse)AuthorFilesLines
2006-12-19better name for struct dial_localuser.rizzo1-13/+12
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48581 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-19introduce a temporary variable for tmp->chan to shorten expressions.rizzo1-53/+54
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48575 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-19stop what i think is a memory leak in case Dial fails torizzo1-0/+3
connect to a channel. Before committing to 1.4 i would like some other people to review and test this fix - thanks. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48574 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-19move a large block related to privacy handling to a separate function.rizzo1-110/+115
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48573 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-01Merged revisions 48193 via svnmerge from kpfleming1-0/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r48193 | kpfleming | 2006-12-01 17:37:28 -0600 (Fri, 01 Dec 2006) | 10 lines Merged revisions 48192 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r48192 | kpfleming | 2006-12-01 17:30:59 -0600 (Fri, 01 Dec 2006) | 2 lines if Dial() is going to send music-on-hold to the calling party, it has to send PROGRESS first to ensure that the reverse audio path has been setup first (BE-106) ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48194 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-21better fix for the previous bug.rizzo1-3/+8
In general this code needs a deep revision, because the body of do_forward() deletes/overwrites the output channel without freeing the resouce in some cases, and without notifying the caller. Also, on FreeBSD with MALLOC_OPTIONS set i am seeing various panics (duplicate freee etc.) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47881 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-21do not ast_hangup() on a NULL channel.rizzo1-2/+2
In the original code this would happen in the case of o->forwards >= AST_MAX_FORWARDS Likely an 1.2/1.4 isse as well - please someone have a look, while I am hunting a few more similar panics now. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47880 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-20Merged revisions 47850 via svnmerge from file1-3/+3
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r47850 | file | 2006-11-20 10:51:37 -0500 (Mon, 20 Nov 2006) | 2 lines Use a separate variable in the channel structure to store the context that the channel was dialed from. (issue #8382 reported by jiddings) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47851 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-16Merged revisions 47782 via svnmerge from qwell1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r47782 | qwell | 2006-11-16 17:19:46 -0600 (Thu, 16 Nov 2006) | 2 lines Fix a couple of typos. Initially pointed out by mrobinson. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47783 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-14Make local copy of arguments to parse. (issue #8362 reported by homesick)file1-3/+4
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47623 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-04move out another large block to a large function, and documentrizzo1-199/+194
some possibly missing parts in the privacy screening code. Now that it is more streamlined it is easier to see differences in handling the various cases. Have not tested the code in depth. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47189 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-04fix indentation of a block, and do minor simplifications at the end ofrizzo1-54/+46
another one. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47182 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-04complete previous commit.rizzo1-20/+0
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47181 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-04move another block into a function.rizzo1-72/+104
On passing, avoid two null-pointer string dereference while printing messages (which are sometimes not fatal in some platforms, but still wrong). These two lines at least should be merged to 1.4 once i am done with all the changes here. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47180 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-04move a large block into a separate function.rizzo1-83/+93
Mark with XXX a possible bug in previous code which used the wrong source in case of a forwarded call. the function do_forward() needs to be split further, as the initial part is replicated in another places (with some minor differences, most likely forgotten when updating after the copy). git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47179 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-03another small set of simplificationsrizzo1-15/+14
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47177 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-03change HANDLE_CAUSE into a function.rizzo1-50/+64
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47175 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-03remove redundant checksrizzo1-2/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47170 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-03start integrating the simplifications proposed in bug 0005860,rizzo1-19/+13
as usual a bit at a time to ease locating new bugs or fixes worth merging into other branches. In this commit, introduce a macro, S_REPLACE, that replaces a string possibly freeing the previous value. In one of these places (see the comment marked XXX) the previous code might leak memory - if so, this ought to be merged in 1.4 The macro might be worth putting in one of the global headers (e.g. include/asterisk/strings.h) as the construct is used in a million places in the asterisk code. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47160 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-30These changes submitted by moy via bug 6992, to add a Dial 'End' event to ↵murf1-0/+11
asterisk. I include some changes to astman to cover other events that have been added. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46541 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-13Inherit the context and extension until the channel is answeredfile1-0/+8
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45109 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-03bug #8076 check option_debug before printing to debug channel.mogorman1-1/+2
patch provided in bugnote, with minor changes. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44253 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-02Make callerid fields in Manager events more consistent. CallerIDNum for ↵file1-2/+1
number and CallerIDName for name. (issue #7976 reported by suhler) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44217 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-21SS7 marked the start of an open season for trunk again but here's something ↵file1-6/+6
minor - abstract early bridging into the technology so that we don't always assume they use RTP and try it. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43437 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-19similar patch for verbose vs debug with minor changesmogorman1-1/+1
bug 2617 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43272 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-06These small app documentation changes to app_dial and app_read will ↵murf1-1/+2
hopefully avert any more 7544 type bug reports\! git-svn-id: http://svn.digium.com/svn/asterisk/trunk@42111 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-21merge new_loader_completion branch, including (at least):kpfleming1-21/+10
- restructured build tree and makefiles to eliminate recursion problems - support for embedded modules - support for static builds - simpler cross-compilation support - simpler module/loader interface (no exported symbols) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@40722 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-05Merged revisions 38928 via svnmerge from russell1-1/+8
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r38928 | russell | 2006-08-05 02:37:59 -0400 (Sat, 05 Aug 2006) | 3 lines make sure the priv-callerintros directory exists before trying to create a file there (issue #7659, patch by hads, with some modifications by me) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38929 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-19merge Russell's 'hold_handling' branch, finally implementing music-on-hold ↵kpfleming1-5/+5
handling the way it was decided at AstriDevCon Europe 2006 (and the way people really want it to be) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37988 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-08Support hold/unhold in Zap, update IAX2 parser to know about modern ↵markster1-3/+6
commands, forward hold/unhold in dial, add hold device state and implement holding in the SLA. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37318 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-16 Don't ast_request a channel structure twice when a call is being forwarded. ↵bweschke1-2/+0
(#7362 - twlison / vechers confirming fix) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@34458 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-09Merged revisions 33294 via svnmerge from file1-4/+12
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r33294 | file | 2006-06-09 15:08:00 -0300 (Fri, 09 Jun 2006) | 2 lines Handle hangup during recording of screened name (issue #7304 reported by kulldominique) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@33295 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-09Rename ast_rtp_early_media to ast_rtp_early_bridge to avoid confusion.oej1-6/+6
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@33174 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-07simplify autoconfig include mechanism (make tholo happy he can use lint ↵kpfleming1-4/+4
again :-) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@32846 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-31cleanups for commit from issue #5657... set a cause code for a rejected ↵kpfleming1-0/+3
forward request, and actually set tmp->chan to NULL when we reject the forward request git-svn-id: http://svn.digium.com/svn/asterisk/trunk@31049 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-31 Add an option to app_dial, 'i', to instruct the application ignore any ↵bweschke1-8/+26
requests from peers to forward calls elsewhere. #5657 (johnlange w/some minor mods) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@31023 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-24Merge branch for bug 6264 (Privacy option 2 returns dial-status ANSWER / ↵file1-3/+12
option_priority_jumping not respected) (reported by jkoopmann and branch by murf) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@30040 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-22 This is part 2/2 of the patches for #7090. Adds one-step call parking to ↵bweschke1-1/+16
/trunk via builtin functions and 'k' 'K' application options added to app_dial. This also resolves #6340. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@29467 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-16Inherit channel variables when call forwarding through chan_local (issue ↵file1-0/+4
#7095 reported by raarts) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@27595 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-10remove almost all of the checks of the result from ast_strdupa() or alloca().russell1-4/+2
As it turns out, all of these checks were useless, because alloca will never return NULL. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26451 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-09Make SIP early media work more efficiently without so many reinvitesmarkster1-2/+13
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26019 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-03Merged revisions 24567 via svnmerge from bweschke1-1/+4
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r24567 | bweschke | 2006-05-03 15:58:10 -0500 (Wed, 03 May 2006) | 3 lines Correct application documentation to make users aware that certain options cannot be used in conjunction with others. #6666 (chotaire) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@24604 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-22Added "Operator Services" connection mode for Zap channels, and the 'O' optionjdixon1-0/+33
in app_dial to support the use of this mode. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22128 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-21more NULL "" equivalence in CID fields.rizzo1-2/+3
Mark a potentially missing item in managerevent git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21818 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-19move a replicated block of code in the one place where it belongs.rizzo1-48/+13
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21596 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-19merge two nested 'if' which are really a single block.rizzo1-8/+4
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21595 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-19fix indentation of a large blockrizzo1-162/+162
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21572 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-19start sorting out the duplicated code in the privacy handlerrizzo1-14/+33
for future removal git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21568 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-19merge two nested 'if' which are really a single block.rizzo1-5/+3
(indentation still to be fixed) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21566 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-19more localization and variable removalrizzo1-21/+19
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21538 f38db490-d61c-443f-a65b-d21fe96a405b