Skip to main content
February 10, 2009
Question

cfevent structure

  • February 10, 2009
  • 2 replies
  • 1980 views
I have an SMS gateway setup and bound to the SMSC using SMPP. When an SMS comes in from the SMSC (mobile originating) the SMSC has some data in the deliver_sm that coldfusion isn't giving to me in the CFEvent structure.

The data that i'm looking for is a unique identifier attached to each message that comes in. I use these to compare reports from the SMSC to reports generated by my code. It's vital that I am able to relate the messages on both reports.

Is there any way to get CF to put that into the cfevent structure so my CFC can access it?

If not, does anyone have a suggestion as to how I should proceed to get something that makes that data available?



This topic has been closed for replies.

2 replies

February 16, 2009
Yeah, i have an internal debugging process that i use to write data to a log file at certain parts of the processing. I stuck some of this code at the top of my CFC so it would dump the cfevent struct into my log file for me. The optional parameters struct has 1 key that is a number that is always the same with a value that is binary which appears to be the message sent but in Binary (which is how this particular SMSC does it).

The SMSC claims the identifier should be in the optional parameters struct but it is not.
BKBK
Community Expert
Community Expert
February 15, 2009
I expect Coldfusion to include such data. How do you know it doesn't? Have you done a dump of the incoming data? Use something like this to dump the data:

<cffunction name="onIncomingMessage" output="no">
<cfargument name="CFEvent" type="struct" required="yes">
<cfreturn arguments.CFEVENT>
</cffunction>