CONNECTION OF A COMPUTER TO A TELEPHONE SWITCHING PLANT
The present invention relates to the connection of a computer to a telephone exchange and more particularly to the connection of telephone calls from an exchange to a computer via a computer network. Computer networks in the form of internet and intranets are in widespread use and the possibility of transmitting voice over computer networks such as the internet has become more and more popular because of the low price on using the internet. Many companies also have intranets or local computer networks for communication between computers in the company. Many computers today are also equipped with loudspeakers, microphones and software for using the computer as a telephone. Such types of software include Webphone and Cooltalk. WO 96/20553 is mainly concerned with a system of transmitting voice mail and electronic mail messages in a computer network. It does also describe setting up of telephone calls via the internet. It is however not concerned with setting up telephone calls to a computer. In a brochure "An introduction to distributed multimedia networks", by Harvey Kaufman, Netspeak Corporation, a telecommunication system is shown including telephone exchanges in the form of private branch exchanges (PBX) which are interconnected both by a public switched telephone network (PSTN) and by computer networks to computers. They are connected to the computer via gateways. This document describes the setting up of a telephone call from a computer to an ACD center (call center operator) that might be incorporated into an exchange. The computer is here probably connected to this exchange via a modem and the public switched telephone network PSTN, and not directly to the exchange via a computer network. The telecommunications standard ITU-T H.323 describes different protocols for conversion of speech to data packets in a gateway and vice versa for use in communication between computers and telephone equipment. The Swedish Patent application no SE 9602918-6, filed 2 August 1996, which is identical to US provisional application "Method and Arrangement for Connection Between a Computer Network and a Telecommunication Network", filed August 12, 1996, describes how two private branch exchanges can use the internet for setting up compressed voice calls between them, each using a modem connected to the backplane or switch core of the PBX. Swedish patent application no SE 9602212-4, filed 4 June 1996, discloses an exchange in a telecommunication network to which a computer is connected via a modem. Calls made to the telephone number associated with the modem are re-routed to a telephone server, for compression, packing into packets and contacting of the computer via internet. The connection between the exchange is a telephone connection. In this case telephone signals are packed into data packets that are then sent on a normal telephone line. Swedish patent application SE 9604409-4 filed 29 November 1996 discloses a modem which multiplexes telephone signals and data packets on a telephone line so that a user having his computer connected to the PSTN can talk on the telephone while at the same time using the computer via this sole telephone connection. Swedish patent application SE 9700152-3, filed 21 Jan 1997 describes a computer that controls a cordless telephone connected to an exchange. US patent No. 5,604,737 discloses a voice communication system, which is connected to a local area network, LAN, to which communication terminals are connected and to a public switched telephone network, PSTN, to which telephones are connected. The system is also provided with a communication server between the LAN and the PSTN. The communication server enables voice communication between a telephone connected to the PSTN and a terminal connected to the LAN and processing is performed through the communication server. The present invention concerns a problem of how to connect a computer to an exchange for use as a telephone, when both the exchange and the computer are connected to a computer network and the computer comprises functions for using the computer as a telephone. This is solved by setting up, between a network connection device of the exchange and the computer via the computer network, a bi-directional data packet connection for use as a signalling channel and at least one traffic channel. The network connection device receives data packets containing telephony from the computer over said traffic channel and removes a signal structure suitable for telephony over the computer network from the content of the data packets, so that the exchange can receive speech signals from the computer, in dependence of signalling over the signalling channel. The object of the invention is thus to obtain an exchange, a communication network comprising such an exchange and a method for connecting a computer to the exchange for use as a telephone, when both the exchange and the computer are connected to a computer network and the computer comprises a function for using the computer as a telephone. This object is achieved by an exchange and a communication network, the exchange being capable of circuit-switching telephony and comprising a switch core, a switch control means responsible for setting up connections between users of the exchange and at least one network connection device connected between the switch core and a gate of the exchange for communication with the computer, where the computer comprises a function for use as a telephone and has a computer network address, characterised in that the network connection device in the exchange is arranged to set up via the computer network, together with said computer , a bi-directional data packet connection between the switch control means of the exchange and said computer for use as a signalling channel; to set up via the computer network together with said computer, at least one traffic channel between the exchange and the computer; to apply a signal structure suitable for telephony over the computer network to speech signals received from the switch core intended for the computer in order to produce data packets containing telephony; and to send the data packets containing telephony to the computer over the traffic channel, so that the computer can receive speech signals in a telephone connection between a user of the computer and another user connected to the exchange in dependence of signalling over the signalling channel. This object is also achieved by a method having the steps of setting up, between a network connection device of the exchange and the computer via the computer network, a bi-directional data packet connection between the exchange and the computer, for use as a signalling channel; setting up, between the network connection device of the exchange and the computer via the computer network, at least one traffic channel between the exchange and the computer; applying, in the network connection device of the exchange, a signal structure suitable for telephony over the computer network to speech signals intended for the computer in order to produce data packets containing telephony; and sending the data packets containing telephony to the computer over said traffic channel, so that the computer can receive speech signals in a telephone connection between a user of the computer and another user connected to the exchange via the network connection device. The object is also achieved by an exchange and a communication network, the exchange being capable of circuit-switching telephony and comprising a switch core, a switch control means responsible for setting up connections between users of the exchange and at least one network connection device connected between the switch core and a gate of the exchange for communication with the computer, where the computer comprises functions for use as a telephone and has a computer network address, characterised in that the network connection device in the exchange is arranged to set up via the computer network, together with said computer, a bi-directional data packet connection between the switch control means of the exchange and said computer for use as a signalling channel; to set up via the computer network together with said computer, at least one traffic channel between the exchange and the computer; to receive data packets containing telephony from the computer over said traffic channel; and to remove a signal structure suitable for telephony over the computer network from the content of the data packets to produce speech signals containing telephony, so that the exchange can receive speech signals from the computer in a telephone connection between a user of the computer and another user connected to the exchange, in dependence of signalling over the signalling channel. The object is furthermore achieved by a method comprising the steps of setting up, between a network connection device of the exchange and the computer via the computer network, a bi-directional data packet connection between the exchange and the computer, for use as a signalling channel; setting up, between the network connection device of the exchange and the computer via the computer network, at least one traffic channel between the exchange and the computer; receiving, in the network connection device of the exchange, data packets containing telephony from the computer over said traffic channel; and removing a signal structure suitable for telephony over the computer network from the content of the data packets, so that the exchange can receive speech signals from the computer in a telephone connection between a user of the computer and another user connected to the exchange via the network connection device. In fig. 1 is shown a communication network according to the invention comprising a telephone exchange PBX1 10, for example in the form of private branch exchange, which is connected to a computer PC 50 by a computer network 14, which network is, in this embodiment, an intranet. A DNS (Domain Name System) server 16 is also connected to the intranet 14. It shall be understood that the system could include more telephone exchanges, each connected to the intranet. The computer network is also not limited to an intranet but also internet is possible as well as various types of local networks or combinations of intranet and internet so that exchanges connected to the internet can get connected to the intranet of a company. The system is also not limited to private branch exchanges. The exchange 10 PBX1 comprises a switch control means 42 connected to a switch core 40 and to a network connection device 44, where the network connection device 44 is connected between the switch core 40 and a gate 56 for connection to the computer network 14. The switch core 40 is connected to a first extension 52 (shown outside the exchange). The extension could also be replaced by a subscriber in a public switched telephone network (PSTN) who gets connected to a private branch exchange via said PSTN. What happens with the computer and the exchange is that the computer gets in contact with the exchange so that it can act as an extension of the exchange, to which normal telephone calls can be made. In order to do this a traffic channel is set up between the computer and the exchange via the intranet 14. This can be very advantageous in that companies that have a private branch exchange can see to it that a computer can be used as a telephone for example at locations where there are no telephone sockets or to connect temporary workers having a computer but not telephone to the exchange. The exchange 10 can comprise several network connection devices 44, where each could be used for different computers or one handles several computers connected to it. The main part of the description and the figures will however only be limited to one network connection device for simplicity. In fig. 2 is shown a network connection device 44 according to the invention. The network connection device 44 comprises a signal shaping means 22 connected to the switch core of the exchange, a signal processing means 24 connected between the signal shaping means and the gate 56 and a local control means 20 connected to the switch control means as well as to the signal shaping means 22 and the signal processing means 24. The network connection device 44 is preferably realised in the form of a processor having various memories and registers connected to it. Fig. 3 shows a method for initially connecting a computer to an exchange and registering it as an extension. Fig. 4 shows a flow chart of the method an exchange sending packets to the computer is working according to and fig. 5 shows a flow chart of the method an exchange receiving packets is working according to. The functioning of the system according to the invention will now be described with reference to fig. 1, 2, 3, 4 and 5. The initial setting up of channels according to an embodiment of the invention will now be described with reference to fig. 1, 2 and 3. Before starting up the system according to the invention for the first time, the local control means 20 of the network connection device 44 in the exchange PBX1 has an own computer network address and a first port number stored. The first port number is a calling port number and is to be used, together with the address, for demanding the set up of signalling and traffic channels from all computers in a system that can function as a telephone. This port number is universal in the sense that all computers have it and are to use this particular port number when sending data packets containing demands for a connection. The first port number can be hardware coded into the computer or preprogrammed. Port numbers is here the equivalent of TSAP identifiers that are described in the telecommunications standard ITU-T H.323. Each computer arranged to be used as a telephone does also have an own address and an own port number stored for use when demanding connections as well as an address of the DNS server 16. What happens first when a computer is to be connected to or registered with an exchange is that, with reference to fig. 1, 2 and 3, a telephone function or application is started. This application can for example be started at start up of the computer, and a user of the computer can start using the application, i.e. to make a call, by clicking on an icon on his screen in order to start a telephone application for a computer, such as a software of the type Cooltalk or Webphone. The computer then sends at least one data packet, for example in the form of a TCP/IP packet (Transmission Control Protocol/Internet Protocol), to the DNS server 16 using the address of this DNS server, procedural step 26. The packet sent to the DNS server 16 contains the name or identity of the exchange to which the computer wants to connect itself. The DNS server 16 contains a table which translates each such name to a corresponding computer network address. The DNS server 16 then translates the name to a network address, which network address is associated with the network connection device 44, and returns the address to the computer, procedural step 28. The computer now has the address of the exchange and proceeds with sending a demand for connection using said address and the stored calling port number, procedural step 29. The demand here contains the own address of the computer and the own port number it wants to receive the reply on. The signal processing means 24 unpacks the packet, removes the signal structure and sends the content to the local control means 20. The local control means stores the received port number and address of the computer for use in replying to the demand. If the computer does not already have an extension number associated with it, procedural step 30, it has to get one allocated to it, procedural step 31. The allocation of extension numbers can be performed in different ways. The computer may have an extension number that it reports to the exchange. The signal processing means 24 receives this number in a packet, removes the signal structure TCP/IP from the packet and sends it to the local control means 20, which control means associates itself with said extension number. The local control means then informs the switch control means 42 that it will handle all communication with the extension number and the switch control means stores this information so that it can direct calls intended for the extension number to the network connection device via the switch core. An extension number can also alternatively be selected by the switch control means and given to the computer. Both the network connection device and the switch control means do not actually use the extension number, but the extension number is stored in a table and associated with another number, an individual number. It is this individual number that is stored in the network connection device and associated with the address of the computer. When the extension number has been allocated or if a number has already been allocated previously, the local control means 20 selects information about a second port number, which it wants to use as a signalling channel and a third port number which it wants to use for a traffic channel, procedural step 32, and forwards this information to the signal processing means 24. The signal processing means sends this information in data packets having the same address and port number of the computer as before and applying the same signal structure, procedural step 34. The computer receives these second and third port numbers and selects own port numbers to be associated with these received second and third port numbers, and sends the selected port numbers to the network connection device 44, procedural step 36. The local control means 20, which has received these port numbers in the same way as previously described, as well as the computer, then pair the first and second port number with the port numbers selected by the computer so that a signalling port number pair and a traffic port number pair is obtained, procedural step 38. The signalling port number selected by the computer can be the same as the number previously used for demanding connection or a different one. The setting up of signalling and traffic channels has here been described as being set up when the telephone application is started in the computer. As an alternative they can be set up only when a call is actually being made. The set up procedure could also include some authorisation procedure, wherein the exchange, when a demand is received, queries the computer about its status in the system. It then asks the computer for a code word or performs some other security check in order to find out if the computer is allowed to be connected to the exchange. This might be interesting if the exchange is a private branch exchange and access to the exchange is only wanted for certain computers, for example the computers of the company or in order to avoid persons stealing the extension numbers of other persons. In yet another alternative the channels can be set up from the start, i.e. the computer network device and the computer both have the appropriate address and port number stored in advance. Another feature that might be interesting to include is that several network connection devices can be connected to the exchange and the one device which the computer first gets in contact with gives the computer the address of another network connection device. In this way the computer then gets connected to the other network connection device, which might be advantageous if one wants to spread out the work the network connection devices have to do between them, or to connect the computer to a network connection device that is physically closer to the computer than the first contacted network connection device. This is advantageous since it is a well known fact that in order to enhance the quality of a telephone call over a computer network it is better if the actual distance packets travel across the network is short. One could also envisage a scenario where the first network connection device gives the address of another network connection device in another exchange that is included in a corporate network. This might be advantageous for the same reasons as above. A further advantage might be obtained in that local telephone billings might be achieved by connecting to an exchange located in another city than the contacted exchange when a call is to be placed to the first mentioned city. What happens when a telephone call is to be set up is thereafter first, with reference to fig. 1, 2 and 4, that a user of the exchange PBX1 at the first extension 52, wants to call a second extension 54, i.e. the computer. He therefore lifts the phone and dials the number of the second extension. This is detected by the switch control means 42 in the exchange PBX1, procedural step 60. The switch control means then analyses the dialled number, the so called B-number, procedural step 62. If the number was a number not associated with the computer, procedural step 64, the switch control means 42 sets up a speech channel in a normal fashion, procedural step 66, like for example via the PSTN. In our case the number was however the number associated with the computer, procedural step 64. The number analysis is performed by the switch control means looking into above mentioned table and getting a number associated with the network connection device and the identity number associated with the computer. The switch control means therefore communicates with the local control means 20 of the indicated network connection device and informs it that a call is to be set up with said identity number. Signalling information is thereafter sent from the switch control means 42 to the local control means 20 in the exchange 10. This signalling information is for example sent according to the protocol ECMA/ISO QSIG together with some other protocol for example a protocol according to the standard H.323 or with some other suitable protocol. The local control means 20 sets the signal processing means 24 to apply a signal structure suitable for data communication, for example TCP, and supplies the signal processing means 24 with the previously mentioned IP-address and predetermined signalling port number to be used for communication with the computer. The signal processing means packs this signalling information in packets having above mentioned IP-address and port number and sends it to the computer via the computer network. During the signalling the network connection device in the exchange also receives packets from the computer, which packets have the own IP-address and the second port number. When the signal processing means 24 receives signalling packets from the second exchange PBX2 it unpacks them, removes the signal structure and sends the content to the local control means 20. The local control means forwards all received signalling information to the switch control means, so that the switch control means can perform the ordinary signalling functions. During this signalling the connection is established in normal fashion using above mentioned signalling scheme, procedural step 68. Thereafter, when all signalling has been performed and the speech signals are to be sent between the extensions on the traffic channel, the first extension 52 is connected to the selected signal shaping means 22 via the switch core 40, procedural step 70. This is achieved by the switch control means being informed by the local control means of a connection to which the speech signals to be sent, can be connected. The connection is a connection between the switch core and one signal shaping means that does not presently receive any other speech signals. The local control means then connects the selected signal shaping means 22 with the signal processing means 24 and sets the signal processing means to apply a signal structure suitable for telephony over the computer network UDP/IP (Unreliable Datagram Protocol/Internet Protocol) and to use the IP address of the computer and the selected port number for the traffic channel. The switch control means meanwhile connects the first extension with the signal shaping means via the switch core, procedural step 70. The signal shaping means then starts to receive speech signals from the extension 52. The received signals are compressed in the signal shaping means, procedural step 72, which compressed signals are then forwarded to the signal processing means 24. The compression can for example be performed using the LD-CELP compression algorithm according to the ITU-T standard G.728. The signal processing means 24 then applies the signal structure suitable for telephony over the computer network UDP/IP and packs these signals having this structure into packets having the IP address of the computer and the selected port number of the traffic pair, procedural step 74. These packets are thereafter sent to the computer via the computer network, procedural step 76. The method the exchange PBX1 is working to when receiving traffic will in the following be explained with reference to fig. 1, 2 and 5. Signalling is first performed between the exchange and the computer, procedural step 80. The signalling performed is the same as has been previously described in connection with sending of packets from the exchange to the computer and will thus not be further described here. When the signalling has been performed between the switch control means and the computer, which has a similar software as the network connection device for telephony over the computer network, i.e. Cooltalk, Webphone or some software based on standard H.323 etc, the computer processes speech signals to be sent from the computer to the exchange PBX1, applies a signal structure like UDP/IP and packs them into data packets having the IP address of the network connection device and the selected port number, the third port number, procedural step 82. When doing this processing the computer converts analogue electrical signals received from the microphone into digital signals that are compressed and upon which the signal structure is thereafter applied. The computer then sends these data packets to the computer network. The network connection device in the exchange PBX1 receives these packets, procedural step 84. The signal processing means then unpacks these packets and removes the signal structure, procedural step 86. The content of the packets are then forwarded to the selected signal shaping means 22. The signal shaping means 22 decompresses the content of the packets in order to obtain telephone signals having a structure suitable for switching in the switch core, procedural step 88. The structure suitable for switching is normally in the form of eight bits and the decompression can therefore comprise expanding a telephone signal from for example two bits to eight bits according to a suitable decompression algorithm like LD-CELP according to the ITU-T standard G.728. The decompressed speech signals are then connected through the switch core to the second extension 54 and thus a speech connection is set up, procedural step 90. When the conversation is finished, the call is terminated in conventional fashion. Special information typical for a corporate network, such as the name of the person calling and other so called D-channel information that can be transferred together with a call, can be transferred in the signalling channel. As an alternative a separate D-channel can be set up using a special D-channel port number for each voice connection. The network connection device can of course, and usually does, contain several signal shaping means and can usually set up connections to more computer than there are connections to the switch core. This is performed using above mentioned identity numbers. During all the previously described activities the switch control means in the exchange is monitoring the functioning of the network connection device. This monitoring is performed by controlling the network addresses and port numbers used. These addresses and port numbers are updated when for examples changes of a corporate network is done. The addresses in the network can be changed, by the DNS server, when the network is changed like for example when it is expanded. The only part of the network that gets updated when reallocating addresses is the DNS server, so a check of addresses has to be performed from time to time. It is very convenient to incorporate these monitoring possibilities into the normal monitoring functions of the switch control means. Other monitoring functions incorporated into the switch control means are logging of problems on the computer network that disrupts the telecommunication traffic such as not receiving packets and generation of alarms if these problems reach a certain level. Examples of this are if a number of packets not received during a period of time are equal to a certain amount of packets, the number of distorted packets are higher than a certain level etc. Other functions are keeping of statistics of the quality like lost packets, failed connections etc. The software in the local control means can be updated at the same time as when other software in the exchange is updated. With the invention one obtains a communication network that makes it possible to connect a computer to an exchange as an extension so that a more flexible communication network is achieved. One furthermore gains the additional advantage of using the monitoring functions present in the exchange in monitoring traffic to such an extension. The present invention has been described in relation to voice compression. This is a preferred feature of the invention but it can optionally be left out of the exchange. The quality of the connections set up will then however be inferior. It can however be an alternative when a small local area network is used. The invention is of course not limited to the embodiments described above and shown in the drawings but can be modified within the scope of the enclosed claims. The present invention relates to a telephone system, an exchange and a method for setting up telephone connections between a computer, which is an extension of the exchange, and the exchange via a computer network. The exchange comprises a switch core, a switch control means for setting up connections and a network connection device connected between the switch core and the computer network. The computer comprises a function for use as a telephone and has a computer network address. The network connection device registers the computer as a telephone to which calls can be made in the switch control means, sets up at least one traffic channel via the computer network for sending speech signals, and, receives data packets containing telephony from the computer over the traffic channel and removes a signal structure suitable for telephony from the data packets. The switch control means allocates a telephone number to the computer. Method of connecting a computer (50) to a telephone exchange (10) via a computer network (14) for using the computer as a telephone connected to the exchange, where the exchange is capable of circuit-switching telephony and the computer comprises a function for use as a telephone and has a computer network address, comprising the steps of setting up, between a network connection device (44) of the exchange and the computer via the computer network, a bi-directional data packet connection between the exchange and the computer, for use as a signalling channel; setting up, between the network connection device (44) of the exchange and the computer via the computer network, at least one traffic channel between the exchange and the computer; applying, in the network connection device of the exchange, a signal structure suitable for telephony over the computer network to speech signals intended for the computer in order to produce data packets containing telephony; and sending the data packets containing telephony to the computer over said traffic channel, so that the computer can receive speech signals in a telephone connection between a user of the computer and another user connected to the exchange via the network connection device. Method according to claim 1, wherein the step of setting up a signalling channel and a traffic channel between the exchange and the computer comprises using a computer network address of the computer and a computer network address of the exchange and using at least one calling port number for contacting the exchange, which setting up is performed on demand by the computer. Method according to claim 2, wherein the step of setting up said signalling channel and traffic channel on demand comprises receiving a demand from the computer on activation of the telephone function in the computer. Method according to claim 2, comprising, before said step of setting up said bi-directional data packet connection, the step of registering, in the exchange, the computer as a telephone to which calls can be made and allocating a telephone number to the computer. Method according to claim 4, wherein the step of registering comprises sending an identity from the computer to a DNS server (16) and receiving, in the computer, a computer network address of the exchange, which has been produced by the DNS server in dependence of said identity, which address is to be used for setting up signalling and traffic channels between the exchange and the computer. Method according to claim 1, wherein the setting up of traffic and signalling channels is performed using predetermined port numbers stored in the computer and the exchange. Method according to claim 2, wherein the setting up of a signalling channel and a traffic channel is performed in dependence of exchange of port numbers using the calling port number, where the exchange has selected a port number each for the signalling channel and the traffic channel to be used by the computer when sending data packets to the exchange and the computer has selected corresponding port numbers to be used by the exchange when sending data packets to the computer. Method according to claim 2, comprising the further step of receiving, in the network connection device of the exchange having a first of the computer network addresses of the exchange, said demand from the computer; querying the computer about its identity; and sending, in dependence of the query, a second computer network address of the exchange associated with a second network connection device (46) in the exchange to the computer, so that the computer can get connected to the other network connection device of the exchange. Method according to claim 1, wherein the step of applying the signal structure is preceded by the step of compressing the speech signals. Method of connecting a computer (50) to a telephone exchange (10) via a computer network (14) for using the computer as a telephone connected to the exchange, where the exchange is capable of circuit-switching telephony and the computer comprises a function for use as a telephone and has a computer network address, comprising the steps of setting up, between a network connection device (44) of the exchange and the computer via the computer network, a bi-directional data packet connection between the exchange and the computer, for use as a signalling channel; setting up, between the network connection device (44) of the exchange and the computer via the computer network, at least one traffic channel between the exchange and the computer; receiving, in the network connection device of the exchange, data packets containing telephony from the computer over said traffic channel; and removing a signal structure suitable for telephony over the computer network from the content of the data packets, so that the exchange can receive speech signals from the computer in a telephone connection between a user of the computer and another user connected to the exchange via the network connection device. Telephone exchange (10) for setting up telephone connections to at least one computer (50) via a computer network (14), the exchange being capable of circuit-switching telephony and comprising a switch core (40), a switch control means (42) responsible for setting up connections between users of the exchange and at least one network connection device (44) connected between the switch core and a gate (56) of the exchange for communication with the computer, where the computer comprises a function for use as a telephone and has a computer network address,characterised in that the network connection device (44) in the exchange is arranged to set up via the computer network, together with said computer , a bi-directional data packet connection between the switch control means of the exchange and said computer for use as a signalling channel; to set up via the computer network together with said computer, at least one traffic channel between the exchange and the computer; to apply a signal structure suitable for telephony over the computer network to speech signals received from the switch core intended for the computer in order to produce data packets containing telephony; and to send the data packets containing telephony to the computer over the traffic channel, so that the computer can receive speech signals in a telephone connection between a user of the computer and another user connected to the exchange in dependence of signalling over the signalling channel. Telephone exchange according to claim 11, wherein the network connection device is arranged to, when setting up the signalling and traffic channels, use a computer network address of the computer and at least one calling port number for calling the exchange, and to perform the setting up on demand by the computer. Telephone exchange according to claim 12, wherein the network connection device is arranged to receive, when setting up said signalling and traffic channels, a demand from the computer on activating the telephone function in the computer. Telephone exchange according to claim 12, wherein the network connection device is arranged to register in the switch control means, before setting up said bi-directional data packet connection, the computer as a telephone to which calls can be made and the switch control means is arranged to allocate a telephone number to the computer. Telephone exchange according to claim 14, wherein the network connection device is arranged to, when registering the computer, send an identity of the computer to a DNS server (16) and to receive a computer network address of the computer to be used for setting up signalling and traffic channels between the exchange and the computer, which address has been produced by the DNS server in dependence of said name. Telephone exchange according to claim 11, wherein the network connection device is arranged to use predetermined, stored port numbers when setting up traffic and signalling channels. Telephone exchange according to claim 12, wherein the network connection device is arranged to exchange, when setting up traffic and signalling channels, port numbers with the computer using the calling port number, to select port numbers to be used by the computer when sending data packets to the exchange and to receive, from the computer, corresponding port numbers to be used when sending data packets to the computer. Telephone exchange according to claim 12, comprising a second network connection device (46) and wherein the first network connection device has a first of the computer network addresses and is further arranged to receive said demand from the computer; to query the computer about its identity; and to send, in dependence of the query, a second computer network address associated with the second network connection device to the computer, so that the computer can get connected to the second network connection device. Telephone exchange according to claim 11, wherein the network connection device (44) is arranged to compress the speech signals before applying the signal structure. Telephone exchange (10) for setting up telephone connections to at least one computer (50) via a computer network (14), the exchange being capable of circuit-switching telephony and comprising a switch core (40), a switch control means (42) responsible for setting up connections between users of the exchange and at least one network connection device (44) connected between the switch core and a gate (56) of the exchange for communication with the computer, where the computer comprises functions for use as a telephone and has a computer network address,characterised in that the network connection device (44) in the exchange is arranged to set up via the computer network, together with said computer, a bi-directional data packet connection between the switch control means of the exchange and said computer for use as a signalling channel; to set up via the computer network together with said computer, at least one traffic channel between the exchange and the computer; to receive data packets containing telephony from the computer over said traffic channel; and to remove a signal structure suitable for telephony over the computer network from the content of the data packets to produce speech signals containing telephony, so that the exchange can receive speech signals from the computer in a telephone connection between a user of the computer and another user connected to the exchange, in dependence of signalling over the signalling channel. Communication network for setting up telephone connections between computers and a telephone exchange (10) via a computer network (14) and comprising at least one computer (50), the computer network and an exchange (10), the exchange being capable of circuit-switching telephony and where the computer network interconnects the exchange and the computer, the exchange comprising a switch core (40), a switch control means (42) responsible for setting up connections between users of the exchange and at least one network connection device (44) connected between the switch core and the computer network, where the computer comprises a function for use as a telephone and has a computer network address;characterised in that the network connection device (44) in the exchange and the computer (50) are arranged to set up a bi-directional data packet connection between the switch control means of the exchange and said computer via the computer network for use as a signalling channel; and to set up at least one traffic channel between each other via the computer network; to apply a signal structure suitable for telephony over the computer network to speech signals received from the switch core intended for the computer in order to produce data packets containing telephony; and to send the data packets containing telephony to the computer over the traffic channel, so that the computer can receive speech signals in a telephone connection between a user of the computer and another user connected to the exchange in dependence of signalling over the signalling channel. Communication network for setting up telephone connections between computers and a telephone exchange via a computer network (14) and comprising at least one computer (50), the computer network and an exchange (10), the exchange being capable of circuit-switching telephony and where the computer network interconnects the exchange and the computer, the exchange comprising a switch core (40), a switch control means (42) responsible for setting up connections between users of the exchange and at least one network connection device (44) connected between the switch core and the computer network, where the computer comprises a function for use as a telephone and has a computer network address;characterised in that the network connection device (44) in the exchange and the computer (50) are arranged to set up a bi-directional data packet connection between the switch control means of the exchange and said computer via the computer network for use as a signalling channel; and to set up at least one traffic channel between each other via the computer network; to receive data packets containing telephony from the computer over said traffic channel; and to remove a signal structure suitable for telephony over the computer network from the content of the data packets, so that the exchange can receive speech signals from the computer in a telephone connection between a user of the computer and another user connected to the exchange, in dependence of signalling over the signalling channel.