Archived
14
0
Fork 0
Commit graph

15499 commits

Author SHA1 Message Date
seanbright
fbdb5ab9e6 Avoid build warning when execinfo.h isn't available.
(closes issue #12751)
Reported by: ys
Patches:
      check_expr.diff uploaded by ys (license 281)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@118911 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-29 12:12:07 +00:00
murf
e99b6bfc85 Merged revisions 118858 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r118858 | murf | 2008-05-28 18:25:28 -0600 (Wed, 28 May 2008) | 46 lines

(closes issue #10668)
(closes issue #11721)
(closes issue #12726)
Reported by: arkadia
Tested by: murf

These changes:

1. revert the changes made via bug 10668; 
   I should have known that such changes,
   even tho they made sense at the time,
   seemed like an omission, etc, were actually
   integral to the CDR system via forkCDR.
   It makes sense to me now that forkCDR didn't
   natively end any CDR's, but rather depended
   on natively closing them all at hangup time
   via traversing and closing them all, whether
   locked or not. I still don't completely 
   understand the benefits of setvar and answer
   operating on locked cdrs, but I've seen 
   enough to revert those changes also, and
   stop messing up users who depended on that
   behavior. bug 12726 found reverting the changes
   fixed his changes, and after a long review
   and working on forkCDR, I can see why.
2. Apply the suggested enhancements proposed
   in 10668, but in a completely compatible
   way. ForkCDR will behave exactly as before,
   but now has new options that will allow some
   actions to be taken that will slightly 
   modify the outcome and side-effects of
   forkCDR. Based on conversations I've had 
   with various people, these small tweaks
   will allow some users to get the behavior
   they need. For instance, users executing
   forkCDR in an AGI script will find the
   answer time set, and DISPOSITION set, 
   a situation not covered when the routines
  were first written.
3. A small problem in the cdr serializer
   would output answer and end times even
   when they were not set. This is now 
   fixed.



........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@118880 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-29 01:29:09 +00:00
mvanbaak
e6d77dc579 formatting changes.
A lot of whitespace issues have been resolved in this commit
Also some doc updates, but that's only 6 lines


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@118824 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-28 22:05:58 +00:00
mvanbaak
25640fbad2 rename DialTone.h to chan_phone.h because chan_phone.c is the only file using it
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@118790 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-28 20:00:21 +00:00
mmichelson
66384605e2 Update to the janitor project for making sure to be thread-safe when
retrieving the value of a channel variable. This covers app_queue.

This commit also incorporates a logical change. Previously, if MixMonitor
is to be used to record the call, all the arguments were parsed first. Then
the MixMonitor app would be located. Now the order of these operations has
been swapped. Now the app is located first so that we only go through the
work of parsing the arguments if the app was found.

(closes issue #12742)
Reported by: snuffy
Patches:
      bug_12742.diff uploaded by snuffy (license 35)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@118783 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-28 19:56:18 +00:00
mvanbaak
38c1d43431 remove unused astobj.h header file from chan_skinny.c
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@118750 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-28 17:58:21 +00:00
bbryant
1f0e544155 Fixes a bug in chan_iax that uses send_command to poke a peer while a channel is unlocked in some cases, and because it can cause seemingly
random failures could be related to some bugs in the tracker...


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@118702 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-28 16:01:05 +00:00
russell
b8c45c3168 Fix a linkage error related to the lock backtrace support
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@118695 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-28 15:56:41 +00:00
file
5b36af1375 Merged revisions 118646 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r118646 | file | 2008-05-28 11:23:34 -0300 (Wed, 28 May 2008) | 4 lines

Add an option to use the source IP address of RTP as the destination IP address of UDPTL when a specific option is enabled. If the remote side is properly configured (ports forwarded) then UDPTL will flow.
(closes issue #10417)
Reported by: cstadlmann

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@118647 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-28 14:29:01 +00:00
phsultan
1c54e6bf03 Changed to temporary namespaces to match with latest XEPs. As soon as
Jingle is completely standardized, we can set those namespaces to their
final values.

Added two attributes to the jingle_pvt struct to store the content
name attributes. Reported by Robert McQueen on Telepathy's framework
mailing list :
http://lists.freedesktop.org/archives/telepathy/2008-May/001971.html

Keeping working on our Jingle stack!

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@118644 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-28 14:10:48 +00:00
phsultan
8b99c27dbf Code simplification
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@118614 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-28 08:39:10 +00:00
bbryant
b9489f3898 Remove loop from the detection of a sequence number that acknowledges
the receiving of a packet that we've kept in memory just incase the 
packet needs to be retransmitted.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@118562 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-27 19:45:41 +00:00
file
ddb2d20802 Merged revisions 118558 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r118558 | file | 2008-05-27 16:32:38 -0300 (Tue, 27 May 2008) | 4 lines

Fix an issue where codec preferences were not set on dialogs that were not authenticated via a user or peer and allow framing to work without rtpmap in the SDP.
(closes issue #12501)
Reported by: slimey

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@118560 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-27 19:34:14 +00:00
russell
61d09097dd Add printf format attribute for vasprintf().
(closes issue #12729)
Reported by: snuffy
Patches:
      bug_12729.diff uploaded by snuffy (license 35)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@118556 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-27 19:27:48 +00:00
tilghman
3707e8c13e Merged revisions 118551 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r118551 | tilghman | 2008-05-27 14:15:27 -0500 (Tue, 27 May 2008) | 6 lines

When showing an error message for a command, don't shorten the command output,
as it tends to confuse the user (it's fine for suggesting other commands,
however).
 Reported by: seanbright (on #asterisk-dev)
 Fixed by: me

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@118554 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-27 19:21:03 +00:00
mmichelson
35d48395b0 Merged revisions 118509 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r118509 | mmichelson | 2008-05-27 14:07:26 -0500 (Tue, 27 May 2008) | 11 lines

Russell noted to me that in the case that separate threads use their
own addressing system, the fix I made for issue 12376 does not guarantee
uniqueness to the datastores' uids. Though I know of no system that works
this way, I am going to change this right now to prevent trying to track
down some future bug that may occur and cause untold hours of debugging
time to track down.

The change involves using a global counter which increases with each new
chanspy_ds which is created. This guarantees uniqueness.


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@118514 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-27 19:08:24 +00:00
tilghman
84444179ec Merged revisions 118465 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r118465 | tilghman | 2008-05-27 13:58:09 -0500 (Tue, 27 May 2008) | 8 lines

NULL character should terminate only commands back to the core, not log
messages to the console.
(closes issue #12731)
 Reported by: seanbright
 Patches: 
       20080527__bug12731.diff.txt uploaded by Corydon76 (license 14)
 Tested by: seanbright

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@118466 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-27 18:59:06 +00:00
mvanbaak
e4e00180c1 Zap is now DAHDI, mkay
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@118419 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-27 17:33:21 +00:00
mvanbaak
294059c9f0 small update to the g() option of app_voicemail to
note that gain changes only work on zap channels right now.
issue #12578 shows it's not clear right now.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@118417 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-27 17:21:12 +00:00
mmichelson
a334014b88 Merged revisions 118365 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r118365 | mmichelson | 2008-05-27 11:38:38 -0500 (Tue, 27 May 2008) | 14 lines

Add a unique id to the datastore allocated in app_chanspy since
it is possible that multiple spies may be listening to the same
channel.

(closes issue #12376)
Reported by: DougUDI
Patches:
      12376_chanspy_uid.diff uploaded by putnopvut (license 60)
Tested by: destiny6628

(closes issue #12243)
Reported by: atis


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@118371 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-27 16:43:36 +00:00
tilghman
170e2e3730 Merged revisions 118358 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r118358 | tilghman | 2008-05-27 10:45:37 -0500 (Tue, 27 May 2008) | 3 lines

Add a note that pbx_config.so is needed for Local channels.
(Closes issue #12671)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@118359 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-27 15:46:58 +00:00
russell
972fcd5bca Add printf attribute to asprintf
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@118328 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-27 14:51:13 +00:00
tilghman
0ae2420f01 When binding anonymously, credentials are still needed.
(closes issue #12601)
 Reported by: suretec
 Patches: 
       res_config_ldap.c.patch uploaded by suretec (license 70)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@118302 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-27 13:30:10 +00:00
tilghman
6705ac3b96 In compat14 mode, don't translate pipes inside expressions, as they aren't
argument delimiters, but rather 'or' symbols.
(Closes issue #12723)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@118300 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-27 13:13:17 +00:00
tilghman
0fc5cd015e Merged revisions 118251 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r118251 | tilghman | 2008-05-25 11:02:04 -0500 (Sun, 25 May 2008) | 12 lines

Realtime flag affects construction in multiple ways, so consulting whether
rtcachefriends was set was done too soon (needed to be done inside build_peer,
not just as a flag to build_peer).
Also, fullcontact needed to be reconstructed, because realtime separates the
embedded ';' into multiple fields.
(closes issue #12722)
 Reported by: barthpbx
 Patches: 
       20080525__bug12722.diff.txt uploaded by Corydon76 (license 14)
 Tested by: barthpbx
 (Much of the discussion happened on #asterisk-dev for diagnosing this issue)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@118252 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-25 16:17:05 +00:00
tilghman
30298a3d74 Change space-zero to now evaluate to false, as is expected by a great many.
(Inspired by a post on the -users list)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@118223 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-25 14:31:29 +00:00
jpeeler
b98c9fb9ad add document describing API changes from 1.4.0 to 1.6.0
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@118178 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-24 01:14:41 +00:00
jpeeler
bfe1f28357 Fixes segfault in parking, patch submitted by bmd.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@118176 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-24 00:37:01 +00:00
mmichelson
1a709659e7 Make sure not to include non-existent headers if they indeed are non-existent
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@118175 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-23 22:41:28 +00:00
mmichelson
c0ca2a427b A new feature thanks to the fine folks at Switchvox!
If a deadlock is detected, then the typical lock information will be
printed along with a backtrace of the stack for the offending threads.
Use of this requires compiling with DETECT_DEADLOCKS and having glibc
installed.

Furthermore, issuing the "core show locks" CLI command will print the
normal lock information as well as a backtraces for each lock. This
requires that DEBUG_THREADS is enabled and that glibc is installed.

All the backtrace features may be disabled by running the configure
script with --without-execinfo as an argument



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@118173 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-23 22:35:50 +00:00
jpeeler
972905a635 Merged revisions 118163 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r118163 | jpeeler | 2008-05-23 16:21:35 -0500 (Fri, 23 May 2008) | 1 line

Fix a few things I missed to ensure zt_chan_conf structure is not modified in mkintf
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@118164 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-23 21:26:39 +00:00
bbryant
3342d99a30 Add new functionality to http server that requires manager authentication for any path that includes a directory named 'private'. This patch also
requires manager authentication for any POST's being sent to the server as well to help secure uploads.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@118161 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-23 21:19:42 +00:00
mmichelson
efb66dbfff Get rid of warnings for those silly compilers which warn when freeing
a const pointer



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@118159 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-23 20:55:02 +00:00
mmichelson
1cc3d8cd64 Use a deep copy on strings that come from ast_events. Otherwise it is
likely that after the event is freed, we no longer refer to valid memory.

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



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@118157 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-23 19:57:40 +00:00
tilghman
056f6458fb Protect the object from changing while the 'odbc show' CLI command is running
(Closes issue #12704)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@118129 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-23 18:09:14 +00:00
mvanbaak
4070216d0d add option 'a' to chanisavail.
If you give chanisavail a list of channels, it will only
return the first available channel.
When this option is set, it will return all the available
channels from the given list.

(closes issue #12248)
Reported by: dagmoller
Patches:
      app_chanisavail-snv.patch-v2.txt uploaded by dagmoller (license 436)
	   - major changes by me because russellb pointed out some buffer overflows
	     and codeguideline issues.
		 Converted it all to the ast_str_* api
Tested by: dagmoller, mvanbaak


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@118101 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-23 17:12:04 +00:00
tilghman
63f5728e36 Blocked revisions 118055 via svnmerge
........
r118055 | tilghman | 2008-05-23 08:18:44 -0500 (Fri, 23 May 2008) | 2 lines

Add format type checking for recently de-inlined function

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@118059 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-23 13:20:13 +00:00
tilghman
6b2832a223 Merged revisions 118052 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r118052 | tilghman | 2008-05-23 07:59:16 -0500 (Fri, 23 May 2008) | 3 lines

Add information on using the Asterisk console, including tab command line
completion.  (Closes issue #12681)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@118053 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-23 13:00:10 +00:00
russell
af1225cb40 Merged revisions 118048 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r118048 | russell | 2008-05-23 07:30:53 -0500 (Fri, 23 May 2008) | 9 lines

Don't declare a function that takes variable arguments as inline, because it's
not valid, and on some compilers, will emit a warning.

http://gcc.gnu.org/onlinedocs/gcc/Inline.html#Inline

(closes issue #12289)
Reported by: francesco_r
Patches by Tilghman, final patch by me

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@118049 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-23 12:37:31 +00:00
phsultan
5f862e6853 - remove whitespaces between tags in received XML packets before giving
them to the parser ;
- report Gtalk error messages from a buddy to the console.

This patch makes Asterisk "Google Jingle" (chan_gtalk) implementation
work with Empathy. Note that this is only true for audio streams, not
video.

Thank you to PH for his great help!

(closes issue #12647)
Reported by: PH
Patches:
      trunk-12647-1.diff uploaded by phsultan (license 73)
Tested by: phsultan, PH

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@118020 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-23 10:33:21 +00:00
seanbright
42112d02ed Split the compile flags out and wire up some dependencies
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117988 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-22 21:43:54 +00:00
tilghman
46228c9f27 Add a compatibility option for upgrading realtime extensions
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117986 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-22 21:42:50 +00:00
tilghman
0e4582bd18 Fix trunk breakage
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117983 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-22 21:27:00 +00:00
seanbright
48a9c82ec6 A couple more places the frame data change was missed.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117950 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-22 20:01:33 +00:00
tilghman
b9f8e799b4 Merged revisions 117899 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r117899 | tilghman | 2008-05-22 13:53:53 -0500 (Thu, 22 May 2008) | 2 lines

Also remove preamble from asynchronous events (reported by jsmith on #asterisk-dev)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117900 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-22 18:54:41 +00:00
mvanbaak
f7da1afd17 one more place I forgot
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117870 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-22 17:50:40 +00:00
mvanbaak
4273f5594b chan_console fixes because of ast_frame.data => ast_frame.data.ptr
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117834 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-22 17:16:08 +00:00
qwell
dac7a3528e Fix a few places where frame data was used directly.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117828 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-22 17:10:53 +00:00
mvanbaak
9ae780c750 oops
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117825 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-22 17:08:18 +00:00
mvanbaak
66d289c074 forgot chan_misdn
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117822 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-22 17:06:00 +00:00