Summary of the invention
The embodiment of the invention provides SMS processing and the short message service center that sends to the international roaming user in a kind of cdma system, improves the user receives short message when international roaming success rate, improves cellphone subscriber's experience.
Send to international roaming user's SMS processing in a kind of cdma system, comprising:
Short message service center in the cdma network is after receiving short message, and the routing address that receives the user according to short message judges that said short message receives whether the user is the international roaming user;
When said short message receives the user for the international roaming user; According to the type of coding of said short message and the benchmark fractionation thresholding T of storage said content of short message is split into the N section; N >=1, said T be international roaming CDMA user the content maximum number of byte of the short message that can receive;
Said N section content of short message is included in N respectively newly sends to the reception user in the short message.
Further, said routing address according to short message reception user judges that this short message receives whether user is the international roaming user, specifically comprises:
After the service processor of said short message service center receives said short message, send route requests;
After the signaling front end processor of said short message service center is received the route requests of service processor, send route requests to HLR;
The signaling front end processor receives the route replies of HLR, carries the routing address that short message receives the user in the route replies of said HLR;
After the signaling front end processor obtains short message reception user's routing address, judge that according to the international gateways address list of storage said short message receives whether the user is the international roaming user.
Preferable; When the type of coding of said short message is 7-bit ASCII or IA5; And when being non-serial connection short message, said
When the type of coding of said short message is 7-bit ASCII or IA5; And during for the serial connection short message; The hop count * N1 of the former serial connection content of short message of said N=; Wherein,
When the type of coding of said short message is UNICODE; And when being non-serial connection short message, said
When the type of coding of said short message is UNICODE; And during for the serial connection short message, said
When the type of coding of said short message is 8 bit-binary data; And when being non-serial connection short message, said
When the type of coding of said short message is 8 bit-binary data; And during for the serial connection short message, said
Further, when said short message is non-serial connection short message, puts in order according to content and to sort to splitting N the new short message that the back generates, wherein the sequence number of M new short message is illustrated as M/N, M<N.
When said short message is when being connected in series short message, put in order according to content the individual short message newly of the N that splits the back generation is sorted, wherein the sequence number of the individual new short message of M is illustrated as ((m-1) * N+M)/N
Always, M<N, said m puts in order said N for this serial connection short message has at all in the short message of serial connection relation
Always=(bar number+1 that is connected in series the short message that concerns being arranged) * N with the said short message that is connected in series.
Preferable, said T is an even number.
The short message service center that in a kind of cdma system the short message that sends to the international roaming user is handled comprises:
Service processor; Be used for after receiving short message, sending route requests; And receive the judged result of returning, when short message reception user is the international roaming user, said content of short message is split into the N section according to the type of coding of said short message and the benchmark fractionation thresholding T of storage; N >=1, and said N section content of short message is included in respectively to send in the new short message of N receives the user;
The signaling front end processor; Be used for after receiving the route requests of said service processor; Obtain said short message and receive user's routing address and judge whether said routing address is the international gateways address, if then the reception user of said short message is the international roaming user; Otherwise the reception user of said short message is not the international roaming user, and returns judged result and give said service processor.
Further, said signaling front end processor specifically comprises:
Routing unit; After being used to receive the route requests of said service processor transmission; Initiate the SMSReq route requests to HLR, and receive the SMSReq response message that HLR returns, and obtain routing address and the transmission that the short message that carries in the route replies of HLR receives the user;
Memory cell is used to store the international gateways address list;
Matching unit; The short message that receives said routing unit transmission receives user's routing address; Whether the routing address of judging said short message reception user according to the international gateways address list of said cell stores is the international gateways address, and sends judged result.
Further, said service processor specifically comprises:
Receiving element is used to receive short message to be sent and forwarding, receives judged result and forwarding that said signaling front end processor returns;
The route requests unit is used for behind the short message that receives said receiving element forwarding, sending route requests;
Buffer unit is used to receive short message and buffer memory that said receiving element is transmitted, receive the judged result that said receiving element returns after, transmit corresponding short message and delete this short message according to said judged result;
Split cells; Be used for the reception user who receives said buffer unit forwarding for behind international roaming user's the short message; Split thresholding T according to the benchmark of the type of coding of said short message and storage said content of short message is split into the N section, and said N section content of short message is included in respectively to send in N the new short message receives the user;
Transmitting element; Be used for after the reception user who receives said buffer unit forwarding is not international roaming user's short message; Send, behind N that generates after the fractionation that receives said split cells transmission new short message, said N new short message sent to the reception user one by one.
Preferable, said split cells splits thresholding T according to the benchmark of the type of coding of short message and storage and said content of short message is split into the N section is specially:
When the type of coding of said short message is 7-bitASCII or IA5; And when being non-serial connection short message, said
When the type of coding of said short message is 7-bit ASCII or IA5; And during for the serial connection short message, said
When the type of coding of said short message is UNICODE; And when being non-serial connection short message, said
When the type of coding of said short message is UNICODE; And during for the serial connection short message, said
When the type of coding of said short message is 8 bit-binary data; And when being non-serial connection short message, said
When the type of coding of said short message is 8 bit-binary data; And during for the serial connection short message, said
The embodiment of the invention provides SMS processing and the short message service center that sends to the international roaming user in a kind of cdma system; The filtering short short message that at first will issue the international roaming user comes out; Type of coding according to content of short message adopts different processing methods again; Carry out the fractionation of short message, improved CDMA user and when international roaming, received the success rate of short message, and improved impression and experience that the user reads greatly.And further complicated short message such as form such as serial connection short message etc. is also handled targetedly, realized CDMA user's reception to the serial connection short message when international roaming.
Embodiment
The embodiment of the invention provides SMS processing and the short message service center that sends to the international roaming user in a kind of cdma system; The filtering short short message that at first will issue the international roaming user comes out; Again according to the coded system of content of short message; Characteristics according to its coding adopt different processing methods, carry out the fractionation to short message.
The embodiment of the invention provides the SMS processing that sends to the international roaming user in a kind of cdma system, and is as shown in Figure 1, comprises the steps:
Short message service center in step S101, the cdma network receives short message;
Step S102, obtain the routing address that short message receives the user;
Step S103, judge that this short message receives whether user is the international roaming user, and return judged result;
Judge that whether short message receives the user is that international roaming user's method is: the routing address that short message is received the user is compared with the international gateways address list of storage; If there is short message to receive user's routing address in the international gateways address of storage; Then short message reception user is the international roaming user; When storage international gateways address, can set up hash index simultaneously, so that search and mate.
Step S104, be that the benchmark of type of coding and storage of international roaming user's short message splits thresholding T the content of this short message is split into the N section according to receiving the user; Wherein, T be international roaming CDMA user the content maximum number of byte of the short message that can receive, N >=1;
Step S105, N section content of short message is included in respectively to send in the new short message of N receives the user.
For preventing that two bytes forming same character are split in the different new short messages, and cause the user can not discern content of short message, benchmark splits thresholding T and is required to be even number.
The benchmark here splits thresholding and the international gateways address list can be disposed by operating personnel, also can when equipment dispatches from the factory, directly be provided with.
As shown in Figure 2, step S102 and step S103 specifically comprise:
Signaling front end processor in step S201, the short message service center is received the route requests that the service processor in the short message service center sends after receiving short message;
Step S202, signaling front end processor send route requests to HLR (Home Location Register, attaching position register);
Step S203, signaling front end processor receive the route replies of HLR;
Step S204, judge whether carry the routing address that short message receives the user in the route replies of HLR, if execution in step S205 then, if do not carry, execution in step S206;
Step S205, receive user's the routing address and the international gateways address list of storage, judge whether the routing address that this short message receives the user is international gateways according to short message, if, execution in step S207, if not, execution in step S208;
Step S206, signaling front end processor return the route replies failed message to service processor;
After service processor receives the route replies failed message, resend route requests and perhaps directly send by common short message.
Step S207, signaling front end processor mark 1 in of the response message that returns to service processor, and return this response message;
Step S208, signaling front end processor mark 0 in of the response message that returns to service processor, and return this response message.
Generally carry the routing address that short message receives the user in the route replies of HLR; When not carrying short message reception user's routing address in the route replies of HLR; The processing mode of signaling front end processor is generally to service processor and returns the route replies failed message; After service processor receives the route replies failed message, resend route requests and perhaps directly send by common short message, the signaling front end processor also can send route requests to HLR according to being provided with directly again.
Read the new short message that splits the back generation for ease of the user, all have mark current sequence number and the sequence number explanation of the total number of short message newly in the every section short message that generates after splitting.
Further, among the step S104, the concrete computational methods that split the hop count N that thresholding T splits into content of short message according to the type of coding of short message and benchmark are:
When the type of coding of short message is 7-bit ASCII or IA5; And when being non-serial connection short message, split hop count
When the type of coding of short message is 7-bit ASCII or IA5; And during for the serial connection short message, split hop count
When the type of coding of short message is UNICODE; And when being non-serial connection short message, the fractionation thresholding that splits this type of coding of hop count
is T.
When the type of coding of short message is UNICODE; And during for the serial connection short message, the fractionation thresholding that splits this type of coding of hop count
is T.
When the type of coding of short message is 8 bit-binary data; And when being non-serial connection short message; The fractionation thresholding that splits this type of coding of hop count
is T; Wherein, Reference number in the serial connection head of the new short message that is generated after the fractionation need be unified, and can merge all fractionation message of same reference number to guarantee mobile phone terminal.
When the type of coding of short message is 8 bit-binary data; And during for the serial connection short message; The fractionation thresholding that splits this type of coding of hop count
is T; Wherein, Reference number in the serial connection head of the new short message that is generated after the fractionation need be unified; Can unify to use the reference number in the serial connection head of former serial connection short message, can merge all fractionation message of same reference number to guarantee mobile phone terminal.
Its bracket
is for to round up to the content in the bracket, and bracket
is for to round downwards the content in the bracket.
When split short message is serial connection during short message, this serial connection short message and be connected in series with this short message have the short message of serial connection relation to split after total number N of new short message of generation
Always==(is connected in series bar number+1 that short message has the short message of serial connection relation with this) * N.
For example, as benchmark fractionation thresholding T=70, when the short message type of coding is 7-bit ASCII; The fractionation thresholding of this type of coding is T*80/70=80, if content of short message is 90 characters, the shared byte number of sequence number description is 5; And this short message is not the serial connection short message, then
Having the short message of serial connection relation to have 1 if this short message is connected in series short message for the serial connection short message and with this, is 160 because every section maximum of the type is held number of characters, and former serial connection short message head byte number is 6, then the fractionation hop count of every serial connection content of short message
Total hop count N that this serial connection short message and the short message that has serial connection to concern with it split
Always=(1+1) * 2=6.
If the content deficiency of the final stage of former serial connection short message is split as the N bar, (N>N2), the content of all the other N-N2 bars can be sky so, also can add other guides such as advertisement can only to be split as the N2 bar.
Further; For preventing that the short message that need not split; Can before fractionation, carry out the judgement of content of short message length; If each content of short message maximum of this type of coding is held the fractionation thresholding that the every character of this type of coding of number of characters * takies byte number>this type of coding, again short message is split.
Read the new short message that splits the back generation for ease of the user, in the new short message that generates after splitting, each all has mark current sequence number and the sequence number explanation of the total number of short message newly.
When short message is non-serial connection short message, put in order according to content and to sort splitting N the new short message that the back generates, wherein the sequence number of M new short message is illustrated as M/N, M<N.New short message after for example short message having been split into the N=3 section and generated 3 fractionations respectively; New short message after 3 fractionations that will generate so puts in order according to content of short message and sorts; Sequence number in the 1st new short message is illustrated as 1/3; Sequence number in the 2nd new short message is illustrated as 2/3, the 3 sequence number in the new short message and is illustrated as 3/3.
When short message is when being connected in series short message, put in order according to content the individual short message newly of the N that splits the back generation is sorted, wherein the sequence number of the individual new short message of M is illustrated as ((m-1) * N+M)/N
Always, M<N, m puts in order N for this serial connection short message has at all in the short message of serial connection relation
Always=(with being connected in series short message bar number+1 of the short message of serial connection relation being arranged) * N.
For example, short message A is the serial connection short message, and with short message A the short message bar number of serial connection relation to be arranged be 5, adds short message A self, and these a series of serial connection short messages have 6, if every content that is connected in series short message is split as 3 sections, and N then
Always=(5+1) * 3=18; According to content put in order to short message A and with short message A have be connected in series the relation short message sort; Short message A is m; If m=4, short message A splits 3 new short messages that generate and puts in order according to content of short message and sort so, and the sequence number in the 1st new short message is illustrated as ((4-1) * 3+1)/18=10/18; Sequence number in the 2nd new short message is illustrated as ((4-1) * 3+2)/18=11/18, and the sequence number in the 3rd new short message is illustrated as ((4-1) * 3+3)/18=12/18.
Further, as shown in Figure 3, step S105 specifically comprises:
Step S301, service processor send and split N the new short message that the back generates;
The i of the individual short message newly of N that step S302, service processor transmission fractionation back generate is individual, i≤N, and when initial, i=1;
Step S303, judge whether the new short message of i of current transmission sends success, if successful execution step S304, if successful execution step S305 not;
Step S304, judge whether i equates with N, if equate that if execution in step S306 unequal, makes i=i+1, and execution in step S302;
Step S305, an i new short message send failure, judge whether the transmission of i new short message reaches the number of retries that is provided with in advance, if reach number of retries; Execution in step S307; If do not reach number of retries, then number of retries is added 1, and execution in step S302;
Step S306, short message send successfully.
Step S307, short message send failure.
The short message service center that the embodiment of the invention also provides a kind of short message that sends to the international roaming user to handle, as shown in Figure 4, comprise service processor 401 and signaling front end processor 402, wherein:
Service processor 401; Be used for after receiving short message, sending route requests; And receive the judged result return; When short message reception user is the international roaming user, according to the type of coding of short message and the benchmark fractionation thresholding T of storage content of short message is split into the N section, N section content of short message is included in respectively in N the new short message sends to the reception user;
Signaling front end processor 402 is used for after the route requests that receives service processor 401, obtains short message and receives user's routing address and judge that this short message receives whether the user is the international roaming user, and return judged result and give service processor 401.
Further, as shown in Figure 5, signaling front end processor 402 specifically comprises routing unit 501, memory cell 502 and matching unit 503, wherein:
Routing unit 501; After being used to receive the route requests of service processor 401 transmissions; Initiate the SMSReq route requests to HLR; And receive the SMSReq response message that HLR returns, and obtain the short message reception user's who carries in the route replies of HLR routing address and send to matching unit 503;
Memory cell 502 is used to store the international gateways address list, can in storage, set up hash index, so that search and mate;
Matching unit 503; The short message that receives routing unit 501 transmissions receives user's routing address; Whether the routing address of judging short message reception user according to the international gateways address list of storage in the memory cell 502 is the international gateways address, and judged result is sent to service processor 401.
Further, the international gateways address list of storage is made amendment according to actual conditions for ease of operating personnel, also comprise in the signaling front end processor: the foreground dispensing unit is used to receive the international gateways address list of operating personnel's configuration, and is transmitted to memory cell 502.
Further, as shown in Figure 6, service processor 401 specifically comprises receiving element 601, route requests unit 602, buffer unit 603, split cells 604 and transmitting element 605:
Receiving element 601 is used to receive short message to be sent, and is transmitted to route requests unit 602 and buffer unit 603, receives the judged result that signaling front end processor 402 returns, and is transmitted to buffer unit 603;
Route requests unit 602 is used for behind the short message that receives receiving element 601 forwardings, sending route requests and gives signaling front end processor 402;
Buffer unit 603; Be used for buffer memory after receiving the short message that receiving element 601 transmits, receive the judged result that receiving element 601 returns after, transmit corresponding short message and delete this short message according to judged result; When judged result is that short message is when receiving the user for the international roaming user; Short message is transmitted to split cells 604,, short message is transmitted to transmitting element 605 when judged result is a short message when receiving the user and not being the international roaming user;
Split cells 604; Be used for the reception user who receives buffer unit 603 forwardings for behind international roaming user's the short message; According to the type of coding of short message and the benchmark fractionation thresholding T of storage content of short message is split into the N section, be included in N the new short message respectively N section content of short message and transmission;
Transmitting element 605 is used for after the reception user who receives buffer unit 603 forwardings is not international roaming user's short message, carrying out the transmission of common short message; Behind the new short message that generates after the fractionation that receives split cells 604 transmissions, each the new short message that splits the back generation is sent one by one, when a new short message transmission is failed; Can resend according to the number of retries that is provided with; If still send failure behind the retry, then can be regarded as sending failure, this fractionations back of not redispatching generate N is back several in the short message newly; Also can skip this for sending new short message successfully, directly send a new short message of back.
Further, make amendment according to the benchmark fractionation thresholding T of actual conditions to storage for ease of operating personnel, service processor 401 also comprises:
The data configuration unit is used to receive the benchmark fractionation thresholding T of operating personnel's configuration and be transmitted to split cells 604.
Further, when split cells splits thresholding T content of short message is split into the N section according to the benchmark of the type of coding of short message and storage, utilize following rule to calculate and split hop count N:
When the type of coding of short message is 7-bit ASCII or IA5; And when being non-serial connection short message, split hop count
When the type of coding of short message is 7-bit ASCII or IA5; And during for the serial connection short message, split hop count
When the type of coding of short message is UNICODE, and when being non-serial connection short message, split hop count N=message content byte number/(the shared byte number of T-sequence number description);
When the type of coding of short message is UNICODE, and during for the serial connection short message, split hop count N=(every section maximum of binary type is held byte number-former serial connection short message head byte number)/(the shared byte number of T-sequence number description);
When the type of coding of short message is 8 bit-binary data, and when being non-serial connection short message, split hop count N=message content byte number/(T-is connected in series a shared byte number);
When the type of coding of short message is 8 bit-binary data, and during for the serial connection short message, split hop count N=(every section maximum of binary type is held byte number-former serial connection short message head byte number)/(T-is connected in series a shared byte number).
The embodiment of the invention provides a kind of international roaming user's SMS processing and short message service center; The filtering short short message that at first will issue the international roaming user comes out; Type of coding according to content of short message adopts different processing methods again, carries out the fractionation of short message, and the complicated short messages of form such as serial connection short message are also handled targetedly; Improve the user and when international roaming, received the success rate of short message, and improved impression and experience that the user reads greatly.
Obviously, those skilled in the art can carry out various changes and modification to the embodiment of the invention and not break away from the spirit and scope of the present invention.Like this, belong within the scope of claim of the present invention and equivalent technologies thereof if of the present invention these are revised with modification, then the present invention also is intended to comprise these changes and modification interior.