CN101404674B - Call routing method, proxy server and relay device - Google Patents

Call routing method, proxy server and relay device Download PDF

Info

Publication number
CN101404674B
CN101404674B CN2008102268298A CN200810226829A CN101404674B CN 101404674 B CN101404674 B CN 101404674B CN 2008102268298 A CN2008102268298 A CN 2008102268298A CN 200810226829 A CN200810226829 A CN 200810226829A CN 101404674 B CN101404674 B CN 101404674B
Authority
CN
China
Prior art keywords
trunking
resource
behaviour
acting server
service
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN2008102268298A
Other languages
Chinese (zh)
Other versions
CN101404674A (en
Inventor
黄杰姝
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN2008102268298A priority Critical patent/CN101404674B/en
Publication of CN101404674A publication Critical patent/CN101404674A/en
Application granted granted Critical
Publication of CN101404674B publication Critical patent/CN101404674B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Telephonic Communication Services (AREA)

Abstract

The invention provides a method for selecting call route, a proxy server and trunk equipment, which can be applied to call establishing process of session initiation protocol (SIP), wherein, the method comprises the following steps: the proxy server can select resource usable trunk equipment in a plurality of pieces of trunk equipment according to information of resource utilization condition of a plurality of pieces of trunk equipment, when a called terminal for calling corresponding to a plurality of pieces of trunk equipment is determined by the proxy server, the call is routed to the selected trunk equipment, thereby reducing time of calling connection, improving efficiency of calling connection, and reducing resource consumption and processing burden of the proxy server on call route selection.

Description

A kind of method of call route selecting, acting server and trunking
Technical field
The present invention relates to the BlueDrama technical field, particularly a kind of calling route selection method, acting server and trunking.
Background technology
Session initiation protocol (SIP, Session Initiation Protocol) is the core protocol that is used for multi-medium data and hierarchy of control structure that the Internet engineering work group (IETF, Internet Engineering Task Force) proposes.In the process of using the SIP initiation session, conversational terminal be can control and the foundation and the termination of Multimedia session participated in, and can dynamically adjust and revise session attribute, for example session bandwidth requires, the code/decode format of the medium type of transmission, medium, to the support of multicast and clean culture etc., because it is based on text code, used for reference ripe HTTP(Hypertext Transport Protocol), have characteristics such as easy expansion, easy realization, therefore, be applied to more and more widely in the multimedia communications system based on Internet.
Adopt SIP to set up in the process of calling out, finish the call establishment process by the communication between acting server and the agent client.With the network architecture shown in Figure 1 is example, trunking A is as the agent client of terminal A, trunking B is as the agent client of terminal B, when terminal A needs calling terminal B, after terminal A dialed the number of terminal B, trunking A sent the conversation request message of the number that comprises terminal B to acting server; Acting server finds the pairing trunking B of number of terminal B, and sends conversation request message to trunking B, is about to call out route to trunking B; After trunking B determines that terminal B can use, reply response message and send ALERTING message to terminal B to acting server; Acting server is forwarded to trunking A with the response message that receives, thereby can set up calling between terminal A and the terminal B by trunking A and trunking B.Wherein, above-mentioned trunking can be equipment such as router, gateway, and said process is the cardinal principle of call setup, and the capability negotiation process of route querying wherein and terminal is omitted.
In the network application process of reality, enterprise network is inner because terminal quantity and call volume are very big, many trunkings are set usually to be supported, be provided with three trunkings of trunking A, trunking B and trunking C in bank's main office network as shown in Figure 2, each terminal can use wherein any one trunking as agent client, the calling that terminal in this bank's main office network is carried out at first is sent to acting server, from three trunkings, select one by acting server at random, and route the call on the trunking of this selection.But if the resource of this trunking of selecting is taken fully, then after the call try failure that this trunking carries out, acting server can be selected one and route the call on the trunking of this selection more at random from other two trunkings.As can be seen, the mode that acting server is selected from all trunkings at random may cause to be selected repeatedly just can choose available trunking in a plurality of trunkings back and forth, and, the trunking of at every turn choosing all needs to carry out call try and just can determine whether available, this will cause the time of call proceeding to increase, efficient is very low, also can expend the resource of acting server simultaneously, increases the processing burden of acting server.
Summary of the invention
In view of this, the invention provides a kind of method, acting server and trunking of call route selecting,, reduce the processing burden of acting server so that the time of reduction call proceeding is improved the efficient of call proceeding.
A kind of method of call route selecting, this method is applied in the SIP call establishment, this method comprises: when acting on behalf of a plurality of trunking of terminal called correspondence of the definite calling of server, resource behaviour in service information according to these a plurality of trunkings is selected the trunking that resource can be used from these a plurality of trunkings, and routes the call to the trunking of selection;
Described a plurality of trunking is according to preset period, perhaps change in its other resources behaviour in service, perhaps receive that described acting server sends comprise the subscribe message of resource behaviour in service request the time, send the notice message that comprises its other resources behaviour in service information to described acting server;
Wherein,
Whether described resource behaviour in service information is available for the resource of the trunking of the described notice message of transmission, described trunking is in the occupancy of self various resource during all less than presetting first threshold, determine that this trunking resource can use, the resource information available of in the notice message that sends, carrying this trunking; Described trunking during more than or equal to default second threshold value, determines that this trunking resource is unavailable, the disabled information of resource of carrying this trunking in the notice message that sends in the occupancy of one or more resources of self; Described trunking all during all less than first threshold, determines that this trunking keeps original available or down state less than second threshold value and not every resource in the occupancy of all resources of self; Wherein, described first threshold is less than or equal to described second threshold value;
Perhaps,
Described resource behaviour in service information is the occupancy or the free value of various resources in the trunking that sends described notice message, and, described from these a plurality of trunkings, select a resource can with trunking specifically comprise: whether the occupancy of the various resources that acting server comprises according to the notice message that receives or the resource that free value is determined this trunking available, and, in the trunking that resource can be used, select the maximum trunking of available resources according to the priority of default various resources.
A kind of acting server is applied to the SIP call establishment, and this acting server comprises: information transmitting unit, information acquisition unit, and call out determining unit and call out routing unit;
Described information transmitting unit is used for sending the subscribe message that comprises the request of resource behaviour in service to trunking;
Described information acquisition unit is used for obtaining from the notice message that trunking sends the resource behaviour in service information of trunking; Described resource behaviour in service is the various resources occupation rates or the free value of trunking;
Described calling determining unit, when being used for the corresponding a plurality of trunking of terminal called that determine to call out, the various resources occupation rates or the free value of these a plurality of trunkings that obtain according to information acquisition unit, determine the trunking that resource can be used, and, in the trunking that resource can be used, select the maximum trunking of available resources according to the priority of default various resources;
Described calling routing unit is used to route the call to the trunking that described calling determining unit is selected.
A kind of trunking, this trunking comprises: situation determining unit and message sending unit;
Described situation determining unit is used for determining the resource behaviour in service of this trunking; Whether the resource that described resource behaviour in service information is trunking is available, when the occupancy of various resources is all less than presetting first threshold in this trunking, determine that the resource of this trunking can use, as long as the occupancy that a kind of resource arranged in this trunking is during more than or equal to default second threshold value, the resource of determining this trunking is unavailable, all resource is all less than second threshold value and not every resource during all less than first threshold in this trunking, determine that this trunking keeps original available or down state, wherein, described first threshold is less than or equal to described second threshold value;
Described message sending unit, be used for according to preset period, perhaps receive the subscribe message that comprises the request of resource behaviour in service that acting server sends, when the resource behaviour in service that perhaps described situation determining unit is determined changed, the resource behaviour in service that described situation determining unit is determined sent to acting server.
As can be seen from the above technical solutions, acting server among the present invention obtains the resource behaviour in service of each trunking, when a plurality of trunking of determining to call out of terminal called correspondence, can from these a plurality of trunkings, select the trunking that resource can be used according to the resource behaviour in service information of these a plurality of trunkings, and route the call to the trunking of selection.This with regard to avoided acting server because of select at random trunking the trunking resource that may cause taken the problem that causes the call try failure fully, the trunking that adopts the present invention once to select promptly is the equipment that resource can be used, and do not need to select back and forth repeatedly to carry out call attempt, so reduced the time of call proceeding, improved the efficient of call proceeding, also reduced the resource cost of acting server on call route selecting and handled burden.
Description of drawings
The network composition schematic diagram that Fig. 1 calls out for adopting SIP to set up;
Fig. 2 is the network structure that comprises a plurality of trunkings;
First method flow diagram that Fig. 3 provides for the embodiment of the invention;
Second method flow diagram that Fig. 4 provides for the embodiment of the invention;
The structure chart of the acting server that Fig. 5 provides for the embodiment of the invention;
The structure chart of the trunking that Fig. 6 provides for the embodiment of the invention.
Embodiment
In order to make the purpose, technical solutions and advantages of the present invention clearer, describe the present invention below in conjunction with the drawings and specific embodiments.
Method provided by the invention mainly comprises: when acting on behalf of a plurality of trunking of terminal called correspondence of the definite calling of server, resource behaviour in service information according to these a plurality of trunkings is selected a trunking that has available resources from these a plurality of trunkings, and routes the call to the trunking of selection.
In said method, each trunking can send the notice message that comprises its other resources behaviour in service information to acting server, wherein, this resource behaviour in service can be whether trunking self exists available resources, promptly whether this trunking is available, also can be the occupancy or the free value of concrete each resource in the trunking.At above-mentioned two kinds of situations, respectively said method is described in detail for two example two below.
First method flow diagram that Fig. 3 provides for the embodiment of the invention, as shown in Figure 3, this method can may further comprise the steps:
Step 301: acting server sends to each trunking (among Fig. 3 be example with a trunking, the operation of other trunkings is identical with this trunking) and subscribes to (Subscribe) message.
Wherein, comprise the request of resource behaviour in service in this Subscribe message.Subscribe message defines in RFC3842 and RFC3265, the present invention can use the structure of existing Subscribe message, only need in Subscribe message, to define an extra incident (Event) field and come the request of identifying resource behaviour in service, promptly identify this Subscribe message and be used for notifying each trunking feedback resources behaviour in service.For example, can increase Event:Resource available field identifies.Example for a concrete Subscribe message can be as follows:
SUBSCRIBE?sip:XXX@172.32.27.100:5060SIP/2.0
Via:SIP/2.0/UDP?172.32.51.37:5060;branch=z9hG4bKe9deda7dfd7
Call-ID:831d3032dd270af43429cb9ce9deda0002@172.32.51.37
From:<sip:XXX@172.32.51.37:5060>;tag=e9deda7d
To:<sip:XXX@172.32.27.100:5060>
CSeq:1SUBSCRIBE
Contact:<sip:XXX@172.32.51.37:5060>;expires=3600
Expires:3600
Event:Resource?available
Allow:ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,PRACK,REFER,REGISTER,UPDATE,SU
BSCRIBE,OPTIONS
Date:Mon,03?Nov?2008?17:05:14?GMT
Max-Forwards:70
Supported:timer
Content-Length:0
Acting server can initially enable call route selecting function provided by the present invention, perhaps breaks down and restarts, and perhaps the call route selecting business is restarted etc. under the situation, sends Subscribe message to each trunking.
Step 302: after trunking receives Subscribe message, reply the 202Accepted response message to acting server.
Step 303: trunking is determined its other resources behaviour in service, determines whether its other resources is available, and promptly whether self is available trunking.
The resource that exists in each trunking can be divided into four types: bandwidth resources, cpu resource, memory source and voice channel resource.Can bind the resource type and the call route selecting business of trunking in advance,, only need definite resource of binding with the call route selecting business carrying out the resource behaviour in service really regularly.In the present embodiment, be that example is described to bind four types, concrete deterministic process is:
1) can at first determine the occupancy of various resources, be specially: for bandwidth resources, its occupancy is the bandwidth resources used and the ratio of actual total bandwidth resource; For memory source, its occupancy is the memory source that used and the ratio of actual total bandwidth resource; For cpu resource, the cpu resource and the actual always ratio of cpu resource of its occupancy for having taken; For voice idle channel resource, the voice channel number and the actual effective always ratio of voice channel number of its occupancy for having used.
In above-mentioned four kinds of resources, need be to the voice channel resources occupation rate determine to carry out specified otherwise.Its deterministic process can for: all voice channel resources of binding with the call route selecting business are added up, comprising the analog voice interface and the digital voice interface of all bindings; Determine that actual effectively voice total channel number is: all the voice channel resources of binding with the call route selecting business and the difference of out of use voice channel resource, wherein, out of use voice channel resource comprises: the voice channel that breaks down, be the voice channel and the signalling path of configuration time slot correspondence, the voice channel that breaks down comprises again: occur not working (Down) or occurs the voice channel of obstruction (Block); Then, with the ratio of the voice channel number that taken and actual effectively voice channel number occupancy as voice channel.
Give one example, if the interface of binding with the call route selecting business in trunking is VE1 and VE2, the VE1 interface configuration 31 each time slot, the VE2 interface configuration 16 time slots, wherein, disposed the VE1 interface down of 31 time slots, disposed and had a signaling interface in the VE1 interface of 16 time slots, then actual effectively voice channel number is the 16+31-31-1=15 road, and current occupied 12 the tunnel, then the voice channel resources occupation rate of this trunking is 12/15=80%.
2) then, the occupancy of various resources and presetting first threshold and second threshold value are compared, wherein, first threshold is less than or equal to second threshold value, suppose that first threshold is that 60%, the second threshold value is 80%, if then the occupancy of various resources is all less than 60%, then the resource of determining this trunking can be used, and promptly this trunking can be used; As long as the occupancy that a kind of resource is arranged in the various resources, determines then that the resource of this trunking is unavailable more than or equal to 80%, promptly this trunking is unavailable.If all resources all less than second threshold value and not every resource all less than first threshold, it is constant then to keep situation, promptly keep the original upstate of trunking or and upstate constant.At this, it is different with second threshold value that first threshold is set, and in the time of can preventing effectively that trunking performance and resource behaviour in service are in unstable situation, resources occupation rate is switched up and down in preset threshold continually, thereby prevents ping-pong.
Step 304: whether available trunking send to acting server and comprise own resource announcement (Notify) message.
If trunking is determined its other resources and can be used in step 303, then send and comprise the Notify message that this trunking can be used to acting server, if determine that its other resources is unavailable, then comprise the disabled Notify message of this trunking to the acting server transmission.
Notify message defines in RFC3842 and RFC3265, and the present invention can use the structure of existing Notify message, only needs in Notify message extra field of definition to come whether information available of indicating self resource.For example, adopt Resource available:yes to come identifying resource to use, adopt Resource available:no to come identifying resource unavailable.Example for a concrete Notify message can be as follows:
NOTIFY?sip:XXX@172.32.51.37:5060?SIP/2.0
v:SIP/2.0/UDP?172.32.27.100;branch=z9hG4bK80156764-3e56-db11-ae5f-9c2085ca11c5
f:<sip:XXX@172.32.27.100>;tag=4571fa58
t:<sip:XXX@172.32.51.37>;tag=e9deda7d
i:831d3032dd270af43429cb9ce9deda0002@172.32.51.37
Cseq:3408?NOTIFY
Timestamp:1160423991
Date:Mon,09?Oct?2006?19:59:51?GMT
Max-Forwards:70
m:<sip:XXX-Resourcemsg@172.32.27.100>
Event:Resource?available
User-Agent:XXX
Subscription-State:active
c:application/Resource?available
1:67
Resource?available:no
In addition, trunking can also be determined its other resources behaviour in service and send its other resources behaviour in service by Notify message to acting server according to preset period; Perhaps, trunking when definite its other resources behaviour in service changes, for example, can be unavailable by resource with transferring resource to, but perhaps transfer the resource time spent to, send its other resources behaviour in service to acting server by Notify message by resource is unavailable.
Step 305: after acting server received the Notify message that trunking reports, whether the storage trunking information available, and replied to trunking and to determine response (200OK).
The 200OK that replys in this step is used for confirming whether receive Notify message to trunking, if trunking does not receive the 200OK of acting server in setting-up time, then resends this Notify message.
In addition, acting server is after receiving Notify message, can judge at first whether the call identification (CALL ID), source device sign (From-Tag) and the destination device sign (To-Tag) that wherein comprise be consistent with CALL ID, To-Tag and From-Tag in the Subscribe message that sends respectively, if it is inconsistent, then ignore this Notify message, to prevent malicious attack.
Step 306: after acting server receives calling,, then from the trunking that resource can be used, select the trunking that resource can be used, and route the call to the trunking of selection if determine the corresponding a plurality of trunkings of terminal called.
Second method flow diagram that Fig. 4 provides for the embodiment of the invention, as shown in Figure 4, this method can may further comprise the steps:
Step 401 to step 402 with step 301 and step 302.
Need to prove, the resource behaviour in service that corresponding trunking reports among this embodiment also is different from resource behaviour in service in the flow process shown in Figure 3, what report in the present embodiment is the occupancy or the free value of each resource in the trunking, therefore, at acting server when trunking sends Subscribe message, can use the Event:Resource occupied field of increase to identify resource behaviour in service request in the present embodiment, after trunking receives the Subscribe message that comprises Event:Resource occupied field, report the occupancy or the free value of each resource in this trunking to acting server.The example of concrete Subscribe message can be as follows:
SUBSCRIBE?sip:XXX@172.32.27.100:5060?SIP/2.0
Via:SIP/2.0/UDP?172.32.51.37:5060;branch=z9hG4bKe9deda7dfd7
Call-ID:831d3032dd270af43429cb9ce9deda0002@172.32.51.37
From:<sip:XXX@172.32.51.37:5060>;tag=e9deda7d
To:<sip:XXX@172.32.27.100:5060>
CSeq:1?SUBSCRIBE
Contact:<sip:XXX@172.32.51.37:5060>;expires=3600
Expires:3600
Event:Resource?occupied
Allow:ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,PRACK,REFER,REGISTER,UPDATE,
SUBSCRIBE,OPTIONS
Date:Mon,03?Nov?2008?17:05:14?GMT
Max-Forwards:70
Supported:timer
Content-Length:0
Step 403: trunking is determined its other resources behaviour in service, promptly determines the occupancy or the free value of each resource.
Same, with with the call route selecting business-binding four types be that example is described, can determine the occupancy of each resource according to the described mode of step 303, also can determine the wherein free value of each resource, for example, determine idle voice channel number, the memory source of free time etc.
Step 404: trunking sends to acting server with the occupancy or the free value of each resource by Notify message.
In this step, trunking directly sends to acting server with the occupancy or the free value of each resource, and the resource of trunking whether carried out by acting server by available judgement.
The Notify message of this moment can adopt Resource occupied:xxx to identify occupancy or free value, and xxx wherein can carry concrete occupancy or free value; Adopt Resource-type:yyy to identify corresponding resource type, yyy wherein can carry concrete resource type information.Example for a concrete Notify message can be as follows:
NOTIFY?sip:XXX@172.32.51.37:5060?SIP/2.0
v:SIP/2.0/UDP?172.32.27.100;branch=z9hG4bK80156764-3e56-db11-ae5f-9c2085ca11c5
f:<sip:XXX@172.32.27.100>;tag=4571fa58
t:<sip:XXX@172.32.51.37>;tag=e9deda7d
i:831d3032dd270af43429cb9ce9deda0002@172.32.51.37
Cseq:3408?NOTIFY
Timestamp:1160423991
Date:Mon,09?Oct?2006?19:59:51?GMT
Max-Forwards:70
m:<sip:XXX-Resourcemsg@172.32.27.100>
Resource?occupied
User-Agent:XXX
Subscription-State:active
c:application/Resource?occupied
1:67
Resource?occupied:xxx
Resource-type:yyy
Can comprise a plurality of Resource occupied:xxx and Resource-type:yyy field in this Notify message and carry the behaviour in service information of multiple resource.
Step 405: after acting server receives Notify message, reply 200 OK message to trunking.
If trunking does not receive the 200 OK message that acting server is replied in setting-up time, then resend Notify message.
Step 406: whether the occupancy of the various resources that the Notify message that the acting server basis receives comprises or the resource that free value is determined this trunking be available.
In the present embodiment, if acting server is determined in the various resources of trunking, as long as the occupancy that has a kind of resource is more than or equal to the 3rd default threshold value, perhaps exist a kind of free value of resource to be less than or equal to the 4th default threshold value, the resource of then determining this trunking is unavailable, otherwise, determine that the resource of this trunking can be used.Wherein, the 3rd threshold value of corresponding different resource can be different, and the 4th threshold value also can be different, choose as the case may be.For example, as long as exist a kind of occupancy of resource to reach 100%, perhaps, be 0 as long as there is a kind of free value of resource, determine that then the resource of this trunking is unavailable.
Step 407: after acting server receives calling, if the corresponding a plurality of trunkings of the terminal called that should call out, then, from the trunking that the resource of determining can be used, select the maximum trunking of available resources according to the priority of default various resources and the resource behaviour in service of these a plurality of trunkings.
In the present embodiment, configuration path preference policy on acting server in advance, comprise the priority setting of various resources in this routing optimization strategy, acting server can be selected the trunking of the highest resources occupation rate minimum of priority according to the route optimization strategy from each trunking, perhaps select the trunking of the highest resource free value maximum of priority.For example, the priority that four kinds of resources can be set is followed successively by from high to low: voice channel resource, cpu resource, memory source and bandwidth resources.Then in each trunking, select the trunking of voice channel resource free value maximum or occupancy minimum, if the voice channel resource free value or the occupancy of a plurality of trunkings of the terminal called correspondence of calling out are identical, then select the occupancy minimum of the cpu resource that priority takes second place or the trunking of free value maximum, and the like.
For example, if acting server receives corresponding trunking A of the terminal called of calling and trunking B; The voice channel resource free value that trunking A reports is 20, CPU usage is 30%, the internal memory free value is 115029676 bytes, the bandwidth free value is 50M, the voice channel resource free value that trunking B reports is 19, and CPU usage is 20%, and the internal memory free value is 116029676 bytes, the bandwidth free value is 40M, and the various resources of trunking A and B are upstate.If the priority of the various resources that are provided with is followed successively by from high to low: voice channel resource, cpu resource, memory source and bandwidth resources; Then owing to the voice channel resource free value at limit priority, therefore trunking A, selects trunking A to carry out call proceeding than trunking B height.
More than be the description that method provided by the present invention is carried out, below acting server provided by the invention and trunking be described respectively.The structure chart of the acting server that Fig. 5 provides for the embodiment of the invention, as shown in Figure 5, this acting server can comprise: information acquisition unit 501, call out determining unit 502 and call out routing unit 503.
Information acquisition unit 501 is used to obtain the resource behaviour in service information of trunking.
Call out determining unit 502, when being used for the corresponding a plurality of trunking of terminal called that determine to call out, the resource behaviour in service information of these a plurality of trunkings that obtain according to information acquisition unit 501 is selected the trunking that resource can be used from these a plurality of trunkings.
Call out routing unit 503, be used to route the call to the trunking of calling out determining unit 502 selections.
In addition, this acting server can also comprise: information transmitting unit 504 is used for sending the Subscribe message that comprises the request of resource behaviour in service to trunking.
Information transmitting unit 504 can initially enable call route selecting function provided by the present invention, and perhaps this acting server breaks down and restarts, and perhaps the call route selecting business is restarted etc. under the situation, sends Subscribe message to each trunking.
Information acquisition unit 501 is obtained the resource behaviour in service information of trunking from the Notify message that trunking sends.
More preferably, information transmitting unit 504 can also be used for after information acquisition unit 501 is obtained the resource behaviour in service information of trunking, replys successful respond to this trunking.
This successful respond is a protection mechanism of the present invention, so that trunking does not receive in setting-up time under the situation of successful respond, can resend resource behaviour in service information.
The resource behaviour in service information that above-mentioned information acquisition unit 501 is obtained can be divided into two kinds:
First kind of situation: whether resource behaviour in service information can available for the resource of trunking; At this moment, whether the resource of calling out a plurality of trunkings that determining unit 502 obtains according to information acquisition unit 501 information available, selects the trunking that resource can be used from a plurality of trunkings.
Second kind of situation: resource behaviour in service information can be the occupancy or the free value of various resources in the trunking; At this moment, call out the occupancy or the free value of various resources in these a plurality of trunkings that determining unit 502 obtains according to information acquisition unit 501, determine the trunking that resource can be used, and, in the trunking that resource can be used, select the maximum trunking of available resources according to the priority of default various resources.Concrete definite process can adopt the description of step 406 and step 407 in the flow process shown in Figure 4.
The structure chart of the trunking that Fig. 6 provides for the embodiment of the invention, as shown in Figure 6, this trunking can comprise: situation determining unit 601 and message sending unit 602.
Situation determining unit 601 is used for determining the resource behaviour in service of this trunking.
Message sending unit 602, be used for according to preset period, perhaps receive the Subscribe message that comprises the request of resource behaviour in service that acting server sends, when perhaps situation determining unit 601 definite resource behaviours in service changed, the resource behaviours in service that situation determining unit 601 is determined sent to acting server.
More preferably, this trunking can also comprise: reply receiving element 603, be used to receive the successful respond that acting server sends.
Message sending unit 602 can also be used in the Preset Time after sending the resource behaviour in service, does not receive the successful respond that acting server sends if reply receiving element 603, then sends the resource behaviour in service to acting server again.
The resource behaviour in service that above-mentioned message sending unit 602 sends can be two kinds:
First kind of situation: the occupancy of situation determining unit 601 various resources in determining this trunking determines that the resource of this trunking can be used during all less than presetting first threshold; Message sending unit 602 sends to acting server with the resource information available of this trunking.
As long as the occupancy that situation determining unit 601 determines to have in these trunkings a kind of resource during more than or equal to default second threshold value, determines that then the resource of this trunking is unavailable; Message sending unit 602 sends to acting server with the disabled information of this trunking; Wherein, first threshold is less than or equal to second threshold value.
Second kind of situation: situation determining unit 601 is determined the occupancy or the free value of various resources in this trunking.Message sending unit 602 sends to acting server with the occupancy or the free value of various resources in this trunking.Under this kind situation, carry out to determine the whether available operation of resource of trunking by acting server.
By above description as can be seen, method provided by the invention, acting server and trunking can have the following advantages:
1) acting server among the present invention obtains the resource behaviour in service of each trunking, when a plurality of trunking of determining to call out of terminal called correspondence, can from these a plurality of trunkings, select the trunking that resource can be used according to the resource behaviour in service information of these a plurality of trunkings, and route the call to the trunking of selection.This with regard to avoided acting server because of select at random trunking the trunking resource that may cause taken the problem that causes the call try failure fully, the trunking that adopts the present invention once to select promptly is the equipment that resource can be used, and do not need to select back and forth repeatedly, so reduced the time of call proceeding, improved the efficient of call proceeding, also reduced the resource cost of acting server on call route selecting and handled burden.
2) in the present invention, if the resource of trunking is taken fully, then do not calling out within the range of choice of route, acting server from resource can with acting server select to carry out call proceeding, thereby realized the load balancing of call load in each trunking.More preferably, acting server can also select the trunking of current optimum to carry out call proceeding according to the resource behaviour in service of each trunking and the priority of each resource, thereby has realized calling out the preferred of route.
3) if when acting server finds that there is a plurality of trunking in terminal called in the prior art, in the time can't determining to call out final route immediately to which trunking, 183 responses that acting server can not replied terminal called pass through calling terminal, and are to use 180 responses to substitute; And carried the information of negotiation terminal ability in 183 responses, and can be used for calling terminal and terminal called to set up media channel in advance, then there are not these information in 180 responses, calling terminal and terminal called also can't be set up media channel in advance.After adopting the present invention, effective trunking of definite calling route that acting server can be instant, just 183 responses that terminal called can be replied pass through calling terminal, thereby make calling terminal and terminal called set up media channel in advance.
4) the various resources that the present invention is directed in the trunking provide concrete resource behaviour in service to determine scheme, during some resource generation abnormal problem in trunking, can avoid effectively that this trunking is selected to carry out call proceeding, for the integral body of call route selecting realizes providing very strong reliability.
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being made, is equal to replacement, improvement etc., all should be included within the scope of protection of the invention.

Claims (8)

1. the method for a call route selecting, it is characterized in that, this method is applied in the session initiation protocol SIP call establishment, this method comprises: when acting on behalf of a plurality of trunking of terminal called correspondence of the definite calling of server, resource behaviour in service information according to these a plurality of trunkings is selected the trunking that resource can be used from these a plurality of trunkings, and routes the call to the trunking of selection;
Described a plurality of trunking is according to preset period, perhaps change in its other resources behaviour in service, perhaps receive that described acting server sends comprise the subscribe message of resource behaviour in service request the time, send the notice message that comprises its other resources behaviour in service information to described acting server;
Wherein,
Whether described resource behaviour in service information is available for the resource of the trunking of the described notice message of transmission, described trunking is in the occupancy of self various resource during all less than presetting first threshold, determine that this trunking resource can use, the resource information available of in the notice message that sends, carrying this trunking; Described trunking during more than or equal to default second threshold value, determines that this trunking resource is unavailable, the disabled information of resource of carrying this trunking in the notice message that sends in the occupancy of one or more resources of self; Described trunking all during all less than first threshold, determines that this trunking keeps original available or down state less than second threshold value and not every resource in the occupancy of all resources of self; Wherein, described first threshold is less than or equal to described second threshold value;
Perhaps,
Described resource behaviour in service information is the occupancy or the free value of various resources in the trunking that sends described notice message, and, described from these a plurality of trunkings, select a resource can with trunking specifically comprise: whether the occupancy of the various resources that acting server comprises according to the notice message that receives or the resource that free value is determined this trunking available, and, in the trunking that resource can be used, select the maximum trunking of available resources according to the priority of default various resources.
2. method according to claim 1 is characterized in that, after described acting server receives notice message, replys successful respond to the trunking that sends described notice message; In the default time, do not receive described successful respond if send the trunking of described notice message, then send the notice message that comprises its other resources behaviour in service information to described acting server again.
3. method according to claim 1, it is characterized in that, if in the occupancy or free value of the various resources that comprise in the notice message, the occupancy that has a kind of resource is more than or equal to the 3rd default threshold value, or the free value that has a kind of resource is less than or equal to the 4th default threshold value, the resource of the trunking of then definite this notice message of transmission is unavailable, otherwise, determine that the resource of the trunking of this notice message of transmission can be used.
4. method according to claim 1 is characterized in that, the described resource of trunking comprises: a kind of or combination in any in bandwidth resources, cpu resource, memory source and the voice channel resource.
5. an acting server is characterized in that, is applied to the SIP call establishment, and this acting server comprises: information transmitting unit, information acquisition unit, and call out determining unit and call out routing unit;
Described information transmitting unit is used for sending the subscribe message that comprises the request of resource behaviour in service to trunking;
Described information acquisition unit is used for obtaining from the notice message that trunking sends the resource behaviour in service information of trunking; Described resource behaviour in service is the various resources occupation rates or the free value of trunking;
Described calling determining unit, when being used for the corresponding a plurality of trunking of terminal called that determine to call out, the various resources occupation rates or the free value of these a plurality of trunkings that obtain according to information acquisition unit, determine the trunking that resource can be used, and, in the trunking that resource can be used, select the maximum trunking of available resources according to the priority of default various resources.
Described calling routing unit is used to route the call to the trunking that described calling determining unit is selected.
6. acting server according to claim 5 is characterized in that, described information transmitting unit also is used for after described information acquisition unit is obtained the described resource behaviour in service information of trunking, replys successful respond to this trunking.
7. a trunking is characterized in that, this trunking comprises: situation determining unit and message sending unit;
Described situation determining unit is used for determining the resource behaviour in service of this trunking; Whether the resource that described resource behaviour in service information is trunking is available, when the occupancy of various resources is all less than presetting first threshold in this trunking, determine that the resource of this trunking can use, as long as the occupancy that a kind of resource arranged in this trunking is during more than or equal to default second threshold value, the resource of determining this trunking is unavailable, all resource is all less than second threshold value and not every resource during all less than first threshold in this trunking, determine that this trunking keeps original available or down state, wherein, described first threshold is less than or equal to described second threshold value;
Described message sending unit, be used for according to preset period, perhaps receive the subscribe message that comprises the request of resource behaviour in service that acting server sends, when the resource behaviour in service that perhaps described situation determining unit is determined changed, the resource behaviour in service that described situation determining unit is determined sent to acting server.
8. trunking according to claim 7 is characterized in that, this trunking also comprises: reply receiving element, be used to receive the successful respond that described acting server sends;
Described message sending unit also is used in the Preset Time after sending the resource behaviour in service, if the described receiving element of replying does not receive the successful respond that described acting server sends, then sends described resource behaviour in service to described acting server again.
CN2008102268298A 2008-11-17 2008-11-17 Call routing method, proxy server and relay device Expired - Fee Related CN101404674B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008102268298A CN101404674B (en) 2008-11-17 2008-11-17 Call routing method, proxy server and relay device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008102268298A CN101404674B (en) 2008-11-17 2008-11-17 Call routing method, proxy server and relay device

Publications (2)

Publication Number Publication Date
CN101404674A CN101404674A (en) 2009-04-08
CN101404674B true CN101404674B (en) 2011-09-21

Family

ID=40538538

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008102268298A Expired - Fee Related CN101404674B (en) 2008-11-17 2008-11-17 Call routing method, proxy server and relay device

Country Status (1)

Country Link
CN (1) CN101404674B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102026109A (en) * 2009-09-11 2011-04-20 中兴通讯股份有限公司 Route system and method of converged IP (Internet Protocol) messaging
CN104994159A (en) * 2015-06-30 2015-10-21 青岛海尔智能家电科技有限公司 Distributed agent method and device based on AllJoyn, and mobile equipment
CN106506875B (en) * 2016-11-01 2019-08-20 上海携程商务有限公司 The data monitoring system and method for distributed call center speech line connecting time
CN110417824A (en) * 2018-04-26 2019-11-05 石悌君 A method of realizing network service

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5930348A (en) * 1997-03-20 1999-07-27 Northern Telecom Limited Dynamically controlled routing of calls in intelligent networks
CN1440610A (en) * 2000-05-04 2003-09-03 Mci全球通讯公司 Method and system for dynamic gateway selection in IP telephony network
CN101193053A (en) * 2006-11-23 2008-06-04 中兴通讯股份有限公司 A multi-gateway route selection method based on central management
CN100397843C (en) * 2002-06-04 2008-06-25 思科技术公司 Method and system for router redundancy in a wide area network
CN101277249A (en) * 2007-03-27 2008-10-01 上海贝尔阿尔卡特股份有限公司 Method and apparatus for selecting conversation route

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5930348A (en) * 1997-03-20 1999-07-27 Northern Telecom Limited Dynamically controlled routing of calls in intelligent networks
CN1440610A (en) * 2000-05-04 2003-09-03 Mci全球通讯公司 Method and system for dynamic gateway selection in IP telephony network
CN100397843C (en) * 2002-06-04 2008-06-25 思科技术公司 Method and system for router redundancy in a wide area network
CN101193053A (en) * 2006-11-23 2008-06-04 中兴通讯股份有限公司 A multi-gateway route selection method based on central management
CN101277249A (en) * 2007-03-27 2008-10-01 上海贝尔阿尔卡特股份有限公司 Method and apparatus for selecting conversation route

Also Published As

Publication number Publication date
CN101404674A (en) 2009-04-08

Similar Documents

Publication Publication Date Title
CN103430524B (en) A backup sip server for the survivability of an enterprise network using sip
JP4599617B2 (en) Centralized controller for distributed processing of telecommunications features
US20060286993A1 (en) Throttling server communications in a communication network
RU2493665C1 (en) Method and system for subscription service implementation in ims network
CN101496352B (en) An internet protocol multimedia subsystem network element and its operation method
CN101558623A (en) A method and arrangement for handling a subscription for client data
EP2079197A1 (en) A method and system for coordinating the services provided by different service providers
WO2006049869A1 (en) Method and apparatus for a network element to track the availability of other network elements
JP2008104112A (en) Transmission path setting apparatus, transmission path setting method and transmission path setting program
US20050088973A1 (en) Congestion control in an IP network
CN101854703B (en) Method, server and system for acquiring status information
CN101296177A (en) Method, system and device for implementing overload control in packet network
CN101404674B (en) Call routing method, proxy server and relay device
EP2797285B1 (en) Method and apparatus for network communication
MX2008015285A (en) Reduced memory usage between communication servers.
JP2005110260A (en) Method and apparatus for migrating to alternate call controller
CN101459533B (en) System and method for improved application server disaster tolerance in next generation network
CN101296101B (en) Optimization method and system for conference service notice
US11757952B2 (en) Relay device for call processing, call processing method performed by relay device, and storage medium in which program for executing call processing method is stored
CN101399822B (en) Method for determining media stream path relation and call control system
US8051129B2 (en) Arrangement and method for reducing required memory usage between communication servers
CN101635672A (en) Device and method for realizing convergence service session in group mode
US11750665B2 (en) Distributed network system for call processing provided are a call processing method performed by a distributed network system and a recording medium, in which a program for executing the call processing method is recorded
JP4977222B2 (en) COMMUNICATION SYSTEM, COMMUNICATION CONTROL METHOD AND COMMUNICATION DEVICE
CN101902354A (en) Method and device for managing event information in SIP network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: Xinhua three Technology Co., Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Patentee before: Huasan Communication Technology Co., Ltd.

CP03 Change of name, title or address
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110921

Termination date: 20191117

CF01 Termination of patent right due to non-payment of annual fee