The Session Initiation Protocol (SIP) is a signaling protocol that provides a mechanism for a computing device to locate another device it wants to communicate with over a computer network and to establish a communication session therewith. In particular, SIP is an Internet Engineering Task Force (IETF) standard protocol for initiating interactive user-sessions in a number of scenarios. For example, SIP is used for Internet conferencing, telephony, gaming, virtual reality, event notification, and instant messaging. The SIP protocol enables call setup initiation, routing, authentication and other feature messages to endpoints within an internet protocol (IP) domain.
Like HTTP or SMTP, SIP works in the Application Layer of the Open Systems Interconnection (OSI) communications model. As such, SIP can establish multimedia sessions or Internet telephony calls, and modify or terminate them. The SIP protocol can also invite participants to unicast or multicast sessions that do not necessarily involve the initiator. Because the SIP supports name mapping and redirection services, users initiate and receive communications and services from any location and networks are capable of identifying users within the network.
A soft phone application is a SIP user agent (UA) which may be hosted by a home server; the soft phone application may provide an interface to telephony services. The application may act as an ECMA (European Computer Manufacturers Association) computing application which uses services from an ECMA switching system (PBX).
A method for monitoring a common PBX phone line from a plurality of personal computer endpoints includes registering for a single user multiple instances of application of a soft phone application running on multiple personal computer endpoints. Each instance of application is registered for a common PBX phone line under control of a SIP/ECMA server. A first instance of application establishes a first SIP dialog with the SIP/ECMA server. A second instance of application establishes a second SIP dialog with the SIP/ECMA server simultaneously with the first SIP dialog. The method includes monitoring the status of the common PBX phone line simultaneously with the first instance of application and the second instance of application.
This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used as an aid in determining the scope of the claimed subject matter.
Features and advantages of the disclosure will readily be appreciated by persons skilled in the art from the following detailed description when read in conjunction with the drawing wherein:
In the following detailed description and in the several figures of the drawing, like elements are identified with like reference numerals. The figures are not to scale, and relative feature sizes may be exaggerated for illustrative purposes.
Turning to the drawings, exemplary embodiments are illustrated as being implemented in a suitable computing environment. Although not required, the embodiments will be described in the general context of computer-executable instructions, such as program modules, being executed by a personal computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. Moreover, those skilled in the art will appreciate that the features of the embodiments may be practiced with other computer system configurations, including hand-held devices, multi-processor systems, microprocessor-based or programmable consumer electronics, network PCs, minicomputers, mainframe computers, and the like. Embodiments of the invention may be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote memory storage devices.
The following description begins with a description of a general-purpose computing device that may be used in an exemplary system for implementing embodiments of the invention, which will be described in greater detail with reference to
Embodiments of the invention may be operational with numerous other general purpose or special purpose computing system environments or configurations. Examples of well known computing systems, environments, and/or configurations that may be suitable for use with embodiments of the invention include, but are not limited to, personal computers, server computers, hand-held or laptop devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like.
Embodiments of the invention may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. Embodiments of the invention may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
With reference to
Computer 110 typically includes a variety of computer readable media. Computer readable media can be any available media that can be accessed by computer 110 and includes both volatile and nonvolatile media, removable and non-removable media. By way of example, and not limitation, computer readable media may comprise computer storage media and communication media. Computer storage media includes both volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by computer 110. Communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media. The term “modulated data signal” means a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal. By way of example, and not limitation, communication media includes wired media such as a wired network or direct-wired connection, and wireless media such as acoustic, RF, infrared and other wireless media. Combinations of the any of the above should also be included within the scope of computer readable media.
The system memory 130 includes computer storage media in the form of volatile and/or nonvolatile memory such as read only memory (ROM) 131 and random access memory (RAM) 132. A basic input/output system 133 (BIOS), containing the basic routines that help to transfer information between elements within computer 110, such as during start-up, is typically stored in ROM 131. RAM 132 typically contains data and/or program modules that are immediately accessible to and/or presently being operated on by processing unit 120. By way of example, and not limitation,
The computer 110 may also include other removable/non-removable, volatile/nonvolatile computer storage media. By way of example only,
The drives and their associated computer storage media discussed above and illustrated in
The computer 110 may operate in a networked environment using logical connections to one or more remote computers, such as a remote computer 180. The remote computer 180 may be a personal computer, a server, a router, a network PC, a peer device or other common network node, and typically includes many or all of the elements described above relative to the computer 110, although only a memory storage device 181 has been illustrated in
When used in a LAN networking environment, the computer 110 is connected to the LAN 171 through a network interface or adapter 170. When used in a WAN networking environment, the computer 110 typically includes a modem 172 or other means for establishing communications over the WAN 173, such as the Internet. The modem 172, which may be internal or external, may be connected to the system bus 121 via the user input interface 160, or other appropriate mechanism. In a networked environment, program modules depicted relative to the computer 110, or portions thereof, may be stored in the remote memory storage device. By way of example, and not limitation,
SIP implements the network protocol. ECMA-323 XML messages are tunneled in SIP messages (INVITE and INFO). The soft phone application and the PBX SIP/ECMA front end (FE) 220, which terminate the defined interface, are SIP user agents (UAs). As with any SIP architecture, the protocol primitives can traverse SIP proxies. As a result, these intermediates can act on behalf of the SIP UAs and inject any required policies, such as authentication.
SIP establishes a transport channel and an association between the computing application (SPA 202A) on device 202 and the switching system. The computing application is a soft phone application on behalf of a user (e.g., Alice) and the switching system is a PBX phone's line. The logical name of the user is described in the SIP From header while the PBX phone's line is described in the SIP To header.
ECMA-323 uses a device ID to identify a specific line. This device ID is associated with the SIP From and To headers via a provisioned database. Each line is provisioned with a SIP URI (used in the To header), a device ID (used in ECMA-323, when applicable in a service request) and an owner (used in the From header).
For example a SIP From header is sip:alice@userdomain.com, a SIP To header is sip:+14257777777@phonedomain.com and a device ID is tel:+14257777777. The home server 210 authenticates Alice, using Alice's credentials on a home server 210 while the PBX SIP/ECMA Front End 220 authorizes the ECMA-323 request, using a provisioned database, that holds the association between a phone line (Tel URI) (an example line is depicted as Alice's phone line 234 in
The same user, e.g. Alice, may run multiple soft phone applications on different devices. For example, Alice may have another device (Alice') 204, e.g. a mobile phone or a laptop computer, connected to the home server 210. The device 204 may be running a second instance of application of the soft phone application 204A. SIP establishes a transport channel and an association between the computing application (SPA 204A) on device 204 and the switching system.
In an exemplary embodiment, Alice may monitor and control her assigned PBX line using SPA 202A running on device 202 and/or using SPA 204A running on device 204. For example, Alice could receive a call while working at device 202, transfer the call to device 204 e.g. in an other room, complete the call on device 204, and terminate the call on device 204, clearing the phone line connection. An exemplary flow diagram illustrates features of the embodiment in
An exemplary method 250 is illustrated in
To further illustrate features of embodiments of the invention,
The enterprise represented by cloud 310 includes a home server domain 320. The home server domain 320 includes a home server 322, which may be implemented in one exemplary embodiment by a Live Communication Server (LCS) system by Microsoft Corporation, and an Active Directory 324. While theoretically the Active Directory (AD) could be run on the same machine as the home server, it is typically on a different machine. The home server domain further includes a computing device 330 such as a personal computer, for example, connected on a local area network (LAN) to the home server 322.
The enterprise 310 also includes a PBX domain 340, which may include an optional PBX SIP proxy 342, which hosts several SIP/ECMA servers, e.g. SIP/ECMA front end (FE) 344 for PBX 350 and SIP/ECMA FE 346 for PBX 352. In general there may be a one to one relationship between a ECMA front end and a PBX, or one ECMA front end to many PBXs. The relation between the FE and the PBX may be a proprietary CTI link. The proxy server 342 may be the core of a SIP IP PBX or can be used just to proxy the SIP/ECMA servers, e.g., to simplify routing and proxy authorization. The PBX domain may include hard phones, e.g. PSTN hard phone 354.
The home server domain 320 may optionally also include a hard phone 326 connected directly to a PBX 350, as depicted in
The same user, e.g. Alice, may run multiple soft phone applications on different devices. For example, Alice may have another device 360, e.g. a mobile phone or a laptop computer, connected over the internet 370 to the home server via an internet connection depicted as link 372.
A soft phone application (SPA) is a SIP user agent (UA) which is hosted by a home server; the soft phone application may provide an interface to telephony services. In an exemplary embodiment, the SPA acts as an ECMA computing application, which uses services from the ECMA switching system (PBX). An exemplary soft phone application is implemented by the Microsoft Office Communicator 2005 product from Microsoft Corporation. The SIP/ECMA server implements a SIP UA which is hosted by a different (i.e. that of the PBX) SIP domain. The interface between SIP/ECMA server and the PBX can be ECMA or any proprietary CTI protocol. The SIP interface between PBX domain and the home server domain may be secured by Mutual Transport Layer Security (TLS).
Each user may run multiple soft phone applications simultaneously on different devices. For example, in
After registration each instance of application may establish a SIP dialog with the SIP/ECMA server that is used to monitor and control the PBX phone's line assigned to the user Alice. The line is assigned to Alice by the specific telephony provisioning process in a given application. For example when a new employee joins a company, which has an installed PBX system, part of the process would involve assigning a phone number and a line (the telephone jack in the actual office in which the employee will sit). The information of which line is assigned to which user resides in the Active Directory 324; it is typically provisioned in the Active Directory and the PBX database. When a call is presented to the phone, (the phone rings), then an alerting event is sent to each instance of application that monitors the line and as a result, in an exemplary embodiment, an alerting popup screen may be presented to the user's device display. As a result the user may invoke control services from each instance such as, Answer Call or Deflect Call.
In an exemplary embodiment, the soft phone application, e.g. SPA 330-1, sends out a SIP INVITE message to the Gateway, i.e. the SIP/ECMA FE, when it wants to start monitoring a phone device. INVITE itself will try to get the status of the PBX and CTI link and Gateway status in order to figure out if a monitoring session can be created. The dialog that is created by the INVITE is used to control/monitor only a single line in an exemplary embodiment. On successful response, the soft phone application will then get the status of the phone line itself and then register for events with the Gateway. In an exemplary embodiment, all subsequent commands from the soft phone application to the Gateway are sent as a SIP INFO message with the actual ECMA command encoded as XML carried in the message body of the INFO. The command issued could change the state of the phone monitored. In that case a SIP INFO message is sent back to all the soft phone application clients currently having a connected INVITE session with the Gateway for monitoring this particular phone device. The Gateway will send the exact same state description to all the soft phone clients watching this phone, so that all of the user's PC endpoints running the soft phone application will have the same view of the phone state. This enables the user to control or monitor the phone from multiple PC endpoints simultaneously.
A sample SIP INVITE message sent to start the monitoring/controlling session with the SIP-CSTA Gateway is set out in Table 1. The phone extension being controlled is 29748.
Table 2 sets out a sample SIP INFO message as sent by the soft phone application to the SIP-CSTA Gateway in order to make a phone call from the controlled phone to the other phone number, 29768.
Table 3 is a sample INFO message as sent by the SIP-CSTA Gateway to any soft phone application client which is currently having an INVITE session with the Gateway for monitoring the phone device identified by the device ID, 29748. The SIP INFO message sent to each client has the exact same message body. The SIP headers could be different based upon the routing information. This SIP INFO message informs the client about a call ringing on the phone being monitored.
An exemplary method for monitoring and control of a PBX phone line by multiple instances of application in the exemplary environment of
Steps 1-2: Application instances (Alice 330 and Alice' 360) ¢find” user's controlled lines. The soft applications get Remote Call Control line configuration parameters from the home server 322 via LCS in-band provisioning.
Steps 3-13: Application Service Association for instance Alice. The soft phone application sends a SIP INVITE message to each controlled phone's line that, in this exemplary embodiment, includes a Content-Disposition header indicating “signal” and “handling=required” to mandate support for the application/csta+xml MIME type. An ECMA-323 Request System Status service request is included in the SIP INVITE body with the Content-Type application/csta+xml. In this exemplary embodiment, the SIP INVITE message is propagated from the Alice application 330 to the home server 322 (step 3), from the home server to the SIP proxy 342 (step 4), and from the SIP proxy 342 to the SIP/ECMA server 344 (step 5).
A SIP 200 OK response, that includes ECMA-323 Request System Status response, may be sent back (steps 8-10).
If the PBX SIP/ECMA front end does not support this MIME type, it provides a 415 (Unsupported Media Type) response. A SIP dialog can be rejected due to other failure conditions, such as authorization. In this case an appropriate SIP response error message is sent instead of 200 OK at steps 8-10.
The soft phone application continues only if it receives a SIP 200 OK with a Request System Status response equal “Normal”. Otherwise it closes the SIP dialog and notifies the user that the line cannot be accessed.
Steps 6-7: Authorization (Alice) The PBX ECMA front end authorizes a response to this INVITE request. There are several exemplary ways to authorize the request.
1. Local Information: The ECMA front end has information locally which says Alice is allowed to control this specific phone.
2. Simple AD lookup: The ECMA front end reads information in the AD which says Alice is allowed to control this phone.
3. Native AD Authorization: The front end impersonates Alice—i.e. acts on behalf of Alice to read security information from the AD. AD access control lists are setup to allow (or disallow) Alice to read this information. The front end infers that if it is allowed to read the security information (while impersonating Alice) then Alice is allowed to control the phone
An exemplary algorithm for authorizing a response to the INVITE request is the following:
Get requester identity from SIP INVITE or INFO “From” header
Get controlled Device ID from CSTA XML message
If CSTA XML does not include a controlled device ID then approve
If controlled device ID exist in server flat file and requester is on the list of approved users, (for this device), then approve (Note: this list is used for exceptions, such as Admin users)
Get owner identity, via a reverse lookup using Device ID as a key in (Search AD, Find the User whose msRTCSIP-Line equals “Controlled Device ID”, then get the ‘msRTCSIP-PrimaryUserAddress’ of that User)
If found
else (not found) reject
The exemplary algorithm for authorizing a response to the INVITE request may access the line's database, e.g., via LDAP (Lightweight Directory Access Protocol, a standard means of accessing X.500 directories such as AD), or uses the cached store. The key that is used to find the user's lines, in an exemplary embodiment, is the user's LCS identity (SIP URI, such as sip:alice@microsoft.com). If the database is already cached by the application, then it uses the cached store instead. If found, it sends an authorization message (step 6), with a return message from Alice (step 7). The policy as to who can control the line is provisioned in the Active Directory. In order to verify that a requestor can control the line the SIP/ECMA FE accesses the Active Directory to fetch this information. If the authorization passes then it processes the request and send a SIP 200 OK response with an encapsulated ECMA-323 (steps 8-10). Otherwise it sends a SIP 403. The Alice application returns a SIP ACK message (steps 11 -13) to the SIP/ECMA server.
Steps 14-19: Soft phone instance application: Alice checks the phone line's capabilities. The soft phone application sends a SIP INFO message with an encapsulated ECMA-323 “Get CSTA Features” (steps 14-16). The PBX ECMA front end 244 sends a SIP 200 OK response with an encapsulated ECMA-323 CSTA features (list of supported services and events) response (steps 17-19). The SIP INFO message is routed within a dialog that has been established by SIP INVITE (steps 3-13). It is routed in the same path (all messages within the dialog traverse through the home server) and authenticated by the home server.
Steps 20-25: Soft phone instance application Alice starts monitoring the PBX phone line. The soft phone application sends a SIP INFO message with an encapsulated ECMA “start monitor” request (steps 20-22). The SIP/ECMA FE 244 authorizes this request (as described above) and sends a SIP 200 OK response with an encapsulated ECMA-323 response (steps 23-25). The Start Monitor request is sent per a specific line (described by device ID in ECMA-323). After Start Monitor response the switching system (the SIP/ECMA FE) starts sending line notifications (events).
Steps 26-36: Application Service Association for instance Alice': The soft phone application for instance of application Alice' 360 sends a SIP INVITE message to each controlled phone's line that includes a Content-Disposition header indicating “signal” and “handling=required” to mandate support for the application/csta+xml MIME type (steps 26-28). An ECMA-323 Request System Status service request is included in the SIP INVITE body with the Content-Type application/csta+xml. A SIP 200 OK response, that includes ECMA-323 Request System Status response, is sent back (steps 31-33). If the PBX SIP/ECMA front end does not support this MIME type, it provides a 415 (Unsupported Media Type) response. A SIP dialog can be rejected due to other failure conditions, such as authorization. In this case an appropriate SIP response error message is sent instead of 200 OK. The soft phone application continues only if it receives a SIP 200 OK with a Request System Status response equal “Normal”. Otherwise it closes the SIP dialog and notifies the user that the line cannot be accessed.
Steps 29-30: Authorization (Alice'): The PBX ECMA front end 244 authorizes this request (step 29), e.g. using the algorithm described above. It may access the line's database via LDAP or use its cached database. If the authorization passes (step 30), then it processes the request and sends a SIP 200 OK response with an encapsulated ECMA-323 (steps 31-33). Otherwise it sends a SIP 403. The instance of application returns a SIP ACK message (steps 34-36).
Steps 37-42: Soft phone instance application Alice' checks the phone line's capabilities: The soft phone application sends a SIP INFO message with an encapsulated ECMA-323 “Get CSTA Features” (steps 37-39). The PBX ECMA front end sends a SIP 200 OK response with an encapsulated ECMA-323 CSTA features (list of supported services and events) response 40-42). A SIP INFO message is routed within a dialog that has been established by SIP INVITE. It is routed in the same path (all messages within the dialog traverse through the home server) and authenticated by the home server.
Steps 51 -96: Run Time
The PBX ECMA front end reports events that match the subscription request (“monitor start”) via SIP INFO messages, e.g. steps 49-51. On the other side of the interface, the soft phone application processes the events and responds to each one with a SIP 200 OK, e.g. steps 52-54.
The soft phone application sends requests for services based on application logic. These requests may trigger new events that are reported as described above. For example, Alice' sends a request for an ANSWER CALL service at steps 61-63. On the other side of the interface the PBX ECMA front end processes these requests and sends responses, e.g. ANSWER CALL APPROVE at steps 64-66. Now Alice' has established a call over the controlled phone line (steps 67-69 and 70-72). Since Alice 330 has also established a SIP dialog for the controlled phone line, the SIP/ECMA server also sends Alice messages regarding the status of the line, including for this example, that the call has been established (steps 73-75), and Alice has returned a SIP OK message (steps 76-78). Now assume that the user at Alice has decided to terminate the call. Alice 330 sends a command to the SIP/ECMA server, SIP INFOR (Clear Connection), steps 79-81. The server responds with a SIP 200 OK (Clear Call Approve) message (steps 82-84), and a SIP INFO (Connection Cleared) message (steps 85-87) and Alice responds with a SIP 200 OK message at steps 88-90. The server sends a SIP INFO (Connection Cleared) message to Alice' at steps 91-93, and Alice' responds with a SIP 200 OK message at steps 94-96.
Of course, the particular request and responses shown in
Each side (PBX ECMA front end or soft phone application) can gracefully tear down the dialog that is used for sending requests and responses by sending a SIP BYE message. In an exemplary embodiment, the soft phone application sends a Stop Monitor request, using INFO message, before closing the SIP dialog.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.