Page 1 of 1

Error Code 4097

Posted: Sun Jan 31, 2010 5:58 am
by roshan25
Sometimes when I try to connect to the SMSC, the application gets connected but disconnects itself with the 4097 command status (Unexpected Response). I'd like to know what are the main causes of gettin this command status in response because sometimes the connection is completely OK but sometimes the SMSC responds with 4097 command status (Unexpected Response).

What are the probable causes for this error and How can I avoid such situations?

Posted: Mon Feb 01, 2010 10:37 am
by alt
4097 (0x1001) code returns when SmppClient is not able to parse reposnse from SMSC. In this case please post here bad response and I'll try to find the reason. Event evReceiveData will help you to get SMPP response before parsing.