aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_dial.c
AgeCommit message (Collapse)AuthorFilesLines
2007-02-27Properly hangup the original dialed channel, not the new channel that ↵file1-2/+3
appeared from the forwarding. (issue #9161 reported by PhilSmith) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@57011 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-17Merged revisions 55154 via svnmerge from file1-0/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r55154 | file | 2007-02-16 22:55:30 -0500 (Fri, 16 Feb 2007) | 10 lines Merged revisions 55153 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r55153 | file | 2007-02-16 22:53:45 -0500 (Fri, 16 Feb 2007) | 2 lines Answer the channel before recording privacy information. (issue #8926 reported by lmamane) ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@55155 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-16Merged revisions 54924 via svnmerge from file1-1/+4
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r54924 | file | 2007-02-16 13:51:15 -0500 (Fri, 16 Feb 2007) | 2 lines Need to check macro extension as well as macro context for directed pickup. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@54925 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-16Merged revisions 54884 via svnmerge from file1-1/+4
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r54884 | file | 2007-02-16 12:02:35 -0500 (Fri, 16 Feb 2007) | 2 lines Allow directed pickup to pick up the real context instead of the macro context if a Macro is used. (issue #8984 reported by jamesb63) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@54885 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-15Merged revisions 54623 via svnmerge from file1-9/+13
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r54623 | file | 2007-02-15 11:19:39 -0500 (Thu, 15 Feb 2007) | 10 lines Merged revisions 54622 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r54622 | file | 2007-02-15 11:14:40 -0500 (Thu, 15 Feb 2007) | 2 lines Use a separate variable to indicate execution should continue instead of the return value. (issue #8842 reported by pluto70) ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@54624 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-14Merged revisions 54481 via svnmerge from file1-2/+2
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r54481 | file | 2007-02-14 16:07:23 -0500 (Wed, 14 Feb 2007) | 2 lines Forward begin DTMF frames as well as end. (issue #9068 reported by mhardeman) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@54489 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-09Merged revisions 53749 via svnmerge from file1-1/+11
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r53749 | file | 2007-02-09 14:33:31 -0500 (Fri, 09 Feb 2007) | 2 lines Temporarily change musicclass on channel to one specified in Dial so that the 'm' option functions properly. (issue #8969 reported by christianbee) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@53750 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-03Merged revisions 53136 via svnmerge from russell1-3/+9
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r53136 | russell | 2007-02-03 14:44:20 -0600 (Sat, 03 Feb 2007) | 12 lines Merged revisions 53133 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r53133 | russell | 2007-02-03 14:38:13 -0600 (Sat, 03 Feb 2007) | 4 lines set the DIALSTATUS variable to contain "INVALIDARGS" when the dial application exits early because of invalid arguments instead of just leaving it empty. (issue #8975) ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@53137 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-10Merged revisions 50298 via svnmerge from file1-5/+15
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r50298 | file | 2007-01-09 23:55:13 -0500 (Tue, 09 Jan 2007) | 10 lines Merged revisions 50295 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r50295 | file | 2007-01-09 23:51:06 -0500 (Tue, 09 Jan 2007) | 2 lines Add another return value to dial_exec_full that indicates execution is going to continuing at a new extension/context/priority and to just let it slide. (issue #8598 reported by jon) ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@50302 f38db490-d61c-443f-a65b-d21fe96a405b
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