Summary of the invention
In view of the above problems, the object of the invention is to provide call desk server, reaches and use this call desk server and soft switch controller to carry out the service method at night.
According to an aspect of the present invention, provide a kind of call desk server, it comprises: dispensing unit is used for arbitrary extension set in the group is configured to obey night extension set; Call Control Unit, be used to control the calling between call desk server and the soft switch controller, and be used for the receipt of call request, and the client of judging the console under the group all withdraws from, and obey extension set night and be activated, thereby calling is inserted into by obeying in the call queue of extension set the night of Call Control Unit management; And the condition managing unit, be used to manage the state that message between call desk server and the soft switch controller transmitted and obey night extension set.
Wherein, in call desk server, at least a in the calling between following call desk server of Call Control Unit control and the soft switch controller: the operator by the group in extension set dial under the situation of activation access code, the soft switch controller sends to the calling of call desk server; The user dials under the situation of general number outside the group, and the soft switch controller sends to the calling of call desk server; And obey at night under the situation of extension set free time, call desk server is transmitted to the calling of soft switch controller.
In addition, in call desk server, the condition managing unit activates under the situation of service at night the operator, send first subscribe message that is used to subscribe to when the call state of obeying extension set eve to the soft switch controller, and the soft switch controller is sent to call desk server comprise and obey the notification message of the call state of extension set current night that the call state of being obeyed extension set current night deposits database in; And under the situation of operator's deexcitation service at night, the condition managing unit sends second subscribe message of the sign of the subscription that comprises that the expression cancellation is current to the soft switch controller, and makes the soft switch controller comprise that to call desk server transmission the last item no longer sending follow-up comprising after the notification message of end mark is subscribed in expression obeys the notification message of the call state of extension set current night.
According to a further aspect in the invention, provide a kind of and carried out the service method at night by above-mentioned call desk server and soft switch controller, it comprises: step 1 is configured to obey night extension set by dispensing unit with arbitrary extension set in the group; Step 2, the operator activates the service at night by predetermined Activiation method; Step 3, after activating the service at night, the condition managing unit sends subscribe message to the soft switch controller, subscribes to and obeys the call state of extension set current night; Step 4, the soft switch controller sends the notification message that comprises when obeying the call state of extension set eve to call desk server, represents the state value of call state by the condition managing unit record, and deposits database in; Step 5, the outer user of group dials group's general number, and the soft switch controller sends to calling by invitation message the Call Control Unit of call desk server; Step 6, Call Control Unit receipt of call request, and judge that the client of group's console down all withdraws from, and obey extension set night and be activated is obeyed in the call queue of extension set thereby calling is inserted into the night of being managed by Call Control Unit; And step 7, Call Control Unit is judged the state of obeying extension set night according to state value in the database, that the call state of extension set is obeyed in expression night, thus control service at night.
Night method of servicing also comprise: step 8, the operator carries out deexcitation service processing at night.
Wherein, step 8 may further comprise the steps: the operator obeys at night and dials the deexcitation access code on the extension set, and sends to call desk server by the soft switch controller; Call Control Unit judges that the deexcitation access code is group's a deexcitation access code, the notify status administrative unit, obey the sign of extension set deexcitation night by the condition managing unit record, simultaneously, Call Control Unit sends response message to the soft switch controller, and the soft switch controller returns acknowledge message to Call Control Unit; The operator confirms deexcitation success back on-hook, and deexcitation is called out and discharged; The condition managing unit of call desk server sends the subscribe message of the sign of the subscription that comprises that the expression cancellation is current to the soft switch controller; And the soft switch controller sends the notification message that the last item comprises expression subscription end mark to call desk server.
And, in step 4, in predetermined duration, if obeying the state of extension set night changes, then the soft switch controller sends a notification message once more, and if the state value of obeying extension set night after the condition managing unit record is upgraded is after surpassing predetermined duration, obey extension set night and still be state of activation, then the condition managing unit sends subscribe message once more and subscribes to the call state of obeying extension set current night.
In addition, step 7 may further comprise the steps: judge according to state value that at Call Control Unit the call state of obeying extension set current night is under the busy situation, wait was obeyed the extension set free time until night, judge according to state value under the situation of call state for the free time of obeying extension set current night at Call Control Unit, Call Control Unit sends to the soft switch controller with first calling in the call queue by invitation message, obeys extension set night and carries out night service thereby send to.
Wherein, obey extension set night and carry out under the situation of night service in that first calling is sent to, first calls out back on-hook accepting switching to obey extension set night, and the soft switch controller sends announcement information to call desk server, and indication is obeyed the state of extension set night for idle; The condition managing unit is the state value in the new database more; Call Control Unit judges that according to the state value after being updated the state of obeying extension set night is the free time, and judges to also have other callings of waiting in the call queue of obeying extension set night, and then continuation transmission invitation message is called out and obeyed extension set night; And repeating step seven, in obeying the call queue of extension set night, there are not other callings of wait.
Predetermined Activiation method comprises following a kind of: method one, and the operator sends order activation service at night by the client of console to call desk server; And method two, the operator dials the activation access code by obeying extension set night, and the soft switch controller sends to call desk server with calling.
Wherein, activate in using method two under the situation of service at night, step 2 comprises: the operator dials the activation access code by obeying extension set night, and the soft switch controller will activate access code by invitation message and send to call desk server; Call Control Unit judges that the activation access code is group's a Service Activation access code at night, notify status administrative unit then, obey the sign of extension set activation night by the condition managing unit record, simultaneously, Call Control Unit sends response message to the soft switch controller, and the soft switch controller returns acknowledge message to Call Control Unit; And the operator activates service back on-hook at night, service call release at night.
Therefore, according to call desk server of the present invention, and use this call desk server and soft switch controller to carry out the service method at night, its business with the traditional PSTN net is incorporated into flexible exchanging network, adopt independently application server to be realized, meet the thought that the flexible exchanging network business is separated with control, support various dissimilar terminals as obeying extension set night, thereby remedied the deficiencies in the prior art.
Other features and advantages of the present invention will be set forth in the following description, and, partly from specification, become apparent, perhaps understand by implementing the present invention.Purpose of the present invention and other advantages can realize and obtain by specifically noted structure in the specification of being write, claims and accompanying drawing.
Embodiment
Below in conjunction with accompanying drawing the preferred embodiments of the present invention are described, should be appreciated that preferred embodiment described herein only is used for description and interpretation the present invention, and be not used in qualification the present invention.
Fig. 1 is the structured flowchart according to call desk server of the present invention.
As shown in Figure 1, call desk server 100 comprises: dispensing unit 102 is used for arbitrary extension set in the group is configured to obey night extension set; Call Control Unit 104 is used to control the calling between call desk server 100 and the soft switch controller; And condition managing unit 106, be used to manage the state that message between call desk server 100 and the soft switch controller transmitted and obey night extension set.
Wherein, in call desk server 100, at least a in the calling between Call Control Unit 104 following call desk servers 100 of control and the soft switch controller: the operator by the group in extension set dial under the situation of activation access code, the soft switch controller sends to the calling of call desk server 100; The user dials under the situation of general number outside the group, and the soft switch controller sends to the calling of call desk server 100; And obey at night under the situation of extension set free time, call desk server 100 is transmitted to the calling of soft switch controller.
In addition, in call desk server 100, condition managing unit 106 activates under the situation of service at night the operator, send first subscribe message that is used to subscribe to when the call state of obeying extension set eve to the soft switch controller, and the soft switch controller is sent to call desk server 100 comprise and obey the notification message of the call state of extension set current night that the call state of being obeyed extension set current night deposits database in; And under the situation of operator's deexcitation service at night, condition managing unit 106 comprises second subscribe message of the sign of the subscription that the expression cancellation is current to the transmission of soft switch controller, and makes the soft switch controller no longer send subsequent notification messages after call desk server 100 transmission the last item comprise the notification message of representing the subscription end mark.
Fig. 2 be according to console of the present invention night method of servicing flow chart, as shown in Figure 2, undertaken in the service method at night by soft switch controller and above-mentioned call desk server, it comprises:
Step S202 is configured to obey night extension set by dispensing unit with arbitrary extension set in the group;
Step S204, the operator activates the service at night by predetermined Activiation method;
Step S206, after activating the service at night, the condition managing unit sends subscribe message to the soft switch controller, subscribes to and obeys the call state of extension set current night;
Step S208, the soft switch controller sends the notification message that comprises when obeying the call state of extension set eve to call desk server, represents the state value of call state by the condition managing unit record, and deposits database in;
Step S210, the outer user of group dial group's general number, promptly group number, and the soft switch controller sends to calling by invitation message the Call Control Unit of call desk server;
Step S212, Call Control Unit receipt of call request, and judge that the client of group's console down all withdraws from, and obey extension set night and be activated is obeyed in the call queue of extension set thereby calling is inserted into the night of being managed by Call Control Unit; And
Step S214, Call Control Unit is judged the state of obeying extension set night according to state value in the database, that the call state of extension set is obeyed in expression night, thus control service at night.
This, method of servicing also comprised at night: the operator carries out deexcitation service processing at night.
Wherein, may further comprise the steps in the step of carrying out service at deexcitation night: the operator obeys at night and dials the deexcitation access code on the extension set, and sends to call desk server by the soft switch controller; Call Control Unit judges that the deexcitation access code is group's a deexcitation access code, the notify status administrative unit, obey the sign of extension set deexcitation night by the condition managing unit record, simultaneously, Call Control Unit sends to the soft switch controller with response message, and the soft switch controller returns acknowledge message to Call Control Unit; The operator confirms deexcitation success back on-hook, and deexcitation is called out and discharged; The condition managing unit of call desk server sends the subscribe message of the sign of the subscription that comprises that the expression cancellation is current to the soft switch controller; And the soft switch controller sends the notification message that the last item comprises expression subscription end mark to call desk server.
And, in step S208, in predetermined duration, if obeying the state of extension set night changes, then the soft switch controller sends a notification message once more, and if the state value of obeying extension set night after the condition managing unit record is upgraded is after surpassing predetermined duration, obey extension set night and still be state of activation, then the condition managing unit sends subscribe message once more and subscribes to the call state of obeying extension set current night.
In addition, step S214 may further comprise the steps: judge according to state value that at Call Control Unit the call state of obeying extension set current night is under the busy situation, wait was obeyed the extension set free time until night, judge according to state value under the situation of call state for the free time of obeying extension set current night at Call Control Unit, Call Control Unit sends to the soft switch controller with first calling in the call queue by invitation message, obeys extension set night and carries out night service thereby send to.
Wherein, obey extension set night and carry out under the situation of night service in that first calling is sent to, first calls out back on-hook accepting switching to obey extension set night, and the soft switch controller sends announcement information to call desk server, and indication is obeyed the state of extension set night for idle; The condition managing unit is the state value in the new database more; Call Control Unit judges that according to the state value after being updated the state of obeying extension set night is the free time, and judges to also have other callings of waiting in the call queue of obeying extension set night, and then continuation transmission invitation message is called out and obeyed extension set night; And repeating step seven, in obeying the call queue of extension set night, there are not other callings of wait.
Wherein, this predetermined Activiation method comprises following a kind of: method one, and the operator sends order activation service at night by the client of console to call desk server; And method two, the operator dials the activation access code by obeying extension set night, and the soft switch controller sends to call desk server with calling.
Wherein, activate in using method two under the situation of service at night, step S204 comprises: the operator dials the activation access code by obeying extension set night, and the soft switch controller will activate access code by invitation message and send to call desk server; Call Control Unit judges that the activation access code is group's a Service Activation access code at night, notify status administrative unit then, obey the sign of extension set activation night by the condition managing unit record, simultaneously, Call Control Unit sends response message to the soft switch controller, and the soft switch controller returns acknowledge message to Call Control Unit; And the operator activates service back on-hook at night, service call release at night.
Particularly, Fig. 3 is the schematic diagram according to the flexible exchanging network networking of the embodiment of the invention.Under based on the soft switch environment, carry out based on service method at night SIP (Session Initial Protocol, Session initiation Protocol) agreement, that support the different consoles that access terminal.
The user 11~13 in soft switch zone may adopt and H.248/MGCP/SIP/H.323 wait variety of protocol to be linked into soft switchcall server, and soft switch controller 10 and call desk server 21 link to each other by Session Initiation Protocol.
In Fig. 3, be that example describes with an IP Centrex group in the practical application, user 11~12 is with user in a group, user 13 is the outer user of group, and user 11 is disposed as obeying extension set Centrex group's night.When artificial console was normally logined, the operator accepted calling by manual board, and after activating the service at night, manual board withdraws from, and the operator accepts calling by obeying extension set night.In the present embodiment, by described dispensing unit user 11 being configured to obey group interior night extension set with the operator is that example describes.
And, realize call service station function application server equipment, be call desk server 21.It is connected with soft switch controller (SS) 10, console client by Session Initiation Protocol, then should serve night under the cooperation of call desk server 21 and soft switch controller 10 and realize that call desk server 21 comprised dispensing unit, condition managing unit and Call Control Unit.
As shown in Figure 3, user in the group 11 is obeyed extension set as this Centrex group's night, then night, service method comprised:
Step 1, night is obeyed extension set in configuration, and the operator is configured to obey group interior night extension set by dispensing unit with user 11;
Step 2, activate the service at night, at this, have two kinds of methods to activate: first method is that the operator passes through the console client to call desk server 21 transmission order activation services at night, second method is that the operator obeys at night and dials access code on the extension set, and soft switch controller 10 sends to call desk server 21 with calling.The state of activation of extension set is obeyed in the condition managing unit record following night, sends SUBSCRIBE (subscription) request message to soft switch controller 10 simultaneously and obtains the call state of obeying extension set night;
Step 3, the console client withdraws from, and night, service started, and notified described Call Control Unit;
Step 4, the outer user 13 of group dials Centrex group's general number, and soft switch controller 10 sends to call desk server 21 by INVITE (invitation) message with calling;
Step 5, Call Control Unit judge that the console client under this group all withdraws from, and obey extension set for described night call distribution, are inserted into and obey described night in the call queue of extension set;
Step 6, Call Control Unit is judged when the call state of obeying extension set eve, if the extension set state is busy, then continue to wait for until the extension set free time, if the extension set state is idle, then first calling in the call queue is sent to soft switch controller 10 by INVITE, obey this night and divide power ringing;
Step 7 is obeyed the extension set off-hook night and is accepted and call out and with calling switching back on-hook, soft switch controller 10 sends NOTIFY (notice) message, indicating status free time to call desk server 21;
Step 8, Call Control Unit continuation judge that discovery extension set state is the free time, and obey the call queue calling of wait in addition of extension set night, then continue the calling of transmission INVITE and obey extension set night, obey the branch power ringing this night.
Step 9, repeating step seven~step 8 no longer includes in call queue till the calling of wait.
Fig. 4 is the flow chart according to the activation of the console service at night of the embodiment of the invention, below, the workflow of serving whole night is described with reference to Fig. 4.
Serve night and can send the order activation to call desk server 21, also can dial the access code activation on the extension set by obeying at night by the client of console.Wherein, the method that activates by access code comprises:
Step S402, the operator obeys the access code (for example, * 14#) of dialing activation service at night on the extension set at night, and soft switch controller 10 sends to call desk server 21 by INVITE with calling;
Step S404, the Call Control Unit analyzing called number is the access code of Service Activation at night, the notify status administrative unit, the sign that this condition managing unit record extension set activates, simultaneously, Call Control Unit sends the response message of 200OK to soft switch controller 10, and soft switch controller 10 returns the ACK acknowledge message, plays and activates successful verbal announcement;
Step S406, operator activate successfully back on-hook, call out to discharge;
Step S408, after calling discharged, the condition managing unit on the call desk server 21 sent the SUBSCRIBE message to soft switch controller 10, subscribe to when the call state of obeying extension set eve, wherein, Event is designated as Status, and the duration of Expires indication customization can be set to 3600 seconds;
Step S410, soft switch controller 10 send NOTIFY to call desk server 21 at once, return the virtual condition of extension set in event-package, for example, and busy, idle, off-line, obturation etc.This this state value of condition managing unit record, and deposit database in; And
Step S412, in the duration of customization, if the state of obeying extension set night changes, then soft switch controller 10 can send NOTIFY once more, and the condition managing unit record is the state value of obeying extension set this night in the new database more.After surpassing the customization duration, still be state of activation if obey extension set night, then the condition managing unit sends SUBSCRIBE message once more, subscribes to when the call state of obeying extension set eve.
Fig. 5 is according to the flow chart of the call flow of the console service at night of the embodiment of the invention, figure 5 illustrates after manual board withdraws from, and uses the flow chart of the flow process of service at night, and it comprises:
Step S502, the outer user 13 of group dial Centrex group's general number (group number), and soft switch controller 10 sends to the Call Control Unit of call desk server 21 by INVITE with calling, in this INVIT message, carried Centrex group group number;
Step S504, Call Control Unit is after receiving call request, judge that the console client under this group all withdraws from, and obeying extension set night activates, calling is inserted in the Call Waiting formation of Call Control Unit management, and, Call Control Unit is judged when the call state of obeying extension set eve according to the state value of obeying extension set the night in the database, if it is idle, then enter step S508, if state is busy, then represents to call out and wait for that wait state transfers the free time to 10 times 181Queuing message of soft switch controller;
Step S506, soft switch controller 10 sends NOTIFY to call desk server 21, informs when eve and obeys the extension set state free time, and the condition managing unit upgrades current state;
Step S508, Call Control Unit sends to soft switch controller 10 with first calling in the Call Waiting formation by INVITE, and called number is the number of obeying extension set night;
Step S510, night, clothes divided power ringing, and soft switch controller 10 is to 21 times 180Ringing message of call desk server;
Step S512, the Call Control Unit of call desk server 21 is transmitted 180Ringing message to soft switch controller 10;
Step S514~S516, operator's off-hook, call answering, the operator operates normally, and current calling is withdrawed from from waiting list;
Step S518, soft switch controller 10 sends NOTIFY to call desk server 21, informs that it is busy ought obeying the extension set state eve;
Step S520~S522, if operator's on-hook call release, then call desk server 21 is received BYE request message call release; And
Step S524, it is idle once more to obey extension set night, and soft switch controller 10 sends NOTIFY to call desk server 21, informs and obey the extension set state when eve.At this moment, also have the calling of waiting for if obey the call queue of extension set night, then Call Control Unit transmission INVITE is called out and is obeyed extension set night, returns step S508, no longer includes up to the call queue of obeying extension set the most all the night till the calling of wait.
Fig. 6 has listed at night to obey on the extension set by dialing the flow chart that access code carries out the flow process of deexcitation service at night, and deexcitation service at night comprises:
Step S602, the operator night obey dial deexcitation on the extension set access code (for example, #14#), soft switch controller 10 sends to call desk server 21 with calling, the Call Control Unit analyzing called number is the deexcitation access code, then by the condition managing unit record extension set sign of deexcitation, simultaneously, Call Control Unit sends the response message of 200 OK, plays the verbal announcement of deexcitation success;
Step S604, release is called out in operator's deexcitation success back on-hook;
Step S606, after call out discharging, the condition managing unit on the call desk server sends the SUBSCRIBE message to soft switch controller 10, and wherein, the Expire parameter is 0, promptly cancels current subscription; And
Step S608, soft switch controller 10 sends the last item NOTIFY to call desk server 21 at once, and wherein, Subscription-State (subscription status) head is " terminated " (termination), expression is subscribed to and is finished, and soft switch controller 10 is the transmit status notice no longer.
In sum, by call desk server of the present invention, and use this call desk server and soft switch controller to carry out the service method at night, the business of traditional PSTN net is incorporated into flexible exchanging network, adopt independently application server to be realized, meet the thought that the flexible exchanging network business is separated with control, support various dissimilar terminals as obeying extension set night, thereby remedied the deficiencies in the prior art.
Be the preferred embodiments of the present invention only below, be not limited to the present invention, for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.