Skip to main content
April 30, 2009
Question

SMS Gateway DATA command

  • April 30, 2009
  • 1 reply
  • 1927 views

I am trying to send a binary file (currently a small image) through our SMPP bind to a mobile phone through the CF SMS event gateway and I'm apparently missing something.

When i setup the structure and pass it off to the sendGatewayMessage function i get an error in my logs that says:

MSGateway (SMPPGateway) error while processing 'data' command:  java.lang.ClassCastException: org.smpp.pdu.GenericNack cannot be cast to  org.smpp.pdu.DataSMResp

The code I'm using is:

<cfscript>
    data = structNew();
        data.sourceAddress = [source];
        data.sourceton = 3;
        data.destAddress = [destination];

        data.messagePayload = binMsg;
        data.command = "data";
       
        z = sendGatewayMessage('SMPPGateway',data);
</cfscript>

the source and dest addresses are both valid and i can send regular SMS just fine.

I suspect I am missing an arg in the data structure but I can't seem to find anything in the docs about it so I'm not sure.  Any suggestions?

Thanks in advance.

This topic has been closed for replies.

1 reply

BKBK
Community Expert
Community Expert
June 1, 2009

Shouldn't that be data.command = "submit"; ?