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

Call routing method, proxy server and relay device Download PDF

Info

Publication number
CN101404674A
CN101404674A CNA2008102268298A CN200810226829A CN101404674A CN 101404674 A CN101404674 A CN 101404674A CN A2008102268298 A CNA2008102268298 A CN A2008102268298A CN 200810226829 A CN200810226829 A CN 200810226829A CN 101404674 A CN101404674 A CN 101404674A
Authority
CN
China
Prior art keywords
trunking
resource
acting server
behaviour
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.)
Granted
Application number
CNA2008102268298A
Other languages
Chinese (zh)
Other versions
CN101404674B (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

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.
A kind of acting server is applied to the SIP call establishment, and this acting server comprises: information acquisition unit, and call out determining unit and call out routing unit;
Described information acquisition unit is used to obtain the resource behaviour in service information 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 resource behaviour in service information of this a plurality of trunkings that obtain according to information acquisition unit, trunking that resource can be used of selection from these a plurality of trunkings;
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;
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
B?SCRIBE,OPTIONS
Date:Mon,03Nov?200817:05:14GMT
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:5060SIP/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:3408NOTIFY
Timestamp:1160423991
Date:Mon,09Oct?200619:59:51GMT
Max-Forwards:70
m:<sip:XXX-Resourcemsg@172.32.27.100>
Event:Resource?available
User-Agent:XXX
Subscription-State:active
c:application/Resource?available
l: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: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?occupied
Allow:ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,PRACK,REFER,REGISTER,UPDATE,
SUBSCRIBE,OPTIONS
Date:Mon,03Nov?200817:05:14GMT
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:5060SIP/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:3408NOTIFY
Timestamp:1160423991
Date:Mon,09Oct?200619:59:51GMT
Max-Forwards:70
m:<sip:XXX-Resourcemsg@172.32.27.100>
Resource?occupied
User-Agent:XXX
Subscription-State:active
c:application/Resource?occupied
l: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 200OK message to trunking.
If trunking does not receive the 200OK 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 (18)

1, a kind of method of call route selecting is characterized in that, this method is applied in the session initiation protocol SIP call establishment, and 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.
2, method according to claim 1, it is characterized in that, this method also comprises: described a plurality of trunkings are 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.
3, method according to claim 2 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.
According to claim 2 or 3 described methods, it is characterized in that 4, described resource behaviour in service information is: whether the resource of trunking that sends described notice message is available.
5, method according to claim 4, it is characterized in that, when the occupancy of various resources in the described trunking during all less than presetting first threshold, determine that the resource of this trunking can be used, in the described notice message that sends, carry this trunking resource information available;
As long as when the occupancy that a kind of resource is arranged in the described trunking during, determine that then the resource of this trunking is unavailable, in the described notice message that sends, carry the disabled information of this trunking resource more than or equal to default second threshold value;
In described trunking all resource all less than second threshold value and not every resource all less than first threshold, determine that then this trunking keeps original available or down state;
Wherein, described first threshold is less than or equal to described second threshold value.
According to claim 2 or 3 described methods, it is characterized in that 6, described resource behaviour in service information is: the occupancy or the free value that send various resources in the trunking of described notice message.
7, method according to claim 6, it is characterized in that, describedly select one exist the trunking of available resources specifically to comprise from these a plurality of trunkings: whether the occupancy of the various resources that described acting server comprises according to the notice message that receives or the resource that free value is determined this trunking be 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.
8, method according to claim 7, 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.
9, 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.
10, a kind of acting server is characterized in that, is applied to the SIP call establishment, and this acting server comprises: information acquisition unit, and call out determining unit and call out routing unit;
Described information acquisition unit is used to obtain the resource behaviour in service information 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 resource behaviour in service information of this a plurality of trunkings that obtain according to information acquisition unit, trunking that resource can be used of selection from these a plurality of trunkings;
Described calling routing unit is used to route the call to the trunking that described calling determining unit is selected.
11, acting server according to claim 10 is characterized in that, this acting server also comprises: 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 obtained the described resource behaviour in service information of trunking from the notice message that trunking sends.
12, acting server according to claim 11 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.
According to the described acting server of the arbitrary claim of claim 10 to 12, it is characterized in that 13, described resource behaviour in service information is: whether the resource of trunking is available;
Whether the resource of described a plurality of trunkings that described calling determining unit is obtained according to described information acquisition unit information available, selects the trunking that resource can be used from described a plurality of trunkings.
According to the described acting server of the arbitrary claim of claim 10 to 12, it is characterized in that 14, described resource behaviour in service information is: the occupancy of various resources or free value in the trunking;
The occupancy or the free value of various resources in these a plurality of trunkings that described calling determining unit is obtained according to described 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.
15, a kind of 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;
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.
16, trunking according to claim 15 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.
17, trunking according to claim 15 is characterized in that, the occupancy of described situation determining unit various resources in determining this trunking determines that the resource of this trunking can be used during all less than presetting first threshold; Described message sending unit sends to described acting server with the resource information available of this trunking;
As long as the occupancy that described situation determining unit determines to have in this trunking a kind of resource during more than or equal to default second threshold value, determines that then the resource of this trunking is unavailable; Described message sending unit sends to described acting server with the disabled information of this trunking;
In the described trunking of described situation determining unit all resource all less than second threshold value and not every resource all less than first threshold, determine that then this trunking keeps original available or down state; Available or the disabled information that described message sending unit is determined the situation determining unit sends to described acting server;
Wherein, described first threshold is less than or equal to described second threshold value.
18, trunking according to claim 15 is characterized in that, described situation determining unit is determined the occupancy or the free value of various resources in this trunking;
Described message sending unit sends to described acting server with the occupancy or the free value of various resources in this trunking.
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 true CN101404674A (en) 2009-04-08
CN101404674B 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)

Cited By (4)

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

Family Cites Families (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
US9281996B1 (en) * 1999-11-08 2016-03-08 Verizon Patent And Licensing Inc. Method and system for dynamic gateway selection in an IP telephony network
US7248560B1 (en) * 2002-06-04 2007-07-24 Cisco Technology, Inc. Method and system for router redundancy in a wide area network
CN101193053B (en) * 2006-11-23 2011-04-20 中兴通讯股份有限公司 A multi-gateway route selection method based on central management
CN101277249B (en) * 2007-03-27 2015-09-09 上海贝尔股份有限公司 The method of session Route Selection and device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011029335A1 (en) * 2009-09-11 2011-03-17 中兴通讯股份有限公司 System and method for routing session initiation protocol conversation
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
CN106506875A (en) * 2016-11-01 2017-03-15 上海携程商务有限公司 The data monitoring system of distributed call center speech line connecting time and method
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

Also Published As

Publication number Publication date
CN101404674B (en) 2011-09-21

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
US7991848B2 (en) Method and apparatus for sending instant message disposition notification request and response in a converged-IP messaging service and system thereof
US20060165064A1 (en) Method and apparatus for a network element to track the availability of other network elements
RU2493665C1 (en) Method and system for subscription service implementation in ims network
EP2079197A1 (en) A method and system for coordinating the services provided by different service providers
JP2008104112A (en) Transmission path setting apparatus, transmission path setting method and transmission path setting program
CN101496352B (en) An internet protocol multimedia subsystem network element and its operation method
CN101854703B (en) Method, server and system for acquiring status information
CN101404674B (en) Call routing method, proxy server and relay device
CN101296177A (en) Method, system and device for implementing overload control in packet network
CN100421432C (en) Method for routing of media resource server
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
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
US20070159989A1 (en) SIP enhancements to support network-wide overload control
JP4977222B2 (en) COMMUNICATION SYSTEM, COMMUNICATION CONTROL METHOD AND COMMUNICATION DEVICE
CN101552721A (en) Convergence service system and service implementation method thereof
JP5158149B2 (en) Load distribution apparatus, load distribution program, and load distribution system

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
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.

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

Granted publication date: 20110921

Termination date: 20191117