1 The bulk of this library is licensed under the MPL (Mozilla Public License)
2 version 1.0. In simple terms this license allows you to use the library for
3 any purpose, commercial or otherwise, provided the library is kept in tact
4 as a separate entity and any changes made to the library are made publicly
5 available under the same (MPL) license. It is important to realise that that
6 refers to changes to the library and not your application that is merely
9 Note that due to a restriction in the GPL, any application you write that
10 uses anything another than GPL, eg our library with MPL, is technically in
11 breach of the GPL license. However, it should be noted that MPL does not
12 care about the license of the final application, and as only the author of
13 the GPL application is in breach of his own license and is unlikely to sue
14 themselves for that breach, in practice there is no problem with a GPL
15 application using an MPL or any other commercial library.
18 The random number generator is based on code originally by Bob Jenkins.
21 Portions of this library are from the REGEX library and is under the
24 Copyright 1992, 1993, 1994, 1997 Henry Spencer. All rights reserved.
25 This software is not subject to any license of the American Telephone
26 and Telegraph Company or of the Regents of the University of California.
28 Permission is granted to anyone to use this software for any purpose on
29 any computer system, and to alter it and redistribute it, subject
30 to the following restrictions:
32 1. The author is not responsible for the consequences of use of this
33 software, no matter how awful, even if they arise from flaws in it.
35 2. The origin of this software must not be misrepresented, either by
36 explicit claim or by omission. Since few users ever read sources,
37 credits must appear in the documentation.
39 3. Altered versions must be plainly marked as such, and must not be
40 misrepresented as being the original software. Since few users
41 ever read sources, credits must appear in the documentation.
43 4. This notice may not be removed or altered.
46 The in-band DTMF decoding code was taken from FreeBSD's dtmfdecode.c
47 application written by Poul-Henning Kamp. It has the following
49 * ----------------------------------------------------------------------------
50 * "THE BEER-WARE LICENSE" (Revision 42):
51 * <phk@FreeBSD.org> wrote this file. As long as you retain this notice you
52 * can do whatever you want with this stuff. If we meet some day, and you think
53 * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
54 * ----------------------------------------------------------------------------
58 ================================================================================
60 Home of OpenH323 and the Open Phone Abstraction Library (OPAL)
62 support@equival.com.au
63 http://www.equival.com.au (US Mirror - http://www.equival.com)
65 ================================================================================
67 MOZILLA PUBLIC LICENSE
74 1.1. ``Contributor'' means each entity that creates or contributes to
75 the creation of Modifications.
77 1.2. ``Contributor Version'' means the combination of the Original
78 Code, prior Modifications used by a Contributor, and the Modifications
79 made by that particular Contributor.
81 1.3. ``Covered Code'' means the Original Code or Modifications or the
82 combination of the Original Code and Modifications, in each case
83 including portions thereof.
85 1.4. ``Electronic Distribution Mechanism'' means a mechanism generally
86 accepted in the software development community for the electronic
89 1.5. ``Executable'' means Covered Code in any form other than Source
92 1.6. ``Initial Developer'' means the individual or entity identified as
93 the Initial Developer in the Source Code notice required by Exhibit A.
95 1.7. ``Larger Work'' means a work which combines Covered Code or
96 portions thereof with code not governed by the terms of this License.
98 1.8. ``License'' means this document.
100 1.9. ``Modifications'' means any addition to or deletion from the
101 substance or structure of either the Original Code or any previous
102 Modifications. When Covered Code is released as a series of files, a
105 A. Any addition to or deletion from the contents of a file
106 containing Original Code or previous Modifications.
108 B. Any new file that contains any part of the Original Code or
109 previous Modifications.
111 1.10. ``Original Code'' means Source Code of computer software code
112 which is described in the Source Code notice required by Exhibit A as
113 Original Code, and which, at the time of its release under this License
114 is not already Covered Code governed by this License.
116 1.11. ``Source Code'' means the preferred form of the Covered Code for
117 making modifications to it, including all modules it contains, plus any
118 associated interface definition files, scripts used to control
119 compilation and installation of an Executable, or a list of source code
120 differential comparisons against either the Original Code or another
121 well known, available Covered Code of the Contributor's choice. The
122 Source Code can be in a compressed or archival form, provided the
123 appropriate decompression or de-archiving software is widely available
126 1.12. ``You'' means an individual or a legal entity exercising rights
127 under, and complying with all of the terms of, this License or a future
128 version of this License issued under Section 6.1. For legal entities,
129 ``You'' includes any entity which controls, is controlled by, or is
130 under common control with You. For purposes of this definition,
131 ``control'' means (a) the power, direct or indirect, to cause the
132 direction or management of such entity, whether by contract or
133 otherwise, or (b) ownership of fifty percent (50%) or more of the
134 outstanding shares or beneficial ownership of such entity.
136 2. Source Code License.
138 2.1. The Initial Developer Grant.
139 The Initial Developer hereby grants You a world-wide, royalty-free,
140 non-exclusive license, subject to third party intellectual property
143 (a) to use, reproduce, modify, display, perform, sublicense and
144 distribute the Original Code (or portions thereof) with or without
145 Modifications, or as part of a Larger Work; and
147 (b) under patents now or hereafter owned or controlled by Initial
148 Developer, to make, have made, use and sell (``Utilize'') the
149 Original Code (or portions thereof), but solely to the extent that
150 any such patent is reasonably necessary to enable You to Utilize
151 the Original Code (or portions thereof) and not to any greater
152 extent that may be necessary to Utilize further Modifications or
155 2.2. Contributor Grant.
156 Each Contributor hereby grants You a world-wide, royalty-free,
157 non-exclusive license, subject to third party intellectual property
160 (a) to use, reproduce, modify, display, perform, sublicense and
161 distribute the Modifications created by such Contributor (or
162 portions thereof) either on an unmodified basis, with other
163 Modifications, as Covered Code or as part of a Larger Work; and
165 (b) under patents now or hereafter owned or controlled by
166 Contributor, to Utilize the Contributor Version (or portions
167 thereof), but solely to the extent that any such patent is
168 reasonably necessary to enable You to Utilize the Contributor
169 Version (or portions thereof), and not to any greater extent that
170 may be necessary to Utilize further Modifications or combinations.
172 3. Distribution Obligations.
174 3.1. Application of License.
175 The Modifications which You create or to which You contribute are
176 governed by the terms of this License, including without limitation
177 Section 2.2. The Source Code version of Covered Code may be distributed
178 only under the terms of this License or a future version of this
179 License released under Section 6.1, and You must include a copy of this
180 License with every copy of the Source Code You distribute. You may not
181 offer or impose any terms on any Source Code version that alters or
182 restricts the applicable version of this License or the recipients'
183 rights hereunder. However, You may include an additional document
184 offering the additional rights described in Section 3.5.
186 3.2. Availability of Source Code.
187 Any Modification which You create or to which You contribute must be
188 made available in Source Code form under the terms of this License
189 either on the same media as an Executable version or via an accepted
190 Electronic Distribution Mechanism to anyone to whom you made an
191 Executable version available; and if made available via Electronic
192 Distribution Mechanism, must remain available for at least twelve (12)
193 months after the date it initially became available, or at least six
194 (6) months after a subsequent version of that particular Modification
195 has been made available to such recipients. You are responsible for
196 ensuring that the Source Code version remains available even if the
197 Electronic Distribution Mechanism is maintained by a third party.
199 3.3. Description of Modifications.
200 You must cause all Covered Code to which you contribute to contain a
201 file documenting the changes You made to create that Covered Code and
202 the date of any change. You must include a prominent statement that the
203 Modification is derived, directly or indirectly, from Original Code
204 provided by the Initial Developer and including the name of the Initial
205 Developer in (a) the Source Code, and (b) in any notice in an
206 Executable version or related documentation in which You describe the
207 origin or ownership of the Covered Code.
209 3.4. Intellectual Property Matters
211 (a) Third Party Claims.
212 If You have knowledge that a party claims an intellectual property
213 right in particular functionality or code (or its utilization
214 under this License), you must include a text file with the source
215 code distribution titled ``LEGAL'' which describes the claim and
216 the party making the claim in sufficient detail that a recipient
217 will know whom to contact. If you obtain such knowledge after You
218 make Your Modification available as described in Section 3.2, You
219 shall promptly modify the LEGAL file in all copies You make
220 available thereafter and shall take other steps (such as notifying
221 appropriate mailing lists or newsgroups) reasonably calculated to
222 inform those who received the Covered Code that new knowledge has
225 (b) Contributor APIs.
226 If Your Modification is an application programming interface and
227 You own or control patents which are reasonably necessary to
228 implement that API, you must also include this information in the
231 3.5. Required Notices.
232 You must duplicate the notice in Exhibit A in each file of the Source
233 Code, and this License in any documentation for the Source Code, where
234 You describe recipients' rights relating to Covered Code. If You
235 created one or more Modification(s), You may add your name as a
236 Contributor to the notice described in Exhibit A. If it is not possible
237 to put such notice in a particular Source Code file due to its
238 structure, then you must include such notice in a location (such as a
239 relevant directory file) where a user would be likely to look for such
240 a notice. You may choose to offer, and to charge a fee for, warranty,
241 support, indemnity or liability obligations to one or more recipients
242 of Covered Code. However, You may do so only on Your own behalf, and
243 not on behalf of the Initial Developer or any Contributor. You must
244 make it absolutely clear than any such warranty, support, indemnity or
245 liability obligation is offered by You alone, and You hereby agree to
246 indemnify the Initial Developer and every Contributor for any liability
247 incurred by the Initial Developer or such Contributor as a result of
248 warranty, support, indemnity or liability terms You offer.
250 3.6. Distribution of Executable Versions.
251 You may distribute Covered Code in Executable form only if the
252 requirements of Section 3.1-3.5 have been met for that Covered Code,
253 and if You include a notice stating that the Source Code version of the
254 Covered Code is available under the terms of this License, including a
255 description of how and where You have fulfilled the obligations of
256 Section 3.2. The notice must be conspicuously included in any notice in
257 an Executable version, related documentation or collateral in which You
258 describe recipients' rights relating to the Covered Code. You may
259 distribute the Executable version of Covered Code under a license of
260 Your choice, which may contain terms different from this License,
261 provided that You are in compliance with the terms of this License and
262 that the license for the Executable version does not attempt to limit
263 or alter the recipient's rights in the Source Code version from the
264 rights set forth in this License. If You distribute the Executable
265 version under a different license You must make it absolutely clear
266 that any terms which differ from this License are offered by You alone,
267 not by the Initial Developer or any Contributor. You hereby agree to
268 indemnify the Initial Developer and every Contributor for any liability
269 incurred by the Initial Developer or such Contributor as a result of
270 any such terms You offer.
273 You may create a Larger Work by combining Covered Code with other code
274 not governed by the terms of this License and distribute the Larger
275 Work as a single product. In such a case, You must make sure the
276 requirements of this License are fulfilled for the Covered Code.
278 4. Inability to Comply Due to Statute or Regulation.
280 If it is impossible for You to comply with any of the terms of this
281 License with respect to some or all of the Covered Code due to statute
282 or regulation then You must: (a) comply with the terms of this License
283 to the maximum extent possible; and (b) describe the limitations and
284 the code they affect. Such description must be included in the LEGAL
285 file described in Section 3.4 and must be included with all
286 distributions of the Source Code. Except to the extent prohibited by
287 statute or regulation, such description must be sufficiently detailed
288 for a recipient of ordinary skill to be able to understand it.
290 5. Application of this License.
292 This License applies to code to which the Initial Developer has
293 attached the notice in Exhibit A, and to related Covered Code.
295 6. Versions of the License.
298 Netscape Communications Corporation (``Netscape'') may publish revised
299 and/or new versions of the License from time to time. Each version will
300 be given a distinguishing version number.
302 6.2. Effect of New Versions.
303 Once Covered Code has been published under a particular version of the
304 License, You may always continue to use it under the terms of that
305 version. You may also choose to use such Covered Code under the terms
306 of any subsequent version of the License published by Netscape. No one
307 other than Netscape has the right to modify the terms applicable to
308 Covered Code created under this License.
310 6.3. Derivative Works.
311 If you create or use a modified version of this License (which you may
312 only do in order to apply it to code which is not already Covered Code
313 governed by this License), you must (a) rename Your license so that the
314 phrases ``Mozilla'', ``MOZILLAPL'', ``MOZPL'', ``Netscape'', ``NPL'' or
315 any confusingly similar phrase do not appear anywhere in your license
316 and (b) otherwise make it clear that your version of the license
317 contains terms which differ from the Mozilla Public License and
318 Netscape Public License. (Filling in the name of the Initial Developer,
319 Original Code or Contributor in the notice described in Exhibit A shall
320 not of themselves be deemed to be modifications of this License.)
322 7. DISCLAIMER OF WARRANTY.
324 COVERED CODE IS PROVIDED UNDER THIS LICENSE ON AN ``AS IS'' BASIS,
325 WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
326 WITHOUT LIMITATION, WARRANTIES THAT THE COVERED CODE IS FREE OF
327 DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING.
328 THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED CODE
329 IS WITH YOU. SHOULD ANY COVERED CODE PROVE DEFECTIVE IN ANY RESPECT,
330 YOU (NOT THE INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE
331 COST OF ANY NECESSARY SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER
332 OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF
333 ANY COVERED CODE IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER.
337 This License and the rights granted hereunder will terminate
338 automatically if You fail to comply with terms herein and fail to cure
339 such breach within 30 days of becoming aware of the breach. All
340 sublicenses to the Covered Code which are properly granted shall
341 survive any termination of this License. Provisions which, by their
342 nature, must remain in effect beyond the termination of this License
345 9. LIMITATION OF LIABILITY.
347 UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT
348 (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL THE INITIAL
349 DEVELOPER, ANY OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF COVERED CODE,
350 OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO YOU OR ANY OTHER
351 PERSON FOR ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
352 OF ANY CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF
353 GOODWILL, WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND
354 ALL OTHER COMMERCIAL DAMAGES OR LOSSES, EVEN IF SUCH PARTY SHALL HAVE
355 BEEN INFORMED OF THE POSSIBILITY OF SUCH DAMAGES. THIS LIMITATION OF
356 LIABILITY SHALL NOT APPLY TO LIABILITY FOR DEATH OR PERSONAL INJURY
357 RESULTING FROM SUCH PARTY'S NEGLIGENCE TO THE EXTENT APPLICABLE LAW
358 PROHIBITS SUCH LIMITATION. SOME JURISDICTIONS DO NOT ALLOW THE
359 EXCLUSION OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THAT
360 EXCLUSION AND LIMITATION MAY NOT APPLY TO YOU.
362 10. U.S. GOVERNMENT END USERS.
364 The Covered Code is a ``commercial item,'' as that term is defined in
365 48 C.F.R. 2.101 (Oct. 1995), consisting of ``commercial computer
366 software'' and ``commercial computer software documentation,'' as such
367 terms are used in 48 C.F.R. 12.212 (Sept. 1995). Consistent with 48
368 C.F.R. 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (June 1995),
369 all U.S. Government End Users acquire Covered Code with only those
370 rights set forth herein.
374 This License represents the complete agreement concerning subject
375 matter hereof. If any provision of this License is held to be
376 unenforceable, such provision shall be reformed only to the extent
377 necessary to make it enforceable. This License shall be governed by
378 California law provisions (except to the extent applicable law, if any,
379 provides otherwise), excluding its conflict-of-law provisions. With
380 respect to disputes in which at least one party is a citizen of, or an
381 entity chartered or registered to do business in, the United States of
382 America: (a) unless otherwise agreed in writing, all disputes relating
383 to this License (excepting any dispute relating to intellectual
384 property rights) shall be subject to final and binding arbitration,
385 with the losing party paying all costs of arbitration; (b) any
386 arbitration relating to this Agreement shall be held in Santa Clara
387 County, California, under the auspices of JAMS/EndDispute; and (c) any
388 litigation relating to this Agreement shall be subject to the
389 jurisdiction of the Federal Courts of the Northern District of
390 California, with venue lying in Santa Clara County, California, with
391 the losing party responsible for costs, including without limitation,
392 court costs and reasonable attorneys fees and expenses. The application
393 of the United Nations Convention on Contracts for the International
394 Sale of Goods is expressly excluded. Any law or regulation which
395 provides that the language of a contract shall be construed against the
396 drafter shall not apply to this License.
398 12. RESPONSIBILITY FOR CLAIMS.
400 Except in cases where another Contributor has failed to comply with
401 Section 3.4, You are responsible for damages arising, directly or
402 indirectly, out of Your utilization of rights under this License, based
403 on the number of copies of Covered Code you made available, the
404 revenues you received from utilizing such rights, and other relevant
405 factors. You agree to work with affected parties to distribute
406 responsibility on an equitable basis.
410 ``The contents of this file are subject to the Mozilla Public License
411 Version 1.0 (the "License"); you may not use this file except in
412 compliance with the License. You may obtain a copy of the License at
413 http://www.mozilla.org/MPL/
415 Software distributed under the License is distributed on an "AS IS"
416 basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
417 License for the specific language governing rights and limitations
420 The Original Code is ______________________________________.
422 The Initial Developer of the Original Code is ________________________.
423 Portions created by ______________________ are Copyright (C) ______
424 _______________________. All Rights Reserved.
426 Contributor(s): ______________________________________.''