Commit Graph

10775 Commits

Author SHA1 Message Date
Luigi Rizzo 6ecb175193 provide INT16_MIN and INT16_MAX for platforms where they are not defined.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48959 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-25 06:42:15 +00:00
Luigi Rizzo 09f75aa6dc 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: https://origsvn.digium.com/svn/asterisk/trunk@48958 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-25 06:38:09 +00:00
Russell Bryant b93f1f3e37 Merged revisions 48956 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r48956 | russell | 2006-12-25 00:21:20 -0500 (Mon, 25 Dec 2006) | 14 lines

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

........
r48955 | russell | 2006-12-25 00:19:48 -0500 (Mon, 25 Dec 2006) | 6 lines

Fix an error introduced by copying and pasting the handling of the >= operator
for the MATH function.  If a single equal sign was used as an operator, the
function would treat it is as if it were the >= operator.  Now, it properly
handles it as an invalid operator.
(issue #8665, patch by tempest1)

........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48957 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-25 05:22:40 +00:00
Russell Bryant 527dbe399e Simplify the if statements used to check to see if the argument was "num"
or "number".  It is not possible to ever reach the second part of this
conditional statement.

Thanks to my brother, Brett, for pointing this out.  :)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48951 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-25 02:31:04 +00:00
Russell Bryant d3bf06f272 Resolve some compiler warnings
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48950 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-25 02:06:47 +00:00
Russell Bryant ad8a480085 Merged revisions 48948 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48948 | russell | 2006-12-24 16:19:37 -0500 (Sun, 24 Dec 2006) | 3 lines

Fix a typo in an error message that indicated that the MGCP channel type could
not be registered, instead of the correct type, OSS.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48949 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-24 21:21:21 +00:00
Russell Bryant 850dd4ea61 Use spaces as a separator for the redirect option to improve readability
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48947 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-24 21:01:02 +00:00
Russell Bryant 539514d793 Merged revisions 48944 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r48944 | russell | 2006-12-24 02:25:38 -0500 (Sun, 24 Dec 2006) | 11 lines

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

........
r48943 | russell | 2006-12-24 02:23:07 -0500 (Sun, 24 Dec 2006) | 3 lines

Check for the proper return value on an error in a call to mmap().
This was reported by Andy Wang on the asterisk-dev list.  Thanks!

........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48945 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-24 07:27:29 +00:00
Russell Bryant e0f55d2385 Merged revisions 48940 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r48940 | russell | 2006-12-24 01:49:31 -0500 (Sun, 24 Dec 2006) | 11 lines

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

........
r48939 | russell | 2006-12-24 01:47:29 -0500 (Sun, 24 Dec 2006) | 3 lines

Remove a couple of misplaced dots in log messages.  This was reported by
Andrea Spadaccini on the asterisk-dev mailing list.

........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48941 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-24 06:51:37 +00:00
Russell Bryant 5d5cc243c6 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: https://origsvn.digium.com/svn/asterisk/trunk@48933 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-24 03:29:42 +00:00
Russell Bryant 0e266fbfb9 Blocked revisions 48931 via svnmerge
........
r48931 | russell | 2006-12-23 15:22:52 -0500 (Sat, 23 Dec 2006) | 2 lines

Implement locking for the list of URI handlers to make it thread-safe.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48932 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-23 20:26:34 +00:00
Russell Bryant 2c5071a006 - 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: https://origsvn.digium.com/svn/asterisk/trunk@48930 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-23 20:13:14 +00:00
Russell Bryant 08cfbe97b8 Remove a debug message. If this is still needed for debugging something,
it should be made a LOG_DEBUG message.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48929 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-23 20:08:16 +00:00
Joshua Colp 193d2932b9 We should probably declare the lock... and not just the constructor/deconstructor.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48928 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-23 19:55:38 +00:00
Russell Bryant 72f23795df Use the correct function to destroy an rwlock in the destructor for an ast_rwlock_t
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48927 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-23 19:51:56 +00:00
Jason Parker 05d6c4a2d0 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: https://origsvn.digium.com/svn/asterisk/trunk@48907 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-22 22:34:31 +00:00
Jason Parker a01ae565e9 Merged revisions 48888 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48888 | qwell | 2006-12-22 15:40:20 -0600 (Fri, 22 Dec 2006) | 2 lines

Note to self: Run make before committing...

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48889 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-22 21:40:56 +00:00
Jason Parker 9883943ec5 Merged revisions 48870 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48870 | qwell | 2006-12-22 14:43:05 -0600 (Fri, 22 Dec 2006) | 2 lines

Fix for issue 7774 - patch by alamantia

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48871 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-22 20:43:38 +00:00
Luigi Rizzo 5727170842 improve readability of a few macros.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48857 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-22 10:35:20 +00:00
Luigi Rizzo 51f9566199 make sms_hexdump() thread safe;
restructure and reduce indentation on some blocks.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48844 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-21 23:33:44 +00:00
Luigi Rizzo 250c74d10c make isodate thread-safe
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48832 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-21 22:15:03 +00:00
Luigi Rizzo 99359a4b27 - use the standard option parsing routines;
- document existing but undocumented parameters to send a message
  (untested but unchanged;

- ad a new option p(N) to set the initial message delay to N ms
  so this can be adapted from the dialplan to various countries;
 



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48825 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-21 22:03:54 +00:00
Joshua Colp 8e9cdb10fd Merge non-blocking logger from my branch. This should improve things under heavy load with lots of CLI/logging output.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48817 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-21 21:57:16 +00:00
Joshua Colp 0d5294cea3 Merged revisions 48783 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r48783 | file | 2006-12-21 15:26:29 -0500 (Thu, 21 Dec 2006) | 10 lines

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

........
r48782 | file | 2006-12-21 15:25:01 -0500 (Thu, 21 Dec 2006) | 2 lines

Add new silence sound files to the spec for Redhat. (issue #8652 reported by alvaro_palma_aste)

........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48785 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-21 20:28:17 +00:00
Steve Murphy 3a84f2a6ee This little mod gets rid of that g722 compiler warning that breaks builds configured with --enable-dev-mode; the previous commit of 48767 was to merge in changes for bug 6334, unifying the open mode arguments for saner operation.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48781 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-21 20:15:20 +00:00
Luigi Rizzo fbe6afd136 put generator functions next to each other.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48768 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-21 19:52:18 +00:00
Steve Murphy 7b338004bf 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: https://origsvn.digium.com/svn/asterisk/trunk@48767 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-21 19:44:20 +00:00
Luigi Rizzo a2e6c6277f 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: https://origsvn.digium.com/svn/asterisk/trunk@48766 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-21 19:36:42 +00:00
Luigi Rizzo 1080c61d04 reduce indentation
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48752 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-21 18:54:17 +00:00
Luigi Rizzo 067573020d restructure a block to reduce nesting
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48750 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-21 18:35:22 +00:00
Luigi Rizzo 1ce6943f4f Add a bit of documentation on this code, including pointers
to relevant documents and comment on timing issues.

Initial merge of the code in

	http://bugs.digium.com/view.php?id=8586

by Filippo Grassilli (Hyppo) to support
the SMS Protocol 2.

In this commit i have tried to minimize the diffs, so further
code cleanup will come in subsequent commits.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48736 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-21 16:50:26 +00:00
Steve Murphy f92697c5fc This small update will generate WARNINGS if there is garbage in your extensions.conf file (liken extem => instead of exten => !)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48723 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-21 15:52:44 +00:00
Joshua Colp f19ff5a451 Really clean up indications to use the linkedlists API
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48709 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-21 04:05:21 +00:00
Joshua Colp 77d7b36217 Switch list of global variables to read/write locks.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48699 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-21 03:20:08 +00:00
Joshua Colp 730d68976e Convert alternate dialplan switch list to use read/write locks.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48680 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-21 01:48:35 +00:00
Steve Murphy 9327720c37 As per bug 7978, this version introduces the jittertargetextra option in config files
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48663 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-21 00:24:08 +00:00
Matthew Fredrickson 5fc6bdcac9 Minor addition giving props to Steve Underwood for his hard work. Thanks again
Steve!


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48662 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-21 00:11:00 +00:00
Matthew Fredrickson ba71665924 Add codec G.722 support.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48661 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-21 00:08:21 +00:00
Joshua Colp 1546495afc Clean up app_page
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48639 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-20 04:32:59 +00:00
Joshua Colp e54265a914 Merged revisions 48637 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48637 | file | 2006-12-19 21:56:09 -0500 (Tue, 19 Dec 2006) | 2 lines

vms doesn't exist on non-IMAP storage builds.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48638 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-20 02:58:13 +00:00
Luigi Rizzo 6ef9c2a16c more formatting cleanup.
Move some code into a function sms_compose1() in preparation
for supporting protocol 2 as well.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48599 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-20 00:13:23 +00:00
Luigi Rizzo 21556620d0 formatting and code cleanup.
Still a lot of copy&pasted code here...



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48598 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-19 23:56:08 +00:00
Joshua Colp 75b125b96e Merged revisions 48596 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48596 | file | 2006-12-19 18:04:30 -0500 (Tue, 19 Dec 2006) | 2 lines

Pass 'vms' pointer to record_and_review so it is then passed to the IMAP store file function. (issue #8614 reported by punknow)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48597 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-19 23:05:57 +00:00
Joshua Colp 09de4d2b67 Update res_snmp to use new API declaration of pbx_builtin_serialize_variables (issue #8627 reported by johann8384)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48595 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-19 22:55:26 +00:00
Joshua Colp 5275efbae5 Merged revisions 48592 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48592 | file | 2006-12-19 17:00:57 -0500 (Tue, 19 Dec 2006) | 2 lines

find is not the same as bind when it comes to documentation. (issue #8626 reported by johann8384)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48593 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-19 22:02:27 +00:00
Joshua Colp 3830f08dc5 OpenBSD does not have RLIMIT_AS or RLIMIT_VMEM so until someone finds the right rlimit to use then let's not support the -v option on OpenBSD. (issue #8543 reported by jtodd)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48591 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-19 21:59:33 +00:00
Luigi Rizzo 201e752e50 block 48583
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48589 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-19 21:32:31 +00:00
Luigi Rizzo 8a26d19b7c start documenting this code.
On passing, fix the bogus datalen on outgoing frames
just fixed in 1.4 rev.48583



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48588 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-19 21:29:55 +00:00
Kevin P. Fleming fa5931d0c3 Merged revisions 48586 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48586 | kpfleming | 2006-12-19 15:28:04 -0600 (Tue, 19 Dec 2006) | 2 lines

suppress compiler warnings in this module until it can be improved

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48587 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-19 21:28:43 +00:00
Luigi Rizzo 83f52ed5e2 better name for struct dial_localuser.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48581 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-19 16:36:45 +00:00