OPINION OF THE COURT
Worldcom, Inc. appeals an order of the district court dismissing its complaint against Graphnet, Inc. Worldcom claims Graphnet owes it approximately 3.4 million dollars for telecommunications services and equipment. The district court held that since the contracts at issue in this controversy were not filed with the Federal Communications Commission (FCC), Worldcom is precluded frоm recovering anything for services or equipment provided to Graphnet. It therefore dismissed Worldcom’s complaint for failing to state a claim upon which relief can be granted. See Fed.R.Civ.P. 12(b)(6).
We have jurisdiction pursuant to 28 U.S.C. § 1291. Because the district court erred by concluding that Worldcom cannot recover as a matter of law, we REVERSE and REMAND for further proceedings.
Facts and Procedural History
Worldcom is a global telecommunications company providing a variety of diverse communications services in local, national and international markets. 1 Gra-phnet provides communications services and network products for customers in national and international markets.
On June 2, 2000, Worldcom commenced an action under the Federal Communica *653 tions Act, 47 U.S.C. § 151 et seq., against Graphnet for breach of contract and unjust enrichment in federal district court in the Eastern District of Virginia. The complaint was thereafter amended on August 28, 2000. Graphnet moved to transfer venue to the District of New Jersey. In its complaint, Worldcom claims that, in November 1991, it entered into a contract with Graphnet to provide two-way telex transmissions between their rеspective networks for telex traffic originating on each other’s networks. Graphnet has not paid for over three million dollars in telex services provided to it by Worldcom. It has also failed to pay for over three hundred thousand dollars for additional telecommunications equipment and services provided pursuant to another contract. Neither cоntract was filed with the FCC. The extent to which Graphnet disputes these allegations is unclear since Graphnet never filed a responsive pleading admitting or denying these allegations.
In October 2000, the district court in Virginia transferred the action to the District of New Jersey. Upon transfer, Gra-phnet moved to dismiss the complaint under Fed.R.Civ.P. 12(b). Graphnet argued that the district court lacked subject matter jurisdiction and that Worldcom failed to state a claim upon which relief could be granted. Graphnet also raised two affirmative defenses in its motion to dismiss, claiming that Worldcom’s actions were barred both by the applicable statute of limitations and by an earlier settlement agreement. In its reply brief in support of its motion to dismiss, Graphnet argued for thе first time that Worldcom’s claims were precluded by the so-called “filed rate doctrine.” Worldcom objected to the issue being raised for the first time in Gra-phnet’s reply brief and the district court properly allowed Worldcom to file a sur-reply brief to respond to Graphnet’s arguments.
The district court filed an opinion and order granting Graphnet’s motion to dismiss. The district court held that it had subject matter jurisdiction but concluded that Worldcom could not recover under any of the contracts at issue because they were never filed with the FCC. The district court did not reach any of the other issues raised by Graphnet in its motion to dismiss. Worldcom appealed.
Standard of Review
A motion to dismiss for failure to state a claim is reviewed
de novo.
We accept all well pleаded factual allegations as true and draw all reasonable inferences from such allegations in favor of the complainant.
Weston v. Pennsylvania,
Discussion
A. Jurisdiction
After Graphnet moved to dismiss the action for lack of subject matter jurisdiction, the district court held that it had jurisdiction over the controversy. While Graphnet does not dispute this finding, we are nevertheless obligated to raise and decide the issue
sua sponte. See MCI Telecomm,. Corp. v. Teleconcepts, Inc.
After examining the record, we have no doubt that the district court correctly found that it had diversity jurisdiction under 28 U.S.C. § 1332. The parties are completely diverse and the matter in controversy exceeds $75,000. We also note that there is federal question jurisdiction under 28 U.S.C. § 1331. Because this
*654
issue is related to the merits of this controversy, we will discuss it briefly. In
MCI Telecomm.,
we held that a contract action for unpaid services under the terms and conditions set forth in a filed tariff “arises under” the laws of the United States.
MCI Telecomm.,
B. Whether Worldcom Was Required to File the Contracts at Issue
The district court erred by concluding that Worldcom was required to file the contracts at issue. This complex issue could not be resolved at this stage in the litigation. The fact that there was no filed tariff does not itself violate the FCA. Under the FCA, a carrier may conduct its business either by tariff or by contract.
Bell Tel. Co. of Pa. v. FCC,
Pursuant to this authority, the FCC promulgated 47 C.F.R. § 43.51 which stated in relevant part, at the time of contracting:
(a) Any communications common carrier engaged in domestic or foreign communication, or both, which has not been classified as non-dominant pursuant to Section 61.12(е) of the Commission’s Rules, 47 C.F.R. § 61.12(e), is not treated under the regulatory forbearance policies established by the Commission, and which enters into a contract with another carrier must file with the Commission, within thirty (30) days of execution, a copy of each contract, agreement, concession, license, authorization or other arrangement to which it is a party ...
47 C.F.R. § 43.51(a) (1986) (availаble in 1 FCC Red 933). Worldcom argues that this language exempts non-dominant carriers from the filing requirement. Graphnet argues that this regulation merely lists a few examples of contracts that must be filed with the FCC. The FCC’s report and order regarding the amendment to 47 C.F.R. § 43.51 clearly supports World-corn’s position. In that order, the FCC specifically stated that because it no longer found such documеnts “useful,” it desired *655 to eliminate “the requirement that non-dominant carriers treated with forbearance file certain reports and contracts.” 1 FCC Red 933, ¶ 3 (1986). Furthermore, the language in the regulation would be superfluous were it not read to exempt non-dominant carriers from the filing requirement. We therefore agree with Worldcom that this regulation exempts “non-dominant” carriers frоm the filing requirement.
Worldcom specifically claims that it was classified as non-dominant and subject to regulatory forbearance "with respect to its domestic long-distance operations at the time the contract was signed. It therefore cannot be resolved at this point in the litigation whether the contracts at issue were required to be filed with the FCC. The court must first dеtermine whether Worldcom was, in fact, non-dominant in the national long distance field at the time and that the contracts at issue involved national long distance services.
Graphnet’s claim that 47 C.F.R. § 43.51 does not apply to this case because the relevant language of the regulation was not adopted until October 12, 2000, is simply false. This specific regulation has exempted non-dominant carriers since 1986. 1 FCC Red 933, ¶3 (1986). Not only would proper legal research have revealed this, but a declaration attached to World-corn’s sur-reply brief in district court quoted the 1986 language and clearly explained that the relevant language was adopted in 1986.
We conclude that the district court erred by finding that Worldcom was required to file the contracts аt issue. At this stage in the litigation, it cannot be determined that Worldcom was so required.
C. Whether Worldcom Could Recover Even if It Were Required to File
Graphnet argues that a violation of the filing requirement precludes Worldcom from recovering anything for services it rendered and equipment it delivered to Graphnet. The district court adopted Gra-phnet’s position holding that Wоrldcom could neither recover under the contract nor for the value of services rendered under a theory of unjust enrichment or quantum meruit Essentially, the district court held that if a party fails to file a contract under section 211, it will suffer a complete and total forfeiture. It erroneously relied on the inapposite “filed rate doctrine” in reaching this conclusion. We find nothing in either the FCA, the decisions of the Common Carrier Bureau or in the caselaw from the federal courts that would support such an extreme penalty for failing to file a contract. In fact, relevant authority is to the contrary. . .
As an initial matter, section 211 says nothing about
any
penalty for failing to file a contract. Other sections of the FCA, however, specifically lay out penalties for violation of their provisions.
See, e.g.,
47 U.S.C. §§ 202(c), 203(e) and'205(b). Yet the district court and Graphnet assume that the penalty for failing to file a contract under that section is a total forfeiture. If Congress intended the extraordinary penalty that Graphnet advocates, we would expect it to say so explicitly. “Forfeitures are not favored; they should be enforced only when within both letter and spirit of the law.”
United States v. One 1936 Model Ford V-8 De Luxe Coach,
Moreover, the filed rate doctrine is inap-posite. Section 203 of the FCA states that all common carriers “shall” file “schedules,” i.e. tariffs, “showing all charges” and “showing the classifications, practices, and regulations affecting such charges” with the FCC. 47 U.S.C. § 203(a). Deviation from these rates “is not permitted upоn any pretext.”
Id.
These provisions are modeled after similar provisions in the Interstate Commerce Act and embody “the century old ‘filed rate doctrine.’ ”
AT & T Co. v. Central Office Telephone, Inc.,
Here, however, no filed tariff appears to have covered the services provided pursuant to the contracts at issue. The doctrine is therefore inapposite because there is no filed tariff with which the contracts conflict.
2
See id.
at 229,
We find support for our conclusion in the decisions of the FCC and the Common Carrier Bureau. In New Valley Corp. v. Pacific Bell, 15 FCC Red 5128 (FCC 2000), the FCC addressed and squarely rejected an argument similar to the one made by Graphnet here. New Valley argued that it was under no obligation to pay for services rendered by Pacific Bell because there was no filed tariff covering the services it had received from Pacific Bell. Id. at ¶¶ 9-10. The FCC rejected this argument outright and upheld the finding of the Common Carrier Bureau that there was “no basis” in the filed rate doctrine “that a customer may be exempt from paying for services provided by a carrier if those services were not properly encompassed by the carrier’s tariff.” In the Matter of New Valley Corp. v. Pacific Bell, 8 FCC Red 8126, ¶ 8 (Com.Car.Bur.1993). See also In the Matter of America’s Choice, Inc. v. LCI Internat’l Telecom Corp., 11 FCC Red 22,494, ¶ 24 (Com.Car. Bur.1996) (“[A] purchaser of telecommunications services is not absolved from paying for services rendered solely because the services furnished were not properly tariffed.”).
If Worldcom was required to file the contracts at issue, its failure to do so would *657 not by itself preclude Worldcom from recovering under those contracts. If thе contracts are not enforceable for some other reason, Worldcom could still recover the value of its services under a theory of unjust enrichment. The district court erred by concluding otherwise. If Gra-phnet has been damaged by the failure to file the contracts at issue or by any other possible breaches of duty by Worldcom, it may file a counterclaim under 47 U.S.C. § 207 and seek appropriate relief from the district court.
D. Graphnet’s Remaining Claims in Its Motion to Dismiss
We decline Worldcom’s invitation to instruct the district court to rule against Graphnet on the remainder of the issues raised in its motion to dismiss. It is the district court’s duty to decide the outstanding issues in the first instance.
To the extent that Graphnet requests that we affirm the district court’s dismissal of this action with prejudice on alternative grоunds, we see nothing in the record that would give us a basis for doing so.
See Fairview Township v. EPA,
Graphnet’s motion to dismiss also raised two affirmative defenses. Graphnet asserted that Worldcom’s. action was barred both by an earlier settlement agreement and by the applicable statute of limitations. The facts necessary to estаblish an affirmative defense must generally come from matters outside of the complaint. Thus, with some exceptions, affirmative defenses should be raised in responsive pleadings, not in pre-answer motions brought under Rule 12(b).
See Robinson v. Johnson,
Conclusion
It cannot be determined at this stage in the litigation whether WorldCom was required to file the contracts. Moreover, even if the contracts at issue were required to be filed, this fact does not preclude WorldCom from any recovery. Worldcom may be able to prove facts in support of its claims which would entitle it to relief.
Conley,
We REVERSE the district court’s order dismissing Worldcom’s complaint. We REMAND for further proceedings consistent with this opinion.
Notes
. Worldcom filed for chapter 11 bankruptcy protection in the Southern District of New York, after this action commenced. Subsequent to its filing for bankruptcy protection, Worldcom informed the district court that it would continue pursuing this action as an attempt to recover funds owed to the debtor's estate.
. We assume for purposes of this appeal that there is no filed tariff because there is no indication to the contrary. Nothing in this decision should be reаd to preclude Graphnet from later offering evidence that some or all services provided to it were pursuant to a filed tariff. The contracts would be unenforceable to the extent they conflicted with a filed tariff.
. The fact that a complainant has had "three bites at the apple” is not itself a justification for dismissing a complaint with prejudice.
See
Fed.R.Civ.P. 15(a);
see also Eminence Capital, LLC v. Aspeon, Inc.,
