Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment in the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
As shown in Figure 1, a kind of method flow diagram of realizing local exchange in the embodiment of the present invention comprises the following steps:
Step 101 is obtained calling user information and called user information.
Obtain calling user information and called user information, comprise the IMSI (International Mobile Subscriober Identify, international mobile subscriber identity) that obtains calling subscriber and called subscriber.receive NAS (the Non-Access Stratum that calling UE sends, Non-Access Stratum) after signaling, resolve the call setup message in the NAS signaling, can directly obtain calling subscriber's IMSI, can also obtain called subscriber's MSISDN (Mobile Station International Integrated Services Digital NetworkNumber, the international comprehensive service digital net number of travelling carriage) or other number marks of called subscriber, add number prefix etc. as short codes and MSISDN, by inquiring about pre-configured data dictionary, can obtain called subscriber's IMSI.
Can comprise MSISDN table corresponding to short codes in data dictionary, as shown in table 1 for the translation of carrying out between short codes and MSISDN, by inquiry MSISDN table corresponding to short codes, can obtain according to called subscriber's short codes called subscriber's MSISDN; Can also comprise local exchange prefix table in data dictionary, be used for identifying user and need to carry out local exchange, as shown in table 2, by inquiry local exchange prefix table, can add according to called subscriber's MSISDN the MSISDN that the number prefix is obtained the called subscriber; Can also comprise IMSI table corresponding to MSISDN in data dictionary, as shown in table 3 for the translation of carrying out between IMSI and MSISDN, by inquiry IMSI table corresponding to MSISDN, can obtain according to called subscriber's MSISDN called subscriber's IMSI.
Table 1:MSISDN table corresponding to short codes
| MSISDN |
Short?Number |
| MSISDN1 |
ShortNumber1 |
| MSISDN2 |
ShortNumber2 |
| ... |
... |
Table 2: local exchange prefix table
| Prefix |
| PreNumber1 (as, 17955) |
| PreNumber2 |
| ... |
Table 3:IMSI table corresponding to MSISDN
| IMSI |
MSISDN |
| IMSI1 |
MSISDN1 |
| IMSI2 |
MSISDN2 |
| ... |
... |
Also comprise IMSI and AP mapping table in data dictionary, as shown in table 4, by inquiry IMSI and AP mapping table, can obtain the sign of UE place AP according to the IMSI of UE, there is the relation of one-to-many between AP and IMSI.Also comprise local exchange group table in data dictionary, as shown in table 5, by inquiry local exchange group table, can obtain the local exchange group Group at UE place according to the sign of the AP at UE place.Local exchange group table is divided into different Group with a plurality of AP under AG, when only having AP when calling and called UE place in same Group, just can carry out local exchange between calling and called UE.
Table 4:IMSI and AP mapping table
Table 5: local exchange group table
It will be understood by those skilled in the art that this title of data dictionary does not consist of the restriction to the embodiment of the present invention.Every module with the above-mentioned some or all of corresponding relation tables of data function of storage all can be applicable to the embodiment of the present invention, and other title also can be arranged except the data dictionary.
Step 102, according to calling user information and called user information, can the data query dictionary carry out local exchange between judgement calling subscriber and called subscriber, if can carry out local exchange between judgement calling subscriber and called subscriber, execution in step 103.
IMSI according to calling subscriber and called subscriber, IMSI in the data query dictionary and AP mapping table, i.e. table 4, can judge that calling UE and called UE are whether in same AP, if in same AP, judging between calling subscriber and called subscriber, calling UE and called UE can carry out local exchange.If calling UE and called UE be not in same AP, obtain calling UE and the called UE sign of place AP separately, local exchange group table in the data query dictionary, i.e. table 5, determine calling UE and called UE separately place AP whether in same Group, if calling UE and called UE place AP separately in same Group, judge between calling subscriber and called subscriber and can carry out local exchange.
This step can judge that also calling and called UE is whether in same AP, directly obtain calling UE and the called UE sign of place AP separately, according to the calling and called UE sign of place AP separately, local exchange group table in the data query dictionary, i.e. table 5, judge calling and called UE whether in same Group, and then whether can carry out local exchange between definite calling and called user.
Step 103 is controlled calling subscriber and called subscriber and is carried out local exchange.
If can carry out local exchange between judgement calling subscriber and called subscriber, control calling subscriber and called subscriber in local data information, no longer pass through CN.
The technical scheme of the embodiment of the present invention has the following advantages, because according to calling user information and called user information, controls calling subscriber and called subscriber and carries out local exchange, has reduced the taking of resources of core network, and has shortened the propagation delay time of voice.
As shown in Figure 2, a kind of specific implementation flow chart of realizing local exchange in the embodiment of the present invention comprises the following steps:
Step 201, AG obtains and records the UE information that resides in the AP network, according to UE information, the configuration data dictionary.
The embodiment of the present invention realizes calling out the class MSC functions such as control, supplementary service in AG.UMTS AP network has specific mechanism of permitting the entrance to UE, only has to allow the UE of access just can reside in UMTS AP network.Before calling UE made a call, calling UE was connected RRC and is connected with Calling Side AP, and sent LAU (Location Area Update, the position is upgraded)/RAU (RouteArea Update, routing update) Req request message by Calling Side AP to AG.AG resolves LAU/RAU Req message, obtains and record calling UE information, comprises the IMSI of UE and the sign of UE place AP etc., and configuration IMSI and AP mapping table, as shown in table 4 in data dictionary.Other list items in data dictionary can be pre-configured, also can on-the-fly modify.Data dictionary can be arranged in AG, comprises IMSI and AP mapping table and local exchange group table, can also comprise IMSI table corresponding to MSISDN, MSISDN and the corresponding table of short codes and/or local exchange prefix table.
AG and UE can Timing Synchronization information, if UE is resident to other AP residential quarter in synchronization of time intenals, refresh the corresponding relation of IMSI and AP, i.e. information in table 4.If the information updating in table 4 is untimely, as resident in UE to macrocell, for the paging meeting failure of this UE, can interrupt this calling by predetermined strategy, or carry out paging by ordinary call.
Step 202, calling UE are set up RRC with AG and are connected.
Calling UE makes a call, and sets up RRC by normal call flow with AG and is connected.The mode of dialing that the calling subscriber adopts comprises following three kinds:
Mode 1: dial normally mode.As dial called subscriber's MSISDN.
Mode 2: the mode of dialing cornet.Be short codes of user assignment in advance, there is certain corresponding relation in this short codes and user's number, and the calling subscriber can directly dial called subscriber's short codes.
Mode 3: special number prefix mode.During calling user dials called subscriber, extra digit prefix before called number.
Step 203, calling UE sends call setup message to AG.
After calling UE and AG set up RRC and be connected, send call setup message to AG.
Step 204, AG obtains calling user information and called user information.
Obtain calling user information and called user information, comprise the IMSI that obtains calling subscriber and called subscriber, AG receives and resolves the call setup message in the NAS signaling, obtains calling subscriber's IMSI.The MSISDN that can also comprise the called subscriber to the analysis result of call setup message also can comprise other number marks of called subscriber, adds number prefix etc. as short codes and MSISDN.If the called party information that obtains is the form that the local exchange number adds MSISDN, by inquiry local exchange prefix table and MSISDN table corresponding to IMSI, obtain called subscriber's IMSI, as the called party information that obtains is 17955134xxxxxxxx, can judge that according to table 2 17955 are prefix, remove the MSISDN that can obtain the called subscriber after prefix, question blank 3 can obtain called subscriber's IMSI; If the called party information that obtains is called subscriber's short codes, by inquiry MSISDN table corresponding to short codes and MSISDN and the corresponding table of IMSI, obtain described called subscriber's IMSI.In addition, those skilled in the art as can be known, MSISDN or other number marks by the called subscriber that comprises in the NAS signaling can also have other to obtain the method for its corresponding IMSI, do not repeat them here.
Step 205, AG is according to calling user information and called user information, and can the data query dictionary carry out local exchange between judgement calling subscriber and called subscriber, if can carry out local exchange between calling subscriber and called subscriber, execution in step 206.
After AG obtains calling subscriber and called subscriber's IMSI, by the IMSI in the data query dictionary and AP mapping table, i.e. table 4, obtain calling UE and the called UE sign of the AP at place separately, by the local exchange group table in the data query dictionary, i.e. table 5, determine calling UE and called UE separately the AP at place whether in same Group, can judge between the calling and called user and can carry out local exchange.If calling UE and the called UE AP at place separately in same Group, judge to exchange local exchange in group between the calling and called user, carry out the step of local exchange; If calling UE and the called UE AP at place separately not in same Group, judge between the calling and called user and can not carry out local exchange, call setup message is sent to CN, complete this calling by the ordinary call flow process, or interrupt this calling.
Step 206, AG paging called UE, if the paging success, execution in step 207.
If can carry out local exchange between the judgement calling and called, the called UE under AG paging AG.If paging failure can send to call setup message MSC to carry out ordinary call, or interrupt this calling; If the paging success, the step of continuation local exchange.
Step 207, AG sets up RRC with called UE and is connected.
After the success of AG paging called UE, set up RRC with called UE and be connected.
Step 208, calling UE and AG set up calling subscriber's carrying.
After AG and called UE are set up RRC and be connected, set up calling subscriber's carrying with calling UE, to the calling UE data information.
Step 209, called UE are set up signaling with AG and are connected.
After called UE and AG set up signaling and be connected, can carry out the mutual of NAS signaling with AG.
Step 210, AG and called UE are set up called subscriber's carrying.
After called UE and AG set up signaling and be connected, also can set up called subscriber's carrying with AG, to the AG data information.
Step 211, calling UE and called UE are conversed.
After AG and called UE were set up called subscriber's carrying, calling UE and called UE were conversed.Flow process after calling UE and called UE are conversed is identical with ordinary call.
The technical scheme of the embodiment of the present invention has the following advantages, because according to calling user information and called user information, control calling subscriber and called subscriber and exchange local exchange in group, during the UE conversation, voice no longer pass through core net, user's face between calling UE and called UE need not to be based upon between UE and core net, reduced the taking of resources of core network, shortened the propagation delay time of voice.
As shown in Figure 3, the another kind of specific implementation flow chart of realizing local exchange in the embodiment of the present invention comprises the following steps:
Step 301, AP obtains and records the UE information that resides in the AP network, according to UE information, the configuration data dictionary.
The embodiment of the present invention realizes calling out the class MSC functions such as control, supplementary service in AP.UMTS AP network has specific mechanism of permitting the entrance to UE, only has to allow the UE of access just can reside in UMTS AP network.Before calling UE made a call, calling UE was connected RRC and is connected with AP, and sent LAU/RAU Req message to AP.AP resolves LAU/RAU Req message, obtains and record calling UE information, as the IMSI of UE and the sign of UE place AP etc., and the IMSI in the configuration data dictionary and the mapping table of AP, as shown in table 4.Other list items in data dictionary can be pre-configured, also can on-the-fly modify.Data dictionary can be arranged in AP, comprises IMSI and AP mapping table, can also comprise IMSI table corresponding to MSISDN, MSISDN and the corresponding table of short codes and/or local exchange prefix table.
AP and UE can Timing Synchronization information, if UE is resident to other AP residential quarter in synchronization of time intenals, refresh the corresponding relation of IMSI and AP, i.e. information in table 4.If the information updating in table 4 is untimely, as resident in UE to macrocell, for the paging meeting failure of this UE, can interrupt this calling by predetermined strategy, or carry out paging by ordinary call.
Step 302, calling UE are set up RRC with AP and are connected.
Calling UE makes a call, and sets up RRC by normal call flow with AP and is connected.The mode of dialing that the calling subscriber adopts can comprise following three kinds:
Mode 1: dial normally mode.As dial called subscriber's MSISDN.
Mode 2: the mode of dialing cornet.Be short codes of user assignment in advance, there is certain corresponding relation in this short codes and user's number, and the calling subscriber can directly dial called subscriber's short codes.
Mode 3: special number prefix mode.During calling user dials called subscriber, extra digit prefix before called number.
Step 303, calling UE sends call setup message to AP.
After calling UE and AP set up RRC and be connected, send call setup message to AP.
Step 304, AP obtains calling user information and called user information.
Obtain calling user information and called user information, comprise the IMSI that obtains calling subscriber and called subscriber, AP receives and resolves the call setup message in the NAS signaling, obtains calling subscriber's IMSI.The MSISDN that can also comprise the called subscriber to the analysis result of call setup message also can comprise other number marks of called subscriber, adds number prefix etc. as short codes and MSISDN.Be 17955134xxxxxxxx as the called party information in call setup message, can judge 17955 for prefix according to table 2, remove the MSISDN that can obtain the called subscriber after prefix; Be short codes as the called party information in call setup message, can obtain called subscriber's MSISDN according to table 1.After obtaining called subscriber's MSISDN, can obtain called subscriber's IMSI by question blank 3.In addition, those skilled in the art as can be known, MSISDN or other number marks by the called subscriber that comprises in the NAS signaling can also have other to obtain the method for its corresponding IMSI, do not repeat them here.
Step 305, AP is according to calling user information and called user information, and can the data query dictionary carry out local exchange between judgement calling subscriber and called subscriber, if can carry out local exchange between calling subscriber and called subscriber, execution in step 306.
After AP obtains calling subscriber and called subscriber's IMSI, by the IMSI in the data query dictionary and AP mapping table, i.e. table 4, judge that calling UE and called UE are whether in same AP, if calling UE and called UE are in same AP, judge and to carry out local exchange in AP between calling subscriber and called subscriber, carry out the step of local exchange.If calling UE and called UE in same AP, do not send to AG with call setup message, complete this calling by the ordinary call flow process, or interrupt this calling.
Step 306, AP paging called UE, if the paging success, execution in step 307.
If can carry out local exchange between the judgement calling and called, the called UE under AP paging AP.If paging failure sends to call setup message AG to carry out ordinary call, or interrupts this calling; If the paging success, the step of continuation local exchange.
Step 307, AP sets up RRC with called UE and is connected.
After the success of AP paging called UE, set up RRC with called UE and be connected.
Step 308, calling UE and AP set up calling subscriber's carrying.
After AP and called UE are set up RRC and be connected, set up calling subscriber's carrying with calling UE, to the calling UE data information.
Step 309, called UE are set up signaling with AP and are connected.
After called UE and AP set up signaling and be connected, can carry out the mutual of NAS signaling with AP.
Step 310, AP and called UE are set up called subscriber's carrying.
After called UE and AP set up signaling and be connected, also can set up called subscriber's carrying with AP, to the AP data information.
Step 311, calling UE and called UE are conversed.
After AP and called UE were set up called subscriber's carrying, calling UE and called UE were conversed.Flow process after calling UE and called UE are conversed is identical with ordinary call.
The technical scheme of the embodiment of the present invention has the following advantages, because according to calling user information and called user information, control calling subscriber and called subscriber and carry out local exchange in AP, during the UE conversation, voice no longer pass through core net, user's face between calling UE and called UE need not to be based upon between UE and core net, reduced the taking of resources of core network, shortened the propagation delay time of voice.
In the embodiment of the present invention, also can be first by carrying out local exchange between AP judgement calling subscriber and called subscriber, if can not carry out local exchange in AP between AP judgement calling subscriber and called subscriber, call setup message is sent to AG, continued to exchange local exchange in group between judgement calling subscriber and called subscriber by AG.
As shown in Figure 4, another the specific implementation flow chart of realizing local exchange in the embodiment of the present invention comprises the following steps:
Step 401 is to step 404, and is identical to step 304 with step 301, can be with reference to the description of front embodiment.
Step 405, AP is according to calling user information and called user information, and can the data query dictionary carry out local exchange between judgement calling subscriber and called subscriber, if can not carry out local exchange between calling subscriber and called subscriber, execution in step 406.
Step 406, AP sends to AG with call setup message.
After AP obtains calling subscriber and called subscriber's IMSI, by the IMSI in the data query dictionary and AP mapping table, i.e. table 4 judges that calling UE and called UE are whether in same AP, if calling UE and called UE in same AP, do not send to AG with call setup message.
All can be provided with data dictionary in AP and AG, the data dictionary in AP comprises IMSI and AP mapping table, can also comprise IMSI table corresponding to MSISDN, MSISDN and the corresponding table of short codes and/or local exchange prefix table; Data dictionary in AG comprises IMSI and AP mapping table and local exchange group table, can also comprise IMSI table corresponding to MSISDN, MSISDN and the corresponding table of short codes and/or local exchange prefix table.
Step 407 is to step 414, and is identical to step 211 with step 204, can be with reference to the description of front embodiment.
the technical scheme of the embodiment of the present invention has the following advantages, because according to calling user information and called user information, control calling subscriber and called subscriber and carry out local exchange, can can not carry out in AP after local exchange judgement calling and called user, further call setup information is issued AG, and judge by AG whether the calling and called user can exchange local exchange in group, during the UE conversation, voice no longer pass through core net, user's face between calling UE and called UE need not to be based upon between UE and core net, reduced taking resources of core network, shortened the propagation delay time of voice.
As shown in Figure 5, a kind of structure drawing of device of realizing local exchange in the embodiment of the present invention comprises:
Acquisition module 510 is used for obtaining calling user information and called user information.
Obtain calling user information and called user information, comprise the IMSI that obtains calling subscriber and called subscriber.Acquisition module 510 is used for resolving the call setup message of NAS signaling, obtains IMSI and called subscriber's MSISDN and other number marks of called subscriber of calling subscriber, adds number prefix etc. as short codes and MSISDN.By inquiring about pre-configured data dictionary, can obtain called subscriber's IMSI.
Judge module 520, for calling user information and the called user information obtained according to acquisition module 510, can the data query dictionary carry out local exchange between judgement calling subscriber and called subscriber.
The IMSI that judge module 520 is used for according to calling subscriber and called subscriber, IMSI in the data query dictionary and AP mapping table, i.e. table 4, judge that calling UE and called UE are whether in same AP, if in same AP, judging between calling subscriber and called subscriber, calling UE and called UE can carry out local exchange.
Described judge module 520, when calling UE and called UE are not in same AP, can also be further used for obtaining calling UE and the called UE sign of place AP separately, local exchange group table in the data query dictionary, i.e. table 5, determine calling UE and called UE separately place AP whether in same Group, if calling UE and called UE separately place AP in same Group, judge between calling subscriber and called subscriber and can carry out local exchange.
Judge module 520 can judge that also calling and called UE is whether in same AP, directly obtain calling UE and the called UE sign of place AP separately, according to the calling and called UE sign of place AP separately, local exchange group table in the data query dictionary, i.e. table 5, judge calling and called UE whether in same Group, and then whether can carry out local exchange between definite calling and called user.
Control module 530 is used for can carrying out local exchange between judge module 520 judgement calling subscribers and called subscriber, controls calling subscriber and called subscriber and carries out local exchange.
If can carry out local exchange between judge module 520 judgement calling subscribers and called subscriber, control module 530 control calling subscribers and called subscriber in local data information, no longer pass through CN.
The technical scheme of the embodiment of the present invention has the following advantages, because according to calling user information and called user information, controls calling subscriber and called subscriber and carries out local exchange, has reduced the taking of resources of core network, and has shortened the propagation delay time of voice.
As shown in Figure 6, a kind of concrete structure figure for the device of realizing local exchange in the embodiment of the present invention comprises:
Logging modle 610 is used for obtaining and record the UE information that resides in the AP network, according to UE information, and the configuration data dictionary.
The embodiment of the present invention realizes calling out the class MSC functions such as control, supplementary service in realizing the device of local exchange.UMTS AP network has specific mechanism of permitting the entrance to UE, only has to allow the UE of access just can reside in UMTS AP network.Before calling UE makes a call, the device of realizing local exchange in the embodiment of the present invention receives and resolves the LAU/RAU Req message that calling UE sends, obtain and record calling UE information, as the IMSI of UE and the sign of UE place AP etc., IMSI in the configuration data dictionary and the mapping table of AP, as shown in table 4.Other list items in data dictionary can be pre-configured, also can on-the-fly modify.
Acquisition module 620 is used for obtaining calling user information and called user information.
Obtain calling user information and called user information, comprise the IMSI that obtains calling subscriber and called subscriber.Acquisition module 620 is used for resolving the call setup message of NAS signaling, obtains calling subscriber's IMSI and called subscriber's MSISDN, and other number marks of called subscriber, adds number prefix etc. as short codes and MSISDN.By inquiring about pre-configured data dictionary, can obtain called subscriber's IMSI.
Judge module 630, for calling user information and the called user information obtained according to acquisition module 620, can the data query dictionary carry out local exchange between judgement calling subscriber and called subscriber.
The IMSI that judge module 630 is used for according to calling subscriber and called subscriber, IMSI in the data query dictionary and AP mapping table, i.e. table 4, judge that calling UE and called UE are whether in same AP, if in same AP, judging between calling subscriber and called subscriber, calling UE and called UE can carry out local exchange in AP.
Described judge module 630, when calling UE and called UE are not in same AP, can also be further used for obtaining calling UE and the called UE sign of place AP separately, local exchange group table in the data query dictionary, i.e. table 5, determine calling UE and called UE separately place AP whether in same Group, if calling UE and called UE separately place AP in same Group, judge to exchange local exchange in group between calling subscriber and called subscriber.
Judge module 630, can judge that also calling and called UE is whether in same AP, directly obtain calling UE and the called UE sign of place AP separately, according to the calling and called UE sign of place AP separately, local exchange group table in the data query dictionary, i.e. table 5 judges calling and called UE whether in same Group, and then whether can exchange local exchange in group between definite calling and called user.
Control module 640 is used for can carrying out local exchange between judge module 630 judgement calling subscribers and called subscriber, controls calling subscriber and called subscriber and carries out local exchange.
If can carry out local exchange between judge module 630 judgement calling subscribers and called subscriber, control module 640 control calling subscribers and called subscriber in local data information, no longer pass through CN.
Logging modle 610 specifically comprises:
The first analyzing sub-module 611 is used for resolving the LAU/RAU Req message that receives.
Obtain submodule 612, be used for the analysis result according to 611 pairs of LAU/RAU Req message of the first analyzing sub-module, obtain and record the UE information that resides in the AP network.
The device of realizing local exchange in the embodiment of the present invention and UE can Timing Synchronization information, if UE is resident to other AP residential quarter in synchronization of time intenals, refresh the corresponding relation of IMSI and AP, i.e. information in table 4.If the information updating in table is untimely, as resident in UE to macrocell, for the paging meeting failure of this UE, can interrupt this calling by predetermined strategy, or carry out paging by ordinary call.
Acquisition module 620 specifically comprises:
The second analyzing sub-module 621 is used for resolving the call setup message that receives, and obtains calling subscriber's IMSI.
Inquiry submodule 622 is used for the analysis result according to 621 pairs of call setup messages of the second analyzing sub-module, and the data query dictionary obtains called user information.
The device of realizing local exchange in the embodiment of the present invention receives and resolves the call setup message in the NAS signaling, obtains calling user information and called user information.Call setup message can comprise called subscriber's MSISDN, also can comprise other number marks of called subscriber, adds number prefix etc. as short codes and MSISDN.Be 17955134xxxxxxxx as the called party information in call setup message, can judge 17955 for prefix according to table 2, remove the MSISDN that can obtain the called subscriber after prefix; Be short codes as the called party information in call setup message, can obtain called subscriber's MSISDN according to table 1.After obtaining called subscriber's MSISDN, can obtain called subscriber's IMSI by question blank 3.
The technical scheme of the embodiment of the present invention has the following advantages, because according to calling user information and called user information, control calling subscriber and called subscriber and carry out local exchange, during the UE conversation, voice no longer pass through core net, user's face between calling UE and called UE need not to be based upon between UE and core net, reduced the taking of resources of core network, shortened the propagation delay time of voice.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform, can certainly pass through hardware, but in a lot of situation, the former is better execution mode.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in a storage medium, comprise that some instructions are with so that a station terminal equipment (can be mobile phone, personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
The above is only the preferred embodiment of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be looked protection scope of the present invention.