Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

cfevent structure

Guest
Feb 10, 2009 Feb 10, 2009
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?



TOPICS
Event gateways
2.0K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 15, 2009 Feb 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>

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Feb 16, 2009 Feb 16, 2009
LATEST
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.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources