dect
/
asterisk
Archived
13
0
Fork 0
Commit Graph

493 Commits

Author SHA1 Message Date
tilghman 941606972a Document my changes from Friday
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@85633 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-15 17:51:05 +00:00
tilghman 0505561bf8 Enable ranges, hexadecimal, octal, and special backslashed characters for the FILTER function
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@85522 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-12 17:32:38 +00:00
mattf 938c1759c7 See if I can fix this borked ANI2 code I added
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@85498 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-11 22:33:57 +00:00
mattf 54284b39c5 Add ANI2 support to func_callerid
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@85496 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-11 22:20:02 +00:00
russell 63c3a28ccc * The documentation for the LOCK() function says that it will block for up to
3 seconds while waiting on a lock when other locks are currently held to
  avoid deadlocks.  Change the code to reflect this.
* Since trying to grab a lock may block for some time, put the channel in
  autoservice so that audio is still read from the channel and that any
  active generators on the channel don't pause.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@84143 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-30 03:05:04 +00:00
russell 6a99f529be put the channel in autoservice when executing func_shell
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@83181 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-19 19:54:58 +00:00
russell 3fdcabda2b Merged revisions 83177 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r83177 | russell | 2007-09-19 14:34:25 -0500 (Wed, 19 Sep 2007) | 4 lines

Using curl can take a substantial amount of time, so the channel should be
autoserviced while waiting for it to complete.
(closes issue #10725, reported by mnicholson)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@83178 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-19 19:36:34 +00:00
tilghman 21583e9453 Merged revisions 82285 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r82285 | tilghman | 2007-09-12 15:12:06 -0500 (Wed, 12 Sep 2007) | 4 lines

Working on issue #10531 exposed a rather nasty 64-bit issue on ast_mktime, so we
updated the localtime.c file from source.  Next we'll have to write ast_strptime
to match.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@82290 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-12 21:25:57 +00:00
russell 0cd72aba9e Add EXTENSION_STATE() function that can retrieve the state of an extension that
has a hint.

(closes issue #10635, adamgundy)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@81813 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-06 20:54:07 +00:00
russell ae390ff301 Rename the DEVSTATE() function to DEVICE_STATE() to better conform to how other
functions are named.
(inspired by issue #10635)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@81784 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-06 20:27:26 +00:00
russell 50aee298c3 Merge HINT() dialplan function from my sandbox branch into trunk. This function
will let you retrieve the list of devices or name associated with a hint.
(inspired by issue #10635)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@81783 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-06 20:24:18 +00:00
tilghman f18daad6e5 Merged revisions 81415 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r81415 | tilghman | 2007-08-31 14:16:52 -0500 (Fri, 31 Aug 2007) | 2 lines

The IF() function was not allowing true values that had embedded colons (closes issue #10613)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@81431 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-03 03:01:31 +00:00
russell 2a92caf322 Add proper channel locking around the uses of datastore_add and _find. There
are still more places in the tree that I have not yet changed if someone wants
to go through and find the places they are used without the channel locked.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@81262 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-28 18:41:18 +00:00
russell ac52aa8cd6 * Constify the uid field of channel datastores
* Convert some spaces to tabs in func_volume
* Add a note in channel.h making it clear that none of the datastore API calls
  lock the channel they are given, so the channel should be locked before
  calling the functions that take a channel argument.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@81260 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-28 18:32:56 +00:00
russell 27d775129f Merged revisions 80547 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r80547 | russell | 2007-08-23 14:29:44 -0500 (Thu, 23 Aug 2007) | 3 lines

Revert very broken fix for issue #10540 ... none of these values take ms so I
don't know what I was thinking

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@80550 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-23 19:30:49 +00:00
russell f07c6d0fe8 Merged revisions 80539 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r80539 | russell | 2007-08-23 14:21:53 -0500 (Thu, 23 Aug 2007) | 4 lines

Fix func_timeout to take values in floating point so 1.5 actually means
1.5 seconds instead of being rounded.
(closes issue #10540, reported by spendergrass, patch by me)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@80540 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-23 19:22:49 +00:00
russell 3d3dbe7e24 use ast_atomic_fetchadd_int for incrementing resultcount
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@80226 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-21 21:58:29 +00:00
tilghman 13f1a2e899 store and destroy implementations for realtime pgsql (closes issue #10372)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79859 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-17 13:40:11 +00:00
tilghman b97cc347bd Revise dialplan locks to permit multiple locks per channel, but with deadlock avoidance
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79813 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-16 23:31:14 +00:00
tilghman dbec3d56c1 Don't reload a configuration file if nothing has changed.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79747 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-16 21:09:46 +00:00
russell 2e08c0f969 Store custom device states in astdb so that they will persist a restart. As a
side benefit, this simplifies the code a bit, too.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79098 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-10 20:48:49 +00:00
russell 58d5edca86 Merge a set of device state improvements from team/russell/events.
The way a device state change propagates is kind of silly, in my opinion.  A
device state provider calls a function that indicates that the state of a
device has changed.  Then, another thread goes back and calls a callback for
the device state provider to find out what the new state is before it can go
send it off to whoever cares.

I have changed it so that you can include the state that the device has changed
to in the first function call from the device state provider.  This removes the
need to have to call the callback, which locks up critical containers to go find
out what the state changed to.

This change set changes the "simple" device state providers to use the new method.
This includes parking, meetme, and SLA.

I have also mostly converted chan_agent in my branch, but still have some more
things to think through before presenting the plan for converting channel drivers
to ensure all of the right events get generated ...


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79027 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-10 16:24:11 +00:00
file ce30d7306b Merge audiohooks branch into trunk. This is a new API for developers to listen and manipulate the audio going through a channel.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78649 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-08 19:30:52 +00:00
tilghman b835899f30 Add some documentation detailing an aspect of dialplan functions, as requested by Russell
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77838 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-31 18:50:06 +00:00
tilghman 38dc225767 Add func_lock, which creates dialplan mutexes, and note that the Macro apps are now deprecated.
(Closes issue #10264)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77834 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-31 16:44:25 +00:00
tilghman 356721a45c Mostly cleanup of documentation to substitute the pipe with the comma, but a few other formatting cleanups, too.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77808 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-31 01:10:47 +00:00
russell 4f3c4dc7f2 Do a massive conversion for using the ast_verb() macro
(closes issue #10277, patches by mvanbaak)

Basically, this changes ...

if (option_verbose > 2)
   ast_verbose(VERBOSE_PREFIX_3, "Something\n");

to ...

ast_verb(3, "Something\n");


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77299 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-26 15:49:18 +00:00
tilghman fd0b69a4e7 Merge the dialplan_aesthetics branch. Most of this patch simply converts applications
using old methods of parsing arguments to using the standard macros.  However, the big
change is that the really old way of specifying application and arguments separated by
a comma will no longer work (e.g. NoOp,foo|bar).  Instead, the way that has been
recommended since long before 1.0 will become the only method available (e.g. NoOp(foo,bar).


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@76703 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-23 19:51:41 +00:00
murf 77f799ff1e After some study, thought, comparing, etc. I've backed out the previous universal mod to make ast_flags a 64 bit thing. Instead, I added a 64-bit version of ast_flags (ast_flags64), and 64-bit versions of the test-flag, set-flag, etc. macros, and an app_parse_options64 routine, and I use these in app_dial alone, to eliminate the 30-option limit it had grown to meet. There is room now for 32 more options and flags. I was heavily tempted to implement some of the other ideas that were presented, but this solution does not intro any new versions of dial, doesn't have a different API, has a minimal/zero impact on code outside of dial, and doesn't seriously (I hope) affect the code structure of dial. It's the best I can think of right now. My goal was NOT to rewrite dial. I leave that to a future, coordinated effort.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75983 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-19 23:24:27 +00:00
tilghman 74c2948c22 Merge in ast_strftime branch, which changes timestamps to be accurate to the microsecond, instead of only to the second
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75706 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-18 19:47:20 +00:00
file 5d28247693 Clean up func_curl a bit.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75586 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-18 14:59:20 +00:00
murf cdfb9990ad via 10206, I have added an option (e) to Dial to allow the h exten to get run on peer. Had to upgrade ast_flag stuff to 64 bits to do this.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75400 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-17 19:40:29 +00:00
file e61903fcf6 For my next trick I will make it so dialplan functions no longer need to call ast_module_user_add and ast_module_user_remove. These are now called in the ast_func_read and ast_func_write functions outside of the module.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75255 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-16 18:24:29 +00:00
file 9e24ed5ccf It is no longer required for each module that deals with a channel to call ast_module_user_hangup_all in it's unload function. The loader will automatically perform this action for it.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75183 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-16 13:35:20 +00:00
russell 040609f7b5 Cast the 2nd argument to iconv() to a void *, as some systems define it as a
(const char *), while others define it as (char *).  This is done to suppress
compiler warnings about it.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75163 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-16 02:44:49 +00:00
tilghman 15a49ab01c Merged revisions 73985 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r73985 | tilghman | 2007-07-08 23:03:20 -0500 (Sun, 08 Jul 2007) | 2 lines

Doxygen formatting fixes; fixes errors while 'make progdocs'.  (Closes issue #10104)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@73994 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-09 04:09:16 +00:00
dhubbard f1d65bfb7d Added AND, OR, and XOR bitwise operations to MATH for issue 9891, thanks jcmoore
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@72524 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-28 20:52:22 +00:00
file b401a5b5e5 Add rtpdest option to SIP CHANNEL() dialplan function to return the IP address and port that RTP (be it audio/video/text) is going to.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@71988 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-26 23:31:23 +00:00
russell 36a2e6ea7e Merged revisions 69702 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r69702 | russell | 2007-06-18 11:35:02 -0500 (Mon, 18 Jun 2007) | 6 lines

To prevent 92138749238754 more reports of "I have unixodbc installed, but
still can't build *_odbc.so!", check for ltdl directly, instead of just listing
it as another library to include in the unixodbc check in the configure script.
This also makes ltdl show up as a dependency in menuselect so people know what
to go install.  (related to issue #9989, patch by me)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@69703 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-18 16:35:51 +00:00
russell f042431847 Add a massive set of changes for converting to use the ast_debug() macro.
(issue #9957, patches from mvanbaak, caio1982, critch, and dimas)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@69327 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-14 19:39:12 +00:00
qwell 09896e33e1 Merged revisions 69259 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r69259 | qwell | 2007-06-14 10:21:29 -0500 (Thu, 14 Jun 2007) | 12 lines

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

........
r69258 | qwell | 2007-06-14 10:15:53 -0500 (Thu, 14 Jun 2007) | 4 lines

Change a quite broken while loop to a for loop, so "continue;" works as expected instead of eating 99% CPU...

Issue 9966, patch by me.

........

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


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@69260 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-14 15:25:32 +00:00
file 479087578c Use read/write lock based lists for group counting.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@69130 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-13 18:23:12 +00:00
russell ae627acb2f Fix a bunch of doxygen errors and document more things
(issue #9842, snuffy)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@68339 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-07 23:07:25 +00:00
tilghman eb5d461ed4 Issue 9869 - replace malloc and memset with ast_calloc, and other coding guidelines changes
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@67864 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-06 21:20:11 +00:00
tilghman 29a53bd6a7 Merged revisions 67162 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r67162 | tilghman | 2007-06-04 18:43:01 -0500 (Mon, 04 Jun 2007) | 10 lines

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

........
r67161 | tilghman | 2007-06-04 18:41:49 -0500 (Mon, 04 Jun 2007) | 2 lines

According to MATH, 0+1181000386 = 1181000448.  Oops.

........

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


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@67164 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-04 23:45:05 +00:00
tilghman ff8372513c Merged revisions 66919 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r66919 | tilghman | 2007-06-01 16:45:44 -0500 (Fri, 01 Jun 2007) | 2 lines

On some drivers, deallocating the statement handle isn't enough.  We also have to clear the cursor (nice, Oracle)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@66920 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-01 21:49:34 +00:00
tilghman 8f6dcc6b3f Issue 9799 - Multirow results for func_odbc
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@66734 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-31 15:05:56 +00:00
tilghman ad8d0ce4db Issue 9477 - Improve menuselect labels
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@66585 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-30 05:17:09 +00:00
tilghman dc2b8b6689 Merged revisions 66538 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r66538 | tilghman | 2007-05-29 16:56:07 -0500 (Tue, 29 May 2007) | 10 lines

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

........
r66537 | tilghman | 2007-05-29 16:49:35 -0500 (Tue, 29 May 2007) | 2 lines

If the value of a variable passed to FIELDQTY is blank, then FIELDQTY should return 0, not 1.

........

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


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@66540 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-29 21:59:21 +00:00
tilghman ee230ebbff Shorten description to a much more reasonable length
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@66539 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-29 21:57:50 +00:00
tilghman a46c4c5619 Issue 7021 - Add ICONV function for converting between character sets
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@66278 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-28 15:59:17 +00:00
dhubbard 84e099c676 Merged revisions 65866 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r65866 | dhubbard | 2007-05-24 10:08:56 -0500 (Thu, 24 May 2007) | 1 line

merged qwell's func_math patch for issue 9507
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@65906 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-24 15:35:50 +00:00
russell 96e19514d7 Add two new dialplan functions: ENUMQUERY and ENUMRESULT. These functions
allow you to initiate an ENUM query using ENUMQUERY, and then access the
details of all of the results using ENUMRESULT.  Previously, if you wanted
to access multiple results, Asterisk would have to do a new DNS lookup every
time.  (patch by bbryant)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@64480 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-15 23:05:20 +00:00
tilghman d8ee9d978c Issue 9716 - doc/enum.txt no longer exists in trunk
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@64072 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-12 19:38:03 +00:00
file ec529b6fa3 Merged revisions 61805 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r61805 | file | 2007-04-25 15:21:54 -0400 (Wed, 25 Apr 2007) | 10 lines

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

........
r61804 | file | 2007-04-25 14:52:50 -0400 (Wed, 25 Apr 2007) | 2 lines

Merge rewritten group counting support. No more storing data on the variable list of the channels. That was bad, mmmk? (issue #7497 reported by sabbathbh)

........

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


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@61806 f38db490-d61c-443f-a65b-d21fe96a405b
2007-04-25 19:27:42 +00:00
russell 8d14d22558 Merge changes from team/russell/iax2_osp
This set of changes adds OSP support to chan_iax2.  However, I have modified
the patch a bit from what was submitted.  You now use the CHANNEL() function
to get and set the OSP token for IAX2.

(issue #8531, reported by and original patch by homesick, patch updated by me)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@61702 f38db490-d61c-443f-a65b-d21fe96a405b
2007-04-20 21:12:53 +00:00
tilghman 1fc68129dc Merged revisions 61681 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r61681 | tilghman | 2007-04-18 21:45:05 -0500 (Wed, 18 Apr 2007) | 13 lines

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

........
r61680 | tilghman | 2007-04-18 21:30:18 -0500 (Wed, 18 Apr 2007) | 5 lines

Bug 9557 - Specifying the GetVar AMI action without a Channel parameter can
cause Asterisk to crash.  The reason this needs to be fixed in the functions
instead of in AMI is because Channel can legitimately be NULL, such as when
retrieving global variables.

........

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


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@61682 f38db490-d61c-443f-a65b-d21fe96a405b
2007-04-19 02:51:21 +00:00
russell f63dc635a4 Add a minor loop optimization to the custom device state callback. Once the
correct device is found, it should just break out of the loop ...


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@61429 f38db490-d61c-443f-a65b-d21fe96a405b
2007-04-11 15:25:43 +00:00
russell 4517c0a59a Merged revisions 59256 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r59256 | russell | 2007-03-27 11:20:53 -0500 (Tue, 27 Mar 2007) | 4 lines

Convert the RTPQOS function to just be additional parameter of the CHANNEL
function.  This way, it will be possible for other RTP based channel drivers
to expose this information in the future.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@59257 f38db490-d61c-443f-a65b-d21fe96a405b
2007-03-27 16:25:02 +00:00
tilghman 86eb621b92 Merged revisions 59049 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r59049 | tilghman | 2007-03-19 17:29:56 -0500 (Mon, 19 Mar 2007) | 2 lines

Oops, this should have been a %d all along

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@59050 f38db490-d61c-443f-a65b-d21fe96a405b
2007-03-19 22:31:14 +00:00
tilghman 1baa22150f Merged revisions 58933 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r58933 | tilghman | 2007-03-15 17:32:33 -0500 (Thu, 15 Mar 2007) | 2 lines

Function works fine, but the documentation is backwards.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@58934 f38db490-d61c-443f-a65b-d21fe96a405b
2007-03-15 22:33:46 +00:00
tilghman 70b3adc070 Merged revisions 58880 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r58880 | tilghman | 2007-03-13 20:47:08 -0500 (Tue, 13 Mar 2007) | 3 lines

Issue 9162 - pbx_substitute_variables_helper assumes the buffer is initialized
to all zeroes.  This fixes a case where it wasn't.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@58881 f38db490-d61c-443f-a65b-d21fe96a405b
2007-03-14 01:56:03 +00:00
oej 9df447ca21 Creating new doxygen macro "\extref" to create page that lists
external libraries and URLs to these. Please help me add these
references.

We might want to create a similar macro "\linuxpackage" to list
the needed Linux packages in popular distributions.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@56647 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-24 19:27:50 +00:00
russell bb6564f8e7 This introduces a new dialplan function, DEVSTATE, which allows you to do some
pretty cool things.

First, you can get the device state of anything in the dialplan:
  NoOp(SIP/mypeer has state ${DEVSTATE(SIP/mypeer)})
  NoOp(The conference room 1234 has state ${DEVSTATE(MeetMe:1234)})

Most importantly, this allows you to create custom device states so you can
control phone lamps directly from the dialplan.
  Set(DEVSTATE(Custom:mycustomlamp)=BUSY)
  ...
  exten => mycustomlamp,hint,Custom:mycustomlamp


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@54261 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-13 22:02:20 +00:00
tilghman 15abba63d9 Formatting fixes
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@53980 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-12 02:44:33 +00:00
kpfleming f56e86c1e1 Merged revisions 53779-53781 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r53779 | kpfleming | 2007-02-09 17:51:29 -0600 (Fri, 09 Feb 2007) | 2 lines

fix awk scripts to work when both MODULEINFO and MAKEOPTS are present in a source file

........
r53780 | kpfleming | 2007-02-09 17:51:41 -0600 (Fri, 09 Feb 2007) | 2 lines

add some inter-module dependencies

........
r53781 | kpfleming | 2007-02-09 17:52:44 -0600 (Fri, 09 Feb 2007) | 2 lines

another dependency

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@53782 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-09 23:53:51 +00:00
tilghman 5fa699be6e Add CALLERPRES dialplan function and deprecate SetCallerPres application
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@53141 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-03 22:05:02 +00:00
tilghman 11af697398 Fix compiler warnings
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@53140 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-03 22:04:09 +00:00
russell 051c7a4509 Merged revisions 53093 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r53093 | russell | 2007-02-01 15:24:52 -0600 (Thu, 01 Feb 2007) | 2 lines

Fix the FIELDQTY function to not crash. (reported by blitzrage and Corydon on IRC)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@53094 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-01 21:27:22 +00:00
tilghman 9fdb2806c1 Merged revisions 53075 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r53075 | tilghman | 2007-02-01 14:09:52 -0600 (Thu, 01 Feb 2007) | 10 lines

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

........
r53074 | tilghman | 2007-02-01 14:07:35 -0600 (Thu, 01 Feb 2007) | 2 lines

Bug 8965 - Allow FIELDQTY to work with both variables and dialplan functions

........

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


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@53076 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-01 20:12:56 +00:00
tilghman 634731c024 Merged revisions 53070 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r53070 | tilghman | 2007-02-01 13:21:20 -0600 (Thu, 01 Feb 2007) | 10 lines

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

........
r53069 | tilghman | 2007-02-01 13:13:53 -0600 (Thu, 01 Feb 2007) | 2 lines

No wonder FIELDQTY doesn't work with functions... the documentation in pbx.c was wrong

........

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


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@53071 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-01 19:27:22 +00:00
oej c689de66ae Doxygen update
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@51920 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-24 09:05:29 +00:00
qwell 189872a68e Merged revisions 51265 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r51265 | qwell | 2007-01-18 16:50:23 -0600 (Thu, 18 Jan 2007) | 4 lines

Add some more checks for option_debug before ast_log(LOG_DEBUG, ...) calls.

Issue 8832, patch(es) by tgrman

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@51266 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-18 22:56:35 +00:00
russell a27e12bd06 Merged revisions 51205 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r51205 | russell | 2007-01-17 17:31:11 -0600 (Wed, 17 Jan 2007) | 5 lines

Fix some instances where when loading func_odbc, a double-free could occur.
Also, remove an unneeded error message.  If the failure condition is
actually a memory allocation failure, a log message will already be
generated automatically.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@51207 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-17 23:35:43 +00:00
file bfdb62e093 One const, two const. Let's stick with everything else - one const. Plus older versions of GCC don't support double const either.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49816 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-07 19:00:36 +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 d78e74ce7e Modifications to allow the output of SHELL() to be split per line (Issue 8676)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49786 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-07 14:44:49 +00:00
tilghman 11ebcfbc4a Add function to execute a shell command and return the output (Issue 8676)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49785 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-07 14:40:48 +00:00
kpfleming 781c168b07 finish const-ifying ast_func_read()
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49741 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-06 00:13:33 +00:00
tilghman 97e1dede96 Tweak description text to match new functionality (Issue 7959)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49187 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-02 17:04:08 +00:00
tilghman 7f7f1f6096 Add power and right/left shift functions (Issue 7959)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49076 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-31 05:20:18 +00:00
file 61a8029e9e Initialize obj pointers to NULL. Gets rid of two compiler warnings.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49065 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-30 03:42:20 +00:00
tilghman 8d086303b6 Integrate functionality tested on svncommunity users back into trunk
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49030 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-28 20:13:00 +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
kpfleming 3f07ee6c8d Merged revisions 48577 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48577 | kpfleming | 2006-12-19 08:57:09 -0600 (Tue, 19 Dec 2006) | 2 lines

use the proper variable type for these unixODBC API calls, eliminating warnings on 64-bit platforms that use the 'new' 64-bit types for ODBC API calls

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48578 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-19 14:57:45 +00:00
rizzo be65ff79d9 replace ast_build_string() with ast_str_*().
Unless i am very mistaken, function_realtime_read() was
broken in that it would always return an empty string
(because ast_build_string() advanced the pointer to the
end of the string, and there was no reference to the
initial value.

This commit should fix this problem.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48551 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-17 22:57:46 +00:00
kpfleming ad0e0a29d4 update to use trunk's version of the threadstorage API
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48526 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-16 21:24:08 +00:00
kpfleming 79a60fb124 Merged revisions 48513 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48513 | kpfleming | 2006-12-15 22:25:09 -0600 (Fri, 15 Dec 2006) | 2 lines

instead of initializing the curl library every time the CURL() function is invoked, do it only once per thread (this allows multiple calls to CURL() in the dialplan for a channel to run much more quickly, and also to re-use connections to the server) (thanks to JerJer for frequently complaining about this performance problem)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48514 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-16 04:25:46 +00:00
tilghman 101927e5b1 Merged revisions 48382 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48382 | tilghman | 2006-12-10 23:37:09 -0600 (Sun, 10 Dec 2006) | 2 lines

STRFTIME() does not actually require an argument (issue 8540)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48384 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-11 05:40:38 +00:00
rizzo c2fb9a8f0a remove an extra comma in an initializer
Detected by: AST_DEVMODE=yes



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48034 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-27 14:47:15 +00:00
murf d6bbc3a58c 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
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48018 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-26 00:31:13 +00:00
murf 9481a291a2 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.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48016 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-26 00:15:42 +00:00
pcadach 5b74ecfcfa Merged revisions 44809 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r44809 | pcadach | 2006-10-10 23:44:54 +0700 (Втр, 10 Окт 2006) | 1 line

CHANNEL() function sometime mix parameter and value
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47718 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-16 08:18:41 +00:00
file c744624e6f Merged revisions 47625 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47625 | file | 2006-11-14 16:30:44 -0500 (Tue, 14 Nov 2006) | 2 lines

Small documentation clarification for URIENCODE. (issue #8294 reported by salaud)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47626 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-14 21:33:59 +00:00
oej 0c84a12d69 Issue #80898 - Restoring func_enum (otmar)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46635 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-31 11:01:06 +00:00
oej d130b1904f show, list, view, display... whatever.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46514 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-30 21:56:48 +00:00
oej eb896134ce Adding dialplan function IFMODULE, so you can create dialplans that handle
various PBX installations and checks if a module is loaded before using
it.
	example IFMODULE(chan_sip3.so)

issue #6671 in the bug tracker, finally gone. Thanks to mithraen for keeping
it updated.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46513 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-30 21:48:41 +00:00
murf 650179d98d This new function, VERSION(), created via bug report 8176, may help dialplan programmers in the future. In the meantime, they can use the algorithm I outline on the bug report notes; If anyone invents something better, I'd hope they post it
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45724 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-19 22:06:27 +00:00
murf 6bda949bd6 update the doc string for both AEL and extensions.conf users.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45142 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-14 04:36:21 +00:00
tilghman dced8f07fd Merged revisions 44808 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r44808 | tilghman | 2006-10-10 11:42:19 -0500 (Tue, 10 Oct 2006) | 2 lines

Lost of a bit of logic when this was simplified between 1.2 and 1.4 (Bug 8117)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44810 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-10 16:46:01 +00:00
file 773598e767 Timeout values are in seconds (issue #7122 reported by jmls)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44768 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-09 18:23:21 +00:00
pcadach d2747c97ad Extend CALLERID() function for "pres" and "ton" values
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44685 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-07 14:45:49 +00:00
mogorman 4a1aaf52ae bug #8076 check option_debug before printing to debug channel.
patch provided in bugnote, with minor changes.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44253 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-03 15:53:07 +00:00
file 3a27d3bc70 Merged revisions 43933 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r43933 | file | 2006-09-28 14:05:43 -0400 (Thu, 28 Sep 2006) | 2 lines

Put in missing \ns on the end of ast_logs (issue #7936 reported by wojtekka)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43934 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-28 18:09:01 +00:00
tilghman d634012c4e Remove deprecated apps and funcs
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43439 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-21 19:35:29 +00:00
tilghman e8ef9fd3ba Constify the result of a config retrieval function, to avoid mutilation (issue 7983).
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43364 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-20 20:40:39 +00:00
kpfleming 99788749f1 move ODBC API into ast_ namespace
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43311 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-20 04:57:20 +00:00
mattf b759835a90 Various updates from PCadach's chan_h323-live branch
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43294 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-19 21:07:49 +00:00
murf 411f01b40e As per discussion on bug 7862, the problem wasn't the fact that the documentation differed from behavior, but rather that users are used to REGEX having that space after the double quote in 1.2.x. So, in keeping with history, I investigated a little deeper, and discovered that the change in behavior was due to the modification of the function to use the AST_DECLARE_APP_ARGS and AST_NONSTANDARD_APP_ARGS() to parse the args. The code to skip the blank was left out. So, what I did was add code to throw out the first blank (space or tab) after the double quote, IF IT IS THERE. If not, nothing is done.Verbage is added to the function description saying that the space is optional, and skipped if it is there. If a space is desired, then the documentation advises putting two spaces there. This should make it compatible for 1.2 users, and not mess up new users who are used to using it with no space. It WILL mess up new users who WANT a space. Hopefully, they will double check the doc strings for this func and add the extra space. Hopefully, this class of new user is very small.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@42423 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-08 16:44:38 +00:00
murf b644e296ba With respect to bug 7862, the syntax and description are misleading to users. the syntax included a space after the double quotes between the regex and the data to match. I removed this from the function doc, and added some verbage to make this crystal clear, I hope.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@42224 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-07 04:23:00 +00:00
tilghman cfbbdd26d5 Missing field terminator
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@42034 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-05 17:23:50 +00:00
bweschke c1f28d707c Some changes/fixes for func_curl. curl_global_init is only supposed to be called once, and if it returns non-zero, we need to give up on further executions with that instance. Additionally, let's set absolute timeout values for the CURL connections to try and prevent possible Zap (and possibly other channel tech) channel lockouts.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41900 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-03 19:07:58 +00:00
mogorman 73925ee14a everything that loads a config that needs a config file to run
now reports AST_MODULE_LOAD_DECLINE when loading if config file
is not there, also fixed an error in res_config_pgsql where it 
had a non static function when it should.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41633 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-31 21:00:20 +00:00
russell 71708ac949 oops.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41545 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-31 04:19:54 +00:00
russell 7ab2e8a729 The behavior of REGEX when it did not match was not defined by the docs, so
define it to provide a result of "0" and change the code appropriately.
(issue #7805)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41544 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-31 04:07:35 +00:00
kpfleming 0ba6df7e01 GNU make already knows how to quietly ignore non-existent files in 'include' directives
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41209 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-26 23:58:47 +00:00
kpfleming 8b0c007ad9 merge new_loader_completion branch, including (at least):
- restructured build tree and makefiles to eliminate recursion problems
  - support for embedded modules
  - support for static builds
  - simpler cross-compilation support
  - simpler module/loader interface (no exported symbols)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@40722 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-21 02:11:39 +00:00
tilghman 69a1a8ff24 Convert func_odbc to use the prepare_and_execute callback, which helps with a database reconnection issue (bug 7693)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@40632 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-20 15:46:00 +00:00
file 3ce8f8c39b Add 'l' option to CDR dialplan function which will cause it to pass the last CDR record to getvar instead of the first. (issue #7689 reported by voipgate)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@40226 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-17 16:29:44 +00:00
tilghman e63bd04ff0 Move curl version test to autoconf script
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37678 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-15 21:39:26 +00:00
kpfleming 51482ed964 more Makefile cleanup and consistency stuff
don't reuse LIBS variable from top-level Makefile (oops)
build Asterisk binary after subdirs (preparing for embedded modules)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37661 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-15 19:59:35 +00:00
kpfleming 84cc5e8bd0 move rules file to prepare for generic rules file
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37222 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-06 21:04:28 +00:00
tilghman c3f025f5e6 Merged revisions 37143 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r37143 | tilghman | 2006-07-06 08:47:23 -0500 (Thu, 06 Jul 2006) | 2 lines

Fix spelling/grammar (issue 7493)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37144 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-06 13:50:54 +00:00
tilghman 668c080264 Don't attempt to run a regcomp if we haven't even parsed arguments correctly
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@36777 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-03 06:32:35 +00:00
tilghman 14ce4301aa Revert the previous change to FILTER and fix the embedded documentation instead.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@36543 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-01 16:03:51 +00:00
russell 7940aa5a61 fix the parsing of options in the FILTER function to match the documentation.
(issue #7465)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@36504 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-01 14:42:42 +00:00
kpfleming 673e53a328 use new (separate) dependencies file from menuselect
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@35895 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-25 08:50:14 +00:00
kpfleming 41af2260b7 The Eurostar Commit! (it's amazing how much work you can get done on a 150 minute train ride from Paris to London <G>)
support the new location for zaptel.h and tonezone.h
use the dependency information output by menuselect to build Makefile rules for each module for header files and libraries
combine the common rules into a top-level Makefile.rules file
remove all (now) unnecessary stuff from subdir Makefiles
change translator API so that the newpvt() callback returns an int instead of a pointer (it no longer allocates memory)
alphabetize --with-<foo> options in configure script
enhance Net-SNMP support in configure script to provide a --with-netsnmp option
fix support for --with-pq so that if pg-config is not found when --with-pq is specified, an error will be generated
add 'optional package' usage to modules now that menuselect can output it
allow res_snmp to build by default, since the new loader changes coming soon will solve the function naming problem (and users can disable it via menuselect anyway)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@35832 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-24 19:43:31 +00:00
russell c28707b6f1 remove various commands that remove old modules since they have been there a
sufficient amount of time.  Even if they happen to be still present, the main
Makefile will spit out a huge warning telling the user that modules not
installed by that run of "make install" are present in the modules directory.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@35605 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-23 01:29:41 +00:00
russell 9b1d7f9fa8 - convert the 'uninstall' target to use separate targets to process each
subdirectory instead of a for loop
- remove the FORCE target from the main Makefile and add the couple places
  I used it to the .PHONY target.  .PHONY does the same thing and is a built-in
  more efficient way of doing it.
- add a bunch more targets to .PHONY ...


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@35503 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-22 15:38:13 +00:00
russell ddb0e59eb0 - specify that 'depend' is a .PHONY target
- use separate targets instead of a for loop for doing 'make depend' for
  each sub directory


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@35501 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-22 15:08:08 +00:00
russell 0bb78235cb - specify that 'all' is a .PHONY target
- add a copyright header to the build_tools Makefile
- remove 'depend' from the 'all' target in agi/ and utils/ since it is handled
  by the main Makefile already


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@35479 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-22 14:09:18 +00:00
russell b70a7c6a7c add the 'clean', 'clean-depend', and 'dist-clean' targets as .PHONY targets
since they are targets that do not have resulting files and are never listed
as prerequisites to real targets.  Using .PHONY in this manner improves make
performance by never having to check for resulting files.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@35415 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-22 11:27:03 +00:00
russell 31fff75d63 don't blow up in the sub Makefiles if menuselect.makeopts is not present. This
is valid in some cases, such as "make clean".


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@34738 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-19 00:14:16 +00:00
kpfleming 73c525e6e2 simplify autoconfig include mechanism (make tholo happy he can use lint again :-)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@32846 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-07 18:54:56 +00:00
russell 745248fa58 remove the need to have to re-run make after a default menuselect.makeopts
file is generated.  This allows a fresh checkout of asterisk to be built
and installed with the standard "./configure && make && make install".


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@32798 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-07 16:03:31 +00:00
kpfleming bb0b421ea8 use module names, not file names, in menuselect
work around XML parsing bug in menuselect for default sounds package


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@32407 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-05 20:46:27 +00:00
oej 3e24132b57 Make tonezone writeable in CHANNEL() (from my old func_tonezone.c)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@32018 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-04 11:47:51 +00:00
rizzo 602f285e57 this file contained the body twice, so remove the second instance.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@30699 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-29 05:13:13 +00:00
tilghman 42d036b2d1 Deprecate SetGlobalVar, replacing it with a dialplan function
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@30677 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-28 15:10:19 +00:00
tilghman e56f74c0de Should use the named handle, not one hardcoded
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@30653 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-27 18:19:16 +00:00
markster 25efaf1f71 Lets not commit things that cause Asterisk to break when config files aren't present.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@30490 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-26 03:08:15 +00:00
russell 7fb949653f - mark some applications deprecated that already have replacements
- add BLACKLIST and mark LookupBlacklist deprecated
- add transfercapability support to CHANNEL and mark SetTransferCapability
  deprecated
(issue #7225, Corydon)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@30359 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-25 19:07:31 +00:00
russell d686e9230b add DB_DELETE function for the common case of retrieving and deleting a key in
a single operation (issue #7214, twilson)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@30241 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-25 15:40:38 +00:00
tilghman 96ba011628 Escaping commas within fields isn't always desireable.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@29364 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-22 03:40:31 +00:00
russell e9b1b115e3 fix the build of func_realtime and aelparse with MTX_PROFILE enabled
(issue #7187, #7188, casper)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@28895 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-20 00:41:36 +00:00
file 03d241f35c Add SPRINTF dialplan function made by the ever insaneful Corydon (issue #7078 reported by Corydon76)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@28016 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-18 00:00:32 +00:00
tilghman ca4fd89b4e Argument macro janitor for func_odbc, fixes #7171
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@27522 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-16 21:14:01 +00:00
russell 45bce86540 fix bogus patch to allow setting the CDR amaflags. (The original patch in
issue #7166 was fine.)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@27269 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-16 03:18:22 +00:00
mogorman 2da5b6f355 allow func_cdr to set amaflags patch provided by
bug 7166


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@27231 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-15 19:46:26 +00:00
tilghman 5ba9ee4d04 Merged revisions 27051 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r27051 | tilghman | 2006-05-11 18:02:57 -0500 (Thu, 11 May 2006) | 2 lines

Bug 7086 - pbx_checkcondition substitution, so that arbitrary strings are true (for regex)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@27052 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-11 23:16:27 +00:00
russell 7554f54ea8 use the channel lock wrappers (issue #7120, Mithraen)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26528 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-10 15:30:59 +00:00
russell d99b677f35 remove almost all of the checks of the result from ast_strdupa() or alloca().
As it turns out, all of these checks were useless, because alloca will never
return NULL.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26451 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-10 13:22:15 +00:00
bweschke 9cefc64cdf Fix output delimiters and add prefix parameter to func_odbc #7025 (Corydon76)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@25234 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-06 13:36:29 +00:00
bweschke cf7dd4c53a Provide the ability to adjust txgain/rxgain on a channel level via the CHANNEL() function
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@24621 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-03 22:02:50 +00:00
russell b8de621a5e suppress a compiler warning
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@24534 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-03 19:10:41 +00:00
rizzo 940cef14e9 remove variable declarations in the middle of two blocks.
While at it, normalize the surrounding code.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@24495 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-03 18:22:04 +00:00
bweschke e93a85edf0 Introducing the REALTIME() dialplan function
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@24376 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-02 22:46:12 +00:00
kpfleming 29f496ef12 Thanks to the fine work of Russell Bryant and Dancho Lazarov, we now have autoconf and menuselect tools for Asterisk!
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22267 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-24 17:11:45 +00:00
rizzo 56b186cc11 more NULL "" equivalence in CLI fields.
Mark a place where we don't clear a buffer while we probably should.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21820 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-21 10:51:31 +00:00
russell 184bfd1c04 update res_odbc to support pooled connections
(from tilghman's developer branch, res_odbc_rewrite)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21181 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-18 18:16:32 +00:00
rizzo a849373bc0 remove some unnecessary braces
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20170 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-14 22:55:58 +00:00
tilghman 0d933f8a05 Compatibility fixes for loader changes
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20075 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-14 18:44:24 +00:00
rizzo 3664249356 This rather large commit changes the way modules are loaded.
As partly documented in loader.c and include/asterisk/module.h,
modules are now expected to return all of their methods and flags
into a structure 'mod_data', and are normally loaded with RTLD_NOW
| RTLD_LOCAL, so symbols are resolved immediately and conflicts
should be less likely.  Only in a small number of cases (res_*,
typically) modules are loaded RTLD_GLOBAL, so they can export
symbols.
 
The core of the change is only the two files loader.c and
include/asterisk/module.h, all the rest is simply adaptation of the
existing modules to the new API, a rather mechanical (but believe
me, time and finger-consuming!) process whose detail you can figure
out by svn diff'ing any single module.

Expect some minor compilation issue after this change, please
report it on mantis http://bugs.digium.com/view.php?id=6968
so we collect all the feedback in one place.

I am just sorry that this change missed SVN version number 20000!



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20003 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-14 14:08:19 +00:00
tilghman 52a359c8dd Bugs 6883, 6930: compiler warnings
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@19095 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-11 05:37:05 +00:00
kpfleming e4880150b1 since the module API is changing, it's a good time to const-ify the description() and key() return values
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18552 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-08 22:01:19 +00:00
tilghman a52b96290e Bug 6670 - Additional parameters to the CHANNEL func
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@14870 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-25 05:24:52 +00:00
rizzo f700d93bf8 Do the (expensive) LOCAL_USER_ADD only after we are sure
that arguments are valid.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@14785 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-24 18:33:48 +00:00
tilghman 8cbd10e054 Bug 6699 - Fix for ENUMLOOKUP
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@13710 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-21 05:54:04 +00:00
oej 566af08e49 README files have changed names, better change references too :-)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@12572 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-12 17:27:57 +00:00
tilghman e7f4d1bd28 Sun's shell: just different enough to cause problems
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@11505 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-01 17:57:43 +00:00
tilghman c3f0ff1ef4 Bug 6619 - Fix Solaris issue with doubled [[
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@11478 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-01 06:15:35 +00:00
tilghman 4f1ce1ea49 Move conditional compilation for CURL from apps/ to funcs/
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10961 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-23 23:43:06 +00:00
kpfleming 00eb2ed1c1 correct documentation typo
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10960 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-23 23:38:05 +00:00
mogorman 15e5f0999a minor fixes to commit 10934 from bug#6257
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10959 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-23 23:36:53 +00:00
tilghman d14ce4c739 Bug 6417 - Allow retrieval of raw CDR values
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10953 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-23 23:12:41 +00:00
mogorman eaf5d33648 added function QUOTE into strings, which allows
for quoted strings, and escapes them properly.
slightly modified patch from bug #6257


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10934 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-23 22:59:16 +00:00
tilghman ec65ad3b78 Move CURL function from apps/ to funcs/
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10932 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-23 22:27:49 +00:00
tilghman 3ffc3c23aa Some sick individuals use SQL queries longer than 512 bytes in the dialplan. ;-)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10895 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-23 19:26:22 +00:00
kpfleming 9c4950dff3 add 'consumed' argument to ast_get_time_t, so callers can know how many characters were used in the parser
update pbx_dundi to use ast_get_time_t
eliminate some compiler warnings


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10871 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-23 17:13:57 +00:00
kpfleming 12c605e61b revert change to ENUM functionality (go back to supplying a default zone)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10823 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-22 23:07:34 +00:00
kpfleming 298fa6c9e1 merge rizzo's patch to make compiler warnings stop the build, and fix a bunch of warnings found
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10805 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-22 22:53:49 +00:00
kpfleming d94c9147f9 set keywords property correctly
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10627 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-21 17:15:17 +00:00
russell 5134a87422 suppress compiler warning
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10286 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-16 17:21:56 +00:00
russell c72e5e1b38 remove the uses of the deprecated STANDARD_LOCAL_USER
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10241 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-15 20:11:56 +00:00
kpfleming c97e52dc7e add KEYPADHASH dialplan function (issue #6441)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10113 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-15 00:59:01 +00:00
kpfleming 728842d73f handle longer ENUM lookup results (issue #6476)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10112 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-15 00:51:21 +00:00
kpfleming 15db46a445 add API function for parsing strings to time_t (issue #6320, with mods)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10105 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-15 00:24:24 +00:00
kpfleming 0be5cc8fb2 don't force a default zone for ENUM() lookups, use the configuration file (issue #6036, with update to UPGRADE.txt)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10047 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-14 21:57:26 +00:00
markster 6dacce7f24 Fix build issues...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9988 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-14 19:08:12 +00:00
russell 4c6776c6d7 remove LOCAL_USER_ACF_ADD since it is now the same as LOCAL_USER_ADD
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9800 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-13 20:12:50 +00:00
russell dcdfdeb537 use the zone and options set by the arg parsing macros
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9719 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-12 19:26:15 +00:00
kpfleming e217105bfc ensure that dependencies are rebuilt after 'make update' so that builds don't break when files are removed/renamed
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9691 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-12 16:52:42 +00:00
kpfleming 5d9ed5739a major dialplan functions update
deprecate LANGUAGE() and MUSICCLASS(), in favor of CHANNEL()


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9674 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-12 04:28:58 +00:00
kpfleming 32337b7e7f use auto-build for apps, simplify variable setting
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9564 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-11 17:12:05 +00:00
kpfleming dda3cfe4a0 use auto-build for res modules too
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9552 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-11 16:44:15 +00:00
kpfleming 7af82de9e9 prepare to use auto-build rules in other Makefiles
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9551 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-11 16:30:23 +00:00
kpfleming c5e42c6158 set standard properties on all non-binary files
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9549 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-11 16:15:11 +00:00
tilghman bde9850ff5 Fix compile time warnings
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9548 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-11 16:13:03 +00:00
kpfleming 801e0575cd remove last vestiges of pbx_functions
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9471 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-11 03:21:09 +00:00
kpfleming 5f90b9bebd build function modules independently (no more pbx_functions.so)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9469 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-11 03:14:05 +00:00
tilghman d36e97804d Bug 6322 - Implementation of SHA1 in Asterisk (plus dialplan function to use it)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9138 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-03 22:37:29 +00:00
kpfleming 21d21f89c0 use string fields for some stuff in ast_channel
const-ify some more APIs
remove 'type' field from ast_channel, in favor of the one in the channel's tech structure
allow string field module users to specify the 'chunk size' for pool allocations
update chan_alsa to be compatible with recent const-ification patches


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9060 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-01 23:05:28 +00:00
mogorman 4ef13bdcda Allows for user to uninstall asterisk binaries
bug 6177


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9052 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-01 18:39:41 +00:00
tilghman f0b67955ad Bug 6378 - deprecate CHECK_MD5 function
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8883 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-30 06:07:05 +00:00
oej 353cec56ea Reverting change in revision 8539 - fixed wrong problem. Sorry.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8548 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-24 17:47:41 +00:00
oej e5f9da6e43 Issue #6323, FreeBSD compatibility with compilation of func_odbc.c (reported by nulbyte)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8539 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-24 13:53:45 +00:00
mogorman 4df94f3769 code clean up and macro implementation from
bug 6247


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8505 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-23 18:07:12 +00:00
tilghman 7272fcf49e Bug 6262 - New function STRPTIME
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8428 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-22 08:09:02 +00:00
russell 252fb982f4 on this pass, only remove duplicate log messages
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8403 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-21 20:57:06 +00:00
russell b14bdc5a12 revert my pass through the tree to remove checks of the result of ast_strdupa
(revisions 8378 through 8381)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8387 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-21 17:50:04 +00:00
russell 41cb10c756 remove useless checks of the result of ast_strdupa
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8380 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-21 08:23:57 +00:00
tilghman 03a07603de Argh, another ERROR that should have been DEBUG
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8104 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-16 18:41:18 +00:00
tilghman d4489b1d3e Change a debugging message committed with the wrong level
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8103 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-16 18:39:01 +00:00
russell a1447ba856 remove redundant CFLAGS for BSD which are already set in the main Makefile (issue #6250)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8101 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-16 17:51:35 +00:00
bweschke 4bd6f65902 More code optimization with the new argument macros #6253
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8099 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-16 17:31:30 +00:00
tilghman 01ec86ea48 Clarify description of ARRAY function
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8080 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-15 18:08:04 +00:00
tilghman 103a3594e7 Bug 6238 - Janitor - update to app_args macros
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8076 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-14 19:30:37 +00:00
tilghman 4a7d7c7ba6 Merged revisions 8074 via svnmerge from
/branches/1.2


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8075 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-14 19:08:03 +00:00
mogorman f5498b059f Added macros from 6198 and 6203. also added better
error reporting in func_cut


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7989 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-11 19:52:29 +00:00
mogorman dea4f0a665 6186 amd 6187 with minor revisions. added arg
parsing from macro.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7945 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-10 16:08:28 +00:00
tilghman 9b9ed4da74 Fix indentation
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7929 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-10 03:23:38 +00:00
mogorman fab9f25c13 committing 5924 with minor white space changes
and adding it to the Makefile for functions.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7921 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-10 01:52:34 +00:00
tilghman 603f6f0ce3 Bug 5961 - new RAND() function
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7920 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-10 00:55:45 +00:00
russell ad9e5112e2 remove unnecessary check before ast_strlen_zero (issue #6179)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7901 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-09 18:29:03 +00:00
russell 27f789a679 Merged revisions 7773 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r7773 | russell | 2006-01-04 02:06:50 -0500 (Wed, 04 Jan 2006) | 2 lines

use a more correct way of determining the size of the destination buffer

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7774 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-04 07:08:08 +00:00
russell ab6566173e update doxygen docs to specify authors
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7682 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-30 21:18:06 +00:00
tilghman 1cff911871 Bug 5906 - ARRAY dialplan function
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7648 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-27 06:50:25 +00:00
tilghman c12493b765 Add SQL_ESC to allow single ticks to be escaped
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7642 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-27 02:02:23 +00:00
tilghman e19e560da2 Bug 5327 - new function FILTER and optional argument to CALLERID
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7614 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-23 21:03:25 +00:00
kpfleming a30c7a43dc don't try to build func_odbc when ODBC headers/libraries are not present
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7589 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-22 03:49:41 +00:00
tilghman 4ca4b36d90 Bug 5055 - Simple SQL commands from the dialplan
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7576 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-21 18:43:10 +00:00
tilghman 6aacd0c128 Bug 5440 - Add STAT() dialplan function
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7575 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-21 17:09:54 +00:00
tilghman f69d0e646b First field was truncated.
(Don't kill me; this attempted merge didn't work because the paths changed.)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7498 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-16 00:55:39 +00:00
tilghman f23c1fcb31 Properly move these functions over to the funcs directory (since they no longer contain apps)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7496 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-15 19:05:41 +00:00
tilghman 3365b1cc9f Bug 5858 - Make the chanvars.c functions return a 'const char *'
This should prevent us from unintentionally changing variable
values when they're returned from pbx_builtin_getvar_helper.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7304 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-03 19:25:33 +00:00
kpfleming 24c1e3c222 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7221 f38db490-d61c-443f-a65b-d21fe96a405b 2005-11-29 18:24:39 +00:00
kpfleming 6c54a7cf87 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7220 f38db490-d61c-443f-a65b-d21fe96a405b 2005-11-29 18:09:49 +00:00
twisted a569ddb582 issue #5791
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7135 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-20 04:48:24 +00:00
kpfleming 615fc64a77 issue #5693
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7058 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-10 23:42:45 +00:00
russell 465d1d7712 make app_queue 1.2 jump compliant (issue #5580)
add missing includes of stdio.h
remove some unused and duplicate headers


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7026 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-08 04:48:00 +00:00
kpfleming df706a8900 issue #5648
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7011 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-08 01:55:31 +00:00
kpfleming ae35e4e069 major update to arg/option parsing APIs and documentation
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6953 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-03 21:19:11 +00:00
kpfleming 4d4023555b issue #4678
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6936 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-01 21:53:30 +00:00
russell 2c3b3edc86 Doxygen documentation update from oej (issue #5505)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6847 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-24 20:12:06 +00:00
russell 01ddee76b0 add missing STANDARD_HANGUP_LOCALUSERS
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6827 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-18 21:06:48 +00:00
russell 81205f2fd3 implement TXTCIDNAME as a dialplan function and mark the application deprecated
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6813 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-18 03:02:06 +00:00
russell a3a280b42b clean up function to be more consistent with coding guidelines
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6808 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-17 17:54:32 +00:00