Embodiment
Hereinafter will and combine embodiment to specify the present invention with reference to accompanying drawing.Need to prove that under the situation of not conflicting, embodiment and the characteristic among the embodiment among the application can make up each other.
Embodiment one
Present embodiment provides a kind of ISDN method for processing business.Fig. 1 is the flow chart according to the ISDN method for processing business of the embodiment of the invention, and is as shown in Figure 1, and this method comprises:
Step S102, IAD is decoded to the professional message of ISDN;
Step S104 handles the ISDN business according to decoded results.
In the present embodiment, IAD is decoded to the professional message of ISDN, like this; When uplink service interface and soft switch communicating interrupt, IAD also can be realized the decoding to the professional message of ISDN, thereby carries out corresponding service processing; Thereby when having solved the uplink service interface that exists in the correlation technique and soft switch communicating interrupt; The problem that the ISDN business also can be interrupted, and then reached when uplink service interface and soft switch communicating interrupt the effect that the ISDN business can not be interrupted.
Wherein, step S102 can have multiple implementation, only wherein a kind of implementation is described below.Whether IAD detects the link of uplink service interface unusual; Under the unusual situation of the link that detects uplink service interface, this IAD is decoded to the professional message of ISDN.Present embodiment has increased the function of the link that detects uplink service interface, through judging that IAD is decoded to message under the unusual situation of link, makes under the unusual situation of the link of uplink service interface, also can carry out the ISDN business.
Preferably, under the normal situation of the link that detects uplink service interface, IAD uses this link and the professional message of the mutual ISDN of soft switch, and soft switch can be decoded to the professional message of ISDN.In this embodiment, if the link of uplink service interface is normal, then still use soft switch that the professional message of ISDN is decoded, this changes less to the system flow in the correlation technique, and application is stronger.Need to prove that under the normal situation of the link that detects uplink service interface, also can use IAD that the professional message of ISDN is decoded, this can make the ISDN business normally carry out equally.
In a preferred implementation of the embodiment of the invention; Step S104 can realize in the following manner: IAD confirms not carry out the ISDN business according to above-mentioned decoded results; Then; Encode not carrying out the professional message of ISDN, and the message after will encoding sends to the professional calling subscriber equipment of ISDN.This embodiment shows according to decoded results and does not carry out the professional flow process of ISDN.
In another preferred implementation of the embodiment of the invention, step S104 can realize in the following manner: it is professional that IAD confirms to carry out ISDN according to decoded results; Encode carrying out the professional message of ISDN; Message behind the coding is sent to the professional called subscriber equipment of ISDN.This embodiment shows according to decoded results and carries out the professional flow process of ISDN.
Preferably, above-mentioned message (for example, the professional message of ISDN, carry out the professional message of ISDN and do not carry out any in the professional message of ISDN) can be message Q.931.This embodiment has the advantage that is easy to realize.
Embodiment two
Present embodiment is to the problem that exists in the correlation technique; A kind of Access Network ISDN is provided method and gateway from exchange; This method and gateway can be used for when uplink service interface generation communication failure, ensureing that the isdn user is professional; With the protection of networking Central Shanxi Plain isdn user's uplink service interface that achieves a butt joint, thereby solve the professional all disruption of the isdn user who causes owing to the uplink service interface communicating interrupt in the present Access Network.
Fig. 2 be according to the ISDN of the embodiment of the invention from exchanging sketch map, as shown in Figure 2, the main contents of present embodiment comprise:
1. increase uplink service interface link check mechanism.Under the normal situation of uplink service interface link, normal communication between AG and the SS realizes that through IUA ISDN is professional; When the uplink service interface link down, change ISDN automatically over to from exchange;
2. the Q931 message processing module is set in AG.As shown in Figure 2, this module comprises that the coding submodule conciliates the numeral module, accomplishes respectively the Code And Decode of message Q.931, and this module can also be carried out the validity checking of message field;
3. ISDN is set from the interchange mode piece in AG.As shown in Figure 2; AG Q.931 message is dealt into the Q931 message processing module; By the analysis of decoding of decoding submodule; ISDN handles according to decoded results from the interchange mode piece accordingly: to the message that needs are replied immediately, ISDN is encoded by the coding submodule from interchange mode piece notice Q931 message processing module immediately, and is returned to the isdn user; Otherwise, decoded results being sent to ISDN handle from the interchange mode piece, ISDN is after the interchange mode piece is finished dealing with, and notice Q931 message processing module coding submodule coding also is returned to the isdn user.
Adopt the described method of present embodiment, can solve in the present Access Network, owing to the break down problem of this interface isdn user service disconnection of causing of the communication between uplink service interface and the soft switch.Under this protection mechanism, when the uplink service interface normal communication, IUA and soft switch are carried out communication and are realized that ISDN is professional; The communicating interrupt in case uplink service interface breaks down; The isdn user changes ISDN over to automatically from switch system; The inner isdn user of IAD can continue to call out and and other isdn user between normal talking, thereby make Access Network isdn user's service security obtain guarantee.
Embodiment three
Present embodiment is elaborated to the embodiment of the invention through an instantiation.Fig. 3 is the flow chart that the AG according to the embodiment of the invention works under the interchange mode formula at ISDN, and wherein, this flow process comprises that step S302 is to step S330.
Step S302, caller isdn user (isdn user 1 among Fig. 3) off-hook, to the Q.931 message (following message is Q.931 message) of AG transmission SETUP (1) (set up and call out), AG prepares to collect the digits.
Step S304, the caller isdn user sends INFORMATION (2) (information) message to AG, and AG collects the digits.
Step S306, the AG end that collects the digits is through the coding submodule (hereinafter to be referred as Q931 coding submodule) of Q931 message processing module; Encapsulate a CALL PRO (3) (promptly; CALL PROCEEDING, expression is received message, is handled) message, and this message sent to the caller isdn user.Simultaneously, Q931 coding submodule also encapsulates a SETUP (4) message, and AG sends to the called isdn user (isdn user 2 among Fig. 3) on the same AG with SETUP (4) message.
Step S308, called isdn user receives SETUP, and ring is also sent ALERTING (5) (ring) message to AG.
Step S310; AG receives the ALERTING that called isdn user sends; Decoding submodule (hereinafter to be referred as Q931 decoding submodule) through the Q931 message processing module is resolved, and uses ISDN to handle from the interchange mode piece, then; Encapsulate an ALERTING (6) message through Q931 coding submodule, and ALERTING (6) message is sent to the caller isdn user.
Step S312, called isdn user's off-hook, and to AG transmission CONNECT (7) (connection).
Step S314; AG receives the CONNECT that called isdn user sends, and this CONNECT message is resolved through Q931 decoding submodule, and uses ISDN to handle from the interchange mode piece; Then; Encode through Q931 coding submodule, be packaged into a CONNECT (8) message, again CONNECT (8) message is sent to the caller isdn user.
Step S316, caller isdn user reply CONNECT ACKNOWLEDGE (9) (connect and confirm) message to AG.
Step S318; AG receives caller isdn user's CONNECT ACKNOWLEDGE message; This CONNECT ACKNOWLEDGE message is handled from the interchange mode piece through Q931 decoding submodule decoding and ISDN; Send to called isdn user again by a Q931 coding submodule encapsulation CONNECT ACKNOWLEDGE (10) (connect and confirm) message, and with CONNECT ACKNOWLEDGE (10) message, caller isdn user and called isdn user begin conversation.
Step S320, end of conversation, the side's on-hook among caller isdn user and the called isdn user (for example, isdn user's 1 on-hook), on-hook direction AG sends DISCONNECT (11) (disconnection).
Step S322, AG receive DISCONNECT message, and this message is handled, and reply RELEASE (12) (release) to on-hook side (for example, the isdn user 1), and send DISCONNECT (13) to the opposing party (for example, the isdn user 2).
Step S324, on-hook side receive the RELEASE that AG sends, and discharge the B path and reply RELEASE COMPLETE (14) (discharge and accomplish) to AG.
Step S326, the opposing party receive the DISCONNECT that AG sends, and reply RELEASE (15) and discharge the B path to AG.
Step S328, AG receive after the RELEASE, reply RELEASE COMPLETE (16), this end of calling.
Step S330, the conversation ticket is produced by the caller gateway, and this ticket can be temporarily stored in the gateway, also can pass to webmaster or accounting server.
Embodiment four
Present embodiment provides a kind of ISDN business processing device, and this device can be positioned at IAD, and this device can be used for realizing the method for embodiment one to embodiment three.
Fig. 4 is the structured flowchart according to the ISDN business processing device of the embodiment of the invention, and is as shown in Figure 4, and this device comprises: decoder module 42 is used for the professional message of ISDN is decoded; Processing module 44 is coupled to decoder module 42, is used for according to decoded results the ISDN business being handled.
In the present embodiment, IAD is decoded to the professional message of ISDN, like this; When uplink service interface and soft switch communicating interrupt, IAD also can be realized the decoding to the professional message of ISDN, thereby carries out corresponding service processing; Thereby when having solved the uplink service interface that exists in the correlation technique and soft switch communicating interrupt; The problem that the ISDN business also can be interrupted, and then reached when uplink service interface and soft switch communicating interrupt the effect that the ISDN business can not be interrupted.Wherein, decoder module 42 can be realized the partial function (for example, can realize the partial function of Q931 decoding submodule) of above-mentioned Q931 message processing module, processing module 44 corresponding to above-mentioned ISDN from the interchange mode piece.
Fig. 5 is the structured flowchart according to the decoder module of the embodiment of the invention, and is as shown in Figure 5, and decoder module 42 comprises: detecting unit 52, and whether the link that is used to detect uplink service interface is unusual; Decoding unit 54 is coupled to detecting unit 52, is used for detecting under the unusual situation of the link of uplink service interface at detecting unit 52, and the message that ISDN is professional is decoded.Present embodiment has increased the function of the link that detects uplink service interface, through judging that IAD is decoded to message under the unusual situation of link, makes under the unusual situation of the link of uplink service interface, also can carry out the ISDN business.
Fig. 6 is the preferred construction block diagram according to the ISDN business processing device of the embodiment of the invention; As shown in Figure 6, this device also comprises: interactive module 62 is coupled to detecting unit 52; Be used for detecting under the normal situation of link of uplink service interface at detecting unit 52; Use the professional message of the mutual ISDN of this link and soft switch, then, soft switch can be decoded to the professional message of ISDN.In this embodiment, if the link of uplink service interface is normal, then still use soft switch that the professional message of ISDN is decoded, this changes less to the system flow in the correlation technique, and application is stronger.Need to prove that under the normal situation of the link that detects uplink service interface, also can use IAD that the professional message of ISDN is decoded, this can make the ISDN business normally carry out equally.
Fig. 7 is the structured flowchart according to the processing module of the embodiment of the invention, and is as shown in Figure 7, and processing module 44 comprises: confirm unit 72, be used for confirming not carry out the ISDN business according to above-mentioned decoded results; Coding unit 74 is coupled to and confirms unit 72, encodes not carrying out the professional message of ISDN; Transmitting element 76 is coupled to coding unit 74, is used for the message behind the coding is sent to the professional calling subscriber equipment of ISDN.This embodiment shows according to decoded results and does not carry out the professional flow process of ISDN.
Preferably, it is professional to confirm that unit 72 can also be used for confirming to carry out ISDN according to decoded results; Coding unit 74 can also be used for encoding carrying out the professional message of ISDN; Transmitting element 76 can also be used for the message behind the coding is sent to the professional called subscriber equipment of ISDN.This embodiment shows according to decoded results and carries out the professional flow process of ISDN.
Wherein, above-mentioned message (for example, the professional message of ISDN, carry out the professional message of ISDN and do not carry out any in the professional message of ISDN) is message Q.931.
In another embodiment, a kind of ISDN service processing software is provided also, this software is used for carrying out the technical scheme that the foregoing description and preferred embodiment are described.This embodiment has the advantage that is easy to realize.
In another embodiment, a kind of storage medium is provided also, has stored above-mentioned ISDN service processing software in this memory mechanism.
In sum, the mode that the present invention adopts IAD that the professional message of ISDN is decoded has reached when uplink service interface and soft switch communicating interrupt the effect that the ISDN business can not be interrupted.
Obviously, it is apparent to those skilled in the art that above-mentioned each module of the present invention or each step can realize with the general calculation device; They can concentrate on the single calculation element; Perhaps be distributed on the network that a plurality of calculation element forms, alternatively, they can be realized with the executable program code of calculation element; Thereby; Can they be stored in the storage device and carry out, and in some cases, can carry out step shown or that describe with the order that is different from here by calculation element; Perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is merely the preferred embodiments of the present invention, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.All within spirit of the present invention and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.