Skip to main content

Purpose

The MM7 MT Submit Request Hook enables custom applications to inspect and modify an ec_message before it is converted to an MM7 SubmitReq sent out by Mobile Momentum. This hook is invoked once for each outgoing ec_message sent to a MM7 domain. The main purpose of this hook is to allow a custom script to request a delivery report, a read reply report and/or reply charging. Also use this hook to set a vender-specific ServiceCode and SenderAddress on the fly. The following context variables carried in the ec_message are significant to this hook process. These context variables can be assigned or modified in this hook so that the corresponding elements in an eventual MM7 SubmitReq can be assigned or modified:

Context Key Name"#define" nameDescription / Information Element in MM7 SubmitReq
MM7_Reply_ChargingVCTX_KEY_MM7_REPLY_CHARGING
MM7_Reply_Charging_SizeVCTX_KEY_MM7_REPLY_CHARGING_SIZE"replyChargingSize" attribute value in
MM7_Reply_DeadlineVCTX_KEY_MM7_REPLY_DEADLINE"replyDeadline" attribute value in
MM7_Delivery_ReportVCTX_KEY_MM7_DELIVERY_REPORT
MM7_Read_ReplyVCTX_KEY_MM7_READ_REPLY
MM7_Service_CodeVCTX_KEY_MM7_SERVICE_CODE
MM7_Sender_AddressVCTX_KEY_MM7_SENDER_ADDRESS inside
MM7_Source_AddressVCTX_KEY_MM7_SOURCE_ADDRESSUsed for logging purpose only. Defines the value for the source_address in the log.If not set, use the value of "MM7_Sender_Address".
MM7_Message_ClassVCTX_KEY_MM7_MESSAGE_CLASS
MM7_Request_IE_ExtendedVCTX_KEY_MM7_REQUEST_IE_EXTENDEDXML tag and values for extra Information Elements
Was this page helpful?