General purpose SMS related functions
Commands sent to the /pps/services/cellular/sms/control_private object are of the form:
msg::command_string\nid::msg_ID\ndat:json:{JSON_data}
Responses always reflect the command_string and msg_ID that were sent in the message, along with any errors:
res::command_string id::msg_ID dat:json:{JSON_data} error::error_description
Transmit an SMS message.
The send_message command has the following format:
msg::send_message id::msg_ID dat:json: { "recipientAddress":"recipient_address", "payload":"message_payload", "encoding":"gsm0338", "keepConnectionAlive":true|false, "typeOfNumber":reply_number_type, "numberingPlan":numbering_plan, "destinationPort":destination_port, "originatorPort":originator_port, "disableConcatenation":true|false }
The parameters are as follows:
Required. The character encoding that the message payload must be transcoded to before transmission. Currently, the only supported option is gsm0338 (GSM 7-bit character encoding, 7 bits per character).
The SMS service sends the send_message response in reply to a send_message command. The response has the following form:
res::send_message id::msg_ID dat:json: { "messageId":SMS_message_ID } success::true|false err::error_code errstr::error_details
The following parameters and attributes may be returned in the response:
The SMS service sends the receive_message notification to the client after receiving an SMS message. The receive_message notification has the following format:
msg::receive_message dat:json: { "messageId":SMS_msg_ID, "senderAddress":"sender_address", "payload":"msg_payload", "encoding":"encoding", "class":msg_class, "simIndices":[index1, index2, ...], "replacementType":msg_replacementType, "serviceCenterTimeStamp":"UTC_timestamp", "applicationPort":msg_receiving_port, "originatingApplicationPort":msg_originating_port, "typeOfNumber":reply_type, "numberingPlan":msg_numbering_plan, "path":msg_path, "totalSegments":msg_total_segments, "receivedSegments":msg_received_segments, }
The parameters are as follows:
Register the client as the only listener of the SMS filter.
A filter consists of either a port or a sender address, but never both. To ensure mutual exclusion between filters created by different listeners, each filter requires either a port or a sender address to be specified.
Current settings limit the total number of filters to 32, not including the default text port.
The register_message_filter_listener command has the following form:
msg::register_message_filter_listener id::msg_ID dat:json: { "senderAddress":"sender_address", "port":port_number }
The parameters are as follows:
The UICC service sends the register_message_filter_listener response to the client in reply to the register_message_filter_listener command. The response has the following form:
res::register_message_filter_listener id::msg_ID dat:json: { "messageFilterId":filter_id } success::true|false err::error_code_string errstr::error_details
The following parameters and attributes may be returned in the response: