1 00:00:00,000 --> 00:00:02,380 We have no time to waste and a lot of ground to cover. 2 00:00:02,380 --> 00:00:04,680 This is Journey to the Center of the PSTN. 3 00:00:04,720 --> 00:00:08,000 I'm Enzo D'Amato and first a little bit about me. 4 00:00:08,200 --> 00:00:18,900 So I got into computing when I was very young, got a bunch of servers, turned them into this, then got one of these, one of these, and put my servers in a professional data center. 5 00:00:19,100 --> 00:00:22,360 After doing that, I started looking for the next big challenge. 6 00:00:22,360 --> 00:00:25,380 I mean, after getting an ASN, you got to find something new to do. 7 00:00:25,640 --> 00:00:28,160 And for me, the answer was telephones. 8 00:00:28,280 --> 00:00:37,020 I wanted to figure out how the phone network worked, how I could become a part of it, and some interesting and unique exploits that you could do from the inside of the phone network. 9 00:00:37,020 --> 00:00:38,740 And this talk will take you through all of that. 10 00:00:38,740 --> 00:00:40,780 How you can become your own mob L. 11 00:00:41,060 --> 00:00:43,640 This talk, however, is not legal advice. 12 00:00:43,640 --> 00:00:46,740 It is not a comprehensive course on voice network design. 13 00:00:46,840 --> 00:00:49,740 It is not a guide to the regulations in your state. 14 00:00:49,740 --> 00:00:51,940 We're going to be covering licensing later on. 15 00:00:51,960 --> 00:00:58,120 And just remember to always check everything with what the actual rules are for your state, not just the generic nationwide rules. 16 00:00:59,140 --> 00:01:01,320 And this is also not going to be PBX hacking. 17 00:01:01,320 --> 00:01:03,960 A lot of people have done that, and that's sort of overplayed. 18 00:01:03,960 --> 00:01:06,560 We're going to be doing everything from the carrier side. 19 00:01:06,820 --> 00:01:10,780 So with that in mind, what is the publicly switched telephone network? 20 00:01:10,780 --> 00:01:15,620 The PSTN is essentially any phone that allows you to call another phone using a standard U.S. 21 00:01:15,620 --> 00:01:16,400 phone number. 22 00:01:16,400 --> 00:01:27,140 Some people define the PSTN as only phones that are connected over the traditional TDM network rather than phones that are connected over VoIP. 23 00:01:27,420 --> 00:01:31,760 However, in my opinion, there's no difference as long as the number is accessible from a standard telephone. 24 00:01:31,880 --> 00:01:34,100 So we're just going to say the PSTN is everything. 25 00:01:34,620 --> 00:01:37,220 And with that in mind, what is a phone company? 26 00:01:37,380 --> 00:01:51,020 In this case, a phone company, and when I say I started a phone company and I run a phone company, I mean a real phone company that owns its own numbering resources in the same way an ISP that has its own ASN owns its own IPV4 resources. 27 00:01:51,020 --> 00:01:56,840 You're not just reselling, you're not just buying from a generic sub-trunk provider and slapping a PBX on top of it. 28 00:01:56,840 --> 00:01:58,580 You're actually the carrier of record. 29 00:01:58,580 --> 00:02:00,380 You're managing the routing for those entities. 30 00:02:00,480 --> 00:02:08,600 A real phone company also files its own FCC 499, so it files federal taxes for phone companies, and it's interconnected with other carriers. 31 00:02:08,600 --> 00:02:09,920 Again, manages its own routing. 32 00:02:09,920 --> 00:02:13,000 It doesn't just send everything through whatever its upstream is. 33 00:02:13,440 --> 00:02:15,360 And why should you care about this? 34 00:02:15,360 --> 00:02:20,360 Well, the answer is that we, you know, in the hacker community, used to love phones. 35 00:02:20,360 --> 00:02:22,040 This was how the community started. 36 00:02:22,040 --> 00:02:25,740 Defcon groups are still labeled by area code and freaking was everything. 37 00:02:25,740 --> 00:02:29,640 But then everyone sort of lost interest right as the network started to get interesting. 38 00:02:29,640 --> 00:02:38,660 Because in 1996, you, for the first time, were allowed to become a competitor to Ma Bell for local exchange service, which means you could become a legit freak. 39 00:02:38,660 --> 00:02:41,420 You didn't have to do it in secret anymore. 40 00:02:41,420 --> 00:02:48,080 And with that, the amount of stuff on the network and therefore the interesting bits of the network got way larger and way more interesting. 41 00:02:48,120 --> 00:02:54,140 So we're going to be looking at all of those new interesting bits of the network. 42 00:02:54,740 --> 00:03:01,480 Unfortunately, we do have to cover first a bit of history and a bit of terminology for those who are new to freaking and new to phones. 43 00:03:01,620 --> 00:03:03,420 In the beginning, there was AT&T. 44 00:03:03,420 --> 00:03:10,440 AT&T was an amalgam of one major long distance company and then a local Bell operating company in each region. 45 00:03:10,440 --> 00:03:16,160 The long distance company did long distance and the local companies provided dial tone and local calls. 46 00:03:16,160 --> 00:03:33,280 However, this would break apart in 1984, which created nine separate RBOCs or regional Bell operating companies in each region of the United States and one IXC or inter exchange carrier that was the AT&T long distance entity that was subject to competition for the first time. 47 00:03:33,440 --> 00:03:37,540 MCI, Sprint, the other long distance carriers, if you remember dial around codes. 48 00:03:38,540 --> 00:03:42,340 And this is sort of a graph of how things broke apart and then merged back together. 49 00:03:42,340 --> 00:03:51,600 As you can see, there are three major phone companies, all of which own their own long distance branch and all of which also own a significant chunk of the U.S. 50 00:03:51,600 --> 00:03:52,980 geography for phones. 51 00:03:52,980 --> 00:04:01,140 The only difference now is that Quest is now level three, but these companies are the RBOC successors, what happened after the RBOC got broken up. 52 00:04:01,320 --> 00:04:05,940 And an interesting note here is looking at what an actual local call is. 53 00:04:05,940 --> 00:04:10,860 Because when we say we have local exchange carriers and inter exchange carriers, what is what? 54 00:04:10,860 --> 00:04:17,780 And this up on the screen here is a map of all of the LATAs or local access and transport areas in the United States. 55 00:04:17,780 --> 00:04:24,700 Each LATA is the specific territory of one of the RBOCs and any calls within the LATA are handled by that RBOC. 56 00:04:24,700 --> 00:04:28,020 Any calls external to the LATA are handled by an IXC. 57 00:04:29,080 --> 00:04:35,860 And within a specific LATA, we also have a number of numbering plan areas or area codes and rate centers. 58 00:04:36,140 --> 00:04:39,580 With calls within a rate center are always truly local. 59 00:04:39,580 --> 00:04:44,920 So always truly local meaning that they are not billed per minute. 60 00:04:44,920 --> 00:04:48,000 They are either billed not at all or per call. 61 00:04:48,100 --> 00:04:56,960 And usually there will be an arbitrary boundary between that rate center and a couple of the other adjoining rate centers that will be included in that local calling scope. 62 00:04:56,960 --> 00:05:01,420 This is defined in the state tariff for the RBOC and it is highly arbitrary. 63 00:05:01,460 --> 00:05:09,780 Unlike the LATAs, there is no federal standard for how big a rate center is supposed to be, what it includes and sort of what the rules are for those. 64 00:05:09,780 --> 00:05:14,460 So you are going to have to check for your specific rate center to see what counts as local for it. 65 00:05:14,900 --> 00:05:18,360 And therefore, we can sort of put together a taxonomy. 66 00:05:18,360 --> 00:05:26,900 We've got local calls that are always handled by the local exchange carrier and therefore governed by the state public utilities commission as a local utility. 67 00:05:27,840 --> 00:05:30,280 And they are usually unmetered. 68 00:05:30,460 --> 00:05:37,100 And then we've got true long distance calls, which are governed by the FCC under the Braille system break up and handled by an IXC. 69 00:05:37,100 --> 00:05:40,280 However, then you've got a bunch of weird niche categories. 70 00:05:40,360 --> 00:05:49,520 So intra LATA and intrastate calls are what are known as local long distance or long distance calls handled by the local exchange carrier or the baby bell. 71 00:05:49,520 --> 00:06:07,620 And then you also have inter LATA and intrastate calls, which are counterintuitively more expensive than interstate long distance calls because they are governed by the state public utilities commission and therefore, since the state public utilities commission is a less strong regulator, 72 00:06:07,620 --> 00:06:11,020 those calls are more expensive because they can get away with charging more. 73 00:06:11,020 --> 00:06:25,960 And finally, you have a very weird category that usually only exists in the large flat plain states of interstate intra LATA, interstate inter LATA calls that are governed by the FCC, I think, and handled by the local exchange carrier. 74 00:06:25,960 --> 00:06:36,140 These basically only exist on paper, but this just goes to show you the weirdness and the state of the number of exceptions and oddities that exist in the phone network. 75 00:06:36,140 --> 00:06:45,200 You know, when you have a bunch of categories that are created by successive regulations being layered on top of each other, you get these sort of weird categories. 76 00:06:45,200 --> 00:06:49,240 And this only is going to expand and create a bunch of interesting opportunities for us later. 77 00:06:49,500 --> 00:06:55,320 However, the real big change wouldn't come with the bell break up, but rather with the telecom act of 1996. 78 00:06:55,440 --> 00:07:03,740 This enabled competition for the local exchange carriers, these new entities known as CLECs, or any local exchange carriers certified after 1996. 79 00:07:03,820 --> 00:07:17,020 It normalized wireless regulation and created the modern cell phone industry by allowing cell carriers to be treated as co-equal carriers to the LECs instead of just as basically almost as resellers that subtended off of them. 80 00:07:17,020 --> 00:07:37,800 And it also critically required the incumbent LECs, meaning the R box, to interconnect their networks at any technically feasible point, offer services for resale, and to do all of this on nondiscriminatory terms expressed in a publicly filed interconnection agreement. 81 00:07:37,800 --> 00:07:42,660 These responsibilities are known collectively as 251, 252 interconnection. 82 00:07:42,660 --> 00:07:51,180 Together with the provision allowing for CLECs, that has been what has allowed the telephone network to really transform itself over the past couple of years. 83 00:07:51,180 --> 00:07:58,420 It's how we got VoIP, it's how we got new carriers, and it's how I was able to become a phone company at the age of 19. 84 00:07:58,800 --> 00:08:05,960 Later on, we would see a new category of sort of a half CLEC certification created for VoIP only carriers. 85 00:08:05,960 --> 00:08:20,300 This, known as an IPES, allowed those VoIP carriers to get numbering resources issued directly to them, but still required them to go through an IPES entity, sorry, go through a CLEC entity as their sort of parent company. 86 00:08:20,760 --> 00:08:25,500 The ILEC entity would manage the routing on their behalf. 87 00:08:25,560 --> 00:08:28,340 So sort of a half CLEC that doesn't have interconnection. 88 00:08:28,340 --> 00:08:33,000 So now let's get into how the PSTN actually works and how those calls are going to flow through the network. 89 00:08:33,100 --> 00:08:38,480 So here we can see an example of a modern LATA ecosystem as it exists currently. 90 00:08:38,480 --> 00:08:41,660 Each different company is represented by a different colored box. 91 00:08:41,660 --> 00:08:55,200 And as you can see, a call from an ILEC to a CLEC is going to go through, obviously, the ILEC's network, but it's also going to go through a very special box that exists in every LATA, the ILEC's feature group D tandem. 92 00:08:55,200 --> 00:09:00,000 The feature group D tandem acts almost like the default route for everything within that LATA. 93 00:09:00,000 --> 00:09:15,320 If two carriers don't have a connection to each other, they're supposed to always have an interconnection with that ILEC's feature group D tandem as part of their interconnection agreement with that ILEC, which means that those calls can flow through that feature group D tandem to sort of reach where they need to go. 94 00:09:15,580 --> 00:09:19,420 Either on the ILEC or on another carrier that subtends that ILEC. 95 00:09:19,420 --> 00:09:23,660 They can use that sort of as an almost like a tandem that they can both reach. 96 00:09:24,500 --> 00:09:33,420 If a call is long distance, however, it's going to get piped out over the long distance network and then all the way back into the feature group D tandem in the new LATA. 97 00:09:33,420 --> 00:09:36,000 As an example, this is an ILEC to ILEC call. 98 00:09:36,020 --> 00:09:43,040 Critically, the ILECs, because of the regulations, are not allowed to carry their own long distance traffic between LATAs. 99 00:09:43,040 --> 00:09:45,480 They have to send that traffic over an IXC. 100 00:09:45,480 --> 00:09:49,340 However, CLECs are not subject to the same restriction. 101 00:09:49,460 --> 00:09:54,280 So in this example, two CLECs in different LATAs are able to send traffic directly to each other. 102 00:09:54,280 --> 00:09:56,940 In this case, over an IP trunk that they have. 103 00:09:56,940 --> 00:09:59,100 So CLECs can actually use IP trunks. 104 00:09:59,100 --> 00:10:02,280 They can use VOIP to send calls between each other. 105 00:10:02,280 --> 00:10:11,100 So the internal routings on CLEC to CLEC or CLEC to mobile calls can actually be IP in some cases. 106 00:10:11,360 --> 00:10:21,140 Finally, you also have an example of a CLEC that connects directly to the inter-exchange carriers, receiving calls from them directly instead of sending them over the feature group D tandem. 107 00:10:21,140 --> 00:10:27,540 In this case, the CLEC basically acts as its own feature group D or acts as tandem for the numbers that it has. 108 00:10:27,720 --> 00:10:30,980 Hanging off of an IXC is one directly. 109 00:10:31,500 --> 00:10:39,560 This allows us to put together some general rules for routing with the caveat that voice routing is very ad hoc. 110 00:10:39,560 --> 00:10:48,460 It's not particularly well defined like BGP routing is where like a BGP router will always be able to use BGP to pick the best route to a given point. 111 00:10:48,720 --> 00:10:56,880 An ILEC will not be able to do this because an ILEC routing will not be able to see the entire picture of the network at one time. 112 00:10:56,880 --> 00:10:58,900 It won't be able to calculate a best path. 113 00:10:58,900 --> 00:11:04,440 So it has to go through basically a series of rules defined by the regulations and the information that it does have. 114 00:11:04,440 --> 00:11:06,180 These rules generally are as follows. 115 00:11:06,180 --> 00:11:11,240 If two carriers have a private IP interconnection between each other, that will be used by default. 116 00:11:11,240 --> 00:11:15,420 It's much cheaper and everyone prefers to keep things on IP as much as possible. 117 00:11:15,460 --> 00:11:19,720 If the call is local, however, it will be sent over the local interconnection. 118 00:11:19,720 --> 00:11:23,020 Local calls have to go over the local interconnection. 119 00:11:23,020 --> 00:11:25,420 If you send them over a long distance, they won't route properly. 120 00:11:25,420 --> 00:11:40,060 However, if a call is intra ladder, it can either go over the future group D tandem for that ladder or it can go through an IXC who they can then be responsible for basically delivering it back onto the future group D tandem through their internal network. 121 00:11:40,120 --> 00:11:43,260 However, if a call is inter ladder, it has to go over an IXC. 122 00:11:43,260 --> 00:11:49,280 It can't get sent through the future group D tandem unless that future group D tandem is basically being used just as a bridge to reach an IXC. 123 00:11:49,860 --> 00:11:51,740 We can now look at phone numbers. 124 00:11:52,680 --> 00:11:56,640 Everyone's familiar with the basic parts of a phone number, but there's a bit more to it. 125 00:11:56,860 --> 00:12:01,020 So obviously an area code, one or multiple will be assigned to a single numbering plan area. 126 00:12:01,020 --> 00:12:03,840 And when there are multiple assigned, that's called an overlay complex. 127 00:12:03,900 --> 00:12:13,020 However, we also have the next three digits, the CO code, are the most important for actually routing the call within the numbering plan area to the carrier that it's going to. 128 00:12:13,020 --> 00:12:19,500 So this was the original basic unit of phone number routing from the original days of direct dialing. 129 00:12:19,500 --> 00:12:25,320 And these were originally assigned to a single end office, like a single building back when it was the Bell system. 130 00:12:25,320 --> 00:12:29,040 After the break up, these started just being assigned to a single entity. 131 00:12:29,060 --> 00:12:32,540 So it's like a single, you know, licensed local exchange carrier. 132 00:12:33,180 --> 00:12:35,860 However, this, even this was too inefficient. 133 00:12:35,980 --> 00:12:50,900 They were noticing that especially in metropolitan, that especially with the rise of smaller CLECs, you'd have CLECs that were getting a CO code in every rate center and only using about a thousand of those numbers, meaning that all of those blocks, potentially hundreds of thousands if not millions of phone numbers, 134 00:12:50,900 --> 00:12:53,220 would only be ten percent utilized or less. 135 00:12:53,220 --> 00:12:58,520 This was extremely inefficient and therefore they created the number block pooling system. 136 00:12:58,980 --> 00:13:12,260 Instead of assigning people CO codes directly, instead a CO code would be broken up into its constituent thousands blocks and these would be assigned to carriers and we would route on these thousands blocks instead of routing on the full CO code. 137 00:13:12,300 --> 00:13:18,040 This made, allowed us to make much more efficient uses of our routing, but it wasn't adopted everywhere. 138 00:13:18,200 --> 00:13:31,280 It was required in major urban and metropolitan areas by the FCC, however in more rural areas it's optional and again you'll have to check with your state public utilities commission to see what rate centers in your area are pooled. 139 00:13:32,180 --> 00:13:36,900 Most of you will know that if you change carriers, you'll be able to take your number with you. 140 00:13:36,900 --> 00:13:38,940 However, you may not know how this is implemented. 141 00:13:38,940 --> 00:13:45,700 The routing that I just displayed is fairly static, you know, it's based on block, so if you move your number, how is that number going to be able to move with you? 142 00:13:45,700 --> 00:13:48,840 The answer to this is number portability, uh, or porting. 143 00:13:49,120 --> 00:13:57,780 The porting allows you to take the number with you by adding a routing overlay, a query layer on top of that existing base, you know, routing structure. 144 00:13:57,780 --> 00:14:03,080 And the way this works is that each number gets an LRN in addition to its, you know, normal appearance. 145 00:14:03,220 --> 00:14:09,280 And when that number is called, we hit a database for that outgoing call and we get back the LRN. 146 00:14:09,280 --> 00:14:17,660 We are guaranteed to know that the LRN will be a phone number, um, will be a phone number in a CO code owned by the destination carrier. 147 00:14:17,680 --> 00:14:33,280 So the destination carrier's CO code will point to that switch and then we can route to that CO code and we know that routing to the LRN's CO code rather than the original dialed number will get that call to the switch where it actually lives rather than the one, 148 00:14:33,280 --> 00:14:35,260 the carrier that initially owned that number. 149 00:14:35,620 --> 00:14:39,300 And then we can put all this together and actually figure out how routes are built. 150 00:14:39,300 --> 00:14:43,380 So an AOCN loads routes into BIRDS. 151 00:14:43,520 --> 00:14:46,740 BIRDS then feeds a database called the LURG. 152 00:14:46,740 --> 00:14:52,440 The LURG is a pile of CSV files, like several gigabytes worth of CSV files. 153 00:14:52,440 --> 00:14:56,700 And those CSV files form the routing information for the entire network. 154 00:14:57,100 --> 00:15:02,300 These CSV files are sent weekly to individual, to all of the carriers that are subscribed to the LURG. 155 00:15:02,300 --> 00:15:09,860 And then they use these CSV files to manually build routing entries on their switches, sometimes using scripts, especially if they're a larger carrier. 156 00:15:10,260 --> 00:15:14,960 And within these, the LURG entries, there will be a bunch of codes known as Silly Codes. 157 00:15:14,960 --> 00:15:19,120 The Silly Codes identify each individual switch or routing entity on the network. 158 00:15:19,120 --> 00:15:33,780 And then these codes are then manually associated to either SS7 point codes, in the case of SS7 signaling, which is the most common, especially for legacy networks, or sometimes for VoIP signaling in the case that the two carriers have implemented VoIP between each other. 159 00:15:34,580 --> 00:15:45,680 This is a very manual process, obviously, and it takes, on average, 30 to 60 days for the network to update with a new full CO code, and about 14 days for a new thousands block. 160 00:15:45,760 --> 00:15:47,960 It's slow, very, very slow. 161 00:15:48,080 --> 00:15:51,740 And the reason for this is, again, it's a very manual process. 162 00:15:51,740 --> 00:15:55,740 Those switches do not have the capability to communicate routing information to each other. 163 00:15:55,740 --> 00:15:58,240 So we have to maintain the routing information centrally. 164 00:15:59,200 --> 00:16:05,040 All of these different parts of the network are governed by separate regulatory bodies that you're going to have to interface with. 165 00:16:05,040 --> 00:16:09,220 So phone numbers are governed by NANPA, or the North American Numbering Plan Authority. 166 00:16:09,400 --> 00:16:12,480 Portability and number porting is governed by NPAC. 167 00:16:12,920 --> 00:16:21,220 Operating company numbers, or OCNs, which identify individual telcos, and individual telcos in a state, are governed by NECA. 168 00:16:21,220 --> 00:16:36,760 And then silly codes, the SS7 point codes themselves, the LURG, and IAC codes, and basically any other code that you'll need, is controlled by a company called iConnective, which is basically allowed by the FCC to have a monopoly on routing information for the entire network. 169 00:16:37,700 --> 00:16:41,280 Billing is another interesting topic. 170 00:16:41,460 --> 00:16:43,980 In almost all cases, the calling party pays. 171 00:16:43,980 --> 00:16:55,260 It's not billed 95.5 like internet traffic is, it's strictly billed per minute based on the calling party paying, with each call counting as an additional billing counter. 172 00:16:55,540 --> 00:17:06,020 The calling customer pays the calling local exchange carrier, the calling local exchange carrier pays the IXC that they're using to route that call, the calling IXC pays the receiving IXC. 173 00:17:06,020 --> 00:17:09,520 The money flows along the call path from entity to entity. 174 00:17:09,520 --> 00:17:11,740 It's not end to end, it's hop by hop. 175 00:17:11,740 --> 00:17:19,440 And there are also a few special cases, the most prominent is 800 numbers, where the money basically flows in reverse. 176 00:17:19,440 --> 00:17:30,460 There are entities known as RESP orgs, or responsible organizations, which handle the toll free routing, and they handle billing for that routing, and the billing passes from the called party back to the caller. 177 00:17:30,620 --> 00:17:36,860 900 numbers and 500 numbers used to be special cases, because they were premium numbers that were up charged. 178 00:17:36,860 --> 00:17:40,140 However, these numbers don't exist anymore. 179 00:17:40,160 --> 00:17:44,760 The software to bill them no longer exists, so they're not routable on the current phone network. 180 00:17:44,760 --> 00:17:54,080 Local calls are almost always unmetered, or if they are metered, they are paid per call, not paid per minute. 181 00:17:55,140 --> 00:18:03,180 So now, with all of that information, all of that details about the phone network, let's actually get to doing something interesting and useful with it. 182 00:18:03,180 --> 00:18:05,360 We'll start with access stimulation. 183 00:18:05,420 --> 00:18:13,260 So if you were listening during the segment where I was talking about phone number billing, you may have noticed that the calling party always pays. 184 00:18:13,360 --> 00:18:20,260 And since most people nowadays have an unlimited minutes plan on their phone, can you make money off of this? 185 00:18:20,260 --> 00:18:23,440 You know, having people just call you and collecting the money? 186 00:18:23,440 --> 00:18:24,960 And the answer is yes. 187 00:18:25,080 --> 00:18:33,860 Access stimulation has been one of the longest running legalized abuses of the process since the very early days of competitive local exchange carriers. 188 00:18:33,860 --> 00:18:36,300 And the process goes about like this. 189 00:18:36,300 --> 00:18:48,380 We have, you know, so all we have to do in order for this to work is to get people to call us. 190 00:18:48,380 --> 00:18:49,460 It is that simple. 191 00:18:49,460 --> 00:18:52,900 Because the money will always flow along the calling path and our carrier will pay us. 192 00:18:52,900 --> 00:18:55,120 So we just have to generate a volume of calls. 193 00:18:55,120 --> 00:19:02,600 So imagine it's 1996 and you need people to call you and sit on the line with you for a long period of time so you can make money. 194 00:19:02,660 --> 00:19:03,800 How are you going to do this? 195 00:19:04,000 --> 00:19:05,200 And the answer is dial up. 196 00:19:05,860 --> 00:19:09,760 Dial up in 96 was the golden ticket for this. 197 00:19:09,760 --> 00:19:17,040 There were many, many, many, many companies. 198 00:19:17,040 --> 00:19:25,880 Dial up calls were 100% inbound and people sat on the line for hours so they could just rack up the billing. 199 00:19:25,880 --> 00:19:30,180 They would sit on the line and the dial up ISP would, you know, become a SELEC. 200 00:19:30,180 --> 00:19:35,340 Since they weren't serving real customers, they didn't have to run lines, you know, they didn't have to get a fancy switch. 201 00:19:35,340 --> 00:19:37,060 They had almost no costs. 202 00:19:37,060 --> 00:19:45,640 They just had to connect their dial up modems into the interconnection trunks that they were getting from the RBOC and they could collect those inbound minutes and profit off of this. 203 00:19:45,660 --> 00:19:50,420 However, the FCC would kill it in 2001 with the ISP remand order. 204 00:19:50,440 --> 00:20:02,100 They would rule, and I still do not understand where they got this from, but they ruled that internet traffic is considered interstate because it's going to the internet rather than another person at a fixed location. 205 00:20:02,100 --> 00:20:13,380 I still don't know how the FCC came up with this ruling, but they basically did it so that they could seize control over the reciprocal compensation for those ISP calls which had previously been a state issue. 206 00:20:13,480 --> 00:20:17,660 And then the FCC basically said, since this is interstate, we can set the rates for it. 207 00:20:17,660 --> 00:20:19,280 We say you get nothing. 208 00:20:19,320 --> 00:20:20,300 You know, this doesn't count. 209 00:20:20,300 --> 00:20:21,380 ISP calls don't count. 210 00:20:21,380 --> 00:20:23,160 You can't get compensation for them. 211 00:20:23,160 --> 00:20:28,900 Later on, much later on, they would kill local compensation for local calls altogether. 212 00:20:29,040 --> 00:20:32,240 However, there was still another plan. 213 00:20:32,240 --> 00:20:33,900 All we have to do is get people to call us. 214 00:20:33,900 --> 00:20:36,100 So if dial up isn't working, what are we going to do now? 215 00:20:36,580 --> 00:20:38,480 We're going to give people free stuff. 216 00:20:39,200 --> 00:20:44,500 Freeconferencecall.com is one of the original people who pioneered this space, but there were a lot more. 217 00:20:44,500 --> 00:20:53,240 Basically, any music, chat line, conference site, anything that people would call into and use for long periods of time. 218 00:20:53,240 --> 00:21:07,060 And critically, during the period between 96 and when dial up died, when the dial up loophole died, people got unlimited long distance packages where they could talk long distance for a long time or almost unlimited amount of time. 219 00:21:07,060 --> 00:21:14,320 We combined the free stuff with locating our numbers in the middle of nowhere so we can harvest higher per minute rates from them. 220 00:21:14,320 --> 00:21:19,200 We combine that with our unlimited plans and we get a pile of money. 221 00:21:19,200 --> 00:21:23,060 We're talking millions upon millions of dollars back when this was running out of its head. 222 00:21:23,060 --> 00:21:25,980 And we make AT&T extremely mad. 223 00:21:26,320 --> 00:21:34,420 This likely cost AT&T more in a month than all of the freaks of the 60s and 70s did the entire time they were operating. 224 00:21:34,420 --> 00:21:36,860 The scale of this was really astronomical. 225 00:21:36,960 --> 00:21:41,740 And it hit its peak during COVID, back when everyone was calling into conference call sites. 226 00:21:41,740 --> 00:21:43,960 However, this too would die. 227 00:21:45,240 --> 00:22:01,240 In 2011, the FCC finally closed the loophole and said that if you're doing a revenue share agreement with the person who's driving your inbound traffic and you either have an over 3 to 1 in out ratio or 100% year on year increase in inbound calls, you don't get access revenue. 228 00:22:01,500 --> 00:22:04,220 Unfortunately, there was still another loophole. 229 00:22:04,660 --> 00:22:15,940 In certain rural areas, there were specialized collector IXCs that basically pooled access to a bunch of rural co-ops and collected that long distance traffic and they could bill for that. 230 00:22:15,940 --> 00:22:22,640 So we would put our access stimulation behind like 20 of these that still existed and have them bill it. 231 00:22:22,760 --> 00:22:24,080 Because that was a loophole . 232 00:22:24,080 --> 00:22:25,940 The FCC would close that loophole. 233 00:22:26,100 --> 00:22:27,800 We would try again. 234 00:22:27,800 --> 00:22:35,740 And we would add an IPES company between the LEC and the high volume to end point and now the LEC would bill the access minutes. 235 00:22:35,740 --> 00:22:37,000 And this was also a loophole. 236 00:22:37,000 --> 00:22:38,920 They only closed this one last year. 237 00:22:39,260 --> 00:22:41,720 And, of course, people have moved on to something else. 238 00:22:41,820 --> 00:22:46,980 This, like I said, it's the longest running basically free money glitch in the phone network. 239 00:22:46,980 --> 00:22:48,440 People have been using this for years. 240 00:22:48,440 --> 00:22:54,920 I'm sure people still continue to use it until they get rid of per minute charging for long distance calls. 241 00:22:55,860 --> 00:22:58,200 And you may be wondering why do you care about this? 242 00:22:58,200 --> 00:23:06,160 And if you looked at your PBX logs, if you have SIP exposed, you may have noticed that there are a lot of people attempting to brute force your box. 243 00:23:06,260 --> 00:23:06,960 Why? 244 00:23:07,040 --> 00:23:09,740 Why are people trying to brute force PBXs on the internet? 245 00:23:09,740 --> 00:23:11,640 How is that a profitable activity for them? 246 00:23:11,680 --> 00:23:19,380 And the answer is that this same principle that works for domestic calls also works for international calls where the rates aren't, you know, half a cent per minute. 247 00:23:19,380 --> 00:23:20,760 They're 50 cents a minute. 248 00:23:21,000 --> 00:23:34,060 And if someone is actually able to get in your PBX and you've got international dialing enabled, or hell, even if you've got domestic dialing enabled, they will run up a tremendous bill on your PBX until you figure out that you've been hacked and you close the loophole. 249 00:23:34,320 --> 00:23:41,180 It is a pretty big money attack and it's the reason why everyone is always trying to brute force into your SIP servers. 250 00:23:42,660 --> 00:23:44,560 Now let's get on to another attack. 251 00:23:44,560 --> 00:23:46,360 Something more traditionally freaky. 252 00:23:46,360 --> 00:23:51,180 Let's say we want to make robocalls and we don't want people to be able to identify that we're making them. 253 00:23:54,980 --> 00:24:02,040 In the FCC quite recently added a new SIP header that mandated that all telecoms use it. 254 00:24:02,040 --> 00:24:04,380 This SIP header was the stir shaken header. 255 00:24:04,380 --> 00:24:11,380 The stir shaken header added a cryptographic signature to every call that contained certain critical details about the call and an attestation level. 256 00:24:11,380 --> 00:24:14,960 A, for a fully verified caller ID where you assign the number to the user. 257 00:24:15,020 --> 00:24:21,040 B, for a verified customer where you knew the customer but you didn't know that the number they were using was legit. 258 00:24:21,040 --> 00:24:24,100 And C, if you were just a gateway passing on a call to someone else. 259 00:24:24,300 --> 00:24:28,180 Passing on a call you got from another carrier on to someone else with no real information. 260 00:24:29,360 --> 00:24:34,240 But you may have noticed that if you have a phone you've still been getting robocalls. 261 00:24:35,080 --> 00:24:39,320 This hasn't fixed anything and the robocalls you're getting are still spoofed. 262 00:24:39,320 --> 00:24:40,640 This has fixed nothing. 263 00:24:40,880 --> 00:24:43,800 So how are the robocalls getting away from this? 264 00:24:43,800 --> 00:24:48,560 If you think about it, if you have a stir shaken certificate for them the police should just be able to roll up and arrest you. 265 00:24:48,560 --> 00:24:49,700 But this hasn't worked. 266 00:24:49,700 --> 00:24:53,100 And the answer to this is something that I'm calling the TDM shuffle. 267 00:24:53,580 --> 00:25:01,300 In a normal telephone arrangement everyone will generally prefer IP trunks because they're faster, they're easier, they're cheaper. 268 00:25:01,300 --> 00:25:12,020 And most major carriers, especially people doing real volume and the major cell companies have IP trunks between each other because they want to take advantage of those discounts. 269 00:25:12,020 --> 00:25:20,940 However, if we choose a provider that's, let's say, spammer friendly, that provider can choose where and how they're going to send out those calls. 270 00:25:20,940 --> 00:25:27,780 So they can choose to force those calls over the old school TDM network instead of the newer IP trunks. 271 00:25:27,840 --> 00:25:34,480 This means that those calls will lose their stir shaken header once they go over TDM because TDM doesn't support stir shaken. 272 00:25:34,520 --> 00:25:44,460 So that header gets stripped out and then eventually once the call reenters the IP network a gateway node is going to see that it doesn't have a signature on it and is going to slap a C attestation on it. 273 00:25:44,460 --> 00:25:49,500 If you're really lucky you'll hit a misconfigured PSTN gateway that puts A attestation on everything. 274 00:25:49,540 --> 00:26:02,140 But either way you've now gotten your spoofed caller ID to have a legitimate stir shaken certificate on it and the original destination of that call has been completely muggled and no one knows where it came from. 275 00:26:02,980 --> 00:26:06,900 There are a bunch of approaches to this and ways that this can happen. 276 00:26:06,900 --> 00:26:10,240 The spammer can directly run TDM trunks into their boxes. 277 00:26:10,300 --> 00:26:14,680 More likely the spammer will use a carrier that they know will support TDM. 278 00:26:14,680 --> 00:26:26,460 Sometimes the spammer can try and force the routings to force a call over a legacy pathway by calling between two providers that they know don't have trunks, that they know don't have IP trunks even if both of the providers are legitimate. 279 00:26:26,940 --> 00:26:29,340 This can sometimes just be coincidental. 280 00:26:29,340 --> 00:26:35,380 A lot of phone companies especially in rural areas or just for whatever reason are still TDM only. 281 00:26:35,380 --> 00:26:40,880 A large part of the network, I'd say about 40 percent of calls today are still hitting TDM at some point in the call chain. 282 00:26:41,180 --> 00:26:53,640 So, you know, a lot of times that this stir shaken header gets popped out and with the weird routings, this can be very hard to diagnose and much harder to actually definitively prove to be malicious. 283 00:26:54,940 --> 00:26:58,020 There is a standard for TDM shaken. 284 00:26:58,140 --> 00:27:02,740 However, there is no yet, there is no date yet on a forced implementation. 285 00:27:02,740 --> 00:27:05,180 There is no agreement on how the implementation would work. 286 00:27:05,180 --> 00:27:07,380 The FCC is working on it but they are not done yet. 287 00:27:07,380 --> 00:27:17,140 And I'm sure the fact that the robocall carriers are harvesting millions of dollars in revenue for carrying these robocalls has absolutely nothing to do with the fact that we haven't gotten a fix for this yet. 288 00:27:18,180 --> 00:27:22,800 Now, let's say we want to do something a bit less technical. 289 00:27:22,800 --> 00:27:27,320 We're not a carrier, we're just a jerk and we want to blast people with spam. 290 00:27:28,180 --> 00:27:32,800 We can harvest a technique that will be familiar to anyone from the old days of email spamming. 291 00:27:32,800 --> 00:27:34,620 I call it snowshoe. 292 00:27:34,620 --> 00:27:51,400 But essentially what we do is we get 20 shell companies and each shell company signs up with 20 mom and pop or super tiny VoIP providers that aren't doing good KYC, that aren't doing proper attestation, they're not doing caller ID filtering on their outbound calls. 293 00:27:51,400 --> 00:27:57,460 And all of these companies are going to get like 5% of the overall spam volume. 294 00:27:57,460 --> 00:28:03,800 So the spammer might be having a tremendous spam pipe cranking out tens of thousands of calls a day. 295 00:28:03,800 --> 00:28:07,840 Remember the car warranty robocall thing was one guy. 296 00:28:07,840 --> 00:28:09,920 That was one spam operation. 297 00:28:10,240 --> 00:28:18,240 That was one guy and he had all of these accounts with a bunch of other people and he was blasting these calls out and basically spreading them out. 298 00:28:18,240 --> 00:28:27,500 So even if any one of these entities would get zapped by the government, there would be no way to really get the root guy because it was all shell companies. 299 00:28:28,340 --> 00:28:32,720 This was combined with the fact that a lot of these small carriers aren't doing KYC properly. 300 00:28:32,720 --> 00:28:34,380 They don't know who their end customer is. 301 00:28:34,380 --> 00:28:39,620 They're not stopping that customer from sending out stupid amounts of traffic for their profile size. 302 00:28:39,620 --> 00:28:46,700 They'd let a residential customer have 100,000 lines active and that can become a real powerful attack vector. 303 00:28:46,700 --> 00:28:50,460 This is made even better by the fact that numbers are so cheap now. 304 00:28:50,460 --> 00:28:55,740 If numbers are one cent each, we're going to buy one per day per company and just switch them out. 305 00:28:55,800 --> 00:29:01,920 And major, like the state attorney's general robocall report has noted that this is one of the big issues they're seeing. 306 00:29:01,920 --> 00:29:08,420 That caller ID filtering has become almost useless because spammers will never use the same caller ID for more than a couple of calls. 307 00:29:09,320 --> 00:29:27,260 And we can, of course, mix and match both of these techniques for maximum damage, spreading calls across piles of tiny middle of nowhere in the country, TDM carriers, all of which aren't doing KYC, all of which are muddling the call flow and all of which can never be tracked back to us, 308 00:29:27,260 --> 00:29:37,280 especially when you consider that a lot of these carriers have three or more resellers and other entities in the chain between customer and the actual entity in the LERP responsible for routing. 309 00:29:37,280 --> 00:29:45,460 And since only inbound carriers require licenses, none of these high volume VoIP carriers are regulated, so you can't take away their license. 310 00:29:45,460 --> 00:29:46,960 You can't kick them off the network. 311 00:29:46,960 --> 00:29:50,700 You've got a recipe for infinite robocalls with almost no mitigation. 312 00:29:51,140 --> 00:29:55,000 And this is just scratching the surface of carrier side VoIP abuse. 313 00:29:55,000 --> 00:29:58,300 Again, once you get your certification, the doors are open to you. 314 00:29:58,300 --> 00:30:01,100 You can do everything that you want pretty much legally. 315 00:30:01,100 --> 00:30:03,560 You've got local number portability abuse. 316 00:30:03,680 --> 00:30:05,660 You don't need a pin for wireline ports. 317 00:30:05,660 --> 00:30:08,100 You can just make a fake LOA and steal someone's number. 318 00:30:08,460 --> 00:30:11,920 SS7 devices haven't been pen tested in, I think, ever. 319 00:30:12,000 --> 00:30:20,340 And that's not even considering just plain freaking, sending out calls with no ANI, sending out calls with a charge number set to someone you don't like because they get billed for it. 320 00:30:20,760 --> 00:30:27,000 Sending out, using your access as an AOCN to hijack number blocks and numbering resources. 321 00:30:28,400 --> 00:30:39,880 Vulnerabilities on 20‑plus‑year‑old hardware like 5Es and DMS100s that have never been pen tested but have a bunch of interfaces that may not be accessible to the public but are certainly accessible to other telcos. 322 00:30:39,880 --> 00:30:43,260 You're basically only limited by your time and the imagination you're willing to put into this. 323 00:30:43,260 --> 00:30:44,860 It's like a new Internet to play with. 324 00:30:44,860 --> 00:30:45,760 It's wonderful. 325 00:30:45,940 --> 00:30:54,180 Now, finally, hopefully you're all interested enough that we can discuss CLEC formation, the actual process to become a phone company. 326 00:30:54,700 --> 00:30:55,700 So let's do this. 327 00:30:55,700 --> 00:30:56,700 And let's do this quickly. 328 00:30:56,900 --> 00:31:00,900 So, you know, first thing you're going to do is you're going to need to get certification. 329 00:31:01,100 --> 00:31:04,800 So then establish interconnection with another phone company so your calls will route. 330 00:31:04,820 --> 00:31:07,560 Set up a switch, get your numbers and then handle taxes. 331 00:31:08,400 --> 00:31:10,760 So there are a bunch of different types of certification. 332 00:31:10,840 --> 00:31:12,080 I'll let you read this slide later. 333 00:31:12,080 --> 00:31:12,940 It's on the server. 334 00:31:13,000 --> 00:31:17,560 But the key ones you need to understand, the ILEX are existing phone companies before 96. 335 00:31:17,720 --> 00:31:18,540 There are no new ones. 336 00:31:18,540 --> 00:31:20,420 You either have to buy one or merge into it. 337 00:31:20,520 --> 00:31:27,080 CLECs are new wireline companies and cell companies are wireless companies and IPEZ are IP only. 338 00:31:27,080 --> 00:31:35,920 In terms of picking which one you want to get, if you can afford it and you don't plan to be doing wholesale minutes because wireless carriers have to sell wireless, wireless is by far the easiest type. 339 00:31:35,920 --> 00:31:38,340 It's included with your wireless certification. 340 00:31:38,340 --> 00:31:42,580 So if you can track down any common carrier wireless certification, you're basically good to go. 341 00:31:42,720 --> 00:31:46,380 If you don't need interconnection agreements, you can get an IPEZ. 342 00:31:46,380 --> 00:31:47,840 However, it's nationwide. 343 00:31:47,840 --> 00:31:49,660 It has minimal ongoing paperwork. 344 00:31:49,700 --> 00:31:54,120 However, the FCC is slow and expensive to deal with and, again, you don't get to do interconnection agreements. 345 00:31:54,120 --> 00:31:56,140 So you're basically completely shut out of TDM. 346 00:31:56,420 --> 00:32:03,020 If you want maximum power, like you want the full set of certifications, you want to be as mobile as you can be. 347 00:32:03,020 --> 00:32:04,860 You want to get a CLEC certification. 348 00:32:04,900 --> 00:32:07,500 However, the downside is that these are a lot of paperwork. 349 00:32:07,500 --> 00:32:10,840 You have to get one for each state you want to operate in. 350 00:32:10,840 --> 00:32:15,180 So you have to file paperwork in each state and you need to file ongoing reports in each state. 351 00:32:15,180 --> 00:32:18,340 It's also a tax headache because, again, you have to pay taxes in each state. 352 00:32:18,620 --> 00:32:23,460 However, the application process for all of these, again, except mobile, is fairly simple. 353 00:32:23,600 --> 00:32:26,180 You file with the State Public Utilities Commission. 354 00:32:26,240 --> 00:32:39,440 You need, in general, some financial information, balance sheets and income statements, resume for your key executives and key personnel, descriptions of the service area that you want to serve and the services to be offered. 355 00:32:39,440 --> 00:32:41,820 This can be the whole state and everything. 356 00:32:41,820 --> 00:32:48,740 Just write something that sounds good for, you know, those categories and a brief description of what equipment you want to put together. 357 00:32:48,740 --> 00:32:51,960 Again, the people at the POC aren't really tech experts. 358 00:32:51,960 --> 00:32:54,480 They just want to have some idea of what you're going to be setting up. 359 00:32:54,500 --> 00:32:57,020 Then be prepared to wait about 30 to 90 days. 360 00:32:57,620 --> 00:33:03,400 In terms of getting approved, the best advice I can give you is to read the Public Utilities Commission docket. 361 00:33:03,440 --> 00:33:06,680 Every application that has ever been filed is public and it's in there. 362 00:33:06,680 --> 00:33:11,180 You can read the applications that got approved and, more importantly, you can read the ones that didn't. 363 00:33:11,180 --> 00:33:12,640 You do what's in the good ones. 364 00:33:12,640 --> 00:33:14,260 You don't do what's in the not good ones. 365 00:33:14,260 --> 00:33:18,360 Download one that got approved quickly by a major carrier and modify it to suit your needs. 366 00:33:18,940 --> 00:33:21,000 Generally, however, having a team is better. 367 00:33:21,000 --> 00:33:23,720 Hacking is a social activity, especially phone hacking. 368 00:33:23,740 --> 00:33:27,660 The more people you have on it, the more years of experience you're able to show, the better. 369 00:33:28,140 --> 00:33:32,680 This goes doubly well if you have actual telecom experience, but this isn't a necessity. 370 00:33:32,680 --> 00:33:34,560 Just have some idea of what you're doing. 371 00:33:35,060 --> 00:33:42,500 The biggest and most important thing is you can't have a criminal record or judgments, especially for fraud or consumer abuses. 372 00:33:42,500 --> 00:33:49,400 I don't know about other stuff, but I know that, basically, if you got convicted for defrauding people, they're never going to give you a license for obvious reasons. 373 00:33:49,400 --> 00:33:51,440 You also need some amount of money. 374 00:33:51,620 --> 00:34:07,180 The actual amount varies from zero in liberal states, not liberal as in politically liberal, liberal as in giving out licenses, to a fairly decent chunk in other states that require you to have a specific amount of equity or a specific balance. 375 00:34:07,180 --> 00:34:11,020 Again, check your state's website and read your state's laws. 376 00:34:11,260 --> 00:34:12,240 Read the laws. 377 00:34:12,240 --> 00:34:14,140 It will tell you what needs to be in the application. 378 00:34:14,140 --> 00:34:15,560 Make sure you put that stuff in there. 379 00:34:15,740 --> 00:34:17,040 And don't be afraid to call. 380 00:34:17,040 --> 00:34:20,920 Generally, the public utilities commissions are more friendly than you might think. 381 00:34:21,040 --> 00:34:26,560 You'll have to shop around a bit to get to the right person, but generally, once you get to the right guy, they'll be able to help. 382 00:34:26,700 --> 00:34:28,440 It's not as hard as it used to be. 383 00:34:28,440 --> 00:34:30,780 In the 90s, it was very difficult to get approved. 384 00:34:30,840 --> 00:34:34,700 Now, it's almost deregulated, so you just have to do a box ticking exercise almost. 385 00:34:35,560 --> 00:34:38,020 Once you've got your certification, you need to get interconnection. 386 00:34:38,020 --> 00:34:38,940 There are two kinds. 387 00:34:38,940 --> 00:34:42,740 Local, for where your numbers live, and long distance or feature group D for everything else. 388 00:34:42,860 --> 00:34:44,360 Inbound calls are hard. 389 00:34:44,360 --> 00:34:49,080 Outbound calls are fairly easy, because for outbound, you just use a normal SIP trunk for everything that's not local. 390 00:34:49,300 --> 00:34:54,040 The first step is to pick a ladder and a rate center that you're going to be getting numbering resources in. 391 00:34:54,040 --> 00:34:59,640 You have to pick the geographic location in the rate center in order to figure out what kind of interconnection you need and where you're going to grab it from. 392 00:34:59,800 --> 00:35:02,480 Local interconnection is the harder of the two. 393 00:35:02,880 --> 00:35:10,220 You need to find, you're going to need to get an ICA in the area where you want to get numbers, in the rate center where your numbers are going to live. 394 00:35:10,340 --> 00:35:12,880 For RBOX, this process is fairly standardized. 395 00:35:12,880 --> 00:35:15,160 If inflexible, you're going to send them an email. 396 00:35:15,160 --> 00:35:21,600 They're going to send you an information request form and credit application, and then a draft interconnection agreement that's part of their standardized template. 397 00:35:21,600 --> 00:35:25,820 You're going to fill out the draft ICA and send it back to them, and you're done in about a month. 398 00:35:25,880 --> 00:35:31,300 For a smaller ILAC, the process is a lot more variable, because they almost certainly won't know you're talking about. 399 00:35:31,300 --> 00:35:39,920 You're going to have to go through multiple rounds of people until you either get their regulatory guy or their, you know, whoever's responsible for that at their company. 400 00:35:39,920 --> 00:35:44,240 And you might have to send them a draft ICA, because they might not have one on file. 401 00:35:44,240 --> 00:35:50,220 But the upshot to this is that even though it's harder to deal with them, they are more willing to negotiate and more flexible. 402 00:35:50,220 --> 00:35:54,520 So if you need something that the RBOX doesn't want to give you, they'll be more helpful. 403 00:35:54,800 --> 00:35:59,360 If you want to deal with TDM, you've got a few difficulties. 404 00:35:59,460 --> 00:36:02,160 So firstly, the actual media part of TDM is pretty easy. 405 00:36:02,160 --> 00:36:04,080 Cheap T1 media gateways are everywhere. 406 00:36:04,400 --> 00:36:06,180 However, SS7 is a real killer. 407 00:36:06,180 --> 00:36:10,980 If you have to deal with it, you're basically going to have to develop a custom platform , because it's not supported on anything. 408 00:36:12,980 --> 00:36:18,360 However, you can order MF trunks still in a lot of parts of the country, so you can use MF to avoid this. 409 00:36:19,060 --> 00:36:22,360 There are also interconnect companies that make the process easier. 410 00:36:23,800 --> 00:36:25,800 However, there are a lot more. 411 00:36:25,800 --> 00:36:30,200 These companies basically provide you a TDM IP translation service. 412 00:36:30,280 --> 00:36:36,460 However convenient this may be, it also is an added cost per minute and sometimes per number. 413 00:36:36,460 --> 00:36:38,980 You know, check with whatever provider you're going to deal with. 414 00:36:38,980 --> 00:36:47,360 But this avoids having to pay for either a fiber mid‑point splice or leased facilities from the ILAC. 415 00:36:47,840 --> 00:36:54,640 This isn't that bad in terms of actually ordering real TDM from the ILAC if you're close to them, if you're in the same ladder, if you're in their service territory. 416 00:36:54,720 --> 00:37:00,880 However, if you're outside of their service territory, those rates are no longer regulated and therefore are obscenely expensive. 417 00:37:00,880 --> 00:37:05,700 We're talking tens of thousands of dollars for a single T1 if you need to run it between states or something. 418 00:37:06,060 --> 00:37:07,780 So again, your mileage may vary. 419 00:37:07,780 --> 00:37:10,480 If you're staying local, you might be able to just deal with the RBOC directly. 420 00:37:10,480 --> 00:37:12,480 If you're not, you might have to do something different. 421 00:37:13,800 --> 00:37:16,680 Long distance interconnection, thankfully, is a hell of a lot easier. 422 00:37:16,880 --> 00:37:19,360 You can just get an ICA with your RBOC. 423 00:37:20,200 --> 00:37:24,900 If you have an ICA with your RBOC and you're doing TDM, you can just do long distance through them. 424 00:37:24,900 --> 00:37:28,420 Otherwise, you're going to want to look for an access homing tandem service. 425 00:37:28,420 --> 00:37:30,460 This is either cheap or free. 426 00:37:30,460 --> 00:37:31,960 Again, depending on who you deal with. 427 00:37:31,960 --> 00:37:37,340 If you're doing decent volume, you can even get some of that access revenue that we were talking about before. 428 00:37:38,080 --> 00:37:46,820 In either way, this is easier to get because, you know, there's no incentive for long distance companies to protect their brand or their territory. 429 00:37:46,820 --> 00:37:51,820 It's a profit center for them to be selling interconnection because they're getting a fraction of that permanent revenue. 430 00:37:52,020 --> 00:37:55,340 Switch building is where you really get to exercise your creativity. 431 00:37:55,380 --> 00:38:01,440 A couple of the major SIP platforms, I have their logos up, but you're going to pick one or multiple of these and put something together. 432 00:38:01,440 --> 00:38:08,380 Generally, you're going to need a session border controller or a gateway signaling element to deal with SIP and load balancing and that sort of thing. 433 00:38:08,380 --> 00:38:13,840 And then some sort of media element to do codec translation, to do NAT traversal, that sort of thing. 434 00:38:13,840 --> 00:38:17,800 This is where you can really show your creativity and make your voice service unique. 435 00:38:17,820 --> 00:38:23,220 There's a ton of flexibility you can show here, but it is a bit of a larger project because you're going to have to develop something. 436 00:38:23,420 --> 00:38:25,240 Again, this is also sort of what you want to do. 437 00:38:25,240 --> 00:38:31,300 You can get away with a single asterisk box if you just want to be tiny and serve yourself, but if you want something production ready, you're going to need to do more. 438 00:38:31,540 --> 00:38:34,760 A couple key notes here, IMS is the standard for LTE. 439 00:38:34,920 --> 00:38:43,600 It's confusing, difficult and generally a nightmare to work with, but you do need it if you want to deal with phones or if you want to follow the technical standard for residential VoIP services. 440 00:38:43,760 --> 00:38:45,760 But no one really uses it if they don't have to. 441 00:38:46,040 --> 00:38:56,980 And finally, commercial switches, your old stuff, your 5Es, your DMS100s or your meta switches and ribbons if you want to buy modern stuff are very expensive and less customizable, but rock solid reliability. 442 00:38:56,980 --> 00:39:00,960 We're talking five nines for a single box and have everything you're going to need out of the box. 443 00:39:00,960 --> 00:39:05,700 So if you want to, if you're willing to pay out of pocket for them, you know, they might be worth it. 444 00:39:05,800 --> 00:39:07,820 There are a couple pitfalls with switches. 445 00:39:08,320 --> 00:39:10,220 Biggest one is Lex style routing. 446 00:39:10,340 --> 00:39:14,660 So local and interlattic calls, you're going to have to pick those out and make sure they go over the correct trunks. 447 00:39:14,900 --> 00:39:20,240 You may have to support equal access depending on whether someone asks you to and the regulations in your state. 448 00:39:20,240 --> 00:39:21,600 Again, check your local laws. 449 00:39:21,660 --> 00:39:25,080 And you may have to deal with TDM and SS7 as we were talking about before. 450 00:39:25,080 --> 00:39:26,620 So you may need media gateways. 451 00:39:26,620 --> 00:39:29,340 You may need other, you know, gateway type elements. 452 00:39:29,340 --> 00:39:31,200 You may need an SS7 signaling gateway. 453 00:39:31,420 --> 00:39:40,420 Billing can be a real nightmare if you want to do proper, you know, telco style billing where you're billing local calls separately, you're billing per minute, you're billing cabs or access revenue for inbound. 454 00:39:41,120 --> 00:39:49,920 You're also going to have to deal with high availability and failover if you want to meet certain state standards for, you know, time, for uptime. 455 00:39:49,920 --> 00:39:53,600 A lot of states have a standard of four nines of uptime for your switches. 456 00:39:53,600 --> 00:39:58,240 So you may have to, you know, make sure you're suitably reliable and not just running on one box. 457 00:39:58,360 --> 00:40:02,940 You may also want to go multi‑site, especially if you're going to be pumping a lot of traffic through one central instance. 458 00:40:03,320 --> 00:40:06,700 There are issues for how to do this, you know, clustering and that sort of thing. 459 00:40:06,700 --> 00:40:10,240 VoIP is not particularly easy to cluster like, you know, websites. 460 00:40:11,420 --> 00:40:14,300 Once you've got your switch set up, you're on the home stretch. 461 00:40:14,300 --> 00:40:16,880 Now all you need to do is follow for your numbering resources. 462 00:40:16,880 --> 00:40:25,680 You're going to go to NAMPA or the North American Numbering Plan Authority, you're going to send them your OCN, you're going to send them your long distance interconnection details and you're going to send them your silly code for your switch. 463 00:40:25,680 --> 00:40:31,820 Then you're going to wait 45 to 90 days to get your central office code or a bit less if you're just getting a thousands block. 464 00:40:32,000 --> 00:40:37,620 Once you're approved by NAMPA, you're going to get an AOCN to put the numbers into birds and set up the routing records. 465 00:40:37,620 --> 00:40:43,080 You're going to talk to them about how you want to get your routing set up and then you're going to input your numbers into NPAC so people can port them. 466 00:40:43,180 --> 00:40:54,820 After you're all set up and all fully online, you're going to submit part four with NAMPA and if your numbers are pooled, you'll also have to send in a PSTN confirmation to say basically a test that you've fully built out the block. 467 00:40:55,220 --> 00:40:56,020 And then you're done. 468 00:40:56,020 --> 00:41:02,540 You are now an official phone company with your own numbering resources built out and with your own interconnection set up and routed. 469 00:41:03,020 --> 00:41:07,300 We're going to finally have a few concluding notes and hopefully get that done before we run out of time. 470 00:41:07,900 --> 00:41:17,380 So firstly, if you're a phone company or hell, even if you have an internet connected PBX, monitor your call and SIP logs, set alerts for unexpected usage, especially for weird international destinations. 471 00:41:17,460 --> 00:41:19,620 Lock down those weird international destinations. 472 00:41:19,720 --> 00:41:22,520 If you're a normal company, why are your employees calling Uganda? 473 00:41:22,520 --> 00:41:23,740 They probably shouldn't. 474 00:41:23,740 --> 00:41:27,520 Nothing wrong with Uganda, just they charge like 50 cents a minute for a call. 475 00:41:27,620 --> 00:41:30,780 So you want to make sure that's not happening if it doesn't have to be. 476 00:41:30,780 --> 00:41:42,000 Did rotation or people swapping out phone numbers, if you're a carrier, is not normal and is almost a certain sign that that person is using your service to send spam calls, you're going to want to monitor your customers too. 477 00:41:42,000 --> 00:41:47,820 Know the real person behind every company, know who's making your calls, know who you're dealing with and set limits on your switches to match that. 478 00:41:47,820 --> 00:41:51,840 If a customer says they're a home, they don't need to be making 40 calls at the same time. 479 00:41:52,600 --> 00:41:59,600 If a customer says they're a large business, you should expect them to not be switching out their numbers every two days because that's not normal for anyone. 480 00:41:59,600 --> 00:42:06,960 And never give out people the ability to swap out their caller ID and basically supply what the caller ID is going to be, unless you absolutely have to. 481 00:42:06,960 --> 00:42:09,980 It's the number one way that spammers are able to abuse phone services. 482 00:42:10,140 --> 00:42:15,540 In terms of public policy, if we have any feds in the room, require ILEX to support IP interconnection. 483 00:42:15,540 --> 00:42:21,720 This would solve a huge chunk of our issues for the TDM shuffle, the evasion of Starshaken. 484 00:42:21,920 --> 00:42:27,800 And it would also, at the very least, get the FCC moving on mandating out of band Starshaken support. 485 00:42:27,800 --> 00:42:31,880 This would be a big thing for fixing a lot of those problems. 486 00:42:32,000 --> 00:42:34,140 End user shaking might also be a good idea. 487 00:42:34,140 --> 00:42:46,200 If you force the end user PBX to sign the call, rather than the calling carrier, this would allow us to set a proper black hole list for PBX for people whose calls are frequently associated with spam. 488 00:42:46,320 --> 00:42:49,900 And it would allow us to track the call directly back to the originator rather than their carrier. 489 00:42:50,040 --> 00:42:52,660 And we also need better enforcement against criminal telcos. 490 00:42:52,720 --> 00:42:59,960 I have no proof of this, but I would estimate that 50 plus percent of all robocalls right now come from less than 10 carriers who make this a market for them. 491 00:42:59,960 --> 00:43:03,980 These guys need to be kicked off the network, because they're the source of all the spam, basically. 492 00:43:04,660 --> 00:43:21,360 Finally, I will ask you nicely, if any of you have equipment that you don't need, please, like, if you have 5Es, if you have old step by step stuff, you know, even if you have, like, mainframe gear, I've also got the Z14, if you have anything, or if you just are an ISP, 493 00:43:21,360 --> 00:43:27,920 an IXE, a WEC, an ASN, you want to peer with me, I'll connect with anyone and I will give any unloved equipment a new home. 494 00:43:28,720 --> 00:43:33,220 Finally, I'd like to give a thanks, first, to DEF CON for inviting me here to speak. 495 00:43:33,300 --> 00:43:40,720 Second, to LiveWire Telecom and my friend Dylan Cruz, who knows far more about TDM and the old phone network than I ever will and has been a tremendous help in this. 496 00:43:40,840 --> 00:43:46,480 Wide Voice, who is my future group D carrier, and I have nothing but good things to say about their service. 497 00:43:46,500 --> 00:43:58,800 And finally, YKC Communications in Ganado, Texas, who did not have a choice when I sent them an interconnection request, but was still a good sport about cooperating, so thanks for following the law and being a good sport, I guess. 498 00:43:59,080 --> 00:44:00,620 And finally, call me. 499 00:44:00,620 --> 00:44:01,980 This is my information. 500 00:44:02,100 --> 00:44:06,000 I love talking about phone stuff with people, and I have no one to talk about it with. 501 00:44:06,000 --> 00:44:06,980 Please reach out. 502 00:44:06,980 --> 00:44:09,320 I will talk your ear off about any of this stuff. 503 00:44:09,320 --> 00:44:11,940 I love to talk to you, but I love to talk about phones. 504 00:44:11,940 --> 00:44:13,680 And I think we're done with one minute to spare.