dect
/
asterisk
Archived
13
0
Fork 0
Commit Graph

10643 Commits

Author SHA1 Message Date
rizzo 4b06443b14 Part of the transformations necessary to add TLS support,
as described in
http://lists.digium.com/pipermail/asterisk-dev/2006-December/025213.html

In detail, this commit does the following:

b) change the function get_input() to use fread() instead of read()
   to collect the data. One can still do the ast_wait_for_input() on
   the original descriptor returned by accept().

c) change the function send_string() to work on the FILE *.
   As a side effect, this change now really guarantees that
   we don't spend more than "writetimeout" milliseconds on
   each line sent.

d) modify the function action_command() so that it creates a
   temporary file descriptor to be passed to ast_cli_command(),
   and then read back the data from the temp file and write it
   to the output with send_string(). The code is similar to
   what is done in generic_http_callback() to support AMI-over-HTTP.




git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48332 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-06 18:45:19 +00:00
oej 283491e8f7 Handle multiple 487's correctly
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48327 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-06 16:54:27 +00:00
russell bf06289980 Merged revisions 48323 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r48323 | russell | 2006-12-06 11:15:45 -0500 (Wed, 06 Dec 2006) | 11 lines

Merged revisions 48322 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r48322 | russell | 2006-12-06 11:05:54 -0500 (Wed, 06 Dec 2006) | 3 lines

Fix the name of the rtignoreregexpire option in the sample configuration file.
(issue #8526, arkadia)

........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48325 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-06 16:19:01 +00:00
rizzo dcd0e21c1b Make externally visible some generic code useful to create
and implement services over tcp and/or tcp-tls.
 
This commit is nothing more than moving structure definitions
(and documentation) from main/http.c to include/asterisk/http.h
(temporary location until we find a better place), and removing the
'static' qualifier from server_root() and server_start().
 
The name change (adding the ast_ prefix as a minimum, and then
possibly a more meaningful name) is postponed to future commits.

Does not apply to other versions of asterisk.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48324 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-06 16:17:57 +00:00
oej 6f847542b7 Don't send Contact in SIP Messages (imported from 1.2/1.4).
Reported by Gunnar at Omnitor.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48318 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-06 12:34:58 +00:00
russell 43115b2419 Resolve some pointer signedness compiler warnings in app_osplookup, and
constify a bunch of usage strings for CLI commands.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48307 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-06 07:39:39 +00:00
russell 4299f89c9b Constify a bunch of usage strings for CLI commands.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48306 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-06 07:35:31 +00:00
russell 6559015193 Constify a bunch of usage strings for CLI commands.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48305 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-06 07:31:28 +00:00
russell 0a0c8869de Staticize one, and Constify a bunch of usage strings for CLI commands.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48303 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-06 07:28:56 +00:00
russell 8048b9c718 Constify a bunch of the usage strings for CLI commands.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48302 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-06 07:23:32 +00:00
russell 5087e63494 Instead of creating an unused instance of an unnamed enum, give it a name.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48300 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-06 07:16:09 +00:00
russell 7de3a194dc Make the "usage" member of the ast_cli_entry struct const to resolve a compiler
warning.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48299 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-06 07:15:16 +00:00
qwell 2695844cc9 Blocked revisions 48281 via svnmerge
........
r48281 | file | 2006-12-05 14:45:28 -0600 (Tue, 05 Dec 2006) | 2 lines

Regenerate configure from Qwell's last commit.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48283 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-05 20:52:37 +00:00
file eb55e1242d Regenerate configure for Qwell's last commit.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48282 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-05 20:46:26 +00:00
qwell ecfc18df47 Merged revisions 48279 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48279 | qwell | 2006-12-05 14:42:52 -0600 (Tue, 05 Dec 2006) | 4 lines

Fix curl version number testing to be much more friendly to non-bash shells.

Issue 8508, patch by me.  This *SHOULD* be POSIX compliant now..

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48280 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-05 20:44:12 +00:00
oej c1729817c5 Doxygen updates
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48277 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-05 20:39:13 +00:00
qwell 4bbefa5c47 Expand on r48273 (from issue 8506), to translate more of the fskmodem stuff to English.
r48273 dealt with the comments and such, this deals with the code itself.
(This couldn't have been easily done if it weren't for 48273 - thanks again for that merbanan)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48276 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-05 20:15:37 +00:00
oej 0fca2eac77 Issue #8506 - translate spanish comments in fskmodem to english (according to bug guidelines)
Thanks merbanan!


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48273 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-05 19:41:26 +00:00
oej eea4555a9b Blocking invitestate patch that is already merged to svn trunk.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48271 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-05 17:34:55 +00:00
oej f25fbe1e34 Adding docs on t.38
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48269 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-05 16:48:15 +00:00
transnexus 61f005e3d9 1. Change to remove the compiling warning: "app_osplookup.c:2169: warning: initialization discards qualifiers from pointer target type"
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48266 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-05 14:33:21 +00:00
oej b4c95c1876 Well, yes...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48259 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-05 11:09:23 +00:00
oej 1158861b78 Reserving flags for coming code (currently in the "videocaps" branch)
implementing T.140 support in RTP.

T.140/RFC 4351 is TDD over IP - text telephony for hearing impaired.
It defines a realtime text chat, much like the old "talk" application
in Unix. 

T.140 is character by character in real time. It's not 
the same as our current MESSAGE format - that is more like IM, but
can be gatewayed to MESSAGE with a text "codec" if needed.

More patches will follow, as soon as we've separated this code from
the video capabilities functions in the videocaps branch.

Code by John Martin, Aupix (disclaimer on file)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48258 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-05 10:52:53 +00:00
tilghman 99dfd35cae Merged revisions 48254 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48254 | tilghman | 2006-12-04 19:41:02 -0600 (Mon, 04 Dec 2006) | 2 lines

Oops, forgot to release the odbc handle

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48255 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-05 01:46:14 +00:00
tilghman c0a6c60abc Merged revisions 48252 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r48252 | tilghman | 2006-12-04 19:34:34 -0600 (Mon, 04 Dec 2006) | 14 lines

Merged revisions 48251 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r48251 | tilghman | 2006-12-04 19:26:08 -0600 (Mon, 04 Dec 2006) | 6 lines

If the recording in the database is too large, it will fail to retrieve with
an mmap error.  Not too sure why this doesn't happen when we put it in the
database, also, but since that doesn't seem to be broken, I'm not going to fix
it (at least until someone reports it).  Solution is to ask for the file in
smaller chunks.  (Bug 8385)

........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48253 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-05 01:39:53 +00:00
qwell eac9745170 Merged revisions 48248 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48248 | qwell | 2006-12-04 15:48:41 -0600 (Mon, 04 Dec 2006) | 2 lines

Fix an issue which didn't allow unavail/greet/busy/etc messages from being saved into ODBC (and probably IMAP).

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48249 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-04 21:49:38 +00:00
file bb63d4c197 Blocked revisions 48234 via svnmerge
................
r48234 | file | 2006-12-04 13:16:31 -0500 (Mon, 04 Dec 2006) | 9 lines

Blocked revisions 48233 via svnmerge

........
r48233 | file | 2006-12-04 13:14:46 -0500 (Mon, 04 Dec 2006) | 2 lines

If the generic bridge tells us not to retry, and we have a frame to spit out then break the bridge. Props to markit in #asterisk-bugs for bringing this up.

........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48235 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-04 18:18:07 +00:00
qwell b88715abc7 Merged revisions 48230 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48230 | qwell | 2006-12-04 11:54:46 -0600 (Mon, 04 Dec 2006) | 4 lines

Add documentation to voicemail.conf.sample for ODBC storage.

Issue 8499 - patch by blitzrage.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48231 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-04 17:55:38 +00:00
qwell a94539cd5b Merged revisions 48228 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48228 | qwell | 2006-12-04 11:43:24 -0600 (Mon, 04 Dec 2006) | 4 lines

Attempt to document some of the dependencies that are needed for net-snmp

Issue 8499 - initial patch by blitzrage.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48229 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-04 17:44:12 +00:00
russell 4151f29b5e Merged revisions 48223 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48223 | russell | 2006-12-03 01:34:14 -0500 (Sun, 03 Dec 2006) | 3 lines

When "fetch" is in use, instead of "wget", --continue is not a valid option.
(issue #8451)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48224 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-03 06:35:46 +00:00
oej 4e1f97b1e8 Cleaning up handle_response a bit. (Imported from 1.4)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48220 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-02 22:03:14 +00:00
oej 30d644ce7a Removing two .h files means we need to update cleancount to force
make depend again (or ?)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48217 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-02 20:50:54 +00:00
oej 66c14bf0ff Send CANCEL to call with early media (PROGRESS INBAND).
This is imported from branch "invitestate" and "invitestate-1.4"

***
***
*** IF YOU HAVE ISSUES WITH BYEs/CANCELs - PLEASE UPDATE AND TEST AGAIN!
*** 	Thank you!
***
***

/Olle


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48216 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-02 20:30:58 +00:00
oej 6ce1ca0731 Invitestate updates
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48213 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-02 19:11:02 +00:00
oej d99d1709ef Oops.
Something is wrong in the agi directory. Asking for autoconfig.h.
I have it disabled locally, but no reason to commit that change.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48208 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-02 17:40:58 +00:00
oej f7f2adaf49 Doxygenification
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48206 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-02 14:07:20 +00:00
oej 59e97e4914 - Code formatting
- remove coef_in.h and coef_out.h that was only included as data definitions in fskmodem.c

If you understand spanish, please help us translate the comments in fskmodem.c. Thanks!


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48205 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-02 13:40:13 +00:00
oej 10d3f3f5ba - Disable RTP timeouts during T.38 transmission
- Encapsulate RTP timers to the RTP structure, so we have one set for video and one for audio
- Document RTP keepalive configuration option
- Cleanup and document the monitor support function to hangup on RTP timeouts
- Add RTP keepalive to SIP show settings

Imported from 1.4 with modifications for trunk.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48200 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-02 12:05:40 +00:00
russell be7b4bb5fe Blocked revisions 48195 via svnmerge
........
r48195 | russell | 2006-12-01 22:50:58 -0500 (Fri, 01 Dec 2006) | 3 lines

Backport the comment containing the warning regarding the limitations on the
usage of this function.  It is thread safe, but not technically reentrant.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48196 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-02 03:53:02 +00:00
kpfleming 53723d66bf Merged revisions 48193 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r48193 | kpfleming | 2006-12-01 17:37:28 -0600 (Fri, 01 Dec 2006) | 10 lines

Merged revisions 48192 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r48192 | kpfleming | 2006-12-01 17:30:59 -0600 (Fri, 01 Dec 2006) | 2 lines

if Dial() is going to send music-on-hold to the calling party, it has to send PROGRESS first to ensure that the reverse audio path has been setup first (BE-106)

........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48194 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-01 23:39:59 +00:00
russell f1781a983a Merged revisions 48190 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48190 | russell | 2006-12-01 18:16:28 -0500 (Fri, 01 Dec 2006) | 12 lines

FreeBSD 6.1 does not include wget by default.  However, it has fetch which will
work just fine for our purposes of downloading the sounds packages.  So, check
for both wget and fetch and the configure script and use what was found to
download them.  If neither one was found, and sound packages are selected that
must be downloaded, the install process will print out an informative error
message indicating the situation.

Also, fix a couple places where "make" was hard coded into some output messages
by replacing them with the $(MAKE) variable.

(issue #8451, initial patch by pabelanger, with additional modifications by me)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48191 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-01 23:20:17 +00:00
oej 1b52b6dedd Formatting fix
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48188 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-01 20:49:06 +00:00
qwell db7a556c93 Merged revisions 48186 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r48186 | qwell | 2006-12-01 14:25:51 -0600 (Fri, 01 Dec 2006) | 10 lines

Merged revisions 48183 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r48183 | qwell | 2006-12-01 14:19:10 -0600 (Fri, 01 Dec 2006) | 2 lines

Fix a small typo - issue 8848, reported by pabelanger

........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48187 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-01 20:26:44 +00:00
tilghman fb583000ba Merged revisions 48179 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48179 | tilghman | 2006-12-01 13:38:59 -0600 (Fri, 01 Dec 2006) | 2 lines

Double-unlock error (reported by blitzrage on IRC)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48180 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-01 19:41:02 +00:00
oej a85decf9c3 - Remove T.38 early media, since T.38 requires two way communication (imported from 1.4)
- Small fixes to limitonpeer


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48178 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-01 18:16:16 +00:00
oej 8cd94a1153 Tiny doxygen improvement
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48175 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-01 17:33:56 +00:00
file a9383ac927 Merged revisions 48168 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48168 | file | 2006-11-30 16:18:24 -0500 (Thu, 30 Nov 2006) | 2 lines

Do not do a partial bridge for Google Talk since we need to handle STUN. (issue #8448 reported by phsultan)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48169 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-30 21:22:01 +00:00
oej b631ec45c7 Issue #8319 (imported from 1.2, 1.4) - Increment nonce-count properly (noriyuki)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48167 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-30 20:55:43 +00:00
oej 7d8d79e3ae Documentation updates
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48164 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-30 20:34:23 +00:00
file 206a2148e0 Blocked revisions 48162 via svnmerge
................
r48162 | file | 2006-11-30 15:28:19 -0500 (Thu, 30 Nov 2006) | 9 lines

Blocked revisions 48161 via svnmerge

........
r48161 | file | 2006-11-30 15:27:29 -0500 (Thu, 30 Nov 2006) | 2 lines

Don't write AST_FRAME_NULL or AST_FRAME_IAX frames out to the channel driver. (issue #8390 reported by hselasky)

........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48163 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-30 20:29:11 +00:00