Whatever message this page gives is out now! Go check it out!
| Field | Contents |
command | Must be data. |
messagePayload | The message data. To convert data to binary format, use the ColdFusion ToBinary function. |
destAddress | 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 | DestTelematicsId | NetworkErrorCode | SetDpf |
callbackNum | DisplayTime | NumberOfMessages | SmsSignal |
callbackNumAtag | EsmClass | PayloadType | SourceAddrSubunit |
callbackNumPresInd | ItsReplyType | PrivacyIndicator | SourceBearerType |
dataCoding | ItsSessionInfo | QosTimeToLive | SourceNetworkType |
DestAddrSubunit | LanguageIndicator | ReceiptedMessgeId | SourcePort |
DestBearerType | MessageState | registeredDelivery | SourceSubaddress |
DestNetworkType | MoreMsgsToSend | SarMsgRefNum | SourceTelematicsId |
DestinationPort | MsMsgWaitFacilities | SarSegmentSeqnum | UserMessageReference |
DestSubaddress | MsValidity | SarTotalSegments | UserResponseCode |
<cffunction name="onIncomingMessage" output="no">
<cfargument name="CFEvent" type="struct" required="yes">
<!--- Get the message --->
<cfset data=CFEvent.DATA>
<cfset message="#data.message#">
<!--- Create the return structure --->
<cfset retValue = structNew()>
<cfset retValue.command = "data">
<!--- Sending to incoming message originator; get value from CFEvent. --->
<cfset retValue.destAddress = arguments.CFEvent.originatorid>
<cfset retValue.messagePayload = tobinary(tobase64("echo: " & message))>
<cfreturn retValue>
</cffunction>