dect
/
asterisk
Archived
13
0
Fork 0
Commit Graph

2975 Commits

Author SHA1 Message Date
file ca26469ac3 Don't hardcode ru into the digits filename so that languageprefix can work.
(closes issue #12404)
Reported by: IgorG
Patches:
      voicemail_ru_hardcoded-v1.patch uploaded by IgorG (license 20)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114027 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-10 14:53:19 +00:00
mmichelson adc41f0e5b Fix a crash that happened due to accessing free'd memory
(closes issue #12396)
Reported by: tcalosi
Patches:
      12396.patch uploaded by putnopvut (license 60)
	  Tested by: tcalosi


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@113980 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-09 22:32:32 +00:00
tilghman 3fcaccaf83 Permit message wrap-around during message retrieval.
(closes issue #12254)
 Reported by: andrew
 Patches: 
       bug-12253.diff uploaded by snuffy (license 35)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@113731 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-09 16:16:44 +00:00
tilghman ca1b11d1c8 Permit callee to continue in the dialplan, after caller has hung up.
(closes issue #11954)
 Reported by: johan
 Patches: 
       app_dial_rev104031.patch uploaded by johan (license 334)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@113649 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-09 13:55:28 +00:00
mmichelson 723b4e8bdf This is a "fix" for something that's been bugging the crap out of me for a while.
The variable name "flag" to distinguish between whether a message is being forwarded or
is new is not a helpful name. The newly added doxygen documentation to app_voicemail is
tremendously helpful, but I still just...hate this variable name. I think is_new_message
is more indicative of what its purpose is.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@113207 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-07 20:22:06 +00:00
mmichelson c0963a5610 Merged revisions 112393 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r112393 | mmichelson | 2008-04-02 09:32:00 -0500 (Wed, 02 Apr 2008) | 6 lines

Ensure that there is no timeout if none is specified.

(closes issue #12349)
Reported by: johnlange


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@112394 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-02 14:32:43 +00:00
qwell 7403edf14f Minor formatting cleanup.
(closes issue #12343)
Reported by: travishein
Patches:
      app_voicemail_code_convention.patch uploaded by travishein (license 385)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@112252 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-01 18:27:08 +00:00
qwell 122d1ee59f More voicemail doxygen additions/cleanup.
(issue #12343)
Reported by: travishein
Patches:
      app_voicemail_code_documentation.patch uploaded by travishein (license 385)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@112241 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-01 18:24:56 +00:00
qwell 8937d9be4a Merged revisions 112068 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r112068 | qwell | 2008-03-31 16:48:05 -0500 (Mon, 31 Mar 2008) | 5 lines

Fix a silly infinite loop when choosing an invalid option.

(closes issue #12315)
Reported by: jmls

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@112069 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-31 21:48:30 +00:00
qwell fc2efaaee4 Replace magic number size from msgArray array with a define.
(same patch as before, I just split this part out)
(close issue #12326)
Reported by: travishein
Patches:
      app_voicemail_code_documentation.patch uploaded by travishein (license 385)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@111774 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-28 19:08:35 +00:00
qwell aa2e884ad1 Add a bit of doxygen documentation for app_voicemail.
(issue #12326)
Reported by: travishein
Patches:
      app_voicemail_code_documentation.patch uploaded by travishein (license 385)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@111773 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-28 19:06:54 +00:00
file e2c4fa7a43 Forgetting to unregister a manager action is bad, mmmk?
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@111565 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-28 00:55:47 +00:00
mmichelson f7907bb9c3 Fix a crash that would happen when attempting to unload the app_queue module.
The problem was that when the refcount on the queue hit 0, the destructor was
called, and inside the destructor, another function was called which would increase
the refcount back to 1 again and then decrease it again back to 0 for every member
in the queue. This meant that the destructor was being recursively called, leading
to a double free of the queue. This is now fixed by making sure to unlink the
queue from the queues container prior to the final unref of the queue.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@111533 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-28 00:12:52 +00:00
murf 3adf0c969d Merged revisions 111391 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r111391 | murf | 2008-03-27 07:03:28 -0600 (Thu, 27 Mar 2008) | 9 lines

These small documentation updates made in response to a query in
asterisk-users, where a user was using Playback, but needed the
features of Background, and had no idea that Background existed,
or that it might provide the features he needed. I thought the
best way to avert these kinds of queries was to provide "See Also"
references in all three of "Background", "Playback", "WaitExten".
Perhaps a project to do this with all related apps is in order.


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@111410 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-27 13:29:41 +00:00
mmichelson 222f93f6dc Merged revisions 111121 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r111121 | mmichelson | 2008-03-26 14:37:36 -0500 (Wed, 26 Mar 2008) | 4 lines

This code change is made just for clarification. It does exactly
the same thing as before. It just doesn't look as wrong.


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@111123 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-26 19:39:23 +00:00
mmichelson 03c2b3985e Merged revisions 111049 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r111049 | mmichelson | 2008-03-26 14:22:16 -0500 (Wed, 26 Mar 2008) | 9 lines

Add a lock to the vm_state structure and use the lock around mail_open calls
to prevent concurrent access of the same mailstream. This, along with trunk's
ability to configure TCP timeouts for IMAP storage will help to prevent
crashes and hangs when using voicemail with IMAP storage.

(closes issue #10487)
Reported by: ewilhelmsen


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@111067 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-26 19:26:23 +00:00
russell 10764cd3db Remove astobj.h from some places where it wasn't needed
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@110270 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-20 17:45:29 +00:00
tilghman b787b1b3bf Upgrade the sounds version; add several directory enhancements:
1) Number of digits to enter can now be configured
	2) The digits can now match on both first AND last name, instead of only one or the other
(Closes issue #7151)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@110237 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-20 05:06:12 +00:00
russell 051ad7a0ea Merged revisions 110163 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r110163 | russell | 2008-03-19 17:57:59 -0500 (Wed, 19 Mar 2008) | 5 lines

Fix a bug where when calls on the trunk side hang up while on hold, the state
is not properly reflected.

(closes issue #11990, reported by anakaoka, patched by me)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@110164 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-19 22:58:33 +00:00
mmichelson 229ad03733 Merged revisions 110083 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r110083 | mmichelson | 2008-03-19 15:33:03 -0500 (Wed, 19 Mar 2008) | 4 lines

Add a missing unlock in the case that memory allocation fails in app_chanspy.
Thanks to Russell for confirming that this was an issue.


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@110084 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-19 20:34:13 +00:00
russell 9b38fdc83b Merged revisions 109763 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r109763 | russell | 2008-03-18 17:34:42 -0500 (Tue, 18 Mar 2008) | 3 lines

Fix one place where the chanspy datastore isn't removed from a channel.
(issue #12243, reported by atis, patch by me)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@109764 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-18 22:36:02 +00:00
mmichelson 28ef6ff729 Merged revisions 109713 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r109713 | mmichelson | 2008-03-18 15:52:15 -0500 (Tue, 18 Mar 2008) | 12 lines

This patch makes it so that all queue member status changes are handled through device state
code. This removes several problems people were seeing where their queue members would get into
an "unknown" state. Huge props go to atis on this one since he was the one who found the code
section that was causing the problem and proposed the solution. I just wrote what he suggested :)

(closes issue #12127)
Reported by: atis
Patches:
      12127v3.patch uploaded by putnopvut (license 60)
Tested by: atis, jvandal


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@109714 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-18 20:59:02 +00:00
mmichelson cc9a99e058 Add option 'randomperiodicannounce' to queues.conf. Setting this will
allow the list of periodic announcments specified to be played in a random
order instead of being played sequentially.

(closes issue #6681)
Reported by: alt_phil
Tested by: putnopvut



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@109621 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-18 18:58:42 +00:00
twilson 9e8ebe6a94 Go through and fix a bunch of places where character strings were being interpreted as format strings. Most of these changes are solely to make compiling with -Wsecurity and -Wformat=2 happy, and were not
actual problems, per se.  I also added format attributes to any printf wrapper functions I found that didn't have them.  -Wsecurity and -Wmissing-format-attribute added to --enable-dev-mode.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@109447 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-18 15:43:34 +00:00
mmichelson ca852428f0 Merged revisions 109012 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r109012 | mmichelson | 2008-03-17 09:18:26 -0500 (Mon, 17 Mar 2008) | 6 lines

Make sure that we release the lock on the spyee channel if the spyee or spy has hung up

(closes issue #12232)
Reported by: atis


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@109024 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-17 14:21:14 +00:00
russell fb02161c1e Remove an unnecessary thread attribute instance
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@108929 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-16 17:55:53 +00:00
russell c320428733 Fix polling for mailbox changes in mailboxes that are not in the default vm context.
(closes issue #12223)
Reported by: DEA
Patches: 
      vm-polled-imap.txt uploaded by DEA (license 3)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@108927 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-16 17:53:46 +00:00
jpeeler d7f3722fa5 documenting changes as a result of adding TCP functionality to ExternalIVR
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@108639 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-13 23:12:59 +00:00
russell 9acd41d1bc Merged revisions 108583 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r108583 | russell | 2008-03-13 16:38:16 -0500 (Thu, 13 Mar 2008) | 11 lines

Fix another issue that was causing crashes in chanspy.  This introduces a new
datastore callback, called chan_fixup().  The concept is exactly like the
fixup callback that is used in the channel technology interface.  This callback
gets called when the owning channel changes due to a masquerade.  Before this
was introduced, if a masquerade happened on a channel being spyed on, the
channel pointer in the datastore became invalid.

(closes issue #12187)
(reported by, and lots of testing from atis)
(props to file for the help with ideas)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@108584 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-13 21:40:43 +00:00
jpeeler 940afa0002 set variable to NULL to prevent uninitialized warning
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@108523 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-13 20:38:56 +00:00
russell 9ac881393a Fix a place where configuration values could cause an overflow of a buffer.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@108508 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-13 20:35:28 +00:00
russell 63253036f4 Merged revisions 108469 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r108469 | russell | 2008-03-13 15:26:28 -0500 (Thu, 13 Mar 2008) | 4 lines

Fix a couple uses of sprintf.  The second one could actually cause an overflow
of a stack buffer.  It's not a security issue though, it only depends on your
configuration.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@108472 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-13 20:26:59 +00:00
jpeeler 0066ea5ae4 (closes issue #11827)
Reported by: ctooley
Patches:
      eivr_tcp_generic.patch uploaded by jpeeler (license 325)
This change adds the ability to communicate over a TCP socket instead of forking a child process.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@108404 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-13 18:59:04 +00:00
russell 3c673d9a06 Merged revisions 108135 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r108135 | russell | 2008-03-12 14:57:42 -0500 (Wed, 12 Mar 2008) | 40 lines

(closes issue #12187, reported by atis, fixed by me after some brainstorming
 on the issue with mmichelson)

- Update copyright info on app_chanspy.

- Fix a race condition that caused app_chanspy to crash.  The issue was that
  the chanspy datastore magic that was used to ensure that spyee channels did
  not disappear out from under the code did not completely solve the problem.
  It was actually possible for chanspy to acquire a channel reference out of
  its datastore to a channel that was in the middle of being destroyed.  That
  was because datastore destruction in ast_channel_free() was done near the
  end.  So, this left the code in app_chanspy accessing a channel that was
  partially, or completely invalid because it was in the process of being free'd
  by another thread.  The following sort of shows the code path where the race 
  occurred:

  =============================================================================
  Thread 1 (PBX thread for spyee chan)  ||   Thread 2 (chanspy)
  --------------------------------------||-------------------------------------
  ast_channel_free()                    ||
    - remove channel from channel list  ||
    - lock/unlock the channel to ensure ||
      that no references retrieved from ||
      the channel list exist.           ||
  --------------------------------------||-------------------------------------
                                        || channel_spy()
    - destroy some channel data         ||  - Lock chanspy datastore
                                        ||  - Retrieve reference to channel
                                        ||  - lock channel
                                        ||  - Unlock chanspy datastore
  --------------------------------------||-------------------------------------
     - destroy channel datastores       ||
        - call chanspy datastore d'tor  ||  
          which NULL's out the ds'      ||  - Operate on the channel ...
          reference to the channel      ||     
                                        ||
    - free the channel                  || 
                                        ||
                                        ||  - unlock the channel
  --------------------------------------||-------------------------------------
  =============================================================================

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@108137 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-12 19:59:05 +00:00
file cf9baf7ab7 Merged revisions 108083 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r108083 | file | 2008-03-12 15:26:37 -0300 (Wed, 12 Mar 2008) | 4 lines

Add a trigger mode that triggers on both read and write. The actual function that returns the combined audio frame though will wait until both sides have fed in audio, or until one side stops (such as the case when you call Wait).
(closes issue #11945)
Reported by: xheliox

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@108084 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-12 18:29:33 +00:00
tilghman 4367e584de Revert several changes from revision 102525, as the changes were not
compatible, and, in fact, introduced regressions.
(Closes issue #12190)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@107960 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-12 05:46:39 +00:00
russell 0f6d097b16 This patch adds support for extended help prompts in voicemail. These prompts
are in the 1.4.9 sounds release.

(closes issue #11705)
Reported by: jaroth
Patches:
      helpprompts.patch uploaded by jaroth (license 50)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@107719 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-11 20:54:32 +00:00
file 9bca0e34bd Dial a device even if it's state is unknown.
(closes issue #12184)
Reported by: bluecrow76
Patches:
      asterisk-svn-app_page.c.devicestate_unknown.diff uploaded by bluecrow76 (license 270)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@107710 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-11 20:36:14 +00:00
file 82da51173a Merged revisions 107637 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r107637 | file | 2008-03-11 15:47:33 -0300 (Tue, 11 Mar 2008) | 4 lines

Add an additional check for setting conference parameter when using the marked user options. It was possible for it to return to a no listen/no talk state if a masquerade happened.
(closes issue #12136)
Reported by: aragon

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@107638 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-11 18:48:59 +00:00
mmichelson 06734e3a25 Remove some redundant logic from wait_for_answer. This also let's us get rid of one of
those XXX comments from the code.

The redundancy occurs because the 'single' flag implies that the 'r' and 'm' flags are
not set, so there's no need to explicitly check them again.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@107530 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-11 15:59:32 +00:00
kpfleming a333628652 Merged revisions 107464 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r107464 | kpfleming | 2008-03-11 09:53:03 -0500 (Tue, 11 Mar 2008) | 2 lines

fix various other problems found by gcc 4.3

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@107466 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-11 15:13:38 +00:00
kpfleming ac48a62e43 Merged revisions 107461 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r107461 | kpfleming | 2008-03-11 09:33:45 -0500 (Tue, 11 Mar 2008) | 2 lines

stop checking for mktime() in the configure script... we don't use it, and the test is buggy under gcc 4.3

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@107462 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-11 14:37:03 +00:00
mmichelson f85b20a3fa app_queue has now been doxygenified thanks to snuffy! The ony thing I changed
was the way that locks are referenced, since the old 1.2 names were still used
in the comments.

(closes issue #11997)
Reported by: snuffy
Patches:
      bug_11997_queue_doxy.diff uploaded by snuffy (license 35)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@107068 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-10 15:45:13 +00:00
file a4ae0883c2 Merged revisions 107016 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r107016 | file | 2008-03-10 11:33:02 -0300 (Mon, 10 Mar 2008) | 7 lines

Move where unanswered CDRs are dropped to the CDR core, not everything uses app_dial.
(closes issue #11516)
Reported by: ys
Patches:
      branch_1.4_cdr.diff uploaded by ys (license 281)
Tested by: anest, jcapp, dartvader

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@107017 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-10 14:36:16 +00:00
russell c3dc79c9e3 Merged revisions 106895 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r106895 | russell | 2008-03-07 16:51:23 -0600 (Fri, 07 Mar 2008) | 2 lines

Only start the SLA thread if SLA has actually been configured.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@106896 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-07 22:52:46 +00:00
murf 2be361fbb9 (closes issue #6002)
Reported by: rizzo
Tested by: murf

Proposal of the changes to be made, and then an announcement of how they were accomplished:

http://lists.digium.com/pipermail/asterisk-dev/2008-February/032065.html

and:

http://lists.digium.com/pipermail/asterisk-dev/2008-March/032124.html

Here is a recap, file by file, of what I have done:

pbx/pbx_config.c
pbx/pbx_ael.c

All funcs that were passed a ptr to the context list, now will ALSO be passed a hashtab ptr to the same set.
Why? because (for the time being), the dialplan is stored in both, to facilitate a quick, low-cost move to
hash-tables to speed up dialplan processing. If it was deemed necessary to pass the context LIST, well, it
is just as necessary to have the TABLE available. This is because the list/table in question might not be
the global one, but temporary ones we would use to stage the dialplan on, and then swap into the global
position when things are ready.

We now have one external function for apps to use, "ast_context_find_or_create()" instead of the pre-existing
"find" and "create", as all existing usages used both in tandem anyway.

pbx_config, and pbx_ael, will stage the reloaded dialplan into local lists and tables, and 
then call merge_contexts_and_delete, which will merge (now) existing contexts and 
priorities from other registrars into this local set by copying them. Then, merge_contexts_and_delete will
lock down the contexts, swap the lists and tables, and unlock (real quick), and then 
destroy the old dialplan.



chan_sip.c
chan_iax.c
chan_skinny.c

All the channel drivers that would add regcontexts now use the ast_context_find_or_create now.

chan_sip also includes a small fix to get rid of warnings about removing priorities that never got entered.


apps/app_meetme.c
apps/app_dial.c
apps/app_queue.c

All the apps that added a context/exten/priority were also modified to use ast_context_find_or_create instead.


include/asterisk/pbx.h

ast_context_create() is removed. Find_or_create_ is the new method.
ast_context_find_or_create()  interface gets the hashtab added.
ast_merge_contexts_and_delete() gets the local hashtab arg added.
ast_wrlock_contexts_version() is added so you can detect if someone else got a writelock between your readlocking and writelocking.
ast_hashtab_compare_contexts was made public for use in pbx_config/pbx_ael
ast_hashtab_hash_contexts was in like fashion make public.


include/asterisk/pval.h

ast_compile_ael2() interface changed to include the local hashtab table ptr.


main/features.c

For the sake of the parking context, we use ast_context_find_or_create().



main/pbx.c

I changed all the "tree" names to "table" instead. That's because the original
implementation was based on binary trees. (had a free library). Then I moved
to hashtabs. Now, the names move forward too.

refcount field added to contexts, so you can keep track of how many modules
wanted this context to exist.

Some log messages that are warnings were inflated from LOG_NOTICE to LOG_WARNING.

Added some calls to ast_verb(3,...) for debug messages

Lots of little mods to ast_context_remove_extension2, which is now excersized in ways
it was not previously; one definite bug fixed.

find_or_create was upgraded to handle both local lists/tables as well as the globals.

context_merge() was added to do the per-context merging of the old/present contexts/extens/prios into the new/proposed local list/tables

ast_merge_contexts_and_delete() was heavily modified.

ast_add_extension2() was also upgraded to handle changes. 

the context_destroy() code was re-engineered to handle the new way of doing things,
by exten/prio instead of by context.



res/ael/pval.c
res/ael/ael.tab.c
res/ael/ael.tab.h
res/ael/ael.y
res/ael/ael_lex.c
res/ael/ael.flex
utils/ael_main.c
utils/extconf.c
utils/conf2ael.c
utils/Makefile

Had to change the interface to ast_compile_ael2(), to include the hashtab ptr.
This ended up involving several external apps.  The main gotcha was I had to 
include lock.h and hashtab.h in several places.


As a side note, I tested this stuff pretty thoroughly, I replicated the problems
originally reported by Luigi, and made triply sure that reloads worked, and everything
worked thru "stop gracefully". I found a and fixed a few bugs as I was merging into
trunk, that did not appear in my tests of bug6002.

How's this for verbose commit messages?




git-svn-id: http://svn.digium.com/svn/asterisk/trunk@106757 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-07 18:57:57 +00:00
tilghman 52ee44fa92 Merged revisions 106635 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r106635 | tilghman | 2008-03-07 10:22:11 -0600 (Fri, 07 Mar 2008) | 3 lines

Warn the user when a temporary greeting exists
(Closes issue #11409)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@106654 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-07 16:26:07 +00:00
tilghman 84aa522629 Merged revisions 106552 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r106552 | tilghman | 2008-03-07 00:36:33 -0600 (Fri, 07 Mar 2008) | 6 lines

Safely use the strncat() function.
(closes issue #11958)
 Reported by: norman
 Patches: 
       20080209__bug11958.diff.txt uploaded by Corydon76 (license 14)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@106553 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-07 06:54:47 +00:00
file f6b76699b7 Merged revisions 106235 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r106235 | file | 2008-03-05 18:32:10 -0400 (Wed, 05 Mar 2008) | 4 lines

Add a control frame to indicate the source of media has changed. Depending on the underlying technology it may need to change some things.
(closes issue #12148)
Reported by: jcomellas

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@106239 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-05 22:43:22 +00:00
tilghman 8952c2ca0f Should check these values for non-NULL before scanning.
(Closes issue #12147)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@106139 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-05 17:40:42 +00:00
tilghman 198829f2db Create a centralized configuration option for silencethreshold
(closes issue #11236)
 Reported by: philipps
 Patches: 
       20080218__bug11236.diff.txt uploaded by Corydon76 (license 14)
 Tested by: philipps


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@106072 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-05 16:23:44 +00:00
russell 04e3165159 - simplify a few statements with ARRAY_LEN()
- constify the stregy int to string mappings array


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105984 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-05 04:34:29 +00:00
tilghman 701a8a40c2 Fix minor misuses of snprintf
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105841 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-04 23:10:45 +00:00
twilson 50fe8fd5ec Asterisk, when parking can drop rights a caller when a parking timeout occurs. Also, when doing built-in attended transfers, sometimes incorrectly passes rights from the transferrer to the transferee. This patch tries to fixes the parking issue and lays some groundwork for later fixing the transfer issue.
(closes issue #11520)
Reported by: pliew
Tested by: otherwiseguy


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105477 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-01 01:30:37 +00:00
file e4da15a884 Merged revisions 105261 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r105261 | file | 2008-02-29 09:48:13 -0400 (Fri, 29 Feb 2008) | 4 lines

Bump up the size of the uniqueid variable.
(closes issue #12107)
Reported by: asgaroth

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105262 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-29 13:55:22 +00:00
mmichelson d4718af66e Merged revisions 105059 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r105059 | mmichelson | 2008-02-28 14:11:57 -0600 (Thu, 28 Feb 2008) | 6 lines

When using autofill, members who are in use should be counted towards the 
number of available members to call if ringinuse is set to yes.

Thanks to jmls who brought this issue up on IRC


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105061 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-28 20:14:38 +00:00
file 002278a62c Merged revisions 104787 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r104787 | file | 2008-02-27 16:56:23 -0400 (Wed, 27 Feb 2008) | 2 lines

Don't loop around infinitely trying to spy on our own channel, and don't forget to free/detach the datastore upon hangup of the spy.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@104788 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-27 21:02:08 +00:00
qwell 400d742abf Remove useless 's' and 'key' variables, in favor of 'val', which serves the exact same purpose.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@104756 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-27 19:36:34 +00:00
russell 50978e40e5 Merged revisions 104625 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r104625 | russell | 2008-02-27 11:33:04 -0600 (Wed, 27 Feb 2008) | 4 lines

Fix a problem in ChanSpy where it could get stuck in an infinite loop without
being able to detect that the calling channel hung up.
(closes issue #12076, reported by junky, patched by me)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@104643 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-27 17:36:50 +00:00
tilghman 2aa54ec372 Whitespace changes only
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@104388 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-27 02:05:36 +00:00
russell dccf3784fb Merged revisions 104334 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r104334 | russell | 2008-02-26 19:15:02 -0600 (Tue, 26 Feb 2008) | 3 lines

Avoid some recursion in the cleanup code for the chanspy datastore
(closes issue #12076, reported by junky, patched by me)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@104335 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-27 01:16:06 +00:00
russell 0cc911d8cc Merged revisions 104119 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r104119 | russell | 2008-02-25 18:25:29 -0600 (Mon, 25 Feb 2008) | 33 lines

Merge changes from team/russell/smdi-1.4

This commit brings in a significant set of changes to the SMDI support in Asterisk.
There were a number of bugs in the current implementation, most notably being that
it was very likely on busy systems to pop off the wrong message from the SMDI message
queue.  So, this set of changes fixes the issues discovered as well as introducing
some new ways to use the SMDI support which are required to avoid the bugs with
grabbing the wrong message off of the queue.

This code introduces a new interface to SMDI, with two dialplan functions.  First,
you get an SMDI message in the dialplan using SMDI_MSG_RETRIEVE() and then you access
details in the message using the SMDI_MSG() function.  A side benefit of this is that
it now supports more than just chan_zap.

For example, with this implementation, you can have some FXO lines being terminated 
on a SIP gateway, but the SMDI link in Asterisk.

Another issue with the current implementation is that it is quite common that the
station ID that comes in on the SMDI link is not necessarily the same as the Asterisk
voicemail box.  There are now additional directives in the smdi.conf configuration
file which let you map SMDI station IDs to Asterisk voicemail boxes.

Yet another issue with the current SMDI support was related to MWI reporting over
the SMDI link.  The current code could only report a MWI change when the change
was made by someone calling into voicemail.  If the change was made by some other
entity (such as with IMAP storage, or with a web interface of some kind), then the
MWI change would never be sent.  The SMDI module can now poll for MWI changes if
configured to do so.

This work was inspired by and primarily done for the University of Pennsylvania.

(also related to issue #9260)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@104120 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-26 00:31:40 +00:00
russell c2f361dc8d Merged revisions 104106 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r104106 | russell | 2008-02-25 17:42:42 -0600 (Mon, 25 Feb 2008) | 10 lines

This patch fixes some pretty significant problems with how app_chanspy handles
pointers to channels that are being spied upon.  It was very likely that a
crash would occur if the channel being spied upon hung up.  This was because
the current ast_channel handling _requires_ that the object is locked or else
it could disappear at any time (except in the owning channel thread).  So, this
patch uses some channel datastore magic on the spied upon channel to be able to
detect if and when the channel goes away.
(closes issue #11877)
(patch written by me, but thanks to kpfleming for the idea, and to file for review)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@104107 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-25 23:48:16 +00:00
tilghman 878a5b1183 Merged revisions 104094 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r104094 | tilghman | 2008-02-25 15:31:47 -0600 (Mon, 25 Feb 2008) | 5 lines

If the destination folder is full, don't delete a message when exiting.
(closes issue #12065)
 Reported by: selsky
 Patch by: (myself)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@104097 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-25 21:53:36 +00:00
mmichelson be2dacc8f8 Merged revisions 103956 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r103956 | mmichelson | 2008-02-20 16:32:22 -0600 (Wed, 20 Feb 2008) | 8 lines

Clear up confusion when viewing the QUEUE_WAITING_COUNT of a 
"dead" realtime queue. Since from the user's perspective, the queue
does exist, we shouldn't tell them we couldn't find the queue. Instead
since it is a dead queue, report a 0 waiting count

This issue was brought up on IRC by jmls


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@103957 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-20 22:34:12 +00:00
mmichelson 5f1abd1393 Fix a crash due to the wrong variable being used when building a directory string.
(closes issue #12027)
Reported by: jaroth
Patches:
      forward.patch uploaded by jaroth (license 50)
Tested by: jaroth



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@103902 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-20 21:08:46 +00:00
mmichelson 53e9ea40a1 When using IMAP storage, if the folder you attempt to save to does not exist,
create it first.

(closes issue #12032)
Reported by: jaroth
Patches:
      createfolder.patch uploaded by jaroth (license 50)
Tested by: jaroth




git-svn-id: http://svn.digium.com/svn/asterisk/trunk@103833 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-20 00:49:38 +00:00
file 78f8bad049 len already contains the position we want to examine, if we move one left again we'll actually probably be looking at a digit.
(issue #12030)
Reported by: alligosh


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@103820 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-19 19:27:50 +00:00
file 9fc8ecd73b Add CHANNELREDIRECT_STATUS variable to ChannelRedirect() dialplan application. This will either be set to NOCHANNEL if the given channel was not found or SUCCESS if it worked.
(closes issue #11553)
Reported by: johan
Patches:
      UPGRADE.txt.channelredirect.patch uploaded by johan (license 334)
      CHANGES.channelredirect.patch uploaded by johan (license 334)
      app_channelredirect-20080219.patch uploaded by johan (license 334)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@103819 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-19 18:40:22 +00:00
file f448f546ff Add an API call (ast_async_parseable_goto) which parses a goto string and does an async goto instead of an explicit goto.
(closes issue #11753)
Reported by: johan


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@103765 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-18 15:47:00 +00:00
mmichelson 61977e15cf Fix redeclaration of variables when using IMAP storage
(closes issue #11988)
Reported by: jaroth
Patches:
      variable_cleanup.patch uploaded by jaroth (license 50)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@103737 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-15 22:56:14 +00:00
qwell 2d7e70ff01 Fix up some doxygen issues.
(closes issue #11996)
Patches:
      bug_11996_doxygen.diff uploaded by snuffy (license 35)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@103723 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-15 17:29:08 +00:00
mmichelson 4e6c12f1e6 Merged revisions 103690 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r103690 | mmichelson | 2008-02-14 15:03:02 -0600 (Thu, 14 Feb 2008) | 3 lines

Fix build for non-IMAP builds


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@103691 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-14 21:04:37 +00:00
mmichelson f49884c1fc Merged revisions 103688 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r103688 | mmichelson | 2008-02-14 14:55:48 -0600 (Thu, 14 Feb 2008) | 9 lines

Fix the new message count if delete=yes when using IMAP storage.

(closes issue #11406)
Reported by: jaroth
Patches:
      deleteflag_v2.patch uploaded by jaroth (license 50)
	  Tested by: jaroth


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@103689 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-14 20:58:30 +00:00
mmichelson 3f232df739 Change the queue holdtime announcement to happen at any interval (not just greater than two minutes). Remove
the saying of less-than for holdtime announcements since it can lead to awkward holdtime announcements. Using
'1' as a queue-round-seconds value is no longer valid.

(closes issue #9736)
Reported by: caio1982
Patches:
      queue_announce5.diff uploaded by caio1982 (license 22)
	  Tested by: caio1982, putnopvut


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@103687 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-14 20:46:00 +00:00
jpeeler 3fb2da6dbb a few syntax changes and safer code
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@103682 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-14 19:47:39 +00:00
oej db260b55fd Formatting fixes
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@103668 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-14 10:19:09 +00:00
jpeeler a839cc623e (closes issue #11825)
Reported by: ctooley
Patches:
      additional_eivr_commands.patch uploaded by ctooley (license 136)
Tested by: ctooley


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@103662 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-13 21:04:31 +00:00
file 509fcae480 Merged revisions 103324 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r103324 | file | 2008-02-11 18:09:07 -0400 (Mon, 11 Feb 2008) | 4 lines

If entering a conference with the 'w' option ensure that we can't listen or speak until the marked user appears.
(closes issue #11835)
Reported by: alanmcmillan

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@103325 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-11 22:10:55 +00:00
mmichelson eb2678477c Fix improper indentation. Thanks again to snuffy for pointing it out.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@103284 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-11 03:03:58 +00:00
mmichelson 5e652c0ade Add a couple of comments to clarify the unreffing of queues.
Thanks to snuffy for the idea.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@103283 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-11 02:59:14 +00:00
mvanbaak 54bf9542cd whitespace fixes only.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@103249 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-09 11:27:10 +00:00
tilghman 51bdb71084 Merged revisions 103197 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r103197 | tilghman | 2008-02-09 00:23:49 -0600 (Sat, 09 Feb 2008) | 4 lines

Commit fix for being unable to send voicemail from VoiceMailMain
 Reported by: William F Acker (via the -users mailing list)
 Patch by: Corydon76 (license 14)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@103198 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-09 06:33:10 +00:00
russell e9d6c2ff9b Merge changes from team/mvanbaak/cli-command-audit
(closes issue #8925)

About a year ago, as Leif Madsen and Jim van Meggelen were going over the CLI
commands in Asterisk 1.4 for the next version of their book, they documented
a lot of inconsistencies.  This set of changes addresses all of these issues
and has been reviewed by Leif.

While this does introduce even more changes to the CLI command structure, it
makes everything consistent, which is the most important thing.

Thanks to all that helped with this one!


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@103171 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-08 21:26:32 +00:00
mmichelson 381f0dce14 Forgot that AST_LIST_REMOVE_CURRENT takes different arguments in trunk than 1.4.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@103122 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-08 18:58:25 +00:00
mmichelson fe9a94030a Merged revisions 103120 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r103120 | mmichelson | 2008-02-08 12:48:17 -0600 (Fri, 08 Feb 2008) | 10 lines

Prevent a potential three-thread deadlock. Also added a comment block
to explicitly state the locking order necessary inside app_queue.

(closes issue #11862)
Reported by: flujan
Patches:
      11862.patch uploaded by putnopvut (license 60)
	  Tested by: flujan


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@103121 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-08 18:54:53 +00:00
mmichelson 073ab49bb1 This is a combination new feature/bug fix for app_chanspy.
New feature: Add the 'e' option, which takes as an argument a list of
interfaces separated by colons. This way, you will only be able to spy
on this limited list of interfaces.

Bug fix: change some pointer checks to ast_strlen_zero so that spying
would work properly even if no channel was specified as the first argument
to chanspy.


(closes issue #10072)
Reported by: xmarksthespot
Patches:
      bugfix+newfeature10072patchtotrunkrev102726.diff uploaded by xmarksthespot (license 16)
	  Tested by: xmarksthespot, mvanbaak



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@102933 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-07 21:37:00 +00:00
mvanbaak af48906a8d whitespace fixes only
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@102908 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-07 21:08:46 +00:00
mvanbaak 95fe49f760 There she goes! First commit from me to trunk \o/
Make app_alarmreceiver honor code guidelines and fix whitespace errors.
No functional changes.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@102906 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-07 20:42:59 +00:00
mmichelson a52c5cbe76 Add the channel's unique id to the AgentCalled manager event to make it more consistent
with other manager events.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@102777 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-06 20:12:43 +00:00
tilghman fc43a9da2b Merged revisions 102576 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r102576 | tilghman | 2008-02-05 18:26:02 -0600 (Tue, 05 Feb 2008) | 4 lines

Move around some defines to unbreak ODBC storage.
(closes issue #11932)
 Reported by: snuffy

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@102602 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-06 03:05:00 +00:00
mmichelson 127a06bb5a Remove an extra debug message I left in
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@102550 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-06 00:08:58 +00:00
mmichelson 8ceb053cff Get rid of any remaining ast_verbose calls in the code in favor of
ast_verb

(closes issue #11934)
Reported by: mvanbaak
Patches:
      20080205_astverb-2.diff.txt uploaded by mvanbaak (license 7)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@102525 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-05 23:00:15 +00:00
mmichelson a53c56e616 Change verbose messages to use the ast_verb macro.
(closes issue #11931)
Reported by: snuffy
Patches:
      bug-11931.diff uploaded by snuffy (license 35)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@102501 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-05 20:54:53 +00:00
tilghman 3b8f849d9f Merged revisions 101942 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r101942 | tilghman | 2008-02-01 15:54:28 -0600 (Fri, 01 Feb 2008) | 8 lines

Fix the VM_DUR variable for forwarded voicemail, and fixed several other bugs
while I'm in the area.
(closes issue #11615)
 Reported by: jamessan
 Patches: 
       20071226__bug11615__2.diff.txt uploaded by Corydon76 (license 14)
 Tested by: Corydon76, jamessan

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@101943 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-01 22:12:55 +00:00
qwell 9a791e3bc1 Comparison, not set :) Thanks mvanbaak.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@101869 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-01 18:24:52 +00:00
qwell dadc6549d2 Move an feof() call to before the fgets().
This would have exited the loop early if you had an authentication file with no newline at the end.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@101823 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-01 17:44:32 +00:00
russell 555b2bd3c9 Merged revisions 101818 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r101818 | russell | 2008-02-01 11:23:47 -0600 (Fri, 01 Feb 2008) | 4 lines

Don't overwrite the last character of a line if it's not a newline.  This would
happen if the last line in the file doesn't have a newline.
(pointed out by Qwell)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@101819 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-01 17:26:31 +00:00
russell 627780bc28 simplify some code, tweak formatting, and reduce indentation
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@101746 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-01 06:27:41 +00:00
russell 2969477f12 reduce a level of indentation
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@101745 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-01 06:20:24 +00:00