aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_features.c
AgeCommit message (Collapse)AuthorFilesLines
2007-06-22Send an unhold indication when going off hold. (issue #10036 reported by speedy)file1-0/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@71124 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-19Add parked call extension AFTER the parking slot has been announced, ↵file1-2/+2
otherwise two threads will try to handle the same channel and it will go kaboom. (issue #9191 reported by japple) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@69846 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-01Remove an unnecessary check that makes it so if you hang up after doing anrussell1-1/+1
attended transfer before the target extension answers the channel, the transfer is not successful. (issue #9338, patch by svanlund) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@62547 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-16Return previous behavior. ParkedCalls will be able to do DTMF based ↵file1-0/+2
transfers again. trunk however will get an option to allow this to be set on/off. (issue #8804 reported by nortex) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@51145 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-30Do not listen for DTMF on the bridge that comes into existence when ↵file1-6/+0
ParkedCall is executed. This means native bridging can now occur for this. (issue #8406 reported by kebl0155) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@48154 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-30Remember the pointer to the allocated block of memory so that we can free it ↵file1-4/+6
and not cause a memory leak. (issue #8449 reported by arkadia) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@48146 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-28Put in missing \ns on the end of ast_logs (issue #7936 reported by wojtekka)file1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@43924 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-27Fix a problem that occurred if a user entered a digit that matched a bridgerussell1-6/+7
feature that was configured using multiple digits, and the digit that was pressed timed out in the feature digit timeout period. For example, if blind transfer is configured as '##', and a user presses just '#'. In this situation, the call would lock up and no longer pass any frames. (issue #7977 reported by festr, and issue #7982 reported by michaels and valuable input provided by mneuhauser and kuj. Fixed by me, with testing help and peer review from Joshua Colp). There are a couple of issues involved in this fix: 1) When ast_generic_bridge determines that there has been a timeout, it returned AST_BRIDGE_RETRY. Then, when ast_channel_bridge gets this result, it calls ast_generic_bridge over again with the same timestamp for the next event. This results in an endless loop of nothing until the call is terminated. This is resolved by simply changing ast_generic_bridge to return AST_BRIDGE_COMPLETE when it sees a timeout. 2) I also changed ast_channel_bridge such that if in the process of calculating the time until the next event, it knows a timeout has already occured, to immediately return AST_BRIDGE_COMPLETE instead of attempting to bridge the channels anyway. 3) In the process of testing the previous two changes, I ran into a problem in res_features where ast_channel_bridge would return because it determined that there was a timeout. However, ast_bridge_call in res_features would then determine by its own calculation that there was still 1 ms before the timeout really occurs. It would then proceed, and since the bridge broke out and did *not* return a frame, it interpreted this as the call was over and hung up the channels. The reason for this was because ast_bridge_call in res_features and ast_channel_bridge in channel.c were using different times for their calculations. channel.c uses the start_time on the bridge config, which is the time that the feature digit was recieved. However, res_features had another time, 'start', which was set right before calling ast_channel_bridge. 'start' will always be slightly after start_time in the bridge config, and sometimes enough to round up to one ms. This is fixed by making ast_bridge_call use the same time as ast_channel_bridge for the timeout calculation. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@43778 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-01ensure that the 'feature digit timeout' value is taken into account when ↵kpfleming1-0/+1
deciding how long the bridge should run (this fixes a problem report where a digit press that did not invoke a feature is never passed across the bridge) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@38686 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-31Add missing code to bring transferee channel out of MOH/autoservice under ↵file1-0/+3
certain circumstance (issue #7611 reported by guillecabeza with minor mods by myself) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@38585 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-23backport some mutex initialization and linked list handling fixes from trunkkpfleming1-2/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@29732 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-23 Fix a potential leak and correct (hopefully) a segfault under certain ↵bweschke1-3/+4
conditions. #6784 (vovan and perry testing) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@29696 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-22Use the correct language when playing the transfer sound (issue #7109 ↵file1-1/+1
reported by casper) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@29512 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-21 When an application that is executed via applicationmap and exits non-zero, ↵bweschke1-3/+10
make sure that we pass through the correct return value from the application to make sure a segfault doesn't occur by a bridge trying to continue when it should not. Also, when executing applications via applicationmap, make sure that the application is executed against the channel whose DTMF caused it to be fired off in the first place. (part 1/2 of #7090 - this is the only fix that will be applied to both 1.2 and /trunk) acunningham and blitzrage on testing... git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@29196 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-08Incorrect log statement when playing transfer sounds (issue #7008 reported ↵file1-2/+2
and fixed by nathan) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@25442 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-10 Don't say that we can pass an 'exten' argument in the documentation of ↵bweschke1-1/+1
Park() when we really cannot. #6902 (opsys) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@18866 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-30Set initial value on adsiparkoej1-0/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@16346 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-23Issue #6764 - Return BUSY signal when other party is busy at Attended ↵file1-0/+3
Transfer (Reported by mnachev) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@14523 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-21fix crash when using the ParkAndAnnounce application. When using this ↵russell1-1/+1
application, there will be no peer channel to play the parking announcement to. (issue #6756) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@13961 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-17Backport of fix for #6094mattf1-4/+6
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@8134 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-05Bug 6081 - fix for memory leak, formatting fixestilghman1-5/+8
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@7823 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-05Fix copyright of changed fileoej1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@7812 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-04Issue #5980: Removing extra CR+LF in manager events - needs port to trunkoej1-4/+4
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@7795 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-29git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@7221 ↵kpfleming1-0/+0
f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-10issue #5703kpfleming1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7054 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-09issue #5601kpfleming1-5/+6
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7035 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-08more header include simplificationkpfleming1-0/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7023 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-08issue #5648kpfleming1-3/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7011 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-06Convert some built-in applications to use new args parsing macros.russell1-3/+3
Change ast_cdr_reset to take a pointer to an ast_flags structure instead of an integer for flags. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6987 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-03minor cleanupkpfleming1-5/+0
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6956 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-01issue #5499kpfleming1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6931 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-24Doxygen documentation update from oej (issue #5505)russell1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6847 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-13ensure that parking context/extension (and other settings) are properly ↵kpfleming1-18/+47
updated on reload (issue #5401) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6780 f38db490-d61c-443f-a65b-d21fe96a405b
2005-09-28Remove possibility of manager deadlocks from manager actionsmarkster1-3/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6687 f38db490-d61c-443f-a65b-d21fe96a405b
2005-09-14update MANY more files with proper copyright/license info (thanks Ian!)kpfleming1-4/+15
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6596 f38db490-d61c-443f-a65b-d21fe96a405b
2005-09-07enable DTMF monitoring when DYNAMIC_FEATURES are specified for a brige ↵kpfleming1-29/+53
(issue #5153) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6541 f38db490-d61c-443f-a65b-d21fe96a405b
2005-09-07remove useless buffer initializations (issue #5134)kpfleming1-1/+1
convert pbx_dundi to use ast_copy_string) (issue #5134) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6540 f38db490-d61c-443f-a65b-d21fe96a405b
2005-09-07eliminate signedness warnings (issue #5129)kpfleming1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6530 f38db490-d61c-443f-a65b-d21fe96a405b
2005-08-23formatting fixes and compile fix for FreeBSD (issue #5004)kpfleming1-3/+4
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6381 f38db490-d61c-443f-a65b-d21fe96a405b
2005-08-23ensure that features are not duplicated during reload (issue #3764, take two)kpfleming1-5/+20
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6377 f38db490-d61c-443f-a65b-d21fe96a405b
2005-08-23add ability to map feature sequences to applications (issue #3764)kpfleming1-15/+200
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6374 f38db490-d61c-443f-a65b-d21fe96a405b
2005-08-08more pointer signedness fixes for gcc4 warningsrussell1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6306 f38db490-d61c-443f-a65b-d21fe96a405b
2005-08-03Fix timestamp issue with features (bug #4760 with mods)markster1-11/+15
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6268 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-25more formatting fixes! (bug #4780)russell1-166/+176
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6191 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-15add a library of timeval manipulation functions, and change a large number ↵kpfleming1-14/+9
of usses to use the new functions (bug #4504) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6146 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-11reverse arguments to ast_tvdiff_ms, so they match the 'raw' math being used ↵kpfleming1-1/+1
between the arguments git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6083 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-10use AST_MAX_CONTEXTrussell1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6079 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-07make CLI output use singular/plural when appropriate (bug #4654)kpfleming1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6047 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-23support cancellation of attended transfers using the defined disconnect code ↵kpfleming1-5/+185
(bug #3729 with minor mods) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5991 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-06more file version tagskpfleming1-10/+15
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5866 f38db490-d61c-443f-a65b-d21fe96a405b