Whatever message this page gives is out now! Go check it out!
Field | Value |
CfcMethod | Listener CFC method name |
Data.dataCoding | Character set or the noncharacter data type of the message contents |
Data.destAddress | Address to which the message was sent |
Data.esmClass | Message type |
Data.MESSAGE | Message contents |
Data.messageLength | Length of the MESSAGE field |
Data.priority | Message priority level, in the range 0-3 |
Data.protocol | GSM protocol; not used for other networks |
Data.registeredDelivery | Requested type of delivery receipt or acknowledgment, if any |
Data.sourceAddress | Address of the device that sent this message |
GatewayType | Always SMS |
OriginatorID | Address of the device that sent the message |
<cffunction name="onIncomingMessage" output="no"> <cfargument name="CFEvent" type="struct" required="yes"> <!--- Get the message ---> <cfset data=cfevent.DATA> <cfset message="#data.message#"> <!--- where did it come from? ---> <cfset orig="#CFEvent.originatorID#"> <cfset retValue = structNew()> <cfset retValue.command = "submit"> <cfset retValue.sourceAddress = arguments.CFEVENT.gatewayid> <cfset retValue.destAddress = arguments.CFEVENT.originatorid> <cfset retValue.shortMessage = "echo: " & message> <!--- send the return message back ---> <cfreturn retValue> </cffunction> </cfcomponent> |