Commit Graph

14117 Commits

Author SHA1 Message Date
Tilghman Lesher
6dc0a3b80e Move SQL scripts into their own database-specific directories.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@275909 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-13 14:47:30 +00:00
Jeff Peeler
c66d95c8e5 Make user removals and traversals thread safe in meetme.
Race conditions present in meetme involving the user list where a lack of
locking has the potential for a user to be removed during a traversal or as in
the case of the reporter after checking if the list is empty could cause a
crash. Fixing this was done by convering the userlist to an ao2 container.

(closes issue #17390)
Reported by: Vince

Review: https://reviewboard.asterisk.org/r/746/


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@275773 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-12 20:34:51 +00:00
Jeff Peeler
cd054ab3b4 Change ast_write to not stop generator when called from ast_prod.
For SIP channels configured with the progressinband option on, the ringback was
being immediately stopped. This problem was due to ast_prod being moved for a
deadlock fix in 259858. Prodding the channel after setting up the generator
triggered the check in ast_write to stop the generator. The fix here should
write the frame the same as was done before the call to ast_prod was moved.

(closes issue #17372)
Reported by: tech_admin


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@275665 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-12 16:58:39 +00:00
Paul Belanger
ea332c39bf fix tab-completion for unload command.
(closes issue #17536)
Reported by: junky
Patches:
      unload_vs_mod_unload.diff uploaded by junky (license 177)
Tested by: pabelanger


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@275290 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-09 19:28:48 +00:00
Paul Belanger
dca914c43b Fix logging message for stale nonce.
(closes issue #17582)
Reported by: kenner
Patches:
      chan_sip.c.diff uploaded by kenner (license 1040)
Tested by: lmadsen


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@275241 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-09 19:20:00 +00:00
Matthew Nicholson
de1dd975e6 give a better error message when attempting to unload a module that is not loaded
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@275182 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-09 18:23:23 +00:00
Matthew Nicholson
4654483d6b don't unload modules that returned AST_MODULE_LOAD_DECLINE when they were loaded
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@275143 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-09 17:50:05 +00:00
Matthew Nicholson
fa79e11a91 Clear the AST_CDR_FLAG_DIALED flag for channels going into the pbx via the G option in app_dial
(closes issue #17592)
Reported by: jamicque
Patches:
      G-flag-cdr-fix1.diff uploaded by mnicholson (license 96)
Tested by: jamicque, mnicholson


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@275027 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-09 16:04:21 +00:00
Russell Bryant
938b6264ff Document that a leading and trailing slash is expected for test categories.
Also, emit a warning if a test is registered without one of these.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@275021 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-09 15:33:08 +00:00
Richard Mudgett
8c1f4940eb Close the DAHDI FD on error when processing chan_dahdi toneduration config parameter.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@274579 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-07 18:12:41 +00:00
Tilghman Lesher
5a80e36794 Correct how 100, 200, 300, etc. is said. Also add the crazy British numbers.
(closes issue #16102)
 Reported by: Delvar
 Patches: 
       say.conf.fix.patch uploaded by Delvar (license 908)
       (plus a few additional fixes and simplifications by me)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@274417 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-07 06:13:54 +00:00
Jeff Peeler
c9818a396f Ensure file.o is built correctly.
(related to issue #15250)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@274359 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-06 22:46:37 +00:00
Jeff Peeler
c833141336 Correct sip.conf.sample comments for prematuremedia option.
(closes issue #17513)
Reported by: festr
Patches: 
      patch uploaded by festr (license 443)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@274283 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-06 22:15:21 +00:00
Terry Wilson
79d795c383 Add option to not do a call forward on 482 Loop Detected
Asterisk has always set up a forwarded call when receiving a 482 Loop Detected.
This prevents handling the call failure by just continuing on in the dialplan.
Since this would be a change in behavior, the new option to disable this
behavior is forwardloopdetected which defaults to 'yes'.

Review: https://reviewboard.asterisk.org/r/764/


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@274280 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-06 22:08:20 +00:00
Mark Michelson
5724d8f905 Fix problem with RFC 2833 DTMF not being accepted.
A recent check was added to ensure that we did not erroneously
detect duplicate DTMF when we received packets out of order.
The problem was that the check did not account for the fact that
the seqno of an RTP stream will roll over back to 0 after hitting
65535. Now, we have a secondary check that will ensure that the
seqno rolling over will not cause us to stop accepting DTMF.

(closes issue #17571)
Reported by: mdeneen
Patches: 
      rtp_seqno_rollover.patch uploaded by mmichelson (license 60)
Tested by: richardf, maxochoa, JJCinAZ



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@274157 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-06 14:29:23 +00:00
Matthew Nicholson
989ecebcb0 Make get_member_status return QUEUE_NO_MEMBERS instead of QUEUE_NO_REACHABLE_MEMBERS to make joinempty=no work again. This regression was introduced in 273639. Also fixed whitespace.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@274093 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-06 13:52:28 +00:00
Tilghman Lesher
b0202ce6d1 Command 'stop gracefully' doesn't.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@273981 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-05 19:48:42 +00:00
Paul Belanger
9fc9b42295 Remove extra line breaks from 'core show config mappings'
(closes issue #17583)
Reported by: pabelanger
Patches:
      issue17583.patch uploaded by pabelanger (license 224)
Tested by: lmadsen


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@273884 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-05 13:51:29 +00:00
Tilghman Lesher
14550f93d0 Have the DEADLOCK_AVOIDANCE macro warn when an unlock fails, to help catch potentially large software bugs.
(closes issue #17407)
 Reported by: pdf
 Patches: 
       20100527__issue17407.diff.txt uploaded by tilghman (license 14)
 
Review: https://reviewboard.asterisk.org/r/751/


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@273793 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-02 21:36:39 +00:00
Tilghman Lesher
01af082769 Autoservice loop optimization causes a busy loop, when channels are serviced while in hangup.
(closes issue #17564)
 Reported by: ramonpeek
 Patches: 
       20100630__issue17564.diff.txt uploaded by tilghman (license 14)
 Tested by: ramonpeek


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@273717 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-02 17:09:47 +00:00
Tzafrir Cohen
97f61244f9 Fix various typos, reported by Lintian
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@273640 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-02 15:54:17 +00:00
Tilghman Lesher
358159c2b0 If all members are paused, the wrong status is indicated.
(closes issue #17576)
 Reported by: ramonpeek
 Patches: 
       diff.txt uploaded by ramonpeek (license 266)
 Tested by: ramonpeek


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@273639 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-02 15:46:27 +00:00
Russell Bryant
2a18c6627d Don't return a partially initialized datastore.
If memory allocation fails in ast_strdup(), don't return a partially
initialized datastore.  Bad things may happen.

(related to ABE-2415)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@273565 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-01 22:09:19 +00:00
Jeff Peeler
9bae102b7c Allow admin user to join conference without using admin mode and no user pin.
Configuring the conference in meetme.conf like the following:
conf => 2345,,6666 
did not prompt for pin when used without admin mode. This meant that the
conference could not be joined as an admin even if the user knew the correct
pin. The original bug report was submitted claiming that the blank user pin
should deny entry into the conference. I think a better way to handle this
would be with a feature enhancement that used the following syntax:
conf => 2345,X,6666 - where X denotes no acceptable pin allowed

(closes issue #15704)
Reported by: modelnine


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@273474 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-01 20:19:16 +00:00
Jeff Peeler
f5310e3bc7 Ensure channel placed in meetme in ringing state is properly hung up.
An outgoing channel placed in meetme while still ringing which was then hung up
would not exit meetme and the channel was not properly destroyed. Specifically
checking for this scenario by looking at the appropriate control frames resolves
the issue.

(closes issue #15871)
Reported by: Ivan
Patches: 
      meetme_congestion_trunk_v2.patch uploaded by Ivan (license 229)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@273354 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-01 15:05:43 +00:00
Tilghman Lesher
65458abbe8 Allow the "useragent" value to be restored into memory from the realtime backend.
This value is purely informational.  It does not alter configuration at all.

(closes issue #16029)
 Reported by: Guggemand
 Patches: 
       realtime-useragent.patch uploaded by Guggemand (license 897)
 Tested by: Guggemand


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@273060 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-06-29 23:15:28 +00:00
Tilghman Lesher
96e6915e83 _Really_ skip the channel... don't just retry for another 200 cycles.
(Closes issue SWP-1652, ABE-2240)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@273057 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-06-29 22:58:58 +00:00
Russell Bryant
0fdf89a73c Remove properties that were erroneously merged to 1.4 from one of my branches.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@273017 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-06-29 21:36:41 +00:00
Tilghman Lesher
7258f41a2b Don't change ownership/group/permissions on run directory, if it already exists.
(closes issue #17076)
 Reported by: stuarth
 Patches: 
       20100324__issue17076.diff.txt uploaded by tilghman (license 14)
 Tested by: stuarth


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@272925 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-06-28 21:50:02 +00:00
Tilghman Lesher
8f2e2863be Also trim trailing blanks on #includes
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@272922 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-06-28 21:38:49 +00:00
Tilghman Lesher
c0abc6a359 Change the way that we read include files, to accommodate for changes in GCC 4.4.
(closes issue #17472)
 Reported by: seandarcy
 Patches: 
       config2.patch uploaded by nivan (license 1066)
 Tested by: nivan


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@272921 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-06-28 21:29:27 +00:00
Russell Bryant
b9e03e6c8b Backport applicable parts of test_astobj2.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@272881 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-06-28 18:47:29 +00:00
Russell Bryant
0dbe3c9921 Backport unit test API to 1.4.
Review: https://reviewboard.asterisk.org/r/750/


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@272878 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-06-28 18:34:18 +00:00
Mark Michelson
2cc343faa2 Decode URI in contact header of 302 response.
ABE-2352



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@272804 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-06-28 17:31:40 +00:00
Russell Bryant
bd6950605f Force SILENTMAKE where it is needed.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@272763 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-06-28 17:11:01 +00:00
Russell Bryant
a265216d79 Backport method of setting SUBMAKE from trunk.
By setting the PRINT_DIR variable, SUBMAKE will print out the directories it
descends into, which is important for editors (like vim) that watch the build
output so that they can take you to the file where an error occurred.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@272688 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-06-28 15:58:48 +00:00
Tilghman Lesher
127ab9c2b2 Make the structure of the table specified before match the queries and results.
(closes issue #17557)
 Reported by: cmaj


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@272562 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-06-25 20:17:37 +00:00
Richard Mudgett
fac72f08b8 ss_thread calls pri_grab without lock during overlap dial
Recent changes to chan_dahdi with relation to overlap dialing call
pri_grab without first obtaining a lock.

(closes issue #17414)
Reported by: pdf
Patches:
      bug17414.patch uploaded by jpeeler (license 325)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@272446 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-06-24 21:58:49 +00:00
Matthew Nicholson
d1292255d1 Send AgentComplete manager events in the event of blind and attended transfers.
(closes issue #16819)
Reported by: elbriga
Patches:
      app_queue.diff uploaded by elbriga (license 482)



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@272367 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-06-23 22:33:51 +00:00
Paul Belanger
2f6313a1c8 First caller into a dynamic conference now enter pin once.
If MeetMe is configured to use dynamic conference
numbers, then the first caller (which creates the
conference) had to enter the PIN number twice.

(closes issue #15878)
Reported by: shawkris
Patches:
      issue15878.patch uploaded by pabelanger (license 224)
Tested by: pabelanger


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@272255 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-06-23 20:57:01 +00:00
Tilghman Lesher
28e9afee31 Backport part of revision 136715 to fix callerid in voicemail text files (IMAP only).
(closes issue #16945)
 Reported by: mneuhauser


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@272147 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-06-23 18:40:28 +00:00
Matthew Nicholson
7eabbade0a Decrease the module ref count in sip_hangup when SIP_DEFER_BYE_ON_TRANSFER is set. This is necessary to keep the ref count correct.
(closes issue #16815)
Reported by: rain
Patches:
      chan_sip-unref-fix.diff uploaded by rain (license 327) (modified)
Tested by: rain


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@271902 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-06-22 17:31:57 +00:00
Matthew Nicholson
5a628d0ebf Allow users to specify a port for dundi peers.
(closes issue #17056)
Reported by: klaus3000
Patches:
      dundi-peerport-patch-trunk.txt uploaded by klaus3000 (license 65)
Tested by: klaus3000



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@271761 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-06-22 14:49:36 +00:00
Matthew Nicholson
2d31f18ae9 Modify chan_sip's packet generation api to automatically calculate the Content-Length. This is done by storing packet content in a buffer until it is actually time to send the packet, at which time the size of the packet is calculated. This change was made to ensure that the Content-Length is always correct.
(closes issue #17326)
Reported by: kenner
Tested by: mnicholson, kenner

Review: https://reviewboard.asterisk.org/r/693/


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@271689 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-06-22 12:52:27 +00:00
Jeff Peeler
8d6239cf93 Do not use sizeof to calculate size of a heap allocated character array.
Change left out from 271399.

(closes issue #16053)
Reported by: diLLec


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@271552 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-06-21 20:37:47 +00:00
Jeff Peeler
a9d20856d1 Check for newly added memory allocation failures gracefully during AEL2 parsing.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@271444 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-06-18 20:52:26 +00:00
Jeff Peeler
11816dd222 Fix crash when parsing some heavily nested statements in AEL on reload.
Due to the recursion used when compiling AEL in gen_prios, all the stack space 
was being consumed when parsing some AEL that contained nesting 13 levels deep.
Changing a few large buffers to be heap allocated fixed the crash, although I
did not test how many more levels can now be safely used.

(closes issue #16053)
Reported by: diLLec
Tested by: jpeeler


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@271399 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-06-18 19:28:24 +00:00
Russell Bryant
aafa3c7464 Remove an unnecessary assignment that causes a DEBUG_THREADS build failure on mac os x.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@271340 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-06-18 18:54:09 +00:00
Russell Bryant
f311d0ac18 Fix a build problem on Mac OS X with DEBUG_THREADS enabled.
This set of changes was already in trunk.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@271339 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-06-18 18:44:38 +00:00
Jeff Peeler
5cf7c69afb Eliminate deadlock potential in dahdi_fixup().
(This is a backport of 269307, committed to trunk by rmudgett.)

Calling dahdi_indicate() when the channel private lock is already
held can cause a deadlock if the PRI lock is needed because
dahdi_indicate() will also get the channel private lock.  The pri_grab()
function assumes that the channel private lock is held once to avoid
deadlock.

(closes issue #17261)
Reported by: aragon


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@271335 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-06-18 18:33:17 +00:00