dect
/
asterisk
Archived
13
0
Fork 0
Commit Graph

559 Commits

Author SHA1 Message Date
qwell 03f3a0f685 Merged revisions 51146 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r51146 | qwell | 2007-01-16 11:36:53 -0600 (Tue, 16 Jan 2007) | 6 lines

Display more useful output when streaming files.

Include the channel name to which the file is being played.

Issue 8828, patch by junky.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@51147 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-16 17:39:39 +00:00
russell b6714c8699 Merged revisions 51057 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r51057 | russell | 2007-01-15 19:15:44 -0600 (Mon, 15 Jan 2007) | 3 lines

It is possible for the config pointer to be NULL here, so it needs to be
checked before dereferencing it.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@51058 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-16 01:16:57 +00:00
file 96d205289a Merged revisions 50895 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r50895 | file | 2007-01-15 11:36:07 -0500 (Mon, 15 Jan 2007) | 2 lines

Move event processing into do_message so that it gets executed again when events are tripped.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@50896 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-15 16:40:48 +00:00
kpfleming a5d83fb31d Merged revisions 50867 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r50867 | kpfleming | 2007-01-15 09:03:06 -0600 (Mon, 15 Jan 2007) | 2 lines

use the ACX_PTHREAD macro from the Autoconf macro archive for setting up compiler pthreads support... should improve portability to platforms with unusual pthreads requirements

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@50869 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-15 15:08:45 +00:00
file bc7d45f56c Merged revisions 50820 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r50820 | file | 2007-01-14 16:59:05 -0500 (Sun, 14 Jan 2007) | 2 lines

Add missing newlines for two memory CLI commands.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@50821 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-14 22:00:51 +00:00
tilghman 0bff1f49ef Bug 8803 - Fix crash in API
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@50784 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-14 05:34:32 +00:00
tilghman 95b9e252e6 Merged revisions 50782 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r50782 | tilghman | 2007-01-13 23:13:47 -0600 (Sat, 13 Jan 2007) | 10 lines

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

........
r50781 | tilghman | 2007-01-13 23:01:16 -0600 (Sat, 13 Jan 2007) | 2 lines

Bug 8814 - db should look for its header using a relative path, instead of the system path (Fixes FreeWRT)

........

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


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@50783 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-14 05:19:09 +00:00
file 8a4c69c624 Merged revisions 50727 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r50727 | file | 2007-01-13 01:00:24 -0500 (Sat, 13 Jan 2007) | 2 lines

Only write a frame out to the channel if one exists. There are cases where one may not and would therefore cause the channel driver to segfault. (issue #8434 reported by slimey)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@50728 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-13 06:01:49 +00:00
file 451d1a2d55 Exit from session loop upon error (ie: they disconnected) and don't do any buffer manipulation in do_message. get_input will handle it.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@50629 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-12 18:13:50 +00:00
file 9b1dfc49c6 Merged revisions 50602 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r50602 | file | 2007-01-12 11:42:33 -0500 (Fri, 12 Jan 2007) | 2 lines

We need to check for res being 0 in do_message itself, otherwise our headers will get lost.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@50603 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-12 16:47:20 +00:00
kpfleming 1fe1dccf33 make the automatic post-answer delay happen only when the answer is 'automatic' (not done by the Answer() dialplan application)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@50571 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-12 15:01:46 +00:00
kpfleming 809525b045 Merged revisions 50562 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r50562 | kpfleming | 2007-01-12 08:42:24 -0600 (Fri, 12 Jan 2007) | 10 lines

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

........
r50561 | kpfleming | 2007-01-12 08:34:15 -0600 (Fri, 12 Jan 2007) | 2 lines

minor documentation clarification

........

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


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@50563 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-12 14:45:20 +00:00
kpfleming fed10bc0b7 when a channel gets automatically answered by an application, sleep a bit to give the audio path (for VOIP channels) time to be setup
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@50538 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-11 23:42:14 +00:00
file 56f828fb5c Merged revisions 50466 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r50466 | file | 2007-01-11 00:19:39 -0500 (Thu, 11 Jan 2007) | 2 lines

Add support to see whether NAT was detected (yay symmetric RTP) and also add a check in chan_sip so that if NAT has been detected and the reinvite behind nat option has been turned off, then just do partial bridge. (issue #8655 reported by mnicholson)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@50467 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-11 05:21:03 +00:00
file 58da384069 Merged revisions 50405 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r50405 | file | 2007-01-10 14:46:29 -0500 (Wed, 10 Jan 2007) | 2 lines

Fix parsing when using something like ldap settings. (done by anthonyl)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@50406 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-10 19:49:26 +00:00
file abf42442c7 Merged revisions 50266 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r50266 | file | 2007-01-09 22:51:29 -0500 (Tue, 09 Jan 2007) | 2 lines

Ensure data's existence before trying to access it. (issue #8774 reported by rcourtna)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@50267 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-10 03:53:30 +00:00
file fc31d4eec7 Make callback declaration match one used in trunk.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@50056 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-08 20:10:23 +00:00
file a5f38dd107 Merged revisions 50032 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r50032 | file | 2007-01-08 13:21:31 -0500 (Mon, 08 Jan 2007) | 2 lines

Disable the more intense packet2packet bridging until the bugs can be worked out.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@50033 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-08 18:23:39 +00:00
oej 38af1ed26e Issue #8663 - Add passthrough support for MPEG4 (neutrino88).
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49968 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-08 11:49:23 +00:00
tilghman b218a25733 When calling the Realtime app more than once, unset fields which were
previously set are erroneously still set (Bug 6701).  After discussion,
it was determined this should only be changed in trunk.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49801 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-07 16:21:12 +00:00
tilghman 434af92d0e Reduce duplication of code (Issue 6542)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49784 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-07 14:32:20 +00:00
qwell ab72b6bec8 Fix a segfault when using "countries" that don't have a matching zone.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49769 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-07 07:43:52 +00:00
qwell fb97e146a9 Merged revisions 49742 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r49742 | qwell | 2007-01-05 18:24:38 -0600 (Fri, 05 Jan 2007) | 7 lines

Save 1 whopping byte of allocated memory!

This looks like it may have been a chicken/egg scenario..

You had to call a cleanup func, because everything was allocated.
Then since you had to call a cleanup func, you were forced to allocate - ie; strdup("").

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49743 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-06 00:28:16 +00:00
kpfleming 28749c0589 probably shouldn't leave the mmap'ed file hanging around in memory
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49735 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-06 00:02:06 +00:00
kpfleming 717d699a13 a little more const-ification
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49727 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-05 23:58:53 +00:00
kpfleming ec3737e835 const-ify some more APIs, and fix rev 49710 from branch-1.4 in a better way here
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49711 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-05 23:32:42 +00:00
kpfleming a037fd277b Merged revisions 49680 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r49680 | kpfleming | 2007-01-05 16:52:37 -0600 (Fri, 05 Jan 2007) | 2 lines

don't 'consume' the params list before we try to use it again

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49681 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-05 22:53:38 +00:00
kpfleming 56867dba7a use mmap() to read in the results of the manager action for an HTTP request, instead of reading it into a buffer
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49679 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-05 22:52:16 +00:00
kpfleming d8e7fcf209 Merged revisions 49676 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r49676 | kpfleming | 2007-01-05 16:16:33 -0600 (Fri, 05 Jan 2007) | 2 lines

reduce stack consumption for AMI and AMI/HTTP requests by nearly 20K in most cases

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49678 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-05 22:43:18 +00:00
file e37f8f077a Merged revisions 49675 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r49675 | file | 2007-01-05 17:14:47 -0500 (Fri, 05 Jan 2007) | 2 lines

Don't keep repeating the warning over and over when the end of the call is reached. (issue #8724 reported by xrg)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49677 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-05 22:18:03 +00:00
kpfleming 7003774388 use a rwlock-list for the list of TLS objects
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49608 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-05 00:12:10 +00:00
kpfleming cdcfae5230 Merged revisions 49553 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r49553 | kpfleming | 2007-01-04 16:51:01 -0600 (Thu, 04 Jan 2007) | 2 lines

add support for tracking thread-local-storage objects that exist via 'threadstorage' CLI commands

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49578 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-04 23:18:36 +00:00
file 01dbc383ec Merged revisions 49551 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r49551 | file | 2007-01-04 17:28:29 -0500 (Thu, 04 Jan 2007) | 2 lines

Only free comments and line buffer once we reach the first level. (issue #8678 reported by ssokol, fixed by anthonyl)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49552 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-04 22:34:24 +00:00
kpfleming 779a16372f Merged revisions 49536 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r49536 | kpfleming | 2007-01-04 15:58:42 -0600 (Thu, 04 Jan 2007) | 2 lines

don't mark these allocations as 'cache' allocations when caching has been disabled

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49538 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-04 21:59:06 +00:00
file a3df7ad6e7 It's pretty difficult to pthread_kill a thread that doesn't exist. (issue #8681 reported by bkruse)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49525 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-04 21:40:54 +00:00
kpfleming f409b5bba7 Merged revisions 49457,49460-49461 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r49457 | kpfleming | 2007-01-04 12:05:47 -0600 (Thu, 04 Jan 2007) | 2 lines

make building of codec_gsm against the system GSM library actually work

........
r49460 | kpfleming | 2007-01-04 12:16:40 -0600 (Thu, 04 Jan 2007) | 2 lines

don't define this type either if LOW_MEMORY is enabled

........
r49461 | kpfleming | 2007-01-04 12:17:01 -0600 (Thu, 04 Jan 2007) | 2 lines

don't do frame header caching in the core if LOW_MEMORY is defined

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49463 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-04 18:19:55 +00:00
murf ed1607f9cc Merged revisions 49237 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r49237 | murf | 2007-01-02 15:30:53 -0700 (Tue, 02 Jan 2007) | 1 line

This is a slight modification to Josh's edits for #8579; both files edited were the produced by flex; so the source files need to be changed instead, and the generated files regenerated.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49238 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-02 22:43:36 +00:00
oej f90683f775 Fix manager too.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49094 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-01 19:52:22 +00:00
oej 953339bb17 - Add error handling to ast_parse_allow_disallow
- Use this in chan_sip configuration parsing


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49093 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-01 19:48:31 +00:00
oej 98cbdc7b3c - Implement error handling in ast_append_ha
- Use this in chan_sip
- Document ha functions in acl.c


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49092 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-01 19:20:46 +00:00
file b3fd402abb Clarify why we are reading in a frame in the Packet2Packet bridge.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49072 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-30 18:27:13 +00:00
kpfleming 17ecd513f5 small formatting fix
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49068 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-30 13:26:43 +00:00
file 87e8ea07a3 Merged revisions 49066 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r49066 | file | 2006-12-30 00:46:57 -0500 (Sat, 30 Dec 2006) | 2 lines

If the Packet2Packet bridge is being broken because of a masquerade then attempt to read a frame in so the masquerade actually happens. Otherwise weirdness will occur. (issue #8696 reported by kjotte)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49067 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-30 05:49:17 +00:00
file 7f423a50fa Convert uri_redirects list to read/write locks.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49027 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-28 20:05:00 +00:00
file 7aff08fedb Merged revisions 49024 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r49024 | qwell | 2006-12-28 14:52:46 -0500 (Thu, 28 Dec 2006) | 2 lines

make the uris_lock a rwlock instead of a mutex lock - needs to be forward ported to trunk

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49026 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-28 20:02:41 +00:00
murf b9f48ef3a2 Jason is having problems with the inclusion of <err.h>; it appears to be unnecessary for sucessful builds, so I either removed or commented out the inclusions from all the AEL related code. New outputs from bison/flex are included, etc.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49019 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-28 17:56:21 +00:00
file 65d15d6d62 Merged revisions 49009 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r49009 | file | 2006-12-27 17:28:46 -0500 (Wed, 27 Dec 2006) | 2 lines

ast_copy_string is not available when LOW_MEMORY is used and things are being built in the utils directory, so we need to resort to the old method of strncpy. (issue #8579 reported by mottano)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49010 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-27 22:30:28 +00:00
kpfleming 87686ce875 Merged revisions 49006 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r49006 | kpfleming | 2006-12-27 16:06:56 -0600 (Wed, 27 Dec 2006) | 2 lines

since these variables all have static duration, none of them need initializers (they default to zero anyway)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49008 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-27 22:14:33 +00:00
kpfleming e09e61e6e7 apparently we need an explicit message to warn people
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49001 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-27 21:21:21 +00:00
kpfleming ab7096022b make the 'languageprefix' option default to on, and deprecate turning it off
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49000 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-27 21:18:27 +00:00
kpfleming f16e0a15b8 Merged revisions 48998 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48998 | kpfleming | 2006-12-27 15:08:30 -0600 (Wed, 27 Dec 2006) | 3 lines

move extern declaration for this option to a header file where it belongs
provide an initial value for 'languageprefix' option, instead of relying on randomness to provide a useful value

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48999 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-27 21:09:35 +00:00
kpfleming c66dcd0bc5 Merged revisions 48987 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48987 | kpfleming | 2006-12-27 12:29:13 -0600 (Wed, 27 Dec 2006) | 2 lines

allow 'show memory' and 'show memory summary' to distinguish memory allocations that were done for caching purposes, so they don't look like memory leaks

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48989 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-27 18:33:44 +00:00
file 1aba4079bc Merged revisions 48964 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48964 | file | 2006-12-25 23:31:58 -0500 (Mon, 25 Dec 2006) | 2 lines

Add an API call that initializes an RTP structure. We need this because chan_sip is cheeky and uses a temporary RTP structure for codec purposes, and the API calls that are used rely on the lock. (Pointed out on asterisk-dev by Andy Wang)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48965 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-26 04:34:07 +00:00
rizzo 1b4ffa5248 rename the structs struct tone_zone_sound and struct tone_zone
defined in indications.h to ind_tone_zone_sound and ind_tone_zone,
to avoid conflicts with the structs with the same names
defined in tonezone.h

Hope i haven't missed any instance.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48958 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-25 06:38:09 +00:00
russell 0b1ac5dd0b Resolve some compiler warnings
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48950 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-25 02:06:47 +00:00
russell 9dd8ea9d45 Use spaces as a separator for the redirect option to improve readability
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48947 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-24 21:01:02 +00:00
russell 7456343022 Simplify the definition of http_uri_redirect such that only one allocation is
done for exactly how much memory is needed.  This was suggested by Luigi on
the asterisk-dev mailing list.  Thanks!


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48933 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-24 03:29:42 +00:00
russell 80ec40c8fb - Convert the list of URI handlers to use the linked list macros. While doing
this, implementing locking of this list to make it thread-safe.

- Add a "redirect" option to http.conf that allows redirecting one URI to
  another.  I was inspired to do this while playing with the Asterisk GUI.  I
  got tired of typing this URL to get to the GUI:
     
     http://localhost:8088/asterisk/static/config/cfgadvanced.html

  So, now I have the following line in http.conf:

     redirect=/=/asterisk/static/config/cfgadvanced.html

  Now, I can type the following into my browser and go to the GUI:

     http://localhost:8088


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48930 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-23 20:13:14 +00:00
russell 67180e39b0 Remove a debug message. If this is still needed for debugging something,
it should be made a LOG_DEBUG message.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48929 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-23 20:08:16 +00:00
qwell 821a7077db Merged revisions 48906 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48906 | qwell | 2006-12-22 16:33:46 -0600 (Fri, 22 Dec 2006) | 2 lines

Minor fixes for Solaris.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48907 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-22 22:34:31 +00:00
file fe034febb5 Merge non-blocking logger from my branch. This should improve things under heavy load with lots of CLI/logging output.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48817 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-21 21:57:16 +00:00
murf 322326058e a quick fix to app_sms.c to get rid of cursed compiler warnings so I can compile under --enable-dev-mode
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48767 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-21 19:44:20 +00:00
rizzo 90ea800e9b same as in other places, check that generator->release is not NULL
before calling it.
This allows generators to set it to NULL when they have nothing to
do there.

Later, the three copies of the code that releases a generator
should be moved to a function.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48766 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-21 19:36:42 +00:00
file c46070c6e9 Really clean up indications to use the linkedlists API
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48709 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-21 04:05:21 +00:00
file 8140a34777 Switch list of global variables to read/write locks.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48699 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-21 03:20:08 +00:00
file aeb26a4c11 Convert alternate dialplan switch list to use read/write locks.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48680 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-21 01:48:35 +00:00
murf 864a2f7600 As per bug 7978, this version introduces the jittertargetextra option in config files
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48663 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-21 00:24:08 +00:00
rizzo 730be6778d remove now useless extern declarations.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48580 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-19 16:35:49 +00:00
rizzo d78959e745 convert the final clients of ast_build_string to use ast_str_*()
Now the only module left using it is chan_sip.c



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48559 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-18 15:38:50 +00:00
rizzo 0c344600b1 debugging shows that we always need more than 128 bytes
for the verbose and logging messages so start with a
larger buffer from the beginning.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48558 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-18 15:36:31 +00:00
kpfleming 02448f47eb Merged revisions 48554 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48554 | kpfleming | 2006-12-18 05:59:24 -0600 (Mon, 18 Dec 2006) | 3 lines

remove some now-unnecessary explicit includes of autoconfig.h
clean up per-file dependencies during 'make clean'

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48555 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-18 11:59:48 +00:00
rizzo ff385b4aa1 Replace ast_build_string with ast_str_*().
On passing remove presumably duplicate code to generate
the message for the manager_hooks:

in the previous version, the message was almost the same as the one sent
to regular sessions, with the exception of the empty line at the end, and
a few (presumably unintentional) differences e.g.  timestamps,
debugging, and lowercase headers for "event" and "privilege".

now we reuse the same message as before.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48553 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-18 11:28:37 +00:00
kpfleming 7fdeb17c60 Merged revisions 48525 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48525 | kpfleming | 2006-12-16 15:14:34 -0600 (Sat, 16 Dec 2006) | 2 lines

simplify dependency tracking system, using the compiler's built-in method for generating them, and only doing dependency tracking if developer mode is enabled via the configure script

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48527 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-16 21:24:52 +00:00
kpfleming ca962eb0c0 Merged revisions 48521 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48521 | kpfleming | 2006-12-16 14:12:41 -0600 (Sat, 16 Dec 2006) | 2 lines

since we really, really have to have autoconfig.h included before all other headers (especially system headers), the Makefile will now force it to happen (this will fix build problems with files like ast_expr2f.c, where we can't control the inclusion order in the file itself)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48522 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-16 20:19:19 +00:00
rizzo 91101a1b97 forgot this part...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48520 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-16 11:23:07 +00:00
rizzo ee5146aeb7 another conversion from ast_build_str to ast_str
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48517 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-16 09:56:31 +00:00
rizzo c811946a9e convert ast_build_str to ast_str_*
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48516 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-16 09:46:20 +00:00
rizzo 9ad774382a replace ast_build_string() with ast_str_*() functions.
This makes the code easier to follow and saves some
copies to intermediate buffers.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48515 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-16 09:33:31 +00:00
rizzo b68b240ef8 simplify the ast_dynamic_str_*.... routines by
renaming them to ast_str ... and putting the
struct ast_threadstorage pointer into the struct ast_str.

This makes the code a lot more readable.

At this point we can use these routines also to
replace ast_build_string().



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48510 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-15 23:10:42 +00:00
rizzo 5343b4f73d move the dynamic string support in a better place i.e. string.h
While doing this, add a bit of documentation, and slightly
extend the functionality as follows:
 + a max_len of -1 means that we take whatever the current size
   is, and never try to extend the buffer;
 + add support for alloca()-ted dynamic strings, which is very
   useful for all cases where we do an ast_build_string() now.

Next step is to simplify the interface by using shorter names
(e.g. ast_str as a prefix) and removing the _thread variant
of the functions by saving the threadstorage reference into
the struct ast_str. This can be done by overloading the
'type' field.

Finally, I will do my best to remove the convoluted interface
that results from trying to support platforms without va_copy().



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48509 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-15 22:08:46 +00:00
file 1996acb9c2 Merged revisions 48506 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48506 | file | 2006-12-15 14:55:28 -0500 (Fri, 15 Dec 2006) | 2 lines

Turn payload_lock into bridge_lock and make it encompass all RTP structure contents that may relate to bridge information, including who we are bridged to.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48507 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-15 19:57:04 +00:00
rizzo 8388c27928 unbreak the output for http session.
Not long ago i replaced lseek() with fseek() but
forgot that filr FILE's you need ftell to
give you the current position.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48501 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-15 18:37:29 +00:00
rizzo 1302caa9a0 remove ast_safe_string_alloc() - it is completely
equivalent to asprintf().



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48499 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-15 15:44:59 +00:00
oej 3a4ba3f4b6 Doxygen changes
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48491 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-15 13:36:34 +00:00
rizzo 80d6954430 constify ast_state2str() and note it is not reentrant.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48477 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-15 04:03:42 +00:00
rizzo 889d8eecec remove the macro LOAD_OH and expand it inline in the only
place where it was used.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48476 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-15 03:59:31 +00:00
file 9767c79f32 Merged revisions 48472 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48472 | file | 2006-12-14 12:36:12 -0500 (Thu, 14 Dec 2006) | 2 lines

Payload values on the RTP structure can change AFTER a bridge has started. This comes from the packet handling of the SIP response when indication that it was answered has been sent. Therefore we need to protect this data with a lock when we read/write. (issue #8232 reported by tgrman)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48473 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-14 17:39:16 +00:00
file eb51e82a51 Merged revisions 48461 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48461 | file | 2006-12-13 22:33:30 -0500 (Wed, 13 Dec 2006) | 2 lines

Remove direct RTCP bridging. I've come to the conclusion that we should handle this through the core and not just forward it on. Should solve a few bugs.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48462 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-14 03:39:39 +00:00
rizzo bf09fdc230 make sure that showdialplan sends only one
'Response: Success ' message even in case of
a recursive call.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48459 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-13 23:08:02 +00:00
rizzo 24d16af409 clean up function manager_show_dialplan_helper()
reducing indentation and normalizing loops.

While doing this, remove some unused variables,
fix an uninitialized string (idaction), and mark
some places where the behaviour is not what we would expect
(e.g. an empty context is reported as an error same as
a non-existent one). Given that this function is
not in 1.4, the above can be changed without too many
backward compatibility concerns.

Not applicable to 1.4 or below.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48458 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-13 22:54:41 +00:00
rizzo bf611f9cef properly initialize a malloc'ed buffer
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48410 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-12 10:36:15 +00:00
rizzo c60f8b61af normalize the scanning of "general" options in the config file.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48409 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-12 10:35:10 +00:00
rizzo 4dd25f76a0 Make sure tab-completion works even when we have typed a fully
matching word (e.g. "sip<TAB>"); this is implemented by this one-line change

-               for (;; dst++, src += n) {
+               for (;src < argindex; dst++, src += n) {

However this code is not exactly trivial to understand, so
i am also adding some comments to help figuring out what it does.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48408 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-12 09:40:45 +00:00
rizzo fcafc05f7e make sure the argument to ast_malloc() is > 0.
Long explaination:

The behaviour of the underlying malloc(0) differs depending on the
operating system.  Some return NULL (SysV behaviour); some still
allocate a small chunk of memory and return a valid pointer (e.g.
traditional BSD); some (e.g. FreeBSD 6.x) return a non-null pointer
that causes a memory fault if used, even just for reading.

Given the above variety, better never call malloc(0).



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48389 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-11 18:11:58 +00:00
murf 75b14fe36b This update fixes the problem reported in bug 8551; that ast_app_getdata() behaves differently in trunk for the case of a null prompt.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48388 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-11 17:00:36 +00:00
file c46e0fcc8c Merged revisions 48381 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48381 | file | 2006-12-11 00:36:45 -0500 (Mon, 11 Dec 2006) | 2 lines

Merge in my latest RTP changes. Break out RTP and RTCP callback functions so they no longer share a common one.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48383 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-11 05:38:57 +00:00
rizzo fa3680b882 - Generalize the function ssl_setup() so that the certificate info
are passed as an argument.

- Update the code in main/http.c to use the new interface
  (the diff is large but mostly mechanical, due to the name change of
  several variables);

- And since now it is trivial, implement "AMI over TLS", and document
  the possible options in manager.conf

- And since the test client (openssl s_client -connect host:port )
  does not generate \r\n as a line terminator, make get_input()
  also accept just a \n as a line terminator (Mac users: do you
  also need the \r-only version ?)
 
The option parsing in manager.conf is not very efficient, and needs
to be cleaned up and made similar to what we have in http.conf



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48351 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-07 16:42:29 +00:00
murf 6e7bc03957 Merged revisions 47986,47995,47997,48001,48003-48004,48008-48014,48016,48018-48019 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r47986 | oej | 2006-11-24 07:00:19 -0700 (Fri, 24 Nov 2006) | 6 lines

Doxygen update
- Document cause codes
- Document a bit more on channel variables - global, predefined and local
- Fix some doxygen in channel.h. Adding one comment for two definitions does not
  work. They won't be copied to each.

................
r47995 | murf | 2006-11-24 10:40:49 -0700 (Fri, 24 Nov 2006) | 1 line

This fix inspired by a patch supplied in bug 8189, which points out problems with the PLC code
................
r47997 | murf | 2006-11-24 11:17:25 -0700 (Fri, 24 Nov 2006) | 1 line

removed the svnmerge-integrated property from trunk; it's confusing svnmerge in newly created branches
................
r48001 | rizzo | 2006-11-25 02:02:42 -0700 (Sat, 25 Nov 2006) | 5 lines

set pointers to NULL after freeing memory to avoid multiple free()

probably 1.4/1.2 issue as well if someone can look into that.


................
r48003 | oej | 2006-11-25 02:45:57 -0700 (Sat, 25 Nov 2006) | 9 lines

- Adding comment on suspicious memory allocation. Seems like it's never freed, but I don't
  have a clear understanding of the frame allocation/deallocation, so I just mark this
  for investigation. (Reported by Ed Guy). We're trying to see if a free() hurts...

- Doxygen comments on p2p rtp bridge stuff.  I am a bit worried about shortcutting
  rtcp this way, but will need feedback from rtcp gurus. This should work for 
  video calls too, and possibly UDPTL.


................
r48004 | oej | 2006-11-25 02:48:30 -0700 (Sat, 25 Nov 2006) | 2 lines

Changing ERROR to lesser level. Imported from 1.2/1.4

................
r48008 | rizzo | 2006-11-25 10:37:04 -0700 (Sat, 25 Nov 2006) | 7 lines

generalize a bit the functions used to create an tcp socket
and then run a service on it.
The code in manager.c does essentially the same things,
so we will be able to reuse the code in here (probably
moving it to netsock.c or another appropriate library file).


................
r48009 | mattf | 2006-11-25 13:30:04 -0700 (Sat, 25 Nov 2006) | 1 line

Updates to show linkset command
................
r48010 | mattf | 2006-11-25 13:54:38 -0700 (Sat, 25 Nov 2006) | 2 lines

Add ss7 show linkset command

................
r48011 | mattf | 2006-11-25 14:32:33 -0700 (Sat, 25 Nov 2006) | 1 line

Make sure we don't send a group reset on a group larger than 32 CICs
................
r48012 | mattf | 2006-11-25 14:35:23 -0700 (Sat, 25 Nov 2006) | 1 line

bug fix
................
r48013 | mattf | 2006-11-25 14:46:58 -0700 (Sat, 25 Nov 2006) | 1 line

Make compiler happier
................
r48014 | mattf | 2006-11-25 14:50:42 -0700 (Sat, 25 Nov 2006) | 1 line

Little fix so we use the right message
................
r48016 | murf | 2006-11-25 17:15:42 -0700 (Sat, 25 Nov 2006) | 9 lines

Merged revisions 48015 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48015 | murf | 2006-11-25 17:01:34 -0700 (Sat, 25 Nov 2006) | 1 line

A little bit of func_cdr documentation upgrade-- no bug# involved, although 8221 may have inspired it.
........

................
r48018 | murf | 2006-11-25 17:31:13 -0700 (Sat, 25 Nov 2006) | 9 lines

Merged revisions 48017 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48017 | murf | 2006-11-25 17:26:16 -0700 (Sat, 25 Nov 2006) | 1 line

might as well also document the raw values of the flag vars
........

................
r48019 | russell | 2006-11-25 23:55:33 -0700 (Sat, 25 Nov 2006) | 6 lines

- Add some comments on thread storage with a brief explanation of what it is
  as well as what the motivation is for using it.
- Add a comment by the declaration of ast_inet_ntoa() noting that this function
  is not reentrant, and the result of a previous call to the function is no
  longer valid after calling it again.

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


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48350 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-07 16:03:56 +00:00
rizzo dcc00a652f remove duplicated code to start the server threads, use
the infrastructure exposed in http.c earlier today.

As a bonus, now we can restart the session on a different
port just reloading the module.

On passing, fix a bug in the handling of 'enabled' in the configuration
file - previously, a missing "enabled=" line in manager.conf meant
"whatever the state was before" instead of a specific value.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48338 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-06 20:46:01 +00:00
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
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
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
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 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
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
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
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
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 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 3ab05b5d97 Merged revisions 48152 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r48152 | file | 2006-11-30 13:47:40 -0500 (Thu, 30 Nov 2006) | 10 lines

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

........
r48151 | file | 2006-11-30 13:42:45 -0500 (Thu, 30 Nov 2006) | 2 lines

Print certain CDR messages out at the NOTICE level versus WARNING since they can occur when used with the CDR applications and are perfectly fine. (issue #8367 reported by dartvader)

........

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


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48153 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-30 18:49:59 +00:00
oej 2a63b905a5 Small update
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48150 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-30 18:25:51 +00:00
oej 33bdb442ed Doxygen updates
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48149 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-30 18:22:10 +00:00
oej 91e2cd809f Adding some generic docs on extension and device states - watchers and providers
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48139 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-30 17:15:54 +00:00
oej 4dcfb7d284 Change logging for p2p rtp bridge mode
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48111 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-29 19:44:06 +00:00
russell 700f9d585c Go ahead and make this write unconditional. Making it conditional is more work
in both the append and non-append modes.  Also, always truncating the partial
write makes the behavior of the function more consistent, where in any type of
write, no partial result is left in the buffer.

Thanks for the feedback, luigi


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48109 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-29 17:37:31 +00:00
file 230fa9e998 Merged revisions 48107 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r48107 | file | 2006-11-29 11:50:33 -0500 (Wed, 29 Nov 2006) | 10 lines

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

........
r48106 | file | 2006-11-29 11:47:10 -0500 (Wed, 29 Nov 2006) | 2 lines

If the frame was duplicated before writing out then we need to free it. (issue #8429 reported by edguy3)

........

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


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48108 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-29 16:53:27 +00:00
russell 02a84d116b Remove an XXX command suggesting that this truncation should not be conditional,
and also add a more verbose comment explaining why it is only needed in the
case of appending to the string for any curious readers that come along in the
future.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48103 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-29 05:08:19 +00:00
rizzo b507cb90af don't use outputstr in the struct mansession, it's just
an extra allocation on a path where we have way too many already.

Unfortunately the AMI-over-HTTP requires multiple copies,
because we need to generate a header, then the raw output to
an intermediate buffer, then convert it to html/xml, and
finally copy everything into a malloc'ed buffer because
that's what the generic_http_callback interface expects.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48090 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-28 17:08:19 +00:00
rizzo 41ac55742c initialize the dynamic string in a sane way.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48086 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-28 15:53:12 +00:00
rizzo b24855a833 some simplifications to
ast_dynamic_str_thread_build_va_couldnt_we_choose_a_shorter_name()

I am unsure whether the truncation of the string in case of a failed
attempt should be done unconditionally. See the XXX mark.

Russel, ideas ?



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48084 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-28 14:07:09 +00:00
rizzo a522c1ce0f do not return 500 Internal error if the AMI command provides
no output.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48083 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-28 13:08:56 +00:00
rizzo 062fee49d6 mosty comment and documentation cleanup on waitevent.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48082 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-28 12:05:25 +00:00
rizzo bdf4f81f22 Move the code to purge stale sessions to a function,
to simplify the body of the main loop of the accepting thread.
Rename purge_unused() to purge_events() so one knows what the
function does.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48081 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-28 11:20:39 +00:00
rizzo 917af9ad51 Various simplifications of the code:
+ use a wrapper around ast_carefulwrite(), used in two places,
  to make life easier when we decide to use a different interface
  to the socket.

+ put an ast_verbose() message on astman_append on a case that
  should never happen now that we use a temporary file for
  AMI-over-HTTP sessions

+ document and slightly simplify process_events() by removing
  unnecessary parentheses.

+ in get_input(), use ast_wait_for_input() instead of poll().

  We may want to move to a completely non-blocking


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48080 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-28 10:23:25 +00:00
rizzo 30830453fb More informative message on invalid commands.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48079 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-28 09:43:44 +00:00
rizzo 8cc315343f another normalization of AMI vs HTTP identification.
Should really define a macro IS_AMI(s) so it is clear what
we want to do.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48078 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-28 09:39:16 +00:00
rizzo e8f45989fe always use managerid to determine whether this is an AMI or HTTP session,
and document it.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48077 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-28 09:27:37 +00:00
rizzo 9718f1cb7d In the previous commit i forgot to set the poll_timeout to -1,
causing the http threads to do busy waiting around the socket...

Fix the mistake, sorry for the inconvenience!



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48074 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-28 00:02:42 +00:00
rizzo 4975453032 document the support for running a server on TCP/TLS and
opening an SSL socket.

We are almost ready to make this code available to other modules.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48073 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-27 21:25:55 +00:00
rizzo ac91407f47 add a new http.conf option, sslbindaddr.
Because https is more secure than http, it usually
makes sense to keep this service more open than the
one on the unencrypted port.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48071 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-27 20:21:40 +00:00
rizzo 3a0d25f9f8 in the helper thread, separate the FILE * creation from the actual
function doing work on the socket. This is another generalization
to provide a generic mechanism to open TCP/TLS socket with a thread
managing the accpet and children threads managing the individual
sessions.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48067 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-27 19:19:48 +00:00
rizzo b728b58d5a staticize a global variable and remove an unused field structure.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48062 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-27 18:51:10 +00:00
rizzo 461f2afa7c generalize a bit the functions used to create an tcp socket
and then run a service on it.
The code in manager.c does essentially the same things,
so we will be able to reuse the code in here (probably
moving it to netsock.c or another appropriate library file).



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48008 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-25 17:37:04 +00:00
oej 7e46c70622 - Adding comment on suspicious memory allocation. Seems like it's never freed, but I don't
have a clear understanding of the frame allocation/deallocation, so I just mark this
  for investigation. (Reported by Ed Guy). We're trying to see if a free() hurts...

- Doxygen comments on p2p rtp bridge stuff.  I am a bit worried about shortcutting
  rtcp this way, but will need feedback from rtcp gurus. This should work for 
  video calls too, and possibly UDPTL.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48003 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-25 09:45:57 +00:00
rizzo 61fb066b4c set pointers to NULL after freeing memory to avoid multiple free()
probably 1.4/1.2 issue as well if someone can look into that.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48001 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-25 09:02:42 +00:00
murf ca7e77d4ef This fix inspired by a patch supplied in bug 8189, which points out problems with the PLC code
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47995 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-24 17:40:49 +00:00
oej 5a2011b9d7 Doxygen update
- Document cause codes
- Document a bit more on channel variables - global, predefined and local
- Fix some doxygen in channel.h. Adding one comment for two definitions does not
  work. They won't be copied to each.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47986 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-24 14:00:19 +00:00
file 3a1622bdf6 Merged revisions 47944 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47944 | file | 2006-11-22 16:47:43 -0500 (Wed, 22 Nov 2006) | 2 lines

Video will never reach Packet2Packet bridging and can do more harm then good.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47945 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-22 21:49:11 +00:00
file ef39327764 Add support to set the maximum number of files open when Asterisk loads using the 'maxfiles' configuration option. (issue #7499 reported by rkarlsba)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47933 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-22 17:41:07 +00:00
markster 47f912f6e6 Restore some sense of security to manager
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47912 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-22 05:49:06 +00:00
file f6bcd15af8 Merged revisions 47897 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47897 | file | 2006-11-21 12:32:27 -0500 (Tue, 21 Nov 2006) | 2 lines

If we have the non standard G726-32 setting turned on we want to return G726-32 to the SDP, not our AAL2 string. (issue #8330 reported by voipgate)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47898 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-21 17:34:22 +00:00
file 334a20e194 Merged revisions 47860 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r47860 | file | 2006-11-20 14:51:36 -0500 (Mon, 20 Nov 2006) | 10 lines

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

........
r47859 | file | 2006-11-20 14:50:21 -0500 (Mon, 20 Nov 2006) | 2 lines

Don't forget to byte swap if we are exiting the smoother feed early. (issue #8287 reported by arturs)

........

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


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47861 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-20 19:52:38 +00:00
file 184bdb13e0 Use RTP/RTCP fds on the RTP structure, don't bother storing them.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47854 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-20 16:06:10 +00:00
file 6b706ba403 Merged revisions 47852 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47852 | file | 2006-11-20 10:58:50 -0500 (Mon, 20 Nov 2006) | 2 lines

Only remove/destroy the RTCP I/O item if it exists.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47853 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-20 16:04:14 +00:00
rizzo 35b5ab3bc1 comments-only change:
document a bit more when manager events are delivered
to the clients.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47834 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-18 22:14:20 +00:00