EX-10.4



 Exhibit 10.4 (f) 

SIXTH AMENDMENT TO SECOND LIEN CREDIT AGREEMENT 
 THIS SIXTH AMENDMENT TO SECOND LIEN CREDIT AGREEMENT, dated as of July 23, 2012 (this “Amendment” or the “Sixth Amendment”), to the Existing Credit Agreement (as defined
below) is made by Mitel US Holdings, Inc. (the “Borrower”) and Mitel Networks Corporation (the “Parent”), the various financial institutions and other Persons (as defined in the Credit Agreement referred to below)
listed on the signature pages hereof (each a “Lender” and collectively, the “Lenders”), and The Bank of New York Mellon (“BNYM”) (as successor in-interest to Morgan Stanley Senior Funding, Inc.
(“MSSF”)), as the Administrative Agent (in such capacity, the “Administrative Agent”). 
 W
I T N E S S E T H: 
 WHEREAS, the Borrower, the Parent, the Lenders, the Administrative Agent, and BNYM (as successor to
Morgan Stanley & Co. Incorporated), as the Collateral Agent (in such capacity, the “Collateral Agent”), are all parties to the Second Lien Credit Agreement, dated as of August 16, 2007 (as amended or otherwise modified
prior to the date hereof, the “Existing Credit Agreement”, and as further amended by this Amendment and as the same may be further amended, supplemented, amended and restated or otherwise modified from time to time, the
“Credit Agreement”); and 
 WHEREAS, the Borrower has requested that the Lenders amend certain provisions of
the Existing Credit Agreement. 
 NOW, THEREFORE, the parties hereto covenant and agree as follows: 

SECTION 1.1. Defined Terms Generally. Unless otherwise defined herein, capitalized terms used herein have the meanings provided
therefore in the Existing Credit Agreement. 
 SECTION 1.2. Certain Definitions. The following terms when used in this
Amendment shall have the following meanings (such meanings to be equally applicable to the singular and plural forms thereof): 

“Amendment” and “Sixth Amendment” are defined in the preamble. 

“Borrower” is defined in the preamble. 
 “Credit Agreement” is defined in the first recital. 

“Existing Credit Agreement” is defined in the first recital. 

“Sixth Amendment Effective Date” is defined in Article III. 

ARTICLE II 

AMENDMENTS TO EXISTING CREDIT AGREEMENT 
 SECTION 2.1. The Existing Credit Agreement is hereby amended as follows: 

  
 1 








 SECTION 2.1.1. Section 1.1 of the Existing Credit Agreement is hereby amended by
inserting the following definitions in the appropriate alphabetical order: 
 “DataNet Sale” means the sale of
some or all of the assets in the Borrower’s DataNet CommSource division for consideration which may be in an aggregate amount of up to $25,000,000 consisting of cash or vendor take-back promissory notes; provided that such sale is concluded
prior to the one year anniversary of the Sixth Amendment Effective Date. 
 “Sixth Amendment” means the Sixth
Amendment to the Credit Agreement, dated as of July 23, 2012 among the Borrower, the Parent, the Administrative Agent and the Lenders party thereto. 
 “Sixth Amendment Effective Date” means the Sixth Amendment Effective Date as that term is defined in the Sixth Amendment. 

SECTION 2.1.2. Section 7.2.10 of the Credit Agreement is hereby amended by (x) deleting the word “or” at the end of
clause (e), (y) deleting the period (“.”) at the end of clause (f) and replacing it with a “; or”, and (z) inserting a new clause (g) which shall read as follows: “(g) the DataNet Sale.” 

ARTICLE III 

CONDITIONS TO EFFECTIVENESS 
 SECTION 3.1. Conditions to Effectiveness. This Amendment shall become effective upon the prior or simultaneous satisfaction of each of the following conditions in a manner reasonably
satisfactory to the Administrative Agent (the date when all such conditions are so satisfied being the “Sixth Amendment Effective Date”): 
 SECTION 3.1.1. Counterparts. The Administrative Agent shall have received counterparts to this Amendment, executed by the Borrower, the Parent and the Required Lenders. 

SECTION 3.1.2. Certificate of Authorized Officer. The Borrower shall have delivered certificates of Authorized Officers, solely in
their capacity as Authorized Officers of the Borrower, certifying that, both immediately before and after giving effect to the this Amendment on the Sixth Amendment Effective Date, the statements set forth in Article IV hereof are true and correct.

 SECTION 3.1.3. Obligor Acknowledgment and Consent. The Parent and each Obligor (other than the Borrower) shall execute
and deliver an Acknowledgment and Consent in substantially the form of Annex I hereto. 
 SECTION 3.1.4. Payment of
Expenses. The Borrower shall have paid all reasonable fees, costs and expenses of the Agents in connection with the preparation, execution and delivery of this Amendment and the administration of the Credit Agreement, including without
limitation, the reasonable fees and disbursements of counsel to the Administrative Agent. 

  
 2 








 ARTICLE IV 
 REPRESENTATIONS AND WARRANTIES 
 To induce the Lenders to enter into this
Amendment, the Borrower represents and warrants to the Lenders as set forth below: 
 SECTION 4.1. Representations and
Warranties, No Event of Default. The representations and warranties contained herein, in Article VI of the Credit Agreement and in each other Loan Document, certificate or other writing delivered by or on behalf of any Obligor to any Secured
Party on or prior to the Sixth Amendment Effective Date are true and correct in all material respects on and as of such date as though made on and as of such date (except that any representation and warranty expressly made as of a specific date
shall be true and correct only as of such specific date), and no Default or Event of Default shall have occurred, assuming effectiveness of this Amendment, and be continuing on the Sixth Amendment Effective Date or would result from this Amendment
becoming effective in accordance with its terms. 
 SECTION 4.2. Due Authorization, Non-Contravention, etc. The
execution, delivery and performance by each Obligor of this Amendment, the Credit Agreement as amended hereby and each Loan Document executed or to be executed by it are in each case within such Person’s powers, have been duly authorized by all
necessary action, and do not (a) contravene any (i) Obligor’s Organic Documents, (ii) court decree or order binding on or affecting any Obligor or (iii) law or governmental regulation binding on or affecting any Obligor; or
(b) result in (i) or require the creation or imposition of any Lien on any Obligor’s properties (except as permitted by the Credit Agreement) or (ii) a default under any material contractual restriction binding on or affecting
any Obligor. 
 SECTION 4.3. Government Approval, Regulation, etc. No authorization or approval or other action by, and
no notice to or filing with, any Governmental Authority or other Person (other than those that have been, or on the Sixth Amendment Effective Date will be, duly obtained or made and which are, or on the Sixth Amendment Effective Date will be, in
full force and effect) is required for the consummation of this Amendment or the Credit Agreement as amended hereby or the due execution, delivery or performance by any Obligor of this Amendment, the Credit Agreement as amended hereby or any Loan
Document to which it is a party. 
 SECTION 4.4. Validity, etc. This Amendment, the Credit Agreement (as amended hereby)
and each Loan Document to which any Obligor is a party constitutes the legal, valid and binding obligations of such Obligor, enforceable against such Obligor in accordance with their respective terms (except, in any case, as such enforceability may
be limited by applicable bankruptcy, insolvency, reorganization or similar laws affecting creditors’ rights generally and by principles of equity). 
 ARTICLE V 
 CONTINUED EFFECTIVENESS OF CREDIT AGREEMENT 

SECTION 5.1. Continued Effectiveness of Credit Agreement. The Borrower hereby (a) confirms and agrees that each Loan Document
to which it is a party is, and shall continue to be, in full force and effect and is hereby ratified and confirmed in all respects except that on and after the Sixth Amendment Effective Date all references in any such Loan Document to the
“Credit Agreement,” “thereto,” “thereof,” “thereunder” or words of like import referring to the Credit Agreement shall mean the Credit Agreement as amended by this Amendment, and (b) confirms and agrees
that to the extent that any such Loan Document purports to assign or pledge to the Collateral Agent, or grant to the Collateral Agent, a Lien on any collateral as security for the Obligations of the Borrower from time to time existing in respect of
the Credit Agreement and the Loan Documents, such pledge, assignment and/or grant of a Lien is ratified and confirmed in all respects. 

  
 3 








 ARTICLE VI 
 MISCELLANEOUS 
 SECTION 6.1. Counterparts. This Amendment may be executed
by the parties hereto in several counterparts, each of which when executed and delivered shall be an original and all of which shall constitute together one and the same agreement. Delivery of an executed counterpart of a signature page to this
Amendment by facsimile (or other electronic transmission) shall be effective as delivery of a manually executed counterpart of this Amendment. 
 SECTION 6.2. Cross-References. References in this Amendment to any Article or Section are, unless otherwise specified, to such Article or Section of this Amendment. 

SECTION 6.3. Governing Law. This Amendment shall be governed by, and construed in accordance with, the internal laws of the
State of New York. 
 SECTION 6.4. Loan Document Pursuant to Credit Agreement. This Amendment constitutes a “Loan
Document” under the Credit Agreement. Accordingly, it shall be an Event of Default under the Credit Agreement if (a) any representation or warranty made by an Obligor under or in connection with this Amendment shall have been untrue, false
or misleading in any material respect when made, or (b) an Obligor shall fail to perform or observe any term, covenant or agreement contained in this Amendment. 
 SECTION 6.5. Severability. Any provision of this Amendment which is prohibited or unenforceable in any jurisdiction shall, as to such provision and such jurisdiction, be ineffective to the extent
of such prohibition or unenforceability without invalidating the remaining provisions of this Amendment or affecting the validity or enforceability of such provision in any other jurisdiction. 

SECTION 6.6. No Waiver. Except as expressly set forth herein, this Amendment is not, and shall not be deemed to be, a waiver of or
consent to any Event of Default, event with which the giving of notice or lapse of time or both may result in an Event of Default, or other non-compliance now existing or hereafter arising under the Credit Agreement and the other Loan Documents.

 SECTION 6.7. Successors and Assigns. This Amendment shall be binding upon and inure to the benefit of the parties
hereto and their respective successors and assigns. 
 SECTION 6.8. Fees and Expenses. The Borrower shall pay on demand
all out-of-pocket costs and expenses of the Agents in connection with the preparation, execution and delivery of this Amendment, including without limitation, the reasonable fees and expenses and other reasonable charges of legal counsel to the
Agents. 

  
 4 








 SECTION 6.9. WAIVER OF JURY TRIAL. EACH PARTY HERETO HEREBY KNOWINGLY, VOLUNTARILY
AND INTENTIONALLY WAIVES TO THE FULLEST EXTENT PERMITTED BY LAW ANY RIGHTS THEY MAY HAVE TO A TRIAL BY JURY IN RESPECT OF ANY LITIGATION BASED HEREON, OR ARISING OUT OF, UNDER, OR IN CONNECTION WITH, EACH LOAN DOCUMENT, OR ANY COURSE OF CONDUCT,
COURSE OF DEALING, STATEMENTS (WHETHER ORAL OR WRITTEN) OR ACTIONS OF SUCH ADMINISTRATIVE AGENT, SUCH LENDER, SUCH ISSUER OR THE BORROWER IN CONNECTION THEREWITH. THE BORROWER ACKNOWLEDGES AND AGREES THAT IT HAS RECEIVED FULL AND SUFFICIENT
CONSIDERATION FOR THIS PROVISION (AND EACH OTHER PROVISION OF EACH OTHER LOAN DOCUMENT TO WHICH IT IS A PARTY) AND THAT THIS PROVISION IS A MATERIAL INDUCEMENT FOR EACH ADMINISTRATIVE AGENT, EACH LENDER AND EACH ISSUER ENTERING INTO THE LOAN
DOCUMENTS. EACH PARTY HERETO CERTIFIES THAT NO REPRESENTATIVE, AGENT OR ATTORNEY OF ANY OTHER PARTY HAS REPRESENTED, EXPRESSLY OR OTHERWISE, THAT SUCH OTHER PARTY WOULD NOT, IN THE EVENT OF LITIGATION, SEEK TO ENFORCE THE FOREGOING WAIVER.

 SECTION 6.10. Direction. The undersigned Lenders constituting Required Lenders, hereby authorize and direct the
Administrative Agent to execute this Amendment. 
 [Signature Pages Follow] 

  
 5 








 IN WITNESS WHEREOF, the parties hereto have executed and delivered this Sixth Amendment as
of the date first above written. 
  

			
	 MITEL NETWORKS CORPORATION

		
	 By:
	 	 
	 Name:
	 	
	 Title:
	 	


  

			
	 MITEL US HOLDINGS, INC.

		
	 By:
	 	 
	 Name:
	 	
	 Title:
	 	









  

			
	THE BANK OF NEW YORK MELLON, as Administrative Agent
		
	 By:
	 	 
	 Name:
	 	
	 Title:
	 	









  

			
	[LENDERS]
		
	 By:
	 	 
	 Name:
	 	
	 Title:
	 	









 ANNEX I 
 ACKNOWLEDGEMENT AND CONSENT 
 Form of Acknowledgment and Consent 

Reference is made to (i) the Second Lien Credit Agreement, dated as of August 16, 2007 (as amended or otherwise modified prior
to the date hereof, the “Existing Credit Agreement”) among Mitel US Holdings, Inc. (the “Borrower”), Mitel Networks Corporation (the “Parent”), the various financial institutions and other Persons
listed on the signature pages thereof (each a “Lender” and collectively, the “Lenders”), The Bank of New York Mellon (as successor in-interest to Morgan Stanley Senior Funding, Inc. (“MSSF”)), as
the Administrative Agent (in such capacity, the “Administrative Agent”), and The Bank of New York Mellon (as successor in-interest to Morgan Stanley & Co. Incorporated), as the Collateral Agent (in such capacity, the
“Collateral Agent”) and (ii) the Sixth Amendment to the Second Lien Credit Agreement, dated as of July 23, 2012 (the “Sixth Amendment”; the Existing Credit Agreement as subsequently amended or otherwise
modified, including pursuant to the Sixth Amendment, being herein referred to as the “Credit Agreement”). Unless otherwise defined herein, capitalized terms used herein have the same meanings as if used in the Credit Agreement.

 Each of the undersigned hereby agrees, certifies, represents and warrants as follows: 

(a) It is a Guarantor and a party to one or more Loan Documents. 

(b) It acknowledges and consents to the terms of, and the execution, delivery and performance by the Borrower of, the Sixth Amendment.

 (c) It hereby reaffirms, as of the Sixth Amendment Effective Date, that immediately after giving effect to the Sixth
Amendment, each of the following remain in full force and effect: (i) the covenants and agreements made by it and contained in each Loan Document to which it is a party, (ii) with respect to the Guaranty to which it is party, its guarantee
of payment of the Obligations pursuant to the terms of such Guaranty, and (iii) with respect to each Security Agreement, Mortgage or any other security or collateral document to which it is a party, its pledges and other grants of Liens in
respect of the Obligations pursuant to the terms of any such Loan Document. 
 (d) It hereby represents and warrants, as of the
Sixth Amendment Effective Date, that immediately after giving effect to the Sixth Amendment, each Loan Document to which it is a party continues to be a legal, valid and binding obligation of such Guarantor, enforceable against such party in
accordance with its terms subject to the effects of bankruptcy, insolvency, fraudulent conveyance, reorganization, moratorium and other similar laws relating to or affecting creditors’ rights generally, general equitable principles (whether
considered in a proceeding in equity or at law) and an implied covenant of good faith and fair dealing. 
 (e) It hereby
represents and warrants, as of the Sixth Amendment Effective Date, that both before and after giving effect to the Sixth Amendment, the representations and warranties set forth in each Loan Document to which it is a party are, in each case, true and
correct 







 
(i) in the case of representations and warranties not qualified by references to “materiality” or a Material Adverse Effect, in all material respects and (ii) otherwise, in
all respects, in each case with the same effect as if then made (unless stated to relate solely to an earlier date, in which case such representations and warranties shall be true and correct in all material respects as of such earlier date).

 [Signature Page Follows] 

  
 10 









 IN WITNESS WHEREOF, the parties hereto have executed and delivered this
Acknowledgement and Consent as of the 23rd day of July,
2012. 
  

			
	 INTER-TEL LAKE LIMITED

		
	 By:
	 	 
	 Name:
	 	
	 Title:
	 	


  

			
	 LAKE COMMUNICATIONS LIMITED

		
	 By:
	 	 
	 Name:
	 	
	 Title:
	 	



  
 11 









 IN WITNESS WHEREOF, the parties hereto have executed and delivered this Acknowledgement
and Consent as of the 23rd day of July, 2012. 

 

			
	MITEL NETSOLUTIONS, INC.
		
	 By:
	 	 
	 Name:
	 	
	 Title:
	 	


  

			
	 MITEL TECHNOLOGIES, INC.

		
	 By:
	 	 
	 Name:
	 	
	 Title:
	 	


  

			
	 MITEL LEASING, INC.

		
	 By:
	 	 
	 Name:
	 	
	 Title:
	 	









 IN WITNESS WHEREOF, the parties hereto have executed and delivered this
Acknowledgement and Consent as of the 23rd day of July,
2012. 
  

			
	 MITEL NETWORKS LIMITED

		
	 By:
	 	 
	 Name:
	 	
	 Title:
	 	


  

			
	 MITEL NETWORKS HOLDINGS LIMITED

		
	 By:
	 	 
	 Name:
	 	
	 Title:
	 	


  

			
	 INTER-TEL EUROPE LIMITED

		
	 By:
	 	 
	 Name:
	 	
	 Title:
	 	


  

			
	 SWAN SOLUTIONS LIMITED

		
	 By:
	 	 
	 Name:
	 	
	 Title: