Whatever message this page gives is out now! Go check it out!
| Field | Contents |
command | If present, the value must be submit. If you omit this field, the event gateway sends a submit message. |
shortMessageormessagePayload | The message contents. You must specify one of these fields, but not both. The SMPP specification imposes a maximum size of 254 bytes on the shortMessage field, and some carriers might limit its size further. The messagePayload field can contain up to 64K bytes; it must start with 0x0424, followed by two bytes specifying the payload length, followed by the message contents. |
destAddress | Required. The address to which to send the message. |
sourceAddress | The address of this application. You can omit this field; the configuration file specifies the application address. |
destAddress_npi | destAddress_ton | serviceType |
alertOnMsgDelivery | EsmClass | priorityFlag | smDefaultMsgId |
callbackNum | ItsReplyType | PrivacyIndicator | SmsSignal |
callbackNumAtag | ItsSessionInfo | protocolId | SourceAddrSubunit |
callbackNumPresInd | LanguageIndicator | registeredDelivery | SourcePort |
dataCoding | MoreMsgsToSend | replaceIfPresent | SourceSubaddress |
DestAddrSubunit | MsMsgWaitFacilities | SarMsgRefNum | UserMessageReference |
DestinationPort | MsValidity | SarSegmentSeqnum | UserResponseCode |
DestSubaddress | NumberOfMessages | SarTotalSegments | UssdServiceOp |
DisplayTime | PayloadType | scheduleDeliveryTime | validityPeriod |
<cffunction name="onIncomingMessage" output="no">
<cfargument name="CFEvent" type="struct" required="yes">
<!--- Create a return structure that contains the message. --->
<cfset retValue = structNew()>
<cfset retValue.command = "submit">
<cfset retValue.destAddress = arguments.CFEvent.originatorid>
<cfset retValue.shortMessage = "Echo: " & CFEvent.Data.MESSAGE>
<!--- Send the message back. --->
<cfreturn retValue>