}
}
Logger.getInstance().logDebug("BUFFER: " + buffer, null, getGateway().getGatewayId());
if (getGateway().getATHandler().isUnsolicitedResponse(buffer.toString()))
{
AsyncEvents event = getGateway().getATHandler().processUnsolicitedEvents(buffer.toString());
if (event == eventResponse && eventResponse != AsyncEvents.NOTHING) { return buffer.toString(); }
if ((event == AsyncEvents.INBOUNDMESSAGE) || (event == AsyncEvents.INBOUNDSTATUSREPORTMESSAGE) || (event == AsyncEvents.INBOUNDCALL) || (event == AsyncEvents.USSDRESPONSE)) getAsyncNotifier().setEvent(event, buffer.toString());
return getResponse();
}
// Try to interpret error code