ServiceType Property
Indicates the type of service for the current message.
Syntax
smpp.getServiceType([callback]) smpp.setServiceType( serviceType, [callback])
Possible Values
0 (smppServiceDefault), 1 (smppServiceCMT), 2 (smppServiceCPT), 3 (smppServiceVMN), 4 (smppServiceVMA), 5 (smppServiceWAP), 6 (smppServiceUSSD), 7 (smppServiceCBS)
Default Value
0
Callback
The 'callback' parameter specifies a function which will be called when the operation completes (or an error is encountered). If the 'callback' parameter is not specified, then the method will block and will not return until the operation completes (or an error is encountered).
The callback for the getServiceType([callback]) method is defined as:
function(err, data){ }
'err' is the error that occurred. If there was no error, then 'err' is 'null'.
'data' is the value returned by the method.
The callback for the setServiceType([callback]) method is defined as:
function(err){ }
'err' is the error that occurred. If there was no error, then 'err' is 'null'.
'err' has 2 properties which hold detailed information:
err.code err.message
Remarks
When sending messages, this property is used define the SMS application service to be associated with the message. The MC will use the value to determine the availability of enhanced messaging services and to control the teleservice used on the air interface.
The values are defined in the SMPP 5.0 specification as the following:
"" (NULL) | the MC default |
CMT | Cellular Messaging |
CPT | Cellular Paging |
VMN | Voice Mail Notification |
VMA | Voice Mail Alerting |
WAP | Wireless Application Protocol |
USSD | Unstructured Supplementary Services Data |
CBS | Cell Broadcast Service |
Data Type
Integer