• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Defining SMS Gateways

Like our IM application, before you can actually use it or even begin testing it, you will need a configuration file, a stub CFC and to create a gateway instance. The SMS gateway is fairly straightforward in the fact that it only has one method that needs to be exposed, the onIncomingMessage() method that listens for inbound SMS messages.

Listing 32.6. sms_stub.cfc—Empty SMS Gateway CFC

<cfcomponent>
   <cffunction name="onIncomingMessage" hint="Standard message from SMS users">
      <cfargument name="CFEvent" type="struct" required="YES"> 
   </cffunction> 
</cfcomponent>


					  


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint