- add get_max_rate timing API call
[asterisk-bristuff.git] / doc / PEERING
blob1a1a25c74910194274aac4f47b44c82351420f44
1 \begin{verbatim}
3                     DIGIUM GENERAL PEERING AGREEMENT (TM)
4                       Version 1.0.0, September 2004 
5  Copyright (C) 2004 Digium, Inc.
6                 445 Jan Davis Drive, Huntsville, AL 35806 USA 
8  Everyone is permitted to copy and distribute complete verbatim copies
9  of this General Peering Agreement provided it is not modified in any
10  manner.
12         ------------------------------------------------------
14                     DIGIUM GENERAL PEERING AGREEMENT
16                                 PREAMBLE
18   For most of the history of telecommunications, the power of being able
19 to locate and communicate with another person in a system, be it across
20 a hall or around the world, has always centered around a centralized
21 authority -- from a local PBX administrator to regional and national
22 RBOCs, generally requiring fees, taxes or regulation.  By contrast,
23 DUNDi is a technology developed to provide users the freedom to
24 communicate with each other without the necessity of any centralized
25 authority.  This General Peering Agreement ("GPA") is used by individual
26 parties (each, a "Participant") to allow them to build the E164 trust
27 group for the DUNDi protocol.
29   To protect the usefulness of the E164 trust group for those who use
30 it, while keeping the system wholly decentralized, it is necessary to
31 replace many of the responsibilities generally afforded to a company or
32 government agency, with a set of responsibilities implemented by the
33 parties who use the system, themselves.  It is the goal of this document
34 to provide all the protections necessary to keep the DUNDi E164 trust
35 group useful and reliable.
37   The Participants wish to protect competition, promote innovation and
38 value added services and make this service valuable both commercially
39 and non-commercially.  To that end, this GPA provides special terms and
40 conditions outlining some permissible and non-permissible revenue
41 sources.
43   This GPA is independent of any software license or other license
44 agreement for a program or technology employing the DUNDi protocol.  For
45 example, the implementation of DUNDi used by Asterisk is covered under a
46 separate license.  Each Participant is responsible for compliance with
47 any licenses or other agreements governing use of such program or
48 technology that they use to peer.
50   You do not have to execute this GPA to use a program or technology
51 employing the DUNDi protocol, however if you do not execute this GPA,
52 you will not be able to peer using DUNDi and the E164 context with
53 anyone who is a member of the trust group by virtue of their having
54 executed this GPA with another member.
56 The parties to this GPA agree as follows: 
58   0. DEFINITIONS.  As used herein, certain terms shall be defined as
59 follows:
61     (a) The term "DUNDi" means the DUNDi protocol as published by
62         Digium, Inc. or its successor in interest with respect to the
63         DUNDi protocol specification.
65     (b) The terms "E.164" and "E164" mean ITU-T specification E.164 as
66         published by the International Telecommunications Union (ITU) in
67         May, 1997.
69     (c) The term "Service" refers to any communication facility (e.g.,
70         telephone, fax, modem, etc.), identified by an E.164-compatible
71         number, and assigned by the appropriate authority in that
72         jurisdiction.
74     (d) The term "Egress Gateway" refers an Internet facility that
75         provides a communications path to a Service or Services that may
76         not be directly addressable via the Internet.
78     (e) The term "Route" refers to an Internet address, policies, and
79         other characteristics defined by the DUNDi protocol and
80         associated with the Service, or the Egress Gateway which
81         provides access to the specified Service.
83     (f) The term "Propagate" means to accept or transmit Service and/or
84         Egress Gateway Routes only using the DUNDi protocol and the
85         DUNDi context "e164" without regard to case, and does not apply
86         to the exchange of information using any other protocol or
87         context. 
89     (g) The term "Peering System" means the network of systems that
90         Propagate Routes.
92     (h) The term "Subscriber" means the owner of, or someone who
93         contracts to receive, the services identified by an E.164
94         number.
96     (i) The term "Authorizing Individual" means the Subscriber to a
97         number who has authorized a Participant to provide Routes
98         regarding their services via this Peering System. 
100     (j) The term "Route Authority" refers to a Participant that provides 
101         an original source of said Route within the Peering System. 
102         Routes are propagated from the Route Authorities through the
103         Peering System and may be cached at intermediate points.  There
104         may be multiple Route Authorities for any Service.
106     (k) The term "Participant" (introduced above) refers to any member
107         of the Peering System. 
109     (l) The term "Service Provider" refers to the carrier (e.g.,
110         exchange carrier, Internet Telephony Service Provider, or other
111         reseller) that provides communication facilities for a
112         particular Service to a Subscriber, Customer or other End User.
114     (m) The term "Weight" refers to a numeric quality assigned to a
115         Route as per the DUNDi protocol specification.  The current
116         Weight definitions are shown in Exhibit A.
118   1. PEERING. The undersigned Participants agree to Propagate Routes
119 with each other and any other member of the Peering System and further
120 agree not to Propagate DUNDi Routes with a third party unless they have
121 first have executed this GPA (in its unmodified form) with such third
122 party.  The Participants further agree only to Propagate Routes with
123 Participants whom they reasonably believe to be honoring the terms of
124 the GPA.  Participants may not insert, remove, amend, or otherwise
125 modify any of the terms of the GPA. 
127   2. ACCEPTABLE USE POLICY.  The DUNDi protocol contains information
128 that reflect a Subscriber's or Egress Gateway's decisions to receive
129 calls.  In addition to the terms and conditions set forth in this GPA,
130 the Participants agree to honor the intent of restrictions encoded in
131 the DUNDi protocol.  To that end, Participants agree to the following:
133     (a) A Participant may not utilize or permit the utilization of 
134         Routes for which the Subscriber or Egress Gateway provider has
135         indicated that they do not wish to receive "Unsolicited Calls"
136         for the purpose of making an unsolicited phone call on behalf of
137         any party or organization.
139     (b) A Participant may not utilize or permit the utilization of
140         Routes which have indicated that they do not wish to receive
141         "Unsolicited Commercial Calls" for the purpose of making an
142         unsolicited phone call on behalf of a commercial organization.
144     (c) A Participant may never utilize or permit the utilization of any 
145         DUNDi route for the purpose of making harassing phone calls.
147     (d) A Party may not utilize or permit the utilization of DUNDi 
148         provided Routes for any systematic or random calling of numbers
149         (e.g., for the purpose of locating facsimile, modem services, or
150         systematic telemarketing).
152     (e) Initial control signaling for all communication sessions that 
153         utilize Routes obtained from the Peering System must be sent
154         from a member of the Peering System to the Service or Egress
155         Gateway identified in the selected Route.  For example, 'SIP
156         INVITES' and IAX2 "NEW" commands must be sent from the
157         requesting DUNDi node to the terminating Service.
159     (f) A Participant may not disclose any specific Route, Service or 
160         Participant contact information obtained from the Peering System
161         to any party outside of the Peering System except as a
162         by-product of facilitating communication in accordance with
163         section 2e (e.g., phone books or other databases may not be
164         published, but the Internet addresses of the Egress Gateway or
165         Service does not need to be obfuscated.)
167     (g) The DUNDi Protocol requires that each Participant include valid
168         contact information about itself (including information about
169         nodes connected to each Participant).  Participants may use or
170         disclose the contact information only to ensure enforcement of
171         legal furtherance of this Agreement.
173   3. ROUTES. The Participants shall only propagate valid Routes, as
174 defined herein, through the Peering System, regardless of the original
175 source.  The Participants may only provide Routes as set forth below,
176 and then only if such Participant has no good faith reason to believe
177 such Route to be invalid or unauthorized.
179     (a) A Participant may provide Routes if each Route has as its
180         original source another member of the Peering System who has
181         duly executed the GPA and such Routes are provided in accordance
182         with this Agreement; provided that the Routes are not modified
183         (e.g., with regards to existence, destination, technology or
184         Weight); or
186     (b) A Participant may provide Routes for Services with any Weight
187         for which it is the Subscriber; or
189     (c) A Participant may provide Routes for those Services whose
190         Subscriber has authorized the Participant to do so, provided 
191         that the Participant is able to confirm that the Authorizing
192         Individual is the Subscriber through:
194             i. a written statement of ownership from the Authorizing
195                Individual, which the Participant believes in good faith 
196                to be accurate (e.g., a phone bill with the name of the
197                Authorizing Individual and the number in question); or
199            ii. the Participant's own direct personal knowledge that the
200                Authorizing Individual is the Subscriber.
202     (d) A Participant may provide Routes for Services, with Weight in
203         accordance with the Current DUNDi Specification, if it can in
204         good faith provide an Egress Gateway to that Service on the
205         traditional telephone network without cost to the calling party.
207   4. REVOCATION. A Participant must provide a free, easily accessible
208 mechanism by which a Subscriber may revoke permission to act as a Route
209 Authority for his Service.  A Participant must stop acting as a Route
210 Authority for that Service within 7 days after:
212     (a) receipt of a revocation request; 
214     (b) receiving other notice that the Service is no longer valid; or
216     (c) determination that the Subscriber's information is no longer
217         accurate (including that the Subscriber is no longer the service
218         owner or the service owner's authorized delegate).
220   5. SERVICE FEES. A Participant may charge a fee to act as a Route
221 Authority for a Service, with any Weight, provided that no Participant
222 may charge a fee to propagate the Route received through the Peering
223 System.
225   6. TOLL SERVICES. No Participant may provide Routes for any Services
226 that require payment from the calling party or their customer for
227 communication with the Service.  Nothing in this section shall prohibit
228 a Participant from providing routes for Services where the calling party
229 may later enter into a financial transaction with the called party
230 (e.g., a Participant may provide Routes for calling cards services). 
232   7. QUALITY. A Participant may not intentionally impair communication
233 using a Route provided to the Peering System (e.g. by adding delay,
234 advertisements, reduced quality).  If for any reason a Participant is
235 unable to deliver a call via a Route provided to the Peering System,
236 that Participant shall return out-of-band Network Congestion
237 notification (e.g. "503 Service Unavailable" with SIP protocol or
238 "CONGESTION" with IAX protocol).
240   8. PROTOCOL COMPLIANCE.  Participants agree to Propagate Routes in
241 strict compliance with current DUNDi protocol specifications.
243   9. ADMINISTRATIVE FEES. A Participant may charge (but is not required
244 to charge) another Participant a reasonable fee to cover administrative
245 expenses incurred in the execution of this Agreement.  A Participant may
246 not charge any fee to continue the relationship or to provide Routes to
247 another Participant in the Peering System.
249   10. CALLER IDENTIFICATION. A Participant will make a good faith effort
250 to ensure the accuracy and appropriate nature of any caller
251 identification that it transmits via any Route obtained from the Peering
252 System. Caller identification shall at least be provided as a valid
253 E.164 number.
255   11. COMPLIANCE WITH LAWS.  The Participants are solely responsible for
256 determining to what extent, if any, the obligations set forth in this
257 GPA conflict with any laws or regulations their region.  A Participant
258 may not provide any service or otherwise use DUNDi under this GPA if
259 doing so is prohibited by law or regulation, or if any law or regulation
260 imposes requirements on the Participant that are inconsistent with the
261 terms of this GPA or the Acceptable Use Policy. 
263   12. WARRANTY. EACH PARTICIPANT WARRANTS TO THE OTHER PARTICIPANTS THAT
264 IT MADE, AND WILL CONTINUE TO MAKE, A GOOD FAITH EFFORT TO AUTHENTICATE
265 OTHERS IN THE PEERING SYSTEM AND TO PROVIDE ACCURATE INFORMATION IN
266 ACCORDANCE WITH THE TERMS OF THIS GPA.  THIS WARRANTY IS MADE BETWEEN
267 THE PARTICIPANTS, AND THE PARTICIPANTS MAY NOT EXTEND THIS WARRANTY TO
268 ANY NON-PARTICIPANT INCLUDING END-USERS. 
270   13. DISCLAIMER OF WARRANTIES. THE PARTICIPANTS UNDERSTAND AND AGREE
271 THAT ANY SERVICE PROVIDED AS A RESULT OF THIS GPA IS "AS IS." EXCEPT FOR
272 THOSE WARRANTIES OTHERWISE EXPRESSLY SET FORTH HEREIN, THE PARTICIPANTS
273 DISCLAIM ANY REPRESENTATIONS OR WARRANTIES OF ANY KIND OR NATURE,
274 EXPRESS OR IMPLIED, AS TO THE CONDITION, VALUE OR QUALITIES OF THE
275 SERVICES PROVIDED HEREUNDER, AND SPECIFICALLY DISCLAIM ANY
276 REPRESENTATION OR WARRANTY OF MERCHANTABILITY, SUITABILITY OR FITNESS
277 FOR A PARTICULAR PURPOSE OR AS TO THE CONDITION OR WORKMANSHIP THEREOF,
278 OR THE ABSENCE OF ANY DEFECTS THEREIN, WHETHER LATENT OR PATENT,
279 INCLUDING ANY WARRANTIES ARISING FROM A COURSE OF DEALING, USAGE OR
280 TRADE PRACTICE.  EXCEPT AS EXPRESSLY PROVIDED HEREIN, THE PARTICIPANTS
281 EXPRESSLY DISCLAIM ANY REPRESENTATIONS OR WARRANTIES THAT THE PEERING
282 SERVICE WILL BE CONTINUOUS, UNINTERRUPTED OR ERROR-FREE, THAT ANY DATA
283 SHARED OR OTHERWISE MADE AVAILABLE WILL BE ACCURATE OR COMPLETE OR
284 OTHERWISE COMPLETELY SECURE FROM UNAUTHORIZED ACCESS.
286   14. LIMITATION OF LIABILITIES.  NO PARTICIPANT SHALL BE LIABLE TO ANY
287 OTHER PARTICIPANT FOR INCIDENTAL, INDIRECT, CONSEQUENTIAL, SPECIAL,
288 PUNITIVE OR EXEMPLARY DAMAGES OF ANY KIND (INCLUDING LOST REVENUES OR
289 PROFITS, LOSS OF BUSINESS OR LOSS OF DATA) IN ANY WAY RELATED TO THIS
290 GPA, WHETHER IN CONTRACT OR IN TORT, REGARDLESS OF WHETHER SUCH
291 PARTICIPANT WAS ADVISED OF THE POSSIBILITY THEREOF.
293   15. END-USER AGREEMENTS.  The Participants may independently enter
294 into agreements with end-users to provide certain services (e.g., fees
295 to a Subscriber to originate Routes for that Service).  To the extent
296 that provision of these services employs the Peering System, the Parties
297 will include in their agreements with their end-users terms and
298 conditions consistent with the terms of this GPA with respect to the
299 exclusion of warranties, limitation of liability and Acceptable Use
300 Policy.  In no event may a Participant extend the warranty described in
301 Section 12 in this GPA to any end-users. 
303   16. INDEMNIFICATION.  Each Participant agrees to defend, indemnify and
304 hold harmless the other Participant or third-party beneficiaries to this
305 GPA (including their affiliates, successors, assigns, agents and
306 representatives and their respective officers, directors and employees)
307 from and against any and all actions, suits, proceedings,
308 investigations, demands, claims, judgments, liabilities, obligations,
309 liens, losses, damages, expenses (including, without limitation,
310 attorneys' fees) and any other fees arising out of or relating to (i)
311 personal injury or property damage caused by that Participant, its
312 employees, agents, servants, or other representatives; (ii) any act or
313 omission by the Participant, its employees, agents, servants or other
314 representatives, including, but not limited to, unauthorized
315 representations or warranties made by the Participant; or (iii) any
316 breach by the Participant of any of the terms or conditions of this GPA. 
318   17. THIRD PARTY BENEFICIARIES. This GPA is intended to benefit those
319 Participants who have executed the GPA and who are in the Peering
320 System. It is the intent of the Parties to this GPA to give to those
321 Participants who are in the Peering System standing to bring any
322 necessary legal action to enforce the terms of this GPA.
324   18. TERMINATION. Any Participant may terminate this GPA at any time,
325 with or without cause.  A Participant that terminates must immediately
326 cease to Propagate. 
328   19. CHOICE OF LAW. This GPA and the rights and duties of the Parties
329 hereto shall be construed and determined in accordance with the internal
330 laws of the State of New York, United States of America, without regard
331 to its conflict of laws principles and without application of the United
332 Nations Convention on Contracts for the International Sale of Goods.
334   20. DISPUTE RESOLUTION. Unless otherwise agreed in writing, the
335 exclusive procedure for handling disputes shall be as set forth herein.
336 Notwithstanding such procedures, any Participant may, at any time, seek
337 injunctive relief in addition to the process described below. 
339     (a) Prior to mediation or arbitration the disputing Participants
340         shall seek informal resolution of disputes. The process shall be
341         initiated with written notice of one Participant to the other
342         describing the dispute with reasonable particularity followed
343         with a written response within ten (10) days of receipt of
344         notice. Each Participant shall promptly designate an executive
345         with requisite authority to resolve the dispute.  The informal
346         procedure shall commence within ten (10) days of the date of
347         response. All reasonable requests for non-privileged information
348         reasonably related to the dispute shall be honored. If the
349         dispute is not resolved within thirty (30) days of commencement
350         of the procedure either Participant may proceed to mediation or
351         arbitration pursuant to the rules set forth in (b) or (c) below.
353     (b) If the dispute has not been resolved pursuant to (a) above or,
354         if the disputing Participants fail to commence informal dispute
355         resolution pursuant to (a) above, either Participant may, in
356         writing and within twenty (20) days of the response date noted
357         in (a) above, ask the other Participant to participate in a one
358         (1) day mediation with an impartial mediator, and the other
359         Participant shall do so. Each Participant will bear its own
360         expenses and an equal share of the fees of the mediator.  If the
361         mediation is not successful the Participants may proceed with
362         arbitration pursuant to (c) below.
364     (c) If the dispute has not been resolved pursuant to (a) or (b)
365         above, the dispute shall be promptly referred, no later than one
366         (1) year from the date of original notice and subject to
367         applicable statute of limitations, to binding arbitration in
368         accordance with the UNCITRAL Arbitration Rules in effect on the
369         date of this contract.  The appointing authority shall be the
370         International Centre for Dispute Resolution. The case shall be
371         administered by the International Centre for Dispute Resolution
372         under its Procedures for Cases under the UNCITRAL Arbitration
373         Rules.  Each Participant shall bear its own expenses and shall
374         share equally in fees of the arbitrator. All arbitrators shall
375         have substantial experience in information technology and/or in
376         the telecommunications business and shall be selected by the
377         disputing participants in accordance with UNCITRAL Arbitration
378         Rules. If any arbitrator, once selected is unable or unwilling
379         to continue for any reason, replacement shall be filled via the
380         process described above and a re-hearing shall be conducted. The
381         disputing Participants will provide each other with all
382         requested documents and records reasonably related to the
383         dispute in a manner that will minimize the expense and
384         inconvenience of both parties. Discovery will not include
385         depositions or interrogatories except as the arbitrators
386         expressly allow upon a showing of need. If disputes arise 
387         concerning discovery requests, the arbitrators shall have sole
388         and complete discretion to resolve the disputes. The parties and
389         arbitrator shall be guided in resolving discovery disputes by
390         the Federal Rules of Civil Procedure. The Participants agree
391         that time of the essence principles shall guide the hearing and
392         that the arbitrator shall have the right and authority to issue
393         monetary sanctions in the event of unreasonable delay. The
394         arbitrator shall deliver a written opinion setting forth
395         findings of fact and the rationale for the award within thirty
396         (30) days following conclusion of the hearing. The award of the
397         arbitrator, which may include legal and equitable relief, but
398         which may not include punitive damages, will be final and
399         binding upon the disputing Participants, and judgment may be
400         entered upon it in accordance with applicable law in any court
401         having jurisdiction thereof.  In addition to award the
402         arbitrator shall have the discretion to award the prevailing
403         Participant all or part of its attorneys' fees and costs,
404         including fees associated with arbitrator, if the arbitrator
405         determines that the positions taken by the other Participant on
406         material issues of the dispute were without substantial
407         foundation. Any conflict between the UNCITRAL Arbitration Rules
408         and the provisions of this GPA shall be controlled by this GPA.
410   21. INTEGRATED AGREEMENT. This GPA, constitutes the complete
411 integrated agreement between the parties concerning the subject matter
412 hereof.  All prior and contemporaneous agreements, understandings,
413 negotiations or representations, whether oral or in writing, relating to
414 the subject matter of this GPA are superseded and canceled in their
415 entirety.
417   22. WAIVER. No waiver of any of the provisions of this GPA shall be
418 deemed or shall constitute a waiver of any other provision of this GPA,
419 whether or not similar, nor shall such waiver constitute a continuing
420 waiver unless otherwise expressly so provided in writing.  The failure
421 of either party to enforce at any time any of the provisions of this
422 GPA, or the failure to require at any time performance by either party
423 of any of the provisions of this GPA, shall in no way be construed to be
424 a present or future waiver of such provisions, nor in any way affect the
425 ability of a Participant to enforce each and every such provision
426 thereafter. 
428   23. INDEPENDENT CONTRACTORS. Nothing in this GPA shall make the
429 Parties partners, joint venturers, or otherwise associated in or with
430 the business of the other.  Parties are, and shall always remain,
431 independent contractors.  No Participant shall be liable for any debts,
432 accounts, obligations, or other liabilities of the other Participant,
433 its agents or employees.  No party is authorized to incur debts or other
434 obligations of any kind on the part of or as agent for the other.  This
435 GPA is not a franchise agreement and does not create a franchise
436 relationship between the parties, and if any provision of this GPA is
437 deemed to create a franchise between the parties, then this GPA shall
438 automatically terminate. 
440   24. CAPTIONS AND HEADINGS. The captions and headings used in this GPA
441 are used for convenience only and are not to be given any legal effect.
443   25. EXECUTION. This GPA may be executed in counterparts, each of which
444 so executed will be deemed to be an original and such counterparts
445 together will constitute one and the same Agreement.  The Parties shall
446 transmit to each other a signed copy of the GPA by any means that
447 faithfully reproduces the GPA along with the Signature.  For purposes of
448 this GPA, the term "signature" shall include digital signatures as
449 defined by the jurisdiction of the Participant signing the GPA.
451                          Exhibit A
453 Weight Range            Requirements 
455 0-99                    May only be used under authorization of Owner
457 100-199                 May only be used by the Owner's service
458                         provider, regardless of authorization.
460 200-299                 Reserved -- do not use for e164 context.
462 300-399                 May only be used by the owner of the code under
463                         which the Owner's number is a part of.
465 400-499                 May be used by any entity providing access via
466                         direct connectivity to the Public Switched
467                         Telephone Network.
469 500-599                 May be used by any entity providing access via
470                         indirect connectivity to the Public Switched
471                         Telephone Network (e.g. Via another VoIP
472                         provider)
474 600-                    Reserved-- do not use for e164 context.                 
476                  Participant                         Participant
478 Company:
480 Address:
482 Email:
485           _________________________           _________________________
486           Authorized Signature                Authorized Signature
488 Name:
491 END OF GENERAL PEERING AGREEMENT
493 ------------------------------------------------
495 How to Peer using this GPA If you wish to exchange routing information
496 with parties using the e164 DUNDi context, all you must do is execute
497 this GPA with any member of the Peering System and you will become a
498 member of the Peering System and be able to make Routes available in
499 accordance with this GPA.
501 DUNDi, IAX, Asterisk and GPA are trademarks of Digium, Inc.
503 \end{verbatim}