aboutsummaryrefslogtreecommitdiffstats
path: root/res
AgeCommit message (Collapse)AuthorFilesLines
2008-02-29Fix a potential memory leakphsultan1-0/+4
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@105326 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-29Automatically create new buddy upon reception of a presence stanza ofphsultan1-19/+12
type subscribed. (closes issue #12066) Reported by: ffadaie Patches: branch-1.4-12066-1.diff uploaded by phsultan (license 73) trunk-12066-1.diff uploaded by phsultan (license 73) Tested by: ffadaie, phsultan git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@105209 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-27Inherit language from the transfering channel on a blind transfer.qwell1-3/+4
(closes issue #11682) Reported by: caio1982 Patches: local_atxfer_lang3-1.4.diff uploaded by caio1982 (license 22) Tested by: caio1982, victoryure git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@104598 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-27Only stop the MWI monitor thread if it was actually started.file1-1/+3
(closes issue #12086) Reported by: francesco_r git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@104536 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-26Merge changes from team/russell/smdi-1.4russell1-295/+848
This commit brings in a significant set of changes to the SMDI support in Asterisk. There were a number of bugs in the current implementation, most notably being that it was very likely on busy systems to pop off the wrong message from the SMDI message queue. So, this set of changes fixes the issues discovered as well as introducing some new ways to use the SMDI support which are required to avoid the bugs with grabbing the wrong message off of the queue. This code introduces a new interface to SMDI, with two dialplan functions. First, you get an SMDI message in the dialplan using SMDI_MSG_RETRIEVE() and then you access details in the message using the SMDI_MSG() function. A side benefit of this is that it now supports more than just chan_zap. For example, with this implementation, you can have some FXO lines being terminated on a SIP gateway, but the SMDI link in Asterisk. Another issue with the current implementation is that it is quite common that the station ID that comes in on the SMDI link is not necessarily the same as the Asterisk voicemail box. There are now additional directives in the smdi.conf configuration file which let you map SMDI station IDs to Asterisk voicemail boxes. Yet another issue with the current SMDI support was related to MWI reporting over the SMDI link. The current code could only report a MWI change when the change was made by someone calling into voicemail. If the change was made by some other entity (such as with IMAP storage, or with a web interface of some kind), then the MWI change would never be sent. The SMDI module can now poll for MWI changes if configured to do so. This work was inspired by and primarily done for the University of Pennsylvania. (also related to issue #9260) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@104119 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-07Specify which digit string was matched in debug message.qwell1-1/+1
(closes issue #11949) Reported by: dimas Patches: v1-feature-debug.patch uploaded by dimas (license 88) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@102858 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-06ensure that all remaining multi-object modules are built using their proper ↵kpfleming1-0/+2
CFLAGS and include directory paths git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@102627 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-05Perform dialing asynchronously when using the originate CLI command so the ↵file1-2/+2
CLI does not appear to block. (closes issue #11927) Reported by: bbhoss git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@102378 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-311. Prevent the addition of an extra '/' to the beginning of an absolute ↵mmichelson1-7/+22
pathname. 2. If ast_monitor_change_fname is called and the new filename is the same as the old, then exit early and don't set the filename_changed field in the monitor structure. Setting it in this case was causing ast_monitor_stop to erroneously delete them. (closes issue #11741) Reported by: garlew Tested by: putnopvut git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@101531 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-28Fix a crash in ast_masq_park_call()russell1-1/+5
(issue #11342) Reported by: DEA Patches: res_features-park.txt uploaded by DEA (license 3) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@100626 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-23Oops, should have checked for a NULL obj, here, tootilghman1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@99775 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-22Add more dependencies on chan_local and add a note to the description of ↵oej1-0/+4
chan_local so that people don't disable it in menuselect just to clean up. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@99594 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-21Permit the user to specify number of seconds that a connection may remain idle,tilghman1-5/+20
which fixes a crash on reconnect with the MyODBC driver. (closes issue #11798) Reported by: Corydon76 Patches: 20080119__res_odbc__idlecheck.diff.txt uploaded by Corydon76 (license 14) Tested by: mvanbaak git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@99341 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-18This should at least temporarily fix a problem where the 't' Dialtwilson1-2/+2
option is incorrectly passed to the transferee when built-in attended transfers are used. There is still a problem with 'T', but better to fix some problems than no problems while we work on it. (closes issue #7904) Reported by: k-egg Patches: transfer-fix-b14-r97657.diff uploaded by sergee (license 138) Tested by: sergee, otherwiseguy git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@99032 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-12Add a connection timeout attribute, as that was what was intended with thetilghman1-0/+1
login timeout, but ODBC divides it up into 2 different timeouts. (Closes issue #11745) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@98467 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-11If the channel is hungup during RECORD FILE send a result code of -1 to be ↵file1-1/+1
uniform with everything else. (closes issue #11743) Reported by: davevg Patches: res_agi.diff uploaded by davevg (license 209) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@98317 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-09Fix saying the parking space number to the caller doing the parking ...russell1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@97529 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-07Don't crash if something happens when setting up an SMDI interface and it getsrussell1-0/+2
destroyed before the SMDI port handling thread gets created. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@96884 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-07Indentation fix, makes the code easier to readphsultan1-71/+69
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@96815 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-07Compute the base64 value over the [authzid]\0authcid\0password string,phsultan1-1/+6
thus excluding the trailing NULL byte. This change has already been committed to trunk, see #11644. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@96797 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-04Properly continue in the dialplan if using PARKINGEXTEN and the slot is full.qwell1-3/+16
Issue 11237, patch by me. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@96573 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-03Missed initialization caused crash.tilghman1-1/+1
Reported and fixed by: tiziano (Closes issue #11671) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@96318 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-26Don't try to send a parked call back to itself.russell1-5/+4
(closes issue #11622, reported by djrodman, patched by me) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@94793 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-19Sox versions 13.0.0 and newer do not have "soxmix" and instead use sox -m. ↵mmichelson1-1/+10
res_monitor needs to use this if the user does not have soxmix. (closes issue #11589, reported by amessina, patch inspired by amessina but with a flourish from me) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@94122 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-17fix some copy-and-paste leftoverskpfleming1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@93183 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-17In http://lists.digium.com/pipermail/asterisk-dev/2007-December/031145.html,kpfleming1-2/+8
rizzo brought up some issues related to the way that the metadata required for menuselect and the rest of the build system is extracted from the source files. Since I had a few hours to kill on an airplane today, I decided to improve this situation... so now the system caches the extracted metadata and uses it to build the menuselect 'tree' as much as it can. The result of this is that when a single source file is changed, only the metadata for that file needs to be extracted again, and the rest is used from the cache files. I also reduced the number of forked processes required to do the metadata extraction; it was actually possible to do most of what we needed in the Makefiles themselves without using any shell scripts at all! On my laptop, these changes resulted in an 80% decrease in the time required for the 'menuselect.makeopts' automatic check to occur after editing a single source file. While doing this work I also cleaned up a few minor things in the Makefiles, adding a check for 'awk' to the configure script and changed all remaining places we use 'grep' or 'awk' to use the ones found by the configure script, and changed the 'prep_tarball' script to build the menuselect metadata so that tarballs of Asterisk will include it and won't require the user to wait while it is extracted after unpacking. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@93180 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-14Change help documentation to match actual behavior (FAILURE vs FAILED).tilghman1-1/+1
Reported by: angeloxx-sir Patch by: tilghman (Closes issue #11548) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@92933 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-12resolve compiler warningrussell1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@92556 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-12Correctly detect where a dynamic feature was activated. Before this patch,mmichelson1-4/+7
the channel which initiated the bridge was always assumed to have been the one which activated the dynamic feature. This patch corrects this. (closes issue #11529, reported and patched by nic_bellamy) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@92510 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-03If both dbhost and dbsock were not set, a NULL deref could resulttilghman1-1/+3
Reported by: xrg Patch by: tilghman (Closes issue #11387) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@90736 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-03Fix crash in ParkAndAnnounce application.qwell1-1/+1
Issue #11436, reported by lytledd, patch by eliel. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@90607 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-29Properly escape input buffers (Fixes AST-2007-025)tilghman1-13/+66
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@90160 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-27Changing some calls from free() to ast_free() since they were allocated withmmichelson1-3/+3
ast_calloc(). (closes issue #11390, reported and patched by Laureano) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@89727 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-26Add module counting removal for error conditions.file1-0/+3
(closes issue #11333) Reported by: Laureano Patches: res_features_v2.c.patch uploaded by Laureano (license 265) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@89599 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-25We previously attempted to use the ESCAPE clause to set the escape delimiter totilghman2-6/+23
a backslash. Unfortunately, this does not universally work on all databases, since on databases which natively use the backslash as a delimiter, the backslash itself needs to be delimited, but on other databases that have no delimiter, backslashing the backslash causes an error. So the only solution that I can come up with is to create an option in res_odbc that explicitly specifies whether or not backslash is a native delimiter. If it is, we use it natively; if not, we use the ESCAPE clause to make it one. Reported by: elguero Patch by: tilghman (Closes issue #11364) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@89559 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-24Free some frames that would otherwise leak on error.tilghman1-0/+3
Reported by: Laureano Patch by: Laureano,tilghman (Closes issue #11351) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@89545 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-23Use ESCAPE clause for the first parameter, not just 2nd-Nth parameters.tilghman1-1/+2
Reported by: apsaras Patch by: tilghman (Closes issue #11353) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@89534 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-21If a channel gets masqueraded in the middle of a park, don't play thetwilson1-8/+18
announcement to the masqueraded channel, and dial back to the original channel on timeout. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@89491 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-19Print out the correct filename (features.conf) in the log message when ↵file1-1/+1
parkpos options are incorrect. (closes issue #11295) Reported by: Laureano Patches: res_features.c.patch uploaded by Laureano (license 265) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@89419 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-13Revert change from revision 67064.qwell1-1/+1
It is documented behavior that if a parking extension already exists while using PARKINGEXTEN, dialplan execution will continue. If blind transferring to a Park with PARKINGEXTEN, you must keep this in mind, and handle the failure yourself. Issue 11237, reported by jon. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@89248 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-07In response to 10578, I just ran 1.4 thru valgrind; some of the config ↵murf1-0/+1
leakage I've already fixed, but it doesn't hurt to double check. I found and fixed leaks in res_jabber, cdr_tds, pbx_ael. Nothing major, tho. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@89088 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-06Fix init_classes() so that classes that actually do have files loaded aren'trussell1-1/+1
treated as empty, and immediately destroyed ... git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@89053 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-06If someone were to delete the files used by an existing MOH class, and thenrussell1-3/+15
issue a reload, further use of that class could result in a crash due to dividing by zero. This set of changes fixes up some places to prevent this from happening. (closes issue #10948) Reported by: jcomellas Patches: res_musiconhold_division_by_zero.patch uploaded by jcomellas (license 282) Additional changes added by me. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@89037 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-05Don't check used pooled connections for connection status, as it will cause ↵tilghman1-1/+1
issues for prepared queries. Reported by: Nick Gorham (via -dev list) Patch by: tilghman git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@88539 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-31Make sure we free some allocated memory before returning.qwell1-0/+1
Issue 11131, patch by eliel. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@87908 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-30Add two more checks before printing out a warning message about bridging. If ↵file1-2/+2
either channel has hungup of course the bridge will have failed. (closes issue #10009) Reported by: dimas git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@87571 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-12Fix a spelling error in a log message. SMDI, not SDMI.russell1-2/+2
(closes issue #10959) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@85517 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-07Presence packets from a client who's connected with our Jabber ID arephsultan1-2/+6
valid, therefore, those clients must be considered as buddies. The resource string helps us make the distinction between clients. Closes issue #10707, reported by yusufmotiwala. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@84902 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-07Prevent Asterisk from crashing when receiving a presence packetphsultan1-9/+4
without resource from a buddy that is known to have a resource list. Revert a change I previously made, where Asterisk could point to a freed memory location. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@84890 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-02Fix some odd formatting I missed..qwell1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@84437 f38db490-d61c-443f-a65b-d21fe96a405b