Whatever message this page gives is out now! Go check it out!
| Field | Contents |
command | Must be submitMulti. |
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 | A ColdFusion array of destination addresses (required).You cannot specify individual TON and NPI values for these addresses; all must conform to a single setting. |
sourceAddress | The address of this application. You can omit this field; the configuration file specifies the application address. |
destAddress_npi | destAddress_ton | serviceType |
alertOnMsgDelivery | DisplayTime | protocolId | SmsSignal |
callbackNum | EsmClass | registeredDelivery | SourceAddrSubunit |
callbackNumAtag | LanguageIndicator | replaceIfPresent | SourcePort |
callbackNumPresInd | MsMsgWaitFacilities | SarMsgRefNum | SourceSubaddress |
dataCoding | MsValidity | SarSegmentSeqnum | UserMessageReference |
DestAddrSubunit | PayloadType | SarTotalSegments | validityPeriod |
DestinationPort | priorityFlag | scheduleDeliveryTime | |
DestSubaddress | PrivacyIndicator | smDefaultMsgId |
<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 = "submitmulti">
<cfset retValue.destAddresses=arraynew(1)>
<!--- One destination is incoming message originator;
get the address from CFEvent originator ID. --->
<cfset retValue.destAddresses[1] = arguments.CFEvent.originatorid>
<cfset retValue.destAddresses[2] = "12345">
<cfset retValue.shortMessage = "echo: " & message>
<cfreturn retValue>
</cffunction>