Abstract:
A call set-up system sets up a call, which may be a voice call, between terminals through a plurality of packet switched networks using call agents. The networks are interconnected by network address translation (NAT) devices, and the messages to successive call agents include media addresses in the associated networks for the actual data packets of the call when it has been set up. The call set-up message includes the media address sent to at least some preceding call agents enabling NAT resources to be saved. The call agents can be incorporated into NAT devices, and the media addresses can be encrypted or in the form of a reference.

Description:
CROSS-REFERENCE TO RELATED APPLICATIONS 
       [0001]    This application is a continuation application of U.S. patent application Ser. No. 10/578,464 filed Mar. 15, 2007, which is a National Stage of International Application No. PCT/EP2004/52835 filed Nov. 5, 2004, which claims priority from foreign application GB 0326160.9, filed in the United Kingdom on Nov. 8, 2003, the disclosures of each of which are incorporated herein by reference in their entirety. 
     
    
     BACKGROUND 
       [0002]    This invention relates to call set-up systems. 
         [0003]    Call set-up systems are known in which call set-up involves a plurality of call agents associated with respective packet-switched networks which are connected to each other by means of NAT (network address translation) devices, also known as address translators. The NAT devices define addresses within one network which provide a connecting path to the other network to which it connects. The call set-up devices define a series of addresses, including those of NAT devices, via which the media packets of the call are sent. In a call between two user terminals, for example, there are two paths between the two terminals, one in each direction. Typically, the media call takes place between one or more private networks joined by the internet. The invention is particularly concerned with voice calls. There is increasing interest in using IP (Internet Protocol) for voice in place of the usual circuit-switched telecommunications network, because there are maintenance savings if one network can be used for two different functions. 
         [0004]    One known protocol for initiating voice calls via the internet is Session Initiation Protocol (SIP-RFC 3261), although it can also be used for initiating calls using other interactive media such as video or games. This protocol is adapted for use in the case of calls involving private networks and the internet. 
         [0005]      FIG. 1  shows the set-up of a call using SIP signalling, between two networks. A call is made from user agent P in network  1 , for example, a private network, to user X (not shown) in the central network  2 , for example, the internet. It is forwarded on behalf of user X by call agent S to user agent V, which is in the same private network  1  as the caller. 
         [0006]    All SIP signalling messages are shown in  FIG. 1 , but the text of messages is not shown. SIP messages are standard messages whose format can be seen from IETF call examples documents. 
         [0007]    User agent P initiates a call by sending an SIP Invite message to its local call agent Q. This message contains a session description (Session Description Protocol—RFC 2327) indicating the media characteristics and the address (1.1.1.1) at which user agent P wishes to receive media packets. For convenience, only the last two segments of this address, and of other addresses, are shown in  FIG. 1 . 
         [0008]    Call agent Q responds with a SIP ‘100: trying’ message. 
         [0009]    Call agent Q determines that the destination, X, of the call is in the central network  2 , and that this is reached via a network NAT device R which it controls. It therefore opens a pinhole in NAT device R to permit a media flow from the central network to the media address of user agent P (1.1.1.1). The address returned to call agent Q by NATR (2.2.2.1) is then used in an Invite message sent by call agent Q to call agent S in the central network (A pinhole is a path through the NAT device that is opened specifically for a single media flow. The term ‘pinhole’ emphasises that only packets with a particular combination of source and destination addresses will pass through the NAT device, while other packets that do not match a pinhole will be blocked.) 
         [0010]    Call agent S responds with a ‘100: trying’ message. 
         [0011]    Call agent S determines that user X has requested that their calls be forwarded to user agent V, and that the new destination is reached via call agent U in private network  1 . User X could be a home telephone number accessible via the internet, and the user could have set up an arrangement for their calls to be forwarded to their office in the private network  1 . Call agent S therefore passes on the Invite message with a changed URI (Uniform Resource Identifier), in this case, the name of the communications resource defining the destination of the call, to call agent U. 
         [0012]    Call agent U responds with a ‘100: trying’ message. 
         [0013]    Call agent U recognises that the call has arrived from a different network via a NAT device T that it controls. It therefore opens a pinhole in NAT device T to permit a media flow from the edge network  1  to the media address within the central network (2.2.2.1). The address returned by NAT device T (1.1.1.3) is then used in the Invite message sent to user agent V. 
         [0014]    The call has now reached its destination. User agent V responds with a ‘180: ringing’ message that is passed back to the caller via the chain of call agents. 
         [0015]    When the call is answered, user agent V sends a ‘200: OK’ message back to call agent U. The message contains a session description indicating the media characteristics and the address (1.1.1.4) at which user agent V wishes to receive media packets. 
         [0016]    Call agent U recognises that this message is for a call that arrived via NAT device T that it controls. It therefore opens a pinhole in NAT device T to permit a media flow from the central network  2  to the media address within the edge network (1.1.1.4). The address returned by NAT device T (2.2.2.2) is then used in the OK message passed on to call agent S. 
         [0017]    The OK message is passed back by call agent S to call agent Q. 
         [0018]    Call agent Q recognises that this call passes through NAT device R that it controls. It therefore opens a pinhole in NAT device R to permit a media flow from the edge network  1  to the media address within the central network (2.2.2.2). The address returned by NAT device R (1.1.1.2) is then used in the OK message passed on to user agent P. 
         [0019]    User agent P then completes the SIP signalling sequence by sending an ACK message. This is passed along the chain of call agents to the called user agent V. The user agents have each received an address within their local network to which media packets should be sent. This is the address of their local network address translation device, R and T. The NAT devices have been configured to send media packets received from the edge network  1  to the address of the other NAT device within the middle network  2 . The NAT devices have also been configured to send media packets received from the middle network to the address of the user agents in the edge network  1 . Media packets can therefore be sent between the two user agents P,V via the two NAT devices R and T via media paths  3 ,  4 ,  5  in one direction, and via media paths  3   a,    4   a,    5   a  in the return direction. 
         [0020]    The resulting media flow is looped unnecessarily through the central network  2 , through paths  4 ,  4   a.    
         [0021]    It will be seen that IP calls traversing multiple NAT devices lose information about preceding networks at each NAT device. If the call is routed back into a network segment that it has already traversed, then it is not possible to connect directly in that network segment. This can result in unnecessary network traffic and over-use of some network paths. 
         [0022]    In one particular application, the edge network could be a small office, NATs T and R could be incorporated into one personal computer which can communicate with the internet  2 , and user agents P and V could be other personal computers, and there could be further personal computers (not shown) in the edge network. The personal computers could all be in speech communication with each other using SIP, albeit via the personal computer in communication with the internet. Unfortunately, each time a call is set up, such as between user agents P and V, it traverses NATs T and R, and uses up scarce media paths. The reason for going via the NAT pinholes is that the normal SIP protocol requires media addresses to be selected before the call agent determines the final destination of the call. If a route via the NAT is selected then the call will succeed if it terminates in a different network, and (by means of constructing another pinhole to re-enter the original network) will also succeed if the call terminates back in the same network as its origin. Selecting a NAT route for all calls is thus the safe option that will always work, albeit inefficiently. 
         [0023]    A further example is shown with reference to  FIG. 2 , which shows the set-up of a call using SIP signalling, between three networks. A call originating at device A in network  6  (Office LAN  1 ) is initially routed via the internet  7  to device B in network  8  (Office LAN  2 ), and then forwarded to device C in network  6 . As the call traverses each NAT device  9 , 10  connecting the networks, information about the previous network is lost. The resulting call therefore consumes resources in all three networks. It will be noted that in  FIG. 2 , both outward and return paths of the call are shown as a single line. This convention also applies to the other figures. 
         [0024]    A solution known as dropback re-routing has been proposed using techniques such as the ‘302: Moved temporarily’ response defined in SIP RFC3261, under which a new call is established directly between A and C, but this means that the call is no longer able to be controlled by devices elsewhere in the network (such as device B). 
       BRIEF SUMMARY 
       [0025]    The invention provides a call set-up system, for the set-up of calls in a plurality of packet-switched networks connected to each other by network address translation (NAT) devices using a plurality of call agents, comprising means to send messages to successive call agents, which messages include address information for media packets within networks associated with the call agents, to define the media path of the call, at least some of the messages also including address information for media packets sent to preceding call agents involved in the set-up of the call. 
         [0026]    The system allows the media path of the call to take advantage of possible short-cuts because call set-up does not only pass, as hitherto, address information for media packets within the network associated with the call set-up device, but also address information within networks associated with previous call set-up devices as well. Thus, if a call was set up from a first network to a second, and then back to the first, the messages passed would enable the media path of the call to be local to the first network only rather than, as hitherto, traversing addresses in the second network. 
         [0027]    The present invention allows the route of associated media flows to be optimised. The call signalling, which consumes little network resource, could retain its original path. 
     
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
         [0028]    Call set-up systems in accordance with the invention will now be described in detail, by way of example, with reference to the accompanying drawings, in which: 
           [0029]      FIG. 1  shows the set-up of a call using SIP signalling between two networks. 
           [0030]      FIG. 2  shows the set-up of a call using SIP signalling between three networks. 
           [0031]      FIG. 3  which shows the set-up of a call using modified SIP signalling according to the invention; 
           [0032]      FIG. 4  shows the rules applied in the modified SIP signalling; 
           [0033]      FIG. 5  shows the set-up of a call using the modified SIP signalling for a series of networks, in which the call traverses several networks but does not re-enter an earlier network; 
           [0034]      FIGS. 6 to 8  show the set-up of calls using the modified SIP signalling for a series of networks, in which the call does re-enter an earlier network; and 
           [0035]      FIG. 9  shows the set-up of calls using the modified SIP signalling for a series of networks, in which the call does re-enter an earlier network, but in which various of the network address translation devices and their controlling call agents are legacy devices using unmodified SIP signalling. 
       
    
    
     DETAILED DESCRIPTION 
       [0036]    All SIP signalling messages are shown in  FIG. 3 , but only extracts from the text of messages are shown below. The basic format of SIP messages can be seen from IETF call examples documents. 
         [0037]    As with the example of known SIP signalling described with reference to  FIG. 1 , network  1  could be a private network, and network  2  could be the internet. User agent P initiates a call by sending an SIP Invite message to its local call agent Q. This message contains a session description indicating the media characteristics and the address (1.1.1.1) at which user agent P wishes to receive media packets. For convenience, only the last two segments of this address, and of other addresses, are shown in  FIG. 3 . 
         [0038]    The full text of a typical Invite message is as follows, following a standard in IETF documents: 
         [0039]    INVITE sip:xxx@uax.middle.com SIP/2.0 
         [0040]    Via: SIP/2.0/UDP uap.edge.com:5060;branch=z9hG4bK74bf9 
         [0041]    Max-Forwards: 70 
         [0042]    From: UserP;tag=9fxced76sl 
         [0043]    To: UserX 
         [0044]    Call-ID: 3848276298220188511@uap.edge.com 
         [0045]    CSeq: 2 INVITE 
         [0046]    Contact: &lt;sip:ppp@uap.edge.com 
         [0047]    Content-Type: application/sdp 
         [0048]    Content-Length: 151 
         [0049]    v=0 
         [0050]    o=ppp 
         [0051]    s=- 
         [0052]    c=IN P4 1.1.1.1 
         [0053]    t=0 0 
         [0054]    m=audio 49172 RTP/AVP 0 
         [0055]    a=rtpmap:0 PCMU/8000 
         [0056]    Call agent Q responds with a SIP ‘100: trying’ message. 
         [0057]    Call agent Q determines that the destination of the call is in the central network  2 , and that this is reached via a NAT device R which it controls. It therefore opens a pinhole in NAT device R to permit a media flow from the central network to the media address of user agent P (1.1.1.1). The address returned by NAT device R (2.2.2.1) is then used in an Invite message sent to call agent S in the central network. 
         [0058]    INVITE sip:xxx@uax.middle.com SIP/2.0 
         [0059]    Via: SIP/2.0/UDP caq.edge.com:5060;branch=298bnsdhj2ka 
         [0060]    Via: SIP/2.0/UDP uap.edge.com:5060;branch=z9hG4bK74bf9 
         [0061]    Max-Forwards: 69 
         [0062]    From: UserP;tag=9fxced76sl 
         [0063]    To: UserX 
         [0064]    Call-ID: 3848276298220188511@uap.edge.com 
         [0065]    CSeq: 2 INVITE 
         [0066]    Contact: &lt;sip:ppp@uap.edge.com 
         [0067]    Content-Type: multipart/mixed 
         [0068]    Boundary: “****part separator****” 
         [0069]    Content-Type: application/sdp 
         [0070]    Content-Length: 151 
         [0071]    v=0 
         [0072]    o=ppp 
         [0073]    s=- 
         [0074]    c=IN IP4 2.2.2.1 
         [0075]    t=0 0 
         [0076]    m=audio 5378 RTP/AVP 0 
         [0077]    a=rtpmap:0 PCMU/8000 
         [0078]    --****part separator**** 
         [0079]    Content-Type: application/localswitchstack 
         [0080]    NetworkID: edge.com 
         [0081]    v=0 
         [0082]    o=ppp 
         [0083]    s=- 
         [0084]    c=IN IP4 1.1.1.1 
         [0085]    t=0 0 
         [0086]    m=audio 49172 RTP/AVP 0 
         [0087]    a=rtpmap:0 PCMU/8000 
         [0088]    --****part separator**** 
         [0089]    The SIP message syntax requires a string to be defined to separate the various ‘attachments’ to the message. 
         [0090]    As with a typical SIP Invite message, the message contains the address “c=IN IP4 2.2.2.1” at which the NAT device R receives messages for transmission to User Agent P. 
         [0091]    However, in accordance with the invention, call agent Q also places the previous session description within a stack structure as a multipart attachment to the SIP message, and this contains the network ID (in this case, “edge.com”), and the address in the edge network  1 , “c.dbd.IN IP4 1.1.1.1”, at which the User Agent P wished to receive media packets. This is shown in  FIG. 3  in the first arrow in a descending direction extending from call agent Q to call agent S. The protocol relies on each address region (between NAT devices) having a globally unique identifier that can be recognised by all call set-up devices within that region. For SIP, this may in many cases derived from the domain name of the SIP server (as used in the SIP global call reference identifier). Call agent S responds with a ‘100: trying’ message. 
         [0092]    Call agent S determines that user X has requested that their calls be forwarded to user agent V, and that the new destination is reached via call agent U in private network  1 . User X could be a home telephone number accessible via the internet, and the user could have set up an arrangement for their calls to be forwarded to their office in the private network  1 . It therefore passes on the Invite with a changed URI. The stack structure described above is however retained. 
         [0093]    Call agent U responds with a ‘100: trying’ message. 
         [0094]    Call agent U recognises that the call has arrived from a different network via NAT device T that it controls. It notices that the SIP message contains a local switching stack, and examines the Network ID values of the entries in the stack to see if the call has passed through this network before. In this case it finds an entry for its own network (“edge.com”), and therefore uses the session description from this stack entry in the message it passes. No pinhole therefore needs to be opened in NAT device T. The Invite message sent to User Agent V just therefore contains the address (1.1.1.1) in network  1 , that is, just the local address, rather than the stack. This Invite message is as follows. 
         [0095]    INVITE sip:vvv@uay.edge.com SIP/2.0 
         [0096]    Via: SIP/2.0/UDP cau.edge.com:5060,branch=7tfvjyufh67 
         [0097]    Via: SIP/2.0/UDP cas.middle.com:5060;branch=345hg2kuffs 
         [0098]    Via: SIP/2.0/UDP caq.edge.com:5060;branch=298bnsdhj2ka 
         [0099]    Via: SIP/2.0/UDP uap.edge.com:5060;branch=z9hG4bK74bf9 
         [0100]    Max-Forwards: 67 
         [0101]    From: UserP;tag=9fxced76sl 
         [0102]    To: UserX 
         [0103]    Call-ID: 3848276298220188511@uap.edge.com 
         [0104]    CSeq: 2 INVITE 
         [0105]    Contact: &lt;sip:ppp@uap.edge.com 
         [0106]    Content-Type: application/sdp 
         [0107]    Content-Length: 151 
         [0108]    v=0 
         [0109]    o=ppp 
         [0110]    s=- 
         [0111]    c=IN IP4 1.1.1.1 
         [0112]    t=0 0 
         [0113]    m=audio 49172 RTP/AVP 0 
         [0114]    a=rtpmap:0 PCMU/8000 
         [0115]    The call has now reached its destination. User agent V responds with a ‘180: ringing’ message that is passed back to the caller via the chain of call agents. 
         [0116]    When the call is answered, user agent V sends a ‘200: OK’ message back to call agent U. The message contains a session description indicating the media characteristics and the address (1.4) at which user agent V wishes to receive media packets. A typical message would read as follows. 
         [0117]    SIP/2.0 200 OK 
         [0118]    Via: SIP/2.0/UDP cau.edge.com:5060;branch=7tfvjyufh67 
         [0119]    Via: SIP/2.0/UDP cas.middle.com:5060;branch=345hg2kuffs 
         [0120]    Via: SIP/2.0/UDP caq.edge.com:5060;branch=298bnsdhj2ka 
         [0121]    Via: SIP/2.0/UDP uap.edge.com:5060;branch=z9hG4bK74bf9 
         [0122]    From: UserP;tag=9fxced76sl 
         [0123]    To: UserX 
         [0124]    Call-ID: 3848276298220188511@uap.edge.com 
         [0125]    CSeq: 2 INVITE 
         [0126]    Contact: &lt;sip:vvv@uay.edge.com 
         [0127]    Content-Type: application/sdp 
         [0128]    Content-Length: 151 
         [0129]    v=0 
         [0130]    o=vvv 
         [0131]    s=- 
         [0132]    c=IN IP4 1.1.1.4 
         [0133]    t=0 0 
         [0134]    m=audio 45678 RTP/AVP 0 
         [0135]    a=rtpmap:0 PCMU/8000 
         [0136]    Call agent U recognises that this message is for a call for which it invoked the local switching function. To allow compatibility with call agents that have not implemented the local switching functions (i.e. using unmodified SIP signalling), it constructs a stack containing a copy of the session description provided by user agent V, and sends this 200 OK message to call agent S, which passes it back to call agent Q. Call agent Q recognises that this call passes through NAT device R that it controls, and that the message contains a local switching stack. It therefore examines the stack to find entries for its own network. A matching entry is found, and is popped from the stack, that is, all higher entries on the stack are removed and discarded, the matching entry is used as the new SDP, and any remaining lower entries are left on the stack, to form the session description in the SIP message that will be passed to user agent P. Since local switching has been invoked, the pinhole that was created during processing of the Invite message is no longer required, and is therefore deleted. 
         [0137]    User agent P then completes the SIP signalling sequence by sending an ACK message. This is passed along the chain of call agents to the called user agent. The user agents have each received an address within their local network to which media packets should be sent. Since local switching has been invoked, this is the address of the other user agent. Single local media path  11  is used for the traffic. All superfluous pinholes within the NAT devices have been closed. 
         [0138]    In normal SIP operation, the NAT controller re-writes the SDP (Session Description Protocol (RFC 2616)) address information and discards the incoming address. If the call subsequently loops back into the originating network, the address information from that network has been lost and a local connection cannot be made. The scheme according to the invention with local switching avoids loss of information by pushing the previous session description onto a stack carried forward in the SIP signalling messages. When a call enters a new network, the stack is scanned for entries previously inserted by this network. If an entry is found and local switching is permitted, then the stack is popped back to the original state in this network region. This means that the pinhole most recently allocated during re-entry to the region will not be required, and can be closed immediately. 
         [0139]    It will be appreciated that the invention is an addition to SIP that permits flexible control of local switching where calls traverse a number of NAT devices. It should be noted that the SIP signalling performed by the user agents is unchanged by the presence of the local switching function, but that the media paths have been optimised. The protocol is implemented by the call agents that control the transit of SIP media flows through the NAT devices, and these may be separate devices as in the embodiment of  FIG. 3 , or incorporated in the NAT devices, as in the embodiments of  FIGS. 5 to 9 . Further, the call agents Q and U may be in the network  2  instead of in the network  1 , if desired. This could be useful in the case of a small office edge network, where call agents in the internet  2  could be used. The embodiments may also incorporate legacy call set-up devices such as in  FIG. 9 , and such legacy devices need only transit the additional information generated by the call set-up devices. 
         [0140]    While the description above has been in relation to SIP signalling, the principle may be extended to other signalling protocols based on offer/answer session descriptions to obtain the same benefits. Whatever the signalling protocol, the address region (between NAT devices) must have a globally unique identifier that can be recognised by all call set-up devices within that region. 
         [0141]    For SIP, the identifier may in many cases derived from the domain name of the SIP server (as used in the SIP global call reference identifier). SIP uses an offer/answer protocol (RFC 3264) to convey bearer information. A session description is sent in each direction, indicating the media channels, addresses and codecs to be used. A NAT control device (such as an ALG (Application Level Gateway)) re-writes the address information in the session descriptions to match the address translations configured in its local NAT device. 
         [0142]    If features are present that require local switching to be inhibited they should simply delete the stack as they transit the message. This will force the media flow through the local network address. This approach could be applied independently for each direction of session description, but in some cases this would result in different NAT devices being used for each direction, and would result in bypassed pinholes remaining open. Processing of the stack is therefore modified for the backward session description. 
         [0143]    The invention will now be further explained with reference to  FIGS. 4 to 9 .  FIG. 4  shows the rules and actions to be applied at each at each call agent. The rules should be checked in the order shown until a matching rule is found. It can be seen that the rules are the same in both directions, except that rules  1  and  3  will never apply for an ‘offer’ message, and need not be checked. The rule number used when processing a message at each NAT device is shown within a hexagon in each of the following embodiments described with reference to  FIGS. 5 to 9 . 
         [0144]    In the embodiments of  FIGS. 5 to 9 , the call agents are incorporated in the NAT devices, and are not shown separately. In the embodiment of  FIG. 5 , there are five networks  12 - 16 , joined by four NAT devices  17 - 20 . The letters A and K represent addresses of user terminals  21 , 22 , and the letters B-J represent addresses of pinholes through the NAT devices. None of the networks is common to more than one pair of NAT devices. As with the embodiment of  FIG. 3 , the call agents in the NAT devices place the previous session description within a stack structure as a multipart attachment to the SIP Invite message sent to each successive NAT device. For example, the Invite SIP message sent to NAT device  18  includes the address C of the pinhole opened through the NAT device  17 , but also the address A of the user terminal  21  in network  12  (see second arrow to the right in first line of arrows in  FIG. 5 ). 
         [0145]    While the previous session description is passed along, there are no shortcuts possible for the media path between the terminals  21  and  22  because of the lack of common networks. Only Rule  4  applies. The address received in the session description is sent to the NAT device, and replaced by the address from the NAT device in the message passed on by the call agent. This can be viewed as ‘translating’ the address within the SDP, and it must match the address translation that will be performed on media packets by the NAT device itself. 
         [0146]    The embodiment of  FIG. 5  is to demonstrate that the invention does not disrupt calls that traverse several networks but do not re-enter an earlier network. Referring to the embodiment of  FIG. 6 , there are three networks  23 - 25 , joined by NAT devices  17 - 20 . Network  23  is common to NAT devices  17  and  20 , and network  24  is common to NAT device pairs  17 , 18  and  19 , 20 . 
         [0147]    Thus, when the SIP Invite message is passed from the call agent for network  25  to the call agent for network  24 , Rule  2  applies, the stack of session descriptions is scanned through and replaced with the part of the stack that is headed by the earliest preceding session description for the network  24 . Thus, the stack of (G) [E,C,A] is replaced by (C)[A]. No pinhole is required to re-enter network  24 , as indicated by circle  26 . 
         [0148]    Equally, the session description reverts to that of network  23  when the Invite SIP message is passed to the call set-up device associated with re-entry into network  23 . Rule  2  applies, and the stack of addresses (J)[C,A] is replaced just by (A) [ ], and the pinhole for re-entry into region  23  is closed. The media path of the call thus set up takes place wholly within the network  23 , as path  27 . 
         [0149]    A pinhole is closed due to the operation of Rule  3  on the O.K. answer message. There are multiple Ks, not just one, in the answer path, arising from processing rules  1  &amp;  3 , which duplicate the session descriptions on the stack. It is needed in order to handle networks (like  FIG. 9 ) containing old call agent/NATs that do not implement the invention. Without this action the SDP could be lost when it passes through an old call agent. However, when it is not lost this action results in multiple copies of the SDP on the stack. These are discarded during subsequent processing if the call loops back into a previous network. 
         [0150]    In the embodiment of  FIG. 7 , terminals and NAT devices  28 - 33  are joined by networks  34 - 36 , and the resulting media path has three sections  37 - 39 . The offer/answer messages, and the Rules applicable when processing a message at the NAT device, are shown in  FIG. 7 . 
         [0151]    The embodiment of  FIG. 8  has one further NAT device, so that the terminals and NAT devices are designated  40 - 46 , and there are still only three networks  47 - 49 , since the network  47  is common to both terminals  40 , 46 , allowing a single local media path  50  for the call eventually set up. The offer/answer messages, and the Rules applicable when processing a message at the NAT device, are shown in  FIG. 8 . 
         [0152]    The session description stack may reveal details of a call to other networks that some operators wish to keep private. Since the only requirement on the format of stack entries is that a network can traverse the stack and recognise its own entry, there is nothing to prevent network devices from using encryption to ensure privacy of their stack data. Alternatively, networks may send a reference (URL) to the stack data as it appeared in their network in place of the session description. This requires that they hold the call state in a way that can be interrogated by any future call receiving the reference in the bearer info stack (e.g XML (Extensible Markup Language) document retrievable via HTTP (Hypertext Transfer Protocol (RFC 2616))). The use of URLs will, however result in additional signalling between call handling devices in any network using this technique. 
         [0153]    NAT controllers (call agents such as Q, T but not S) and SIP servers are already widely deployed without support for the local switching technique described here.  FIG. 9  illustrates the impact that such devices may have on local switching. The embodiment is identical to that of  FIG. 8 , but successive pairs of lines show the effect when various of the NAT devices are legacy equipment using conventional, not modified, SIP signalling. Thus, the first pair of lines shows the situation when the NAT device  41  is legacy equipment. The Invite message to the call set-up device associated with network  48  simply replaces the address (A) with the address (C). The various applicable Rules when processing a message at the NAT device, are shown. 
         [0154]    SIP devices (other than NAT controllers) may either transit the stack information unchanged, or delete the stack information. If the stack is transited unchanged, then local switching will operate normally. If the stack is deleted, then the media will be forced to traverse the network containing the incompatible device. Incompatible NAT controllers may transit the stack unchanged, or delete the stack. It is assumed that no NAT controller would try to translate possible address fields in sections of the SIP message that it did not understand. If this did occur, other networks could prevent the problem by using simple data scrambling within stack entries. This would operate in the same way as the encryption technique described in the section on data hiding. If the stack is deleted, then the media will be forced to traverse the NAT controlled by the incompatible controller. If the stack is transited unchanged, then local switching may be inhibited in some regions, and pinholes may remain open even if they are not subsequently used. In all cases in  FIG. 9  both directions of media flow are set up, but the optimum local switching path is not always found, and some unused pinholes are not closed. 
         [0155]    The present invention may, of course, be carried out in other ways than those specifically mentioned herein without departing from the essential scope and characteristics of the invention. Therefore, the present embodiments are to be considered in all respects as illustrative and not restrictive, and all changes coming within the meaning and equivalency range of the appended Claims are intended to be embraced therein.