dect
/
asterisk
Archived
13
0
Fork 0
Commit Graph

16829 Commits

Author SHA1 Message Date
kpfleming 939ebd07ea as suggested by jtodd, document the purposes of the CHANGES and UPGRADE files
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@158449 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-21 20:42:37 +00:00
qwell 54ab13f9c0 Make sure we add the Event header for CoreShowChannels.
(closes issue #13334)
Reported by: srt
Patches:
      13334_missing_event_header_in_core_show_channel.diff uploaded by srt (license 378)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@158414 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-21 19:40:57 +00:00
twilson 1f5264224f Reloading the config and having no changes still initialized some settings to 0. Initialize settings after doing all of the cfg checks.
(closes issue #13942)
Reported by: davidw
Patches: 
      cdr_diff.txt uploaded by otherwiseguy (license 396)
Tested by: davidw


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@158374 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-21 17:08:16 +00:00
dbailey 8e050d8258 Add fix to prevent crash during reload if there is an outstanding MWI registration message pending.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@158315 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-21 15:53:49 +00:00
mmichelson 93378c395e Blocked revisions 158306 via svnmerge
........
r158306 | mmichelson | 2008-11-21 09:24:19 -0600 (Fri, 21 Nov 2008) | 5 lines

This change had somehow gotten reverted due to a
completely unrelated commit. Thanks to Theo Belder
on the Asterisk-dev list for pointing this out.


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@158307 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-21 15:25:58 +00:00
mmichelson f01e9f7c98 Use a more expressive constant for a 64-bit scanned int
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@158266 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-21 01:22:18 +00:00
mmichelson 1ad2d0a271 Use some magic constants to get the right size
for this sscanf statement. Thanks Richard!



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@158265 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-21 01:14:20 +00:00
mmichelson cbd2002e6b Fix the build for 32-bit systems. %lu is only 32-bits
on 32-bit systems, so we need to use %llu instead. Of course
%llu is 128-bits on 64-bit systems, so we have to cast to
unsigned long long. No harm, but it's sure annoying.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@158262 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-21 00:59:23 +00:00
mmichelson c2daf6378b Change the remote user agent session version variable
from an int to a uint64_t. This prevents potential comparison
problems from happening if the version string exceeds
INT_MAX. This was an apparent problem for one user who could
not properly place a call on hold since the version in the
SDP of the re-INVITE to place the call on hold greatly 
exceeded INT_MAX.

This also aligns with RFC 2327 better since it recommends
using an NTP timestamp for the version (which is a 
64-bit number).


(closes issue #13531)
Reported by: sgofferj
Patches:
      13531.patch uploaded by putnopvut (license 60)
Tested by: sgofferj



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@158230 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-20 23:12:50 +00:00
seanbright edc6e5a211 Fix one case where the application argument was not converted from a pipe to
a comma.  This was causing problems with switch statements with empty expressions.

(closes issue #13901)
Reported by: smurfix
Patches:
      20081118_bug13901.diff uploaded by seanbright (license 71)
Tested by: seanbright
Reviewed by: murf


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@158188 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-20 19:41:23 +00:00
mmichelson 55c8679f51 Merged revisions 158072 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r158072 | twilson | 2008-11-20 11:48:58 -0600 (Thu, 20 Nov 2008) | 2 lines

Begin on a crusade to end trailing whitespace!

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@158133 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-20 18:20:00 +00:00
mmichelson 309fa3bb3a Merged revisions 158071 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r158071 | mmichelson | 2008-11-20 11:48:42 -0600 (Thu, 20 Nov 2008) | 16 lines

We don't handle 4XX responses to BYE well. According to
section 15 of RFC 3261, we should terminate a dialog if we
receive a 481 or 408 in response to our BYE. Since I am aware
of at least one phone manufacturer who may sometimes send a 
404 as well, I am being liberal and saying that any 4XX response
to a BYE should result in a terminated dialog.


(closes issue #12994)
Reported by: pabelanger
Patches:
      12994.patch uploaded by putnopvut (license 60)

Closes AST-129


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@158082 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-20 17:54:31 +00:00
rbrindley b95cd319f8 more formatting corrections :: one line for loops and if statements still need {}
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@158078 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-20 17:53:42 +00:00
twilson 9be5084204 Begin on a crusade to end trailing whitespace!
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@158072 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-20 17:48:58 +00:00
rbrindley 4d438a3805 formatting changes :: one line for loops and if statements should have {}
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@158070 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-20 17:46:56 +00:00
mmichelson 056bae58f4 Merged revisions 158053 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r158053 | mmichelson | 2008-11-20 11:33:06 -0600 (Thu, 20 Nov 2008) | 12 lines

Make sure to set the hangup cause on the calling channel in the case
that ast_call() fails. For incoming SIP channels, this was causing
us to send a 603 instead of a 486 when the call-limit was reached on
the destination channel.

(closes issue #13867)
Reported by: still_nsk
Patches:
      13867.diff uploaded by putnopvut (license 60)
Tested by: blitzrage


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@158066 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-20 17:39:06 +00:00
jpeeler d93047742f (closes issue #12929)
Reported by: snyfer

This handles the case for a zero length file to attempt to be streamed. Instead of failing from not playing any data, go ahead and return success as ast_streamfile should consider playing nothing a success when there is nothing to play.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@158062 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-20 17:37:31 +00:00
qwell e7c79ec5b9 Whitespace fix
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@158061 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-20 17:37:05 +00:00
kpfleming 89ca122df3 Merged revisions 157859 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r157859 | kpfleming | 2008-11-19 15:34:47 -0600 (Wed, 19 Nov 2008) | 7 lines
  
  the gcc optimizer frequently finds broken code (use of uninitalized variables, unreachable code, etc.), which is good. however, developers usually compile with the optimizer turned off, because if they need to debug the resulting code, optimized code makes that process very difficult. this means that we get code changes committed that weren't adequately checked over for these sorts of problems.
  
  with this build system change, if (and only if) --enable-dev-mode was used and DONT_OPTIMIZE is turned on, when a source file is compiled it will actually be preprocessed (into a .i or .ii file), then compiled once with optimization (with the result sent to /dev/null) and again without optimization (but only if the first compile succeeded, of course).
  
  while making these changes, i did some cleanup work in Makefile.rules to move commonly-used combinations of flag variables into their own variables, to make the file easier to read and maintain
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@157974 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-20 00:08:12 +00:00
twilson f34073de7e Fix compiling
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@157973 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-20 00:06:46 +00:00
mmichelson 5f6cfbd6af Add a space to the output
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@157940 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-19 23:30:42 +00:00
mmichelson 1f89eb7c3a Add a RES_NOT_DYNAMIC case for the CLI command
'queue remove member'



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@157939 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-19 23:29:14 +00:00
mmichelson 00371c74a6 Commit CHANGES change I promised when submitting
res_timing_timerfd



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@157906 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-19 22:17:05 +00:00
tilghman f79551a44a Add info about REALTIME_FIELD and REALTIME_HASH
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@157893 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-19 22:01:00 +00:00
mmichelson 39bf89de30 Cast this value since a uint64_t is not the same
as an unsigned long long on a 64-bit machine.

Reported by kpfleming on IRC



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@157874 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-19 21:55:25 +00:00
tilghman 873bae3754 Two new functions, REALTIME_FIELD, and REALTIME_HASH, which should make
querying realtime from the dialplan a little more consistent and easy to use.
The original REALTIME function is preserved, for those who are already
accustomed to that interface.
(closes issue #13651)
 Reported by: Corydon76
 Patches: 
       20081119__bug13651__2.diff.txt uploaded by Corydon76 (license 14)
 Tested by: blitzrage, Corydon76


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@157870 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-19 21:54:39 +00:00
mmichelson 0478a270ed Merge the changes from the res_timing_timerfd branch.
This provides a new timing interface. In order to use it,
you must be running a Linux with a kernel version of
2.6.25 or newer and glibc 2.8 or newer.

This timing interface is a good alternative if a timing
source is necessary (e.g. for IAX trunking) but DAHDI is
otherwise unnecessary for the system.

For now, this commit contains the actual work done in the
res_timing_timerfd branch. There are no notices in the README
or CHANGES files yet, but they will be added in my next commit.

The timing API of Asterisk also needs to have a bit of work done
with regards to choosing which timing interface to use. This commit
makes the choice a build-time decision, by only allowing one of
the timer interfaces to be chosen in menuselect. It would be preferable
if the choice could be made at run-time, however. The preferred timing
interface could be loaded and tested, and if it does not work, choice
number two may be used instead. That sort of thing. That is beyond
the scope of work in this branch though.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@157820 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-19 19:37:32 +00:00
twilson f93ebdba02 Fix checking for CONFIG_STATUS_FILEINVALID so that modules don't crash upon trying to parse an invalid config
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@157818 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-19 19:25:14 +00:00
tilghman 84d63d33ca Add check for t38_terminal_init in spandsp (not found in 0.0.6, so it should fail reasonably)
(closes issue #13473)
 Reported by: genie
 Patches: 
       20080916__bug13473.diff.txt uploaded by Corydon76 (license 14)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@157784 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-19 18:28:14 +00:00
kpfleming 253ec3c141 correct small bug introduced during API conversion
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@157743 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-19 13:45:48 +00:00
kpfleming 119d74be4a move relevant entries into UPGRADE.txt and resync UPGRADE-1.6.txt with previous branches
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@157739 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-19 13:27:02 +00:00
kpfleming 7ad42d39db make some corrections to the ast_agi_register_multiple(), ast_agi_unregister_multiple() and ast_agi_fdprintf() API calls to be consistent with API guidelines
also, move UPGRADE.txt to UPGRADE-1.6.txt and make the new UPGRADE.txt contain information about upgrading between Asterisk 1.6 releases



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@157706 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-19 12:42:19 +00:00
twilson 421ba24996 Comment out config line that is in a commented out context
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@157675 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-19 05:37:10 +00:00
tilghman 6e814d6644 Starting with a change to ensure that ast_verbose() preserves ABI compatibility
in 1.6.1 (as compared to 1.6.0 and versions of 1.4), this change also
deprecates the use of Asterisk with FreeBSD 4, given the central use of va_copy
in core functions.  va_copy() is C99, anyway, and we already require C99 for
other purposes, so this isn't really a big change anyway.  This change also
simplifies some of the core ast_str_* functions.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@157639 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-19 01:02:45 +00:00
mmichelson 88ec29a481 If malloc returns NULL, we need to return NULL immediately or
else Asterisk will crash when attempting to dereference the NULL
pointer

(closes issue #13858)
Reported by: eliel
Patches:
      astmm.c.patch uploaded by eliel (license 64)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@157632 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-19 00:59:48 +00:00
seanbright d5dcd2feb8 Fix a few build problems on Solaris (and check for an md5 utility in
configure instead of the icky loop I was doing before).

(closes issue #13842)
Reported by: snuffy
Patches:
      bug13842_20081106.diff uploaded by snuffy (license 35)
      13842.diff uploaded by seanbright (license 71)
Tested by: snuffy


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@157600 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-19 00:27:45 +00:00
mmichelson 7fe747fbe1 This change prevents a crash from occurring if res_musiconhold.so
is unloaded and then Asterisk is stopped. The problem was that
we are not unregistering the ast_moh_destroy function at exit.

(closes issue #13761)
Reported by: eliel
Patches:
      res_musiconhold.c.patch uploaded by eliel (license 64)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@157592 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-18 23:59:02 +00:00
mmichelson 1be8f9fe8f Add some missing $(DESTDIR)s to the bininstall
target of the Makefile.

(closes issue #13875)
Reported by: pabelanger
Patches:
      Makefile.155928 uploaded by pabelanger (license 224)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@157564 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-18 23:39:41 +00:00
mmichelson c6f4f6c1e7 Fix the logic for when delete=yes when IMAP storage
is in use so that the message is deleted from both
local and IMAP storage.

(closes issue #13642)
Reported by: jaroth
Patches:
      deleteyes.patch uploaded by jaroth (license 50)




git-svn-id: http://svn.digium.com/svn/asterisk/trunk@157562 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-18 23:28:23 +00:00
mmichelson 05b1fae086 Merged revisions 157503 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r157503 | mmichelson | 2008-11-18 16:47:57 -0600 (Tue, 18 Nov 2008) | 13 lines

Add some missing invite state changes necessary in the sip_write
function. Not setting the invite state correctly on the call was
resulting in the Record application leaving empty files. I also
have updated the doxygen comment next to the declaration of the
INV_EARLY_MEDIA constant to reflect that we also use this state
when we *send* a 18X response to an INVITE.

(closes issue #13878)
Reported by: nahuelgreco
Patches:
      sip-early-media-recording-1.4.22.patch uploaded by nahuelgreco (license 162)
	  Tested by: putnopvut

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@157512 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-18 22:54:08 +00:00
mmichelson 8c3fa3762b Based on Russell's advice on the asterisk-dev list, I have
changed from using a global lock in update_call_counter to
using the locks within the sip_pvt and sip_peer structures
instead.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@157496 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-18 21:59:24 +00:00
qwell be51c79720 Remove echo line that is unnecessary (Thanks seanbright).
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@157463 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-18 21:15:08 +00:00
qwell 9a229a7375 Make this executable
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@157461 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-18 21:03:12 +00:00
qwell fd973179a6 Add init script for ArchLinux
(closes issue #13667)
Reported by: sherif
Patches:
      archlinux_rc_makefile.patch uploaded by sherif (license 591)
      archlinux_rc_makefile-2.patch uploaded by mvanbaak (license 7)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@157460 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-18 21:01:46 +00:00
mmichelson 58b7f09f59 * Add a lock to be used in the update_call_counter function.
* Revert logic to mirror 1.4's in the sense that it will not allow
  the call counter to dip below 0.

These two measures prevent potential races that could cause a SIP peer
to appear to be busy forever.

(closes issue #13668)
Reported by: mjc
Patches:
      hintfix_trunk_rev152649.patch uploaded by wolfelectronic (license 586)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@157427 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-18 20:23:58 +00:00
jpeeler da605bfc3c Merged revisions 157365 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r157365 | jpeeler | 2008-11-18 13:13:33 -0600 (Tue, 18 Nov 2008) | 6 lines

(closes issue #13899)
Reported by: akkornel

This fix is the result of a bug fix in ast_app_separate_args r124395. If an argument does not exist it should always be set to a null string rather than a null pointer.


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@157366 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-18 19:16:00 +00:00
mmichelson 135ce47598 Merged revisions 157305 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r157305 | mmichelson | 2008-11-18 12:25:55 -0600 (Tue, 18 Nov 2008) | 12 lines

Fix a crash in the end_bridge_callback of app_dial and
app_followme which would occur at the end of an attended
transfer. The error occurred because we initially stored
a pointer to an ast_channel which then was hung up due
to a masquerade.

This commit adds a "fixup" callback to the bridge_config
structure to allow for end_bridge_callback_data to be
changed in the case that a new channel pointer is needed
for the end_bridge_callback.


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@157306 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-18 18:31:08 +00:00
murf fe4ad3a4a2 (closes issue #13420)
Reported by: alex70
Patches:
      13420.13539.patch uploaded by murf (license 17)
Tested by: murf, awk

This fixes two problems: a spurious linefeed insertion
probably left over from pre-precomment times. Only
generated when category had no previous comments.

The other problem: Insertions could get the line-numbering
out of whack and generate negative line numbers, causing 
chunks of line numbers to be emitted, on the scale of the
number of lines up to that point in the file. In such cases,
abort the looping, and all is well.




git-svn-id: http://svn.digium.com/svn/asterisk/trunk@157302 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-18 18:07:55 +00:00
tilghman af90ed7cfd Can't use items duplicated off the stack frame in an element returned from
a function: in these cases, we have to use the heap, or garbage will result.
(closes issue #13898)
 Reported by: alecdavis
 Patches: 
       20081114__bug13898__2.diff.txt uploaded by Corydon76 (license 14)
 Tested by: alecdavis


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@157253 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-17 22:25:06 +00:00
kpfleming bf74907f91 ensure that if a .i file (preprocessed source) is present, the .o file is made from it, not from the .c file (this only works because GNU makes respects the order the rules are defined)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@157167 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-15 19:51:29 +00:00