dect
/
asterisk
Archived
13
0
Fork 0
Commit Graph

10775 Commits

Author SHA1 Message Date
rizzo 5b422bc30d provide INT16_MIN and INT16_MAX for platforms where they are not defined.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48959 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-25 06:42:15 +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 d5ae839795 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: http://svn.digium.com/svn/asterisk/trunk@48957 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-25 05:22:40 +00:00
russell 131cea90ac 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: http://svn.digium.com/svn/asterisk/trunk@48951 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-25 02:31:04 +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 f3ff730fd7 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: http://svn.digium.com/svn/asterisk/trunk@48949 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-24 21:21:21 +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 b850b5d8c7 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: http://svn.digium.com/svn/asterisk/trunk@48945 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-24 07:27:29 +00:00
russell b0dab69396 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: http://svn.digium.com/svn/asterisk/trunk@48941 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-24 06:51:37 +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 e7e3358fbf 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: http://svn.digium.com/svn/asterisk/trunk@48932 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-23 20:26:34 +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
file 53039c7bd4 We should probably declare the lock... and not just the constructor/deconstructor.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48928 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-23 19:55:38 +00:00
russell f1545046a7 Use the correct function to destroy an rwlock in the destructor for an ast_rwlock_t
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48927 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-23 19:51:56 +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
qwell dc68093334 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: http://svn.digium.com/svn/asterisk/trunk@48889 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-22 21:40:56 +00:00
qwell aca101a1e7 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: http://svn.digium.com/svn/asterisk/trunk@48871 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-22 20:43:38 +00:00
rizzo b0c5c8e0b8 improve readability of a few macros.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48857 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-22 10:35:20 +00:00
rizzo 907c8d8dab make sms_hexdump() thread safe;
restructure and reduce indentation on some blocks.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48844 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-21 23:33:44 +00:00
rizzo 38114c827e make isodate thread-safe
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48832 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-21 22:15:03 +00:00
rizzo c40e800a1a - 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: http://svn.digium.com/svn/asterisk/trunk@48825 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-21 22:03:54 +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
file 8136128ca8 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: http://svn.digium.com/svn/asterisk/trunk@48785 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-21 20:28:17 +00:00
murf 15651de8c0 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: http://svn.digium.com/svn/asterisk/trunk@48781 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-21 20:15:20 +00:00
rizzo 4afdbc642b put generator functions next to each other.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48768 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-21 19:52:18 +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
rizzo 6647f2a9a4 reduce indentation
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48752 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-21 18:54:17 +00:00
rizzo 69f35c5e62 restructure a block to reduce nesting
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48750 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-21 18:35:22 +00:00
rizzo 2ea5003b5b 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: http://svn.digium.com/svn/asterisk/trunk@48736 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-21 16:50:26 +00:00
murf 8a8ca18633 This small update will generate WARNINGS if there is garbage in your extensions.conf file (liken extem => instead of exten => !)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48723 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-21 15:52:44 +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
mattf 42d5f3c8a4 Minor addition giving props to Steve Underwood for his hard work. Thanks again
Steve!


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48662 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-21 00:11:00 +00:00
mattf f9cd09cb9f Add codec G.722 support.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48661 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-21 00:08:21 +00:00
file 06a67ffa4a Clean up app_page
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48639 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-20 04:32:59 +00:00
file 6b788c5c2f 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: http://svn.digium.com/svn/asterisk/trunk@48638 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-20 02:58:13 +00:00
rizzo 04f03447b7 more formatting cleanup.
Move some code into a function sms_compose1() in preparation
for supporting protocol 2 as well.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48599 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-20 00:13:23 +00:00
rizzo fccb01223c formatting and code cleanup.
Still a lot of copy&pasted code here...



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48598 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-19 23:56:08 +00:00
file c4e89a0ccd 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: http://svn.digium.com/svn/asterisk/trunk@48597 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-19 23:05:57 +00:00
file 447ef934b0 Update res_snmp to use new API declaration of pbx_builtin_serialize_variables (issue #8627 reported by johann8384)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48595 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-19 22:55:26 +00:00
file b1bb89bdf4 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: http://svn.digium.com/svn/asterisk/trunk@48593 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-19 22:02:27 +00:00
file 6d7392e30c 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: http://svn.digium.com/svn/asterisk/trunk@48591 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-19 21:59:33 +00:00
rizzo d1a6392917 block 48583
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48589 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-19 21:32:31 +00:00
rizzo 9557ea6a60 start documenting this code.
On passing, fix the bogus datalen on outgoing frames
just fixed in 1.4 rev.48583



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48588 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-19 21:29:55 +00:00
kpfleming fba21e941f 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: http://svn.digium.com/svn/asterisk/trunk@48587 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-19 21:28:43 +00:00
rizzo 7dc058ce82 better name for struct dial_localuser.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48581 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-19 16:36:45 +00:00