For dispatching desk, realize that SIP and ISDN agreement coexist and mutually redundant method
Technical field
The invention belongs to communication scheduling field, relate in particular to a kind of not only can connect SoftSwitch but also can connect digital SPC exchange for dispatching desk, realize SIP and ISDN agreement coexists and mutually redundant method.
Background technology
Dispatching communication equipment is a kind of communication equipment that provides production scheduling or commander to control for enterprises or group user.A series of function of voice communication such as dispatching desk can realize incoming call, exhalation, group calling, meeting, intrusion, toll breakdown.This system is widely used in the professional dispatching communication fields such as electric power, coal, oil, army, track traffic, government emergency.
The current main mode of dispatching services is based on circuit-switched technology.Due to developing rapidly of IP network, the back scheduling business based on Softswitch technology is also in development.Due to the professional requirement of scheduling, soft switch can not replace circuit switching and individualism immediately, and therefore, the fusion of two kinds of technology will exist in a very long time.Dispatching desk, as most important end product in dispatching patcher, must can be good at combined circuit exchange and Softswitch technology.Summary of the invention
The object of the invention is to avoid the deficiency in above-mentioned background technology, and the one proposing realizes SIP for dispatching desk and ISDN agreement coexists and mutually redundant method
The object of the invention is to be achieved through the following technical solutions:
One realizes SIP for dispatching desk and ISDN agreement coexists and mutually redundant method, it is characterized in that: the method realizes by means of the dispatching desk being comprised of ISDN protocol adaptation module, Session Initiation Protocol adaptation module, link data processing module, call state machine module, Call Control Block, external device management module, external equipment, is specially:
The breath step of collecting mail is:
(1) from isdn interface, receive circuit calling information, enter ISDN protocol adaptation module and carry out protocol adaptation, then increase isdn call subscript, proceed to link data processing module; From network interface, receive calling network message, enter Session Initiation Protocol adaptation module and carry out protocol adaptation, then increase SIP and call out subscript, also proceed to link data processing module;
(2) link data processing module, is all forwarded to call state machine module by the ISDN information of receiving or SIP information;
(3) call state machine module is first resolved message header in message, then judges whether sip message, if sip message is called out rule parsing message body according to SIP, otherwise according to isdn call rule parsing message body; After parsing, revise the state of call state machine, and the message header after resolving and SIP message related to calls body or message header and isdn call message body are converted to BPORT message format issue Call Control Block.
(4) Call Control Block is sent the message of income into BPORT(Tone Via passage) state machine, the business that judges this message activation is the business that ISDN and SIP support, or both incompatible business; If the business of all supporting is unified realization, if incompatible business realizes respectively according to SIP trafficwise or ISDN trafficwise; After realization, revise the state of BPORT, and send and upgrade state notifying to peripheral equipment management module;
(5) peripheral equipment management module is received after state update notification, notifies corresponding external device status to upgrade;
(6) peripheral hardware is received after update notification, upgrades current state;
Photos and sending messages step is:
(1) peripheral hardware is reported to peripheral equipment management module by new element;
(2) peripheral equipment management module is converted to service request by the action of peripheral hardware, reports to Call Control Block;
(3) Call Control Block is sent the service request of receiving into BPORT state machine, and according to the state of current device, service request subscript is set, and then inspection type of service, if ISDN and SIP be the business of compatibility, unified realization, if the business that both are incompatible, realizes according to SIP call business implementation or isdn call business realizing mode respectively.After business realizing, upgrade BPORT state, more new state of notice peripheral hardware, then sends message call state machine resume module;
(4) call state machine module is sent message into call state machine, then Versatile content is encapsulated as to message header part, then according to message subscript, other content is encapsulated into message body according to SIP calling rule or isdn call rule.After encapsulation, message is sent to link data processing module;
(5) link data processing module, by the message of receiving according to message subscript, is sent to ISDN protocol adaptation module or Session Initiation Protocol adaptation module by message;
(6) ISDN protocol adaptation module is carried out adaptation by the message of receiving according to ISDN agreement, then sends to isdn interface.Session Initiation Protocol adaptation module is carried out adaptation by the message of receiving according to Session Initiation Protocol, then sends to network interface.
Wherein, peripheral equipment management module is only managed a set of external equipment, no matter is ISDN type or SIP type call, and this equipment is that ISDN and SIP share.
Wherein, link data processing module is as unique gateway of the each module in dispatching desk inside and ISDN and Session Initiation Protocol; Link data processing module is responsible for the Link State of maintenance schedule platform and stored-program control exchange and SoftSwitch simultaneously.
The present invention, compared with method before, has realized and has only used a set of hardware device to realize to be connected with SoftSwitch with stored-program control exchange simultaneously.Use this equipment can set up simultaneously with the calling of stored-program control exchange and with the calling of SoftSwitch, make after breaking down with being connected of a side, can also keep and the opposing party's communication connection, strengthened the security reliability that dispatching desk uses.
Accompanying drawing explanation
Fig. 1 is receipts Message Processing flow chart of the present invention.
Fig. 2 is of the present invention Message Processing flow chart.
Fig. 3 is the application block diagram of dispatching desk of the present invention.
Fig. 4 is the composition structural representation of dispatching desk of the present invention
Embodiment
Below in conjunction with Fig. 1 to Fig. 4, the present invention is described further.
With reference to Fig. 3, to apply dispatching desk of the present invention and there is network interface and isdn interface simultaneously, network interface is connected with SoftSwitch by Session Initiation Protocol, and isdn interface is connected with digital SPC exchange by ISDN agreement.
With reference to figure 4, dispatching desk of the present invention is mainly comprised of ISDN protocol adaptation module, Session Initiation Protocol adaptation module, link data processing module, call state machine module, Call Control Block, external device management module, external equipment.
Below in conjunction with Fig. 1 and Fig. 2, as an example of the message of up-downgoing example, introduce specific implementation process respectively.
The breath step of collecting mail is:
(1) from isdn interface, receive circuit calling information, enter ISDN protocol adaptation module and carry out protocol adaptation, then increase isdn call subscript, proceed to link data processing module; From network interface, receive calling network message, enter Session Initiation Protocol adaptation module and carry out protocol adaptation, then increase SIP and call out subscript, also proceed to link data processing module;
(2) link data processing module, is all forwarded to call state machine module by the ISDN information of receiving or SIP information;
(3) call state machine module is first resolved message header in message, then judges whether sip message, if sip message is called out rule parsing message body according to SIP, otherwise according to isdn call rule parsing message body; After parsing, revise the state of call state machine, and the message header after resolving and SIP message related to calls body, message header and isdn call message body are converted to BPORT message format issue Call Control Block.
(4) Call Control Block is sent the message of income into BPORT state machine, and the business that judges this message activation is the business that ISDN and SIP support, or both incompatible business; If the business of all supporting is unified realization, if incompatible business realizes respectively according to SIP trafficwise or ISDN trafficwise; After realization, revise the state of BPORT, and send and upgrade state notifying to peripheral equipment management module;
(5) peripheral equipment management module is received after state update notification, notifies corresponding external device status to upgrade;
(6) peripheral hardware is received after update notification, upgrades current state;
Photos and sending messages step is:
(1) peripheral hardware is reported to peripheral equipment management module by new element;
(2) peripheral equipment management module is converted to service request by the action of peripheral hardware, reports to Call Control Block;
(3) Call Control Block is sent the service request of receiving into BPORT state machine, and according to the state of current device, service request subscript is set, and then inspection type of service, if ISDN and SIP be the business of compatibility, unified realization, if the business that both are incompatible, realizes according to SIP call business implementation or isdn call business realizing mode respectively.After business realizing, upgrade BPORT state, more new state of notice peripheral hardware, then sends message call state machine resume module;
(4) call state machine module is sent message into call state machine, then Versatile content is encapsulated as to message header part, then according to message subscript, other content is encapsulated into message body according to SIP calling rule or isdn call rule.After encapsulation, message is sent to link data processing module;
(5) link data processing module, by the message of receiving according to message subscript, is sent to ISDN protocol adaptation module or Session Initiation Protocol adaptation module by message;
(6) ISDN protocol adaptation module is carried out adaptation by the message of receiving according to ISDN agreement, then sends to isdn interface.Session Initiation Protocol adaptation module is carried out adaptation by the message of receiving according to Session Initiation Protocol, then sends to network interface.
Instantiation
1. receive an ISDN calling message: dispatching desk is received new calling (setup) message from isdn interface, ISDN protocol adaptation module is adapted for unified calling ID by this message, identifying this calling message is isdn call, and by this Izvestia to link data processing module, link data processing module is forwarded to call state machine module, call state machine module is called call state machine processing according to message id and current call state, and message is converted to the state information notification Call Control Block of dispatching desk inside according to isdn call rule, Call Control Block is according to carrying out information activation scheduling incoming traffic, and notify peripheral equipment management module, upgrade the indication of peripheral hardware, on peripheral equipment management module controls dispatching desk operation interface, show calling information, and enable handle and start ring.
2. receive the new calling message of SIP: dispatching desk is received new calling (INVITE) message from network interface, Session Initiation Protocol adaptation module is adapted for unified calling ID by this message, identifying this calling message is that SIP calls out, and by this Izvestia to link data processing module, below process with the new calling of ISDN.
3. an exhalation message: isdn interface or network interface are used in next call that can automatic or manual selection scheduling platform, each can be changed before calling out and initiating at any time.Peripheral equipment management module is received the action request of peripheral hardware, and this request is sent to Call Control Block, and Call Control Block is determined and will be initiated an isdn call or calling network according to the current state that arranges, and fills type of call sign.Notice peripheral equipment management module is upgraded show state and the handle state of peripheral hardware, and will be to the call state machine module request message that makes a call.Internal call bag of call state machine module assignment, upgrade the state of this bag, and be adapted for unified outgoing message, this message is sent to link data processing module, link data processing module distinguishes according to calling out subscript, if isdn call, is sent to calling ISDN protocol adaptation module; If SIP calls out, call request is sent to Session Initiation Protocol adaptation module.ISDN protocol adaptation module or Session Initiation Protocol adaptation module complete the message conversion of scheduling Internal call message and standard agreement form, and message is sent to digital SPC exchange or SoftSwitch.