Telephony services in a communications network

Abstract: A communications network includes packet-based networks (12, 21) that are coupled to various network elements. A method and apparatus is provided to implement telephony services in the communications network. The architecture for providing the telephony services may include several layers, including a network elements layer (104), an interface layer (102), and a services/application layer (100). The services/application layer (100) is decoupled from the specific implementations of the network elements layer (104) so that a more flexible and convenient mechanism is provided to create telephony services. The telephony services may be implemented in software modules written in one of several possible languages, such as a telephony scripting language (TSL) or other language. The interface layer (102) includes various components, including translation components (110) to interpret and execute the modules that are in the services/application layer (100), communications components (112) to provide mechanisms to send commands to the network elements layer (104) to perform specified telephony services, and representation components (114) that describe the functions, tasks, and other details associated with network elements.

Description: The invention relates to providing telephony services in communications networks. Data networks are widely used to link various types of nodes, such as personal computers, servers, gateways, network telephones, and so forth. Networks may include private networks, such as local area networks and wide area networks, and public networks, such as the Internet. The increased availability of such data networks has improved accessibility among nodes coupled to the data networks. Popular forms of communications across such data networks include electronic mail, file transfer, web browsing, and other exchanges of digital data. With the increased capacity and reliability of data networks, voice and multimedia communications over data networks have become possible. Such forms of communications include telephone calls over the data networks, video conferencing, and distribution of multimedia data (such as by multicast). Various standards have been proposed for voice and multimedia communications over data networks. For example, a multimedia data and control architecture has been developed by the Internet Engineering Task Force (IETF). The protocols that are part of the IETF multimedia data and control architecture include a Session Initiation Protocol (SIP) for establishing call sessions; a Resource Reservation Protocol (RSVP) for reserving network resources; a Real-Time Transport Protocol (RTP) for transporting real-time data and providing quality of service (QoS) feedback; a Real-Time Streaming Protocol (RTSP) for controlling delivery of streaming media; a Session Announcement Protocol (SAP) for advertising multimedia sessions by multicast; and a Session Description Protocol (SDP) for describing multimedia sessions. In a communications system that provides for voice or other streaming communications, various types of telephony or call services may need to be defined to process and respond to call requests. A communications network may include various elements, such as a voice mail system, an integrated voice response (IVR) system, media gateways, and so forth, that may be involved in a given call session. Creation of applications to handle various services that may be part of a call session needs to account for interactions among the network elements. A need thus exists for a convenient and efficient method and apparatus to provide for telephony services in a communications network. WO 99/20058, Alcatel, discloses a method for use in a communications network having network elements for performing telephony services, comprising: providing an interface to the network elements; receiving requests, by the interface, specifying performance of telephony services; and sending, in response to said requests, commands to one or more network elements involved in performing the desired telephony services; The present invention is characterised in that said requests are received from a software module; and said commands are sent over a packet based network. Some embodiments of the invention may have one or more of the following advantages. A more efficient and convenient method and apparatus of creating or generating telephony services in a communications network is provided. A technique is provided to abstract implementation details of components (in the form of network elements, for example) performing various telephony services from software routines, modules, or scripts created by users to provide for telephony services. Such abstraction allows for a much more efficient mechanism for creating telephony services. Other features and advantages will become apparent from the following description, from the drawings, and from the claims. Brief Description Of The Drawings Fig. 1 is a block diagram of an embodiment of a communications system including packet-based data networks. Fig. 2 illustrates layers representing the architecture of a telephony system in accordance with one embodiment. Fig. 3 is a block diagram providing an alternative view of components in the communications system of Fig. 1. Fig. 4 illustrates a process of creating and executing telephony services in the communications system of Fig. 1 in accordance with an embodiment. Figs. 5A-5B are a state diagram of an example embodiment of a software module providing for a voice mail retrieval service. Fig. 6 is a block diagram of another embodiment of a system containing Common Object Request Broker Architecture (CORBA) components and a software module for implementing telephony services. Fig. 7 is a block diagram of an integrated voice response (IVR) system including an Object Request Broker (ORB) according to an example embodiment. Fig. 8 is a block diagram of components of an example network element in the communications system of Fig. 1. Detailed Description Referring to Fig. 1, a communications system 10 includes various nodes or network elements that are capable of communicating with each other. The example network elements and the manner in which they are interconnected are for illustrative purposes only. Many other arrangements and architectures are possible in further embodiments. The communications system 10 may include a private network 21 that is located in community 20 and a public network 12 (e.g., the Internet). A "community" may refer to any predetermined group of elements or users that are connected through a network. A "private network" refers to a network that is protected against unauthorized general public access. A "network" may refer to one or more communications networks, links, channels, or paths, as well as routers or gateways used to pass data between elements through such networks, links, channels, or paths. Although reference is made to "private" and "public" networks in this description, further embodiments may include networks without such designations. For example, a community may refer to nodes or elements coupled through a public network or a combination of private and public networks. In one embodiment, the protocol used in the various networks may be the Internet Protocol (IP), as described in Request for Comments (RFC) 791, entitled "Internet Protocol," dated September 1981. Other versions of IP, such as IPv6, or other packet-based standards may also be utilized in further embodiments. A version of IPv6 is described in RFC 2460, entitled "Internet Protocol, Version 6 (IPv6) Specification," dated December 1998. Packet-based networks such as IP networks communicate with packets, datagrams, or other units of data that are sent over the networks. Unlike circuit-switched networks, which provide a dedicated end-to-end connection or physical path for the duration of a call session, a packet-based network is one in which the same path may be shared by several network elements. A packet-based network may be a packet-switched network, such as an IP network, which is based on a connectionless internetwork layer. Packets or other units of data injected into a packet-switched data network may travel independently over any network (and possibly over different networks) to a destination terminal. The packets may even arrive out of order. Routing of the packets is based on one or more addresses carried in each packet. Other types of packet-based networks include connection-oriented networks, such as Asynchronous Transfer Mode (ATM) networks or Frame Relay, which are based on a virtual circuit model. The community 20 may include nodes or elements that allow users to participate in audio (e.g., voice) and multimedia (e.g., audio and video) communications sessions. Examples of such communications sessions include telephone calls, video conferencing, and other sessions in which streaming data is exchanged. In this description, such communications sessions are referred to as telephony or call sessions. Various telephony or call services may be performed in a telephony session. For example, an announcement may be played, a message may be recorded, a tone may be played, detection for a dual tone multi-frequency (DTMF) signal may be performed, a call can be forwarded from one terminal to another terminal, a recorded voice message may be retrieved, and so forth. A "telephony service" may be defined as any action or service associated with a telephony or call session. A "telephony session" or "call session" refers generally to either an audio (e.g., voice), a multimedia session, or any other type of session in which streaming data is exchanged between two or more network elements or terminals coupled to a data network. An "interactive" telephony or call session refers to a telephony or call session in which two or more parties are involved in an exchange of audio and/or video data in an established session between two or more network elements. A "real-time" interactive telephony or call session refers to an exchange of data on a substantially real-time basis between two terminals. A session is substantially real-time if interaction is occurring between two end points or parties, with a communication from one end point followed relatively quickly by a response or another communication from the other end point, typically within seconds, for example. Interactive call sessions are contrasted with electronic mail messaging, for example, in which a first participant sends a message over a data network to a second participant, with no acknowledgment indication usually provided back to the first participant that the second participant has received or that the second participant is even at his or her terminal. In contrast, an interactive session involves a request followed by some acknowledgment that a called party has answered the call request to enable the interactive session to be established in which participants exchange data (e.g., voice, video, and/or text). The terms "telephony session" and "call session" are used interchangeably herein. In accordance with some embodiments, an architecture or framework for the creation of telephony services and applications for telephony sessions over packet-based networks, such as an IP network, includes a lower layer including network elements for performing telephony services, an upper layer including software modules in which telephony services are represented, and an interface layer (or middleware layer) between the upper and lower layers. The interface layer may be used to abstract the functionality of the network elements that are part of the communications system 10. This allows a convenient technique for creating software modules to provide telephony services since a software developer can create code or scripts to provide for telephony services without having to worry about the implementation details (location of device, programming language, etc.) of devices that are actually performing a requested service. In the architecture or framework according to some embodiments, a common interface layer is provided between multiple services in the upper layer (software modules) and multiple network elements in a lower layer. The presence of the upper layer to provide for telephony services extends features available in network elements beyond simple call services to include call forwarding, conferencing, transfer, and other telephony services users may desire. Each software module includes elements that are representative of various telephony services to be performed. Such elements may be sub-routines, methods, objects, or any other element that may be user-created. For example, the software module may be generally represented as state diagrams with customizable flow paths and properties. Each state may be associated with a telephony action or service, and a trigger causing a transition between states may be a user input or status of a current telephony session. Examples of communications devices that are capable of participating in telephony sessions over the network 21 include conventional telephones 34 and fax machines 35 that are coupled to a media gateway 32. The media gateway 32 connects non-network terminals, such as the telephones 34 and fax machine 35, to the network 21. The media gateway 32 may work in conjunction with a media gateway controller 28 to route data between the network 21 and the terminals coupled to the media gateway 32. Although shown as separate components, the media gateway 32 and media gateway controller 28 may be implemented in the same platform. The media gateway controller 28 controls individual tasks and resources of the media gateway 32. In addition, the media gateway controller 28 controls communications to the terminals coupled to the media gateway 32. The community 20 may also include network telephones 33, which are telephones with network interface units to enable communications over the network 21. Other communications devices include computers 26 that have voice and/or image processing capabilities. A user on one of the communications devices may call a user on another communications device, with voice and/or video data carried through the network 21. The network 21 may be connected to elements outside the community 20 through a gateway system 30. A call server 24 may also be coupled to the network 21 to manage the establishment, management, and termination of communications sessions between terminals coupled to the network 21. The call server 24 may be coupled to a database system 22 (which may be located on a separate platform or on the same platform as the call server 24) that includes a subscriber directory and a network directory. Also, policy for incoming and outgoing calls may be managed by the call server 24. The subscriber directory in the database system 22 stores static and dynamic information about users in the community 20. The call server 24 accesses the subscriber directory to locate and route calls to users. The current location of a user may be changed by registering from a different location. The network directory in the database system 22 holds static and dynamic information about network elements and preferences. The network directory allows the call server 24 to determine the most appropriate network resource or resources to use in its operations. Other network elements that may be coupled to the network 21 include a web server 36 to provide web pages accessible by users inside and outside of the community 20. Another system in the community 20 may be a voice storage server 23 in which voice data, such as those associated with voice mail, may be stored. Calls originating from one terminal to another terminal are handled by the call server 24. The call server receives a call, and based on the identifying information in the call (including information identifying the source and destination points), the call server 24 routes the call accordingly. In other cases, a peer-to-peer session may be established between two terminals without going through the call server 24. The call server 24 may be separated into several components, including a SIP proxy, a service platform, a telephony server, and other elements. The service platform can monitor the network to determine if a telephony service needs to be launched. If so, the service platform can call the script engine to launch the telephony service. The telephony server may be a main program that launches PBX functions as needed. In one embodiment, the call server 24 and some of the other network elements may perform establishment, management, and termination of telephony sessions in accordance with the multimedia data and control architecture from the Internet Engineering Task Force (IETF). The IETF multimedia data and control architecture includes a suite of protocols, including the Session Initiation Protocol (SIP), as described in RFC 2543, entitled "SIP: Session Initiation Protocol," dated March 1999. SIP may be used to initiate communications sessions as well as to invite members to sessions that may have been advertised by some other mechanism, such as electronic mail, news groups, web pages, and others. SIP allows for the determination of the end system to be used for the telephony session. SIP also allows for a determination of the media and media parameters to be used as well as the determination of the willingness of the called party to engage in telephony communications. Various entities may be defined by SIP. A client according to SIP is an application program that sends SIP requests, such as to perform call requests. A server according to SIP may be an application program that accepts SIP requests to service calls and to send back responses to SIP requests. A SIP proxy or proxy server may be an intermediary program that acts as both a server and a client for making requests on behalf of other clients. The IETF multimedia and control architecture also includes the Resource Reservation Protocol (RSVP), as described in RFC 2205, for reserving network resources; the Real-Time Transport Protocol (RTP), as described in RFC 1889, for transporting real-time data and providing quality of service (QoS) feedback; the Real-Time Streaming Protocol (RTSP), as described in RFC 2326, for controlling delivery of streaming media; the Session Announcement Protocol (SAP) for advertising multimedia sessions by multicast; and the Session Description Protocol (SDP), as described in RFC 2327, for describing multimedia sessions. The protocols described are merely examples of protocols that may be used for communications sessions between network elements. In further embodiments, other types of protocols may be used, such as protocols for communications sessions other than voice or multimedia communications sessions. Another protocol includes the H.323 Recommendation from the International Telecommunication Union (ITU). In this description, a communications system implementing SIP and other related protocols is an example of an environment is which modules in accordance with some embodiments may be used to implement telephony services. However, it is contemplated that in further embodiments, modules may be used to create telephony services that work with other protocols or standards. The public network 12 may be coupled to various elements, including a terminal 14, which may be a network telephone or a computer having voice and/or image processing capabilities. The network 12 may also be coupled through a media gateway controller 16 to a public switched telephone network (PSTN) gateway 18 that provides the interface between a PSTN 40 and a packet-based data network such as the network 12. The PSTN 40 is connected to wireline telephones 42 as well as to mobile telephones and other mobile unit through wireless networks. Referring to Fig. 2, a representation of the architecture or framework in accordance with some embodiments includes three layers: a telephony service or application layer 100, an interface layer 102, and a network elements layer 104. The network elements layer 104 includes various network elements that provide telephony services. Some example network elements include elements shown in Fig. 1 as well as other elements: an attendant console (hard or soft), a handset gateway, station devices (smart or dumb), subscriber databases (people, relationships, etc.), network databases (component configuration and information), media server (recording, bridging, etc.), media storage, a PSTN gateway, a firewall system, a CDR database, a web server, an e-mail server, an application station, a real-time status box, a SIP proxy server, a SIP domain manager, a registration server, an authentication server, a database management directory, a server builder user interface (UI) platform, and other elements. The interface layer 102 includes various components, including translation components 110 to translate, interpret, or compile scripts or code; communications components 112 to enable communications to network elements; and representation components that provide representations or descriptions of the network elements so that the functionality of the network elements may be abstracted at higher levels. The interface layer 102 may be implemented in one or more elements in the network. For example, many of the components may be implemented in a SIP proxy server (such as one implemented in the call server 24). The translation components 110 may include a script engine (to interpret and execute scripts) and/or compilers or other translators or interpreters. The representation components 114 may include library files that describe the functions, tasks, and other details associated with network elements. The communications components 112 may include network APIs (application programming interfaces) and procedures to allow mechanisms for network elements to call other network elements, such as the Simple Object Access Protocol (SOAP), as described in an Internet Draft entitled "SOAP: Simple Object Access Protocol," dated September 1999. The communications components 112 may also include a Common Object Request Broker Architecture (CORBA) component that allows applications to communicate with one another no matter where they are located or who has designed them. CORBA is described in the CORBA/IIOP 2.3.1 Specification, dated October 7, 1999. The communications components 112 may also include Component Object Model (COM) objects. The services and applications layer 100 may include various software modules that contain elements (in the form of code or scripts) that represent or specify telephony services to be performed. Telephony services may include voice telephony, voice services (e.g., forwarding, etc.), voice mail (recording part), unified mailbox (voice, fax, e-mail playback), call center, integrated voice response (audio-attendant), e-commerce (web and telephony-based), conferencing, and groupware (collaborative applications), as examples. Referring to Fig. 3, a representation of the communications system of Fig. 1 in which APIs are implemented is shown. The elements coupled to the network 21, including the media gateway controller 28, the call server 24, the voice storage server 23, the database system 22, the web server 36, and so forth, may include a corresponding network API 210, 212, 214, 216, and 218, with each defining functions or routines the scripting engine 100 can call to perform actions specified during execution of a script module. Telephony services are implemented as script modules in this embodiment. The called API function or routine is then executed in the respective element to perform the requested action. The API residing in each network element depends on the tasks that are to be performed by that network element. Thus, for example, the call server 24 may include one type of API, while the database system 22 may include another type of API, such as the API defined by the Lightweight Directory Access Protocol (LDAP) Specifications from the IETF. Any type of API may be employed in any given network element, provided that the scripting engine 200 is aware of the API and can make calls to functions or routines in the API. The script modules 204, residing in one or more storage media accessible by the service scripting engine 200, may be created by a script generating wizard 206 and/or a user interface (UI) 208. In one embodiment, a telephony scripting language (TSL) may be used to generate the script modules. For services that are not implementable by scripts according to TSL, other modules 220 written in a more advanced programming language may be used to implement those services. Such programming languages may include C++, Java, and others. In accordance with one embodiment, TSL may be a text-based language according to an Extensible Markup Language (XML(), with one version described in "Extensible Markup Language (XML() 1.0," Worldwide Web Consortium (W3C) Recommendation, dated February 1998. XML( allows one to define a customized markup language for many classes of documents. XML( may be used to encode may different types of information, including the script modules as described herein for creating telephony services in accordance with some embodiments. Each script module may be represented as a state machine including a number of states and triggers that control transitions between different states. In each state or in transitions between states, certain actions corresponding to telephony services may be specified. Triggers are basically test conditions that cause the state machine making up a TSL script module to transition from one state to another. Actions are the tasks that are to be performed, which may be telephony tasks. As examples, triggers may include the following: a call identifier (to identify the calling party or terminal); a called identifier (to identify the party or terminal being called); a time indicator (to indicate the time of the call); a call progress state indicator (to indicate whether a call is busy, the number of rings that have transpired, whether there is no answer, and so forth); an indicator of detection of DTMF signals; information stored in a remote telephony cookie; an indicator of a database test; an indicator of detection of voice data; and other triggers. Telephony cookies are used to store information about telephony sessions between terminals. Referring to Fig. 4, the process of creating and executing telephony services in accordance with one embodiment is illustrated. A graphical user interface (GUI) 300 may be provided at a workstation 302 accessible by a user. In the graphical user interface 300, a graphical representation (e.g., in the form of state diagrams) of telephony services or applications may be generated. As an alternative, instead of a graphical user interface, services may be implemented as command lines or in a wizard. The representation of the desired service may then be converted to a script (at 304), such as according to TSL or another scripting language. The graphical representation of telephony services or scripts may be communicated to the translation component 110 of the interface layer 102 (Fig. 2), where they may be interpreted, translated, or compiled as appropriate. The script may then be interpreted or translated (at 306) to objects, such as Java objects or C++ objects, or other elements such as XML, Tcl, or Perl elements in the interface layer 102. Scripts may be interpreted by a script engine 200 to various objects or elements. A direct translation may also be performed (at 307) from the graphically represented module to one or more objects. Upon execution of the objects or elements in the interface layer 102, instructions, commands, messages, requests, and so forth (generally referred to as "commands") may be generated by the interface 102 and sent to appropriate network elements (at 308) to perform desired telephony services. The commands are generated based on the representations of the network elements by the representation component 114 in the interface layer 102. The commands may be in the form of SIP messages, MEGACO instructions, or other commands. MEGACO is described in IETF Internet Draft entitled "Megaco Protocol," dated in April 2000, and is also referred to as the H.248 protocol promulgated by the ITU. The SIP messages or MEGACO instructions may be passed through servers 312, such as a media gateway, media gateway controller, proxy server, or redirect server to the other network elements. Referring to Figs. 5A and 5B, an example state diagram of a voice mail message retrieval module is provided, with each state including various properties. The properties in one example embodiment may include the following. A state identifier (ID) may include a unique string to identify a state. An ActionBefore property represents an action to be taken before user input (such as to open a database). A MediaBefore property may represent audio to be played before user input (such as a greeting). A MediaAfter property represents audio to be played after user input but before the next state. An ActionAfter property represents action to be taken after user input but before the next state (e.g., to save a message). A DigitMap property represents acceptable DTMF (dual tone multi-frequency) digits or words. An ASR property enables or disables automatic speech recognition. A Timeouts property represents the maximum time periods to wait before a first input and between inputs. A RestartState property represents the state to return to when some invalid input is given. The default is to repeat the current state. Such state properties are provided as examples only, as different implementations may use different techniques. As shown in Fig. 5A, the ID of state 400 is "waitForExtension". The MediaBefore property of state 400 may include a string that indicates a greeting "Enter or say your extension." The DigitMap property includes some predetermined DTMF digit or word. ASR is turned on to enable speech recognition (to enable the voice mail system to recognize spoken digits). The Timeouts property includes the maximum number of seconds (e.g., 10) before a first input and the maximum number of seconds (e.g., 3) between inputs. The RestartState property includes the value ("error.wav", 0), where "error.wav" is an audio file containing an error message spoken to the user and 0 represents the default state (e.g., state 900) to transition to upon occurrence of an error. The module transitions to state 402 upon receiving an extension as user input. State 402, which has an ID of "waitForPasscode," is the state in which the system prompts for and waits for a pass code. The MediaBefore property includes the string "Enter or say your three-digit pass code". The ActionAfter property includes an Authenticate() method that is used to authenticate the entered password. If not authenticated, the state machine returns to state 400. If authenticated, the state machine proceeds to state 404, which has an ID of "waitForRead." The ActionBefore property includes the NumMessage() method, which determines the number of messages stored at the extension. The MediaBefore property includes the string "You have one new message. Enter or say 1 to listen." The ActionAfter property includes a Choose() method that chooses the message to listen based on the user input. The DigitMap property includes a string "12" to accept either a 1 or 2 as the DTMF digit or word. If either a 1 or 2 is received, the state machine transitions to state 406, which has an "waitForRead". The ActionBefore property includes the GetMedia() method, which accesses the storage media used to store the message. The MediaBefore string may include "Hello, this is Joe". The ActionAfter property includes the Choose() method, and the DigitMap property includes "*", which represents acceptance of a "*" as a DTMF digit. If "*" is received, the state machine transitions to the next state 408, which has ID "waitForSaveDelete". The MediaBefore property includes the string "Enter 1 to save, 2 to delete, # to listen to the next one." The ActionAfter property includes the Choose() method, and the DigitMap includes the string "12 #". If "#" is received, then the state machine transitions back to state 406 to choose the next message. If "1" is received, then the message is saved in state 410. If "2" is received, then the message is deleted in state 412. State 410 has the ID "waitForSave". The ActionBefore property includes the Save() method to save the message. The MediaAfter property includes the string "Message saved. Press # for next message." The ActionAfter property includes the Choose() method, and the DigitMap property includes the "#" value. If "#" is received in state 410, the state machine proceeds to a state to retrieve the next message. State 412 has the "waitForDelete" string, and the ActionBefore property includes a Delete() method to delete the message. The MediaAfter property includes the message string "Message deleted. Press # for next message", and the ActionAfter property includes Choose(). The DigitMap property includes the "#" value, which the state machine waits for to proceed further to process the next message. The module as illustrated in Figs. 5A-5B contains elements that specify certain telephony services to be performed. In the example, the services are associated with an IVR system. The module is unconcerned with which network elements actually perform a specified service, thus making the task of the software developer much more convenient. Referring to Fig. 6, an example system including CORBA components for implementing telephony services is illustrated. Script modules 502 that provide for various telephony services may be written according to TSL. The script modules may be interpreted by a script engine into JAVA objects 504, in one example. The JAVA objects 502 are considered to be client applications that can initiate telephony services on various network elements. The JAVA objects 502 are unaware of the physical locations of the network elements, the protocol (e.g., language of software running in the network element), and other aspects of the network. To provide the interface between the client objects 504 and the network elements, an object request broker (ORB) 506 and the other CORBA components are implemented in the system. The ORB 506 is a middleware that establishes the client-server relationships between the client applications (JAVA objects 502) and server objects (network elements). Using the ORB 506, each client object 502 can transparently invoke a method on a server object, which can be on the same machine or across a network. The ORB 506 intercepts a method call from a client object 504, finds the appropriate server object, passes appropriate parameters, invokes the method on the server object, and returns results to the client object. THE ORB 506 accesses an interface repository 512 to perform requests. A dynamic invocation interface (DII) 508 enables a client object 502 to directly access the underlying request mechanisms provided by the ORB 506. Client objects 504 have access to CORBA services 514 and CORBA applications 516 through the DII 508. One or more databases 518 are accessible by the interface repository 512, CORBA services 514, and CORBA applications 516. The elements 512, 514, and 516 may be resident on one or more network servers. The telephony services implemented by the client objects 504 and CORBA components may be accessible to a device station 520 through various protocols, such as SIP (Session Initiation Protocol), RTP (Real-Time Protocol), or HTML (Hypertext Markup Language). Referring to Fig. 7, an example of how an IVR service can be implemented in the system of Fig. 6 is illustrated. A script module may contain the following line of code for retrieving an input from a caller by an IVR system 602: String UserInput = ivrServer.getInput (mediaServer.getAudio ("mainMenu"), "#", null). The code may be interpreted by the script engine 501 into a client object 504. The client object 504 calls the getAudio method in a media server (mediaServer) implemented in the IVR system. The "mainMenu" parameter is passed to the getAudio method to play the main menu recording, which is retrieved through a storage interface 604 and presented back to the client object 504 as an RTP playback stream by a device 606 (which may be on the same platform as the storage interface 604 or on a different platform). Another method called by the client object 504 is a getInput method to request user input. Any input entered by user (which is assumed to be a keypad entry) is processed by the DTMF decoder 608, with the tone corresponding to the received digit played back by an RTP record element 610. Further processing may be performed based on the received user input, such as the IVR system transitioning to another menu for further user input or forwarding of the call to an extension. Thus, a method and apparatus has been described that allows for more convenient and efficient creation of telephony services. An interface layer including translation components, communications components, and representation components is used to cooperate with user-created modules (e.g., scripts or other forms of representations) to perform telephony services. Upon execution of the modules, commands are created and communicated to network elements to perform the telephony services. To facilitate creation of telephony services, representations of network elements may be stored in the interface layer, with such representations accessed to generate appropriate commands to network elements to perform telephony services. The various software modules, routines, or other layers (represented generally as 708 in Fig. 8) discussed herein may be executed on control units, such as one or more control units 712 in a system 700. The control unit(s) 712 may include a microprocessor, a microcontroller, a processor card (including one or more microprocessors or microcontrollers), or other control or computing devices. The control unit(s) 712 may be coupled to one or more storage units 514, which may include one or more machine-readable storage media for storing data and instructions. The storage media may include different forms of memory including semiconductor memory devices such as dynamic or static random access memories (DRAMs or SRAMs), erasable and programmable read-only memories (EPROMs), electrically erasable and programmable read-only memories (EEPROMs) and flash memories; magnetic disks such as fixed, floppy and removable disks; other magnetic media including tape; and optical media such as compact discs (CDs) or digital video discs (DVDs). Instructions that make up the various software routines, modules, or other layers may be stored in respective storage units. The instructions when executed by a respective control unit cause the corresponding node or element to perform programmed acts. The instructions of the software routines or modules may be loaded or transported into the node or element in one of many different ways. For example, code segments including instructions stored on floppy discs, CD or DVD media, a hard disk, or transported through a network interface card, modem, or other interface device may be loaded into the system and executed as corresponding software routines or modules. In the loading or transport process, data signals that are embodied as carrier waves (transmitted over telephone lines, network lines, wireless links, cables, and the like) may communicate the code segments, including instructions, to the network node or element. Such carrier waves may be in the form of electrical, optical, acoustical, electromagnetic, or other types of signals. As shown in Fig. 8, the system 700 also includes a network interface to allow it to communicate over the data network. Above the network interface 702 are a network driver 704, a network stack 706 (e.g., a TCP/IP and/or a UDP/IP stack), and protocol stacks 710 (e.g., a SIP stack, an RTP stack, and so forth).

Claims: A method for use in a communications network (10) having network elements (16,23,24,26,30,32,33) for performing telephony services, comprising: providing an interface (102) to the network elements; receiving requests, by the interface, specifying performance of telephony services; and sending, in response to said requests, commands to one or more network elements involved in performing the desired telephony services; characterised in that said requests are received from a software module (100); and said commands are sent over a packet based network (12,21). The method of claim 1, wherein providing the interface comprises providing representations (114) of the network elements, the method further comprising accessing the representations to generate the commands to the one or more network elements. The method of claim 1, wherein receiving requests from the software module comprises receiving requests from script modules (502,504). The method of claim 3, wherein providing the interface comprises providing a script engine (501). The method of claim 3, wherein providing the interface comprises providing a script engine (501) and an application programming interface (508). The method of claim 1, wherein providing the interface comprises providing a Simple Object Access Protocol component (112). The method of claim 1, wherein providing the interface comprises providing a Common Object Request Broker Architecture component (112). The method of claim 1, further comprising representing the software module as a state machine having a plurality of states each representing an action corresponding to a telephony service. The method of claim 1, further comprising the software module receiving user input from which is generated the requests. The method of claim 1, wherein sending the commands comprises sending the,commands to one or more network elements selected from the group consisting of an integrated voice response system, a DTMF decoder, a voice mail system, and a recording system. An,apparatus (16,23,24,26,30,32,33) for providing telephony services in a communications network having network elements (16,23,24,26,30,32,33) comprising: a software module (100) containing instructions specifying performance of telephony services in the communications network; characterised by an interface layer (102) comprising one or more components responsive to execution of the modules to provide commands over a packet based network (12,21) to corresponding network elements to perform the telephony services specified by the software module. The apparatus of claim 11, wherein the interface layer comprises representations (114) of the network elements. The apparatus of claim 11, wherein the interface layer comprises a communications component (112) to send the commands to the network elements. The apparatus of claim 13, wherein the communications component comprises an Object Request Broker. The apparatus of claim 13, wherein the communications component comprises an application programming interface. The apparatus of claim 13, wherein the commands may include Session Initiation Protocol messages. The apparatus of claim 11, wherein the software module comprises a script. The apparatus of claim 11, wherein the software module comprises a Java object (504). A computer program product capable of running the steps of the method of any of claims 1 to 10. The computer program product of claim 19, wherein the method comprises sending commands according to a Command Object Request Broker Architecture protocol. The computer program product of claim 19, wherein the method comprises performing one or more of the tasks selected from the group consisting of play recording, receive dual tone multi-frequency signals, receive voice data, access voice mail, and forward a call.

Inventors: CHU JINCHI, DOLINAR LARRY, KALLAS MICHEL, CHU, JINCHI, DOLINAR, LARRY, KALLAS, MICHEL
Applicants: NORTEL NETWORKS CORP, NORTEL NETWORKS CORPORATION
Application year: 2000
Main classification: H04Q3
IPC codes: H04Q3, H04M3, H04M7