09.023GPPMobile Application Part (MAP) specificationTS
When initiating the dialogue with the servicing SGSN, the SMS Gateway MSC must provide the IMSI of the subscriber to whom the short message is directed.
The IMSI is included in the sm-RP-DA information field of the MAP_MT_FORWARD_SHORT_MESSAGE indication.
When receiving a MAP_OPEN indication primitive that is not associated with any MAP service indication primitive and if the dialogue is accepted, the MAP service-user in the servicing SGSN issues a MAP_DELIMITER request primitive in order to trigger the local MAP service-provider to confirm the dialogue.
When receiving the first MAP_MT_FORWARD_SHORT_MESSAGE indication from the gateway MSC, the servicing SGSN performs some subscriber data checks, if the MAP service primitive is accepted and if short message service is supported in the servicing SGSN.
The MAP_MT_FORWARD_SHORT_MESSAGE indication primitive is checked by the macro "Check_Indication". If the received MAP service primitive contains errors, the service is aborted and an unexpected data value error or data missing error is returned to the GMSC.
If the SGSN does not support the short message service, the service is aborted in the servicing SGSN and the error "Facility Not Supported" is returned to the GMSC.
If the connection is GPRS suspended, the SGSN sends to the GMSC an error specifying that the GPRS connection is suspended.
The subscriber identity information that are included in the MAP service indication primitive is checked by the macro "Check_Subscr_Identity_For_MT_SMS" as follows:
If the IMSI is included in the sm-RP-DA information field of the MAP_MT_FORWARD_SHORT_MESSAGE indication, the MAP_OPEN indication received from the gateway MSC shall not include a Destination Reference.
If no Destination Reference has been received and the sm-RP-DA information field does not cover an IMSI the service is aborted in the servicing SGSN and the error "Unexpected Data Value" is returned to the GMSC.
The following outcomes from the subscriber data checks can occur in SGSN:
– if the mobile subscriber is unknown, the unidentified subscriber error is forwarded to the GMSC;
– if the “Confirmed by HLR” indicator is set to “Not Confirmed”, the unidentified subscriber error is forwarded to the GMSC.
– if the GPRS Detached Flag is set to detached or the LA Not Allowed Flag is set to not allowed in the SGSN, an absent subscriber error with the diagnostic indication set to ‘GPRS Detached’ is forwarded to the GMSC and the MS not reachable for GPRS (MNRG) flag is set;
– If the location area identification is known and the "Confirmed by Radio Contact" indicator is set to "Confirmed", the paging procedure is invoked (see subclause 25.3).Otherwise the search procedure is invoked (see subclause 25.3).
The result of the paging or the search procedure is processed as follows:
– if the procedure is completed successfully, the SGSN may trigger the Authentication, Ciphering and IMEI check procedures (see subclauses 25.4 and 25.5). Then, if the procedure are completed successfully, the SGSN will send the short message to the MS;
– if the procedure is completed successfully, but the MS has no mobile terminated short message transfer capability, the SM delivery failure indication with cause "equipment not SM equipped" is provided to the GMSC;
– if the procedure is ended unsuccessfully because of subscriber already busy for SMS, another paging, emergency call, location updating, inter SGSN routing area update or a call set-up, the subscriber busy for MT SMS is provided to the GMSC.
– if the procedure is ended unsuccessfully, the absent subscriber_SM error is forwarded to the GMSC with the absent subscriber diagnostic indication set to ‘No Paging Response for GPRS’, but if the location area is unknown, the system failure indication is provided to the GMSC.
If forwarding of the short message is initiated, the SGSN awaits the result before one of the following responses is sent back to the GMSC:
– an acknowledge if the short message has been successfully delivered to the mobile subscriber;
– an SM delivery failure error containing a parameter indicating either of the following: there is a MS protocol error or the MS memory capacity is exceeded; detailed diagnostic information (see subclause 18.104.22.168) may also be carried;
– a system failure error if the delivery procedure is aborted.
If the More Messages To Send flag was FALSE or the service MAP_MT_FORWARD_SHORT_MESSAGE ends unsuccessfully, the transaction to the gateway MSC is terminated. Otherwise, the servicing SGSN waits for the next short message from the Service Centre.
When receiving the next MAP_MT_FORWARD_SHORT_MESSAGE indication from the gateway MSC the servicing MSC will act as follows:
– if the received primitive contains errors, the unexpected data value error or data missing error is provided to the gateway MSC;
– if the More Messages To Send flag is FALSE, the servicing SGSN will start the short message transfer procedure to the mobile subscriber. The successful or unsuccessful outcome of this procedure is reported to the gateway MSC and the transaction is terminated.
– if the More Messages To Send flag is TRUE, the servicing SGSN will start the short message transfer to the mobile subscriber. If the outcome of this procedure is unsuccessful, the reason is reported to the gateway MSC and the procedure is terminated. If the procedure is successful, it is acknowledged to the gateway MSC and more short messages can be received.
The mobile terminated short message transfer procedure in the servicing SGSN is shown in figures 23.3/9 and 23.3/10. The page and search procedures are shown in figure 25.3/1 and 25.3/2.
Figure 23.3/9 (sheet 1 of 3): Procedure MT_SM_Transfer_SGSN
Figure 23.3/9 (sheet 2 of 3): Procedure MT_SM_Transfer_SGSN
Figure 23.3/9 (sheet 3 of 3): Procedure MT_SM_Transfer_SGSN
Figure 23.3/10 (sheet 1 of 3): Macro MT_SM_SGSN
Figure 23.3/10 (sheet 2 of 3): Macro MT_SM_SGSN
Figure 23.3/10 (sheet 3 of 3): Macro MT_SM_SGSN