dect
/
asterisk
Archived
13
0
Fork 0
Commit Graph

17785 Commits

Author SHA1 Message Date
tilghman 35a531aa1e Blocked revisions 188149 via svnmerge
........
  r188149 | tilghman | 2009-04-13 18:04:15 -0500 (Mon, 13 Apr 2009) | 4 lines
  
  If fileconfig limit exceeds our maximum, then set the limit to the maximum.
  (Closes issue #14888)
  Reported by: falves11
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@188150 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-13 23:05:53 +00:00
mmichelson 01e0471101 Fix another crash related to cached realtime music on hold.
This was another off-by-one problem caused by moh_register.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@188102 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-13 19:31:48 +00:00
file 2aa5a22ba9 Fix a bug where using an outbound proxy would cause the local address to be 127.0.0.1.
Copy the outbound proxy IP address into the SIP dialog structure as the IP address we will
be sending to. This has to be done because the logic that determines what local IP address to use
in the SIP messages is not aware of an outbound proxy being in place. It only knows what IP address
we are sending to.

(closes issue #12006)
Reported by: mnicholson


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@188067 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-13 16:28:06 +00:00
mmichelson 4809abc20d Set all queue variables on both the caller and member channels.
This allows for the variables to be accessed if a member macro is run.
Thanks to Grigoriy Puzankin for bringing this up on the -dev list.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@188032 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-13 14:17:56 +00:00
jpeeler 89f9092063 Blocked revisions 187962 via svnmerge
........
  r187962 | jpeeler | 2009-04-10 17:16:13 -0500 (Fri, 10 Apr 2009) | 9 lines
  
  Fix module embedding for chan_h323.
  
  Include libchanh323.a in the modules.link file so that all the symbols can be
  resolved at link time.
  
  (closes issue #11966)
  Reported by: dome
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@187963 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-10 22:16:38 +00:00
jpeeler 5927a438d4 Fix module embedding for chan_h323.
Include libchanh323.a in the modules.link file so that all the symbols can be
resolved at link time.

(closes issue #11966)
Reported by: dome
Patches:
      issue_11966.patch uploaded by kpfleming (license 421)
Tested by: jpeeler



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@187906 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-10 20:26:46 +00:00
russell a25c4b354d Blocked revisions 187865 via svnmerge
........
r187865 | russell | 2009-04-10 14:26:40 -0500 (Fri, 10 Apr 2009) | 4 lines

Support "signaling" in addition to "signalling".

The sample configuration file has references to both spellings.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@187866 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-10 19:27:23 +00:00
mmichelson 44dce428af Indicating connected line or redirecting updates were missing a call to lock the local_pvt.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@187830 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-10 18:56:52 +00:00
file 90e787d30c Change how we set the local and remote address.
The code will now only change the address and port. It will not overwrite any other values.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@187773 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-10 18:14:47 +00:00
file f52aa65700 Fix some uninitialized memory notices that appeared under valgrind.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@187772 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-10 18:02:44 +00:00
mmichelson 250420f44f Make sure tc is unlocked before calling ast_call since calling a Local
channel could result in a deadlock.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@187770 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-10 17:32:25 +00:00
tilghman a7cb278b85 Merged revisions 187763 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r187763 | tilghman | 2009-04-10 12:28:46 -0500 (Fri, 10 Apr 2009) | 2 lines
  
  Add lastms column to the contributed table designs
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@187764 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-10 17:29:34 +00:00
kpfleming 2becf0b253 clean up some patterns for files to remove
add embedding support for bridge and test modules



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@187721 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-10 16:51:44 +00:00
mmichelson 0fdeed176c ast_strdup failures aren't really failures if the original value was NULL.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@187714 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-10 16:26:48 +00:00
mmichelson 37f2471e2b Don't let ast_channel_alloc fail if explicitly passed NULL cid_name or cid_number.
This also fixes a small memory leak.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@187680 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-10 16:06:22 +00:00
russell cce40f89b4 Disable test modules by default.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@187675 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-10 16:00:29 +00:00
tilghman 5de3fe02ad Ensure pvt is not NULL before dereferencing it.
(closes issue #14784)
 Reported by: pj


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@187674 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-10 15:59:40 +00:00
dvossel a99460f913 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.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@187673 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-10 15:49:16 +00:00
kpfleming d011662b17 revert addition of LOG_SECURITY log channel; after further discussion, a much better solution will be used
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@187636 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-10 15:11:16 +00:00
rmudgett 80028d9c5e Miscellaneous minor changes to chan_misdn.
* Miscellaneous spacing and comment changes.
* Minor code rearangements.
* Miscellaneous doxygen comments.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@187635 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-10 14:53:59 +00:00
rmudgett 7b2b6e7a58 Make chan_misdn_log() avoid generating the log message if logging is disabled.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@187634 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-10 14:50:42 +00:00
tilghman ab22019265 Modify headers and macros, according to Russell's suggestions on the -dev list
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@187599 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-10 03:55:27 +00:00
mmichelson 9e631e31c3 Add a new option, mwi_from, to sip.conf.
This allows for you to change the From header for outgoing MWI
NOTIFY requests. Prior to this, the best you could do was to
set a callerid in the general section of sip.conf. The problem
was that this was used for all outbound requests, not just
MWI NOTIFY requests.

AST-201



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@187560 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-09 21:06:26 +00:00
dvossel e90a0ddbbf More changes concerning r187426. Revised where locks are placed.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@187556 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-09 20:40:34 +00:00
jpeeler 0553909c65 Add ability for dialplan execution to continue when caller hangs up.
The F option to app_dial has been modified to accept no parameters and perform
the above functionality. I don't see anywhere else that is doing function
overloading, but this really is the best place for this operation because:

- It makes it close to the 'g' option in the argument list which provides
similar functionality.
- The existing code to support the current F option provides a very
convienient location to add this new feature.

(closes issue #12381)
Reported by: michael-fig



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@187491 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-09 19:10:02 +00:00
mmichelson 7ee1f97552 Merged revisions 187484 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r187484 | mmichelson | 2009-04-09 13:51:20 -0500 (Thu, 09 Apr 2009) | 18 lines
  
  Handle a SIP race condition (reinvite before an ACK) properly.
  
  RFC 5047 explains the proper course of action to take if a 
  reINVITE is received before the ACK from a previous invite
  transaction. What we are to do is to treat the reINVITE as
  if it were both an ACK and a reINVITE and process it normally.
  
  Later, when we receive the ACK we had been expecting, we will
  ignore it since its CSeq is less than the current iseqno of
  the sip_pvt representing this dialog.
  
  (closes issue #13849)
  Reported by: klaus3000
  Patches:
        13849_v2.patch uploaded by mmichelson (license 60)
  Tested by: mmichelson, klaus3000
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@187488 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-09 18:58:41 +00:00
tilghman fefac6b6c0 Merged revisions 187428 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r187428 | tilghman | 2009-04-09 13:08:20 -0500 (Thu, 09 Apr 2009) | 8 lines
  
  Race condition between ast_cli_command() and 'module unload' could cause a deadlock.
  Add lock timeouts to avoid this potential deadlock.
  (closes issue #14705)
   Reported by: jamessan
   Patches: 
         20090320__bug14705.diff.txt uploaded by tilghman (license 14)
   Tested by: jamessan
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@187483 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-09 18:40:01 +00:00
dvossel b7e3c49c28 Fixes deadlock caused by calling get_cid_name with chan locked.
get_cid_name should not be called with a channel lock.  get_cid_name calls ast_get_hint which eventually calls pbx_find_extension.  pbx_find_extension starts and stops autoservice which should not be done with a channel lock, so get_cid_name should not be called with one.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@187426 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-09 17:39:10 +00:00
mmichelson 3ebc0934e1 Use safe macro practices even though they really aren't necessary.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@187424 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-09 17:34:39 +00:00
mmichelson bdf215c55d Fix a crash in res_musiconhold when using cached realtime moh.
The moh_register function links an mohclass and then immediately
unrefs the class since the container now has a reference. The problem
with using realtime music on hold is that the class is allocated,
registered, and started in one fell swoop. The refcounting logic 
resulted in the count being off by one. The same problem did not
happen when using a static config because the allocation and registration
of an mohclass is a separate operation from starting moh. This also did
not affect non-cached realtime moh because the classes are not registered
at all.

I also have modified res_musiconhold to use the _t_ variants of the ao2_
functions so that more info can be gleaned when attempting to trace the
refcounts. I found this to be incredibly helpful for debugging this issue
and there's no good reason to remove it.

(closes issue #14661)
Reported by: sum



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@187421 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-09 17:30:39 +00:00
tilghman 9271f8a127 Allow '/' in username portion of register; this is a regression.
(closes issue #14668)
 Reported by: Netview


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@187381 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-09 17:20:49 +00:00
tilghman f207dd463c Merged revisions 187362 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r187362 | tilghman | 2009-04-09 11:38:37 -0500 (Thu, 09 Apr 2009) | 3 lines
  
  Permit zero-length text messages in SIP.
  (Related to an issue posted to the -users list, subject "AEL2, BASE64_DECODE and hexadecimal")
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@187363 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-09 16:39:43 +00:00
file 909e050f48 Do not try to send the format read/format write/make compatible options over IAX2.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@187361 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-09 16:27:53 +00:00
file 0728169c6a Add support for allowing the channel driver to handle transcoding.
This was accomplished using a set of options and the setoption channel callback.
The core calls into the channel driver using these options and the channel driver
either returns success or failure.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@187360 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-09 16:19:35 +00:00
tilghman 4dd6e6e2f7 Merged revisions 187300-187301 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r187300 | tilghman | 2009-04-08 23:31:38 -0500 (Wed, 08 Apr 2009) | 3 lines
  
  Add debugging mode for diagnosing file descriptor leaks.
  (Related to issue #14625)
........
  r187301 | tilghman | 2009-04-08 23:32:40 -0500 (Wed, 08 Apr 2009) | 2 lines
  
  Oops, missed this file in the last commit.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@187302 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-09 04:59:05 +00:00
kpfleming ad6c07010d add a dedicated log channel for modules to be able report security-related events, so that they can be fed into external processes for analysis and possible mitigation efforts
(inspired by this evening's Toronto Asterisk Users Group meeting and previous dicussions amongst various community members)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@187269 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-09 02:44:27 +00:00
jpeeler 91ed7a2ff8 Add timer for features so that backup bridge config can go away
The biggest change done here was elimination of the backup_config for use with
features. Previously, the bridging code upon detecting a feature would set the
start time of the bridge to the start time of the feature. Then after the 
feature had either expired or timed out the start time would be reset to the
true bridge start time from the backup_config. Now, the time differences are
calculated with respect to the newly added feature_start_time timeval instead.

There should be no behavior changes from the previous functionality aside from
the bridge timing being unaffected by either valid or partial feature matches.
Previously the timing would be increased by the length of time configured for
featuredigittimeout, which was probably never noticed.

(closes issue #14503)
Reported by: KNK
Tested by: jpeeler

Review: http://reviewboard.digium.com/r/179/


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@187211 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-08 21:00:39 +00:00
tilghman baa1151d7e Recorded merge of revisions 187209 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r187209 | tilghman | 2009-04-08 15:39:13 -0500 (Wed, 08 Apr 2009) | 4 lines
  
  Backport resolution for file descriptor leak in 1.6.0 to 1.4.
  This fixes short reads in http manager sessions, such as those done by the
  ast-gui branch.  (Fixes AST-198)
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@187210 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-08 20:39:55 +00:00
russell 9569e1c86e Add documentation for reviewboard usage and guidelines.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@187179 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-08 19:59:21 +00:00
mmichelson b872543b6f Blocked revisions 187135 via svnmerge
........
  r187135 | mmichelson | 2009-04-08 14:16:49 -0500 (Wed, 08 Apr 2009) | 8 lines
  
  Fix a crash due to too few arguments to RetryDial.
  
  (closes issue #14852)
  Reported by: junky
  Patches:
        retry_fix.diff uploaded by junky (license 177)
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@187138 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-08 19:18:10 +00:00
file a81a0d84a7 Fix a bug where we would native bridge when we did not want to.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@187108 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-08 18:12:28 +00:00
russell bfa0727781 Remove duplicate prototype for temp_peer().
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@187105 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-08 17:51:35 +00:00
tilghman f0f84bc88d If the first column is empty, output a delimiter anyway.
(closes issue #14848)
 Reported by: john8675309
 Patches: 
       20090408__bug14848.diff.txt uploaded by tilghman (license 14)
 Tested by: john8675309


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@187050 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-08 17:08:43 +00:00
mmichelson 960576989e Merged revisions 187045 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r187045 | mmichelson | 2009-04-08 11:52:03 -0500 (Wed, 08 Apr 2009) | 10 lines
  
  Fix a small logical error when loading moh classes.
  
  We were unconditionally incrementing the number of mohclasses
  registered. However, we should actually only increment if the
  call to moh_register was successful.
  
  While this probably has never caused problems, I noticed it
  and decided to fix it anyway.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@187046 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-08 16:52:20 +00:00
file eca1ae36e1 Turn a warning message into a debug message and do not treat two situations as errors when they are not.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@187036 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-08 16:27:36 +00:00
mmichelson 5773c5982d Merged revisions 186984 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r186984 | mmichelson | 2009-04-08 10:26:46 -0500 (Wed, 08 Apr 2009) | 24 lines
  
  Make a couple of changes with regards to a new message printed in ast_read().
  
  "ast_read() called with no recorded file descriptor" is a new message added
  after a bug was discovered. Unfortunately, it seems there are a bunch of places
  that potentially make such calls to ast_read() and trigger this error message
  to be displayed. This commit does two things to help to make this message appear
  less.
  
  First, the message has been downgraded to a debug level message if dev mode is
  not enabled. The message means a lot more to developers than it does to end users,
  and so developers should take an effort to be sure to call ast_read only when
  a channel is ready to be read from. However, since this doesn't actually cause an
  error in operation and is not something a user can easily fix, we should not spam
  their console with these messages.
  
  Second, the message has been moved to after the check for any pending masquerades.
  ast_read() being called with no recorded file descriptor should not interfere with
  a masquerade taking place.
  
  This could be seen as a simple way of resolving issue #14723. However, I still want
  to try to clear out the existing ways of triggering this message, since I feel that
  would be a better resolution for the issue.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@186985 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-08 15:27:41 +00:00
russell 918ce55209 Add some additional notes on release numbering.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@186957 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-08 13:38:27 +00:00
russell 96781f975f Start splitting up miscellaneous doxygen documentation into separate files.
doxyref.h was created to hold miscellaneous documentation that was not specific
to a part of the code.  This file has grown quite a bit so I decided to start
splitting parts of it out into new files.  Now, you can drop a new file into
include/asterisk/doxygen/ and it will be processed by doxygen.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@186953 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-08 13:24:48 +00:00
russell 7578403318 Update some comments and resolve potential memory corruption in chan_sip.
While browsing chan_sip the other day, I noticed this dangerous code in
dialog_needdestroy().  This function is an ao2_callback.  It is absolutely
_not_ okay to unlock the container from within this function.  It's also not
clear why it was useful.  Given that it could cause memory corruption, I have
removed it.

There was also a TODO comment left describing a potential implementation of
an improvement to the needdestroy handling.  I'm not convinced that what was
described is the best choice here, so I have briefly described the way that
this function is used today that could be improved.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@186928 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-08 12:35:57 +00:00
tilghman cb3c695481 Add lastms to the require API call.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@186899 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-08 05:06:22 +00:00