java - CloudHopper Server sending MO to connected client -
java - CloudHopper Server sending MO to connected client -
i have project using ardanstudios smppclient connect smppserver. can send messages smpp server , delivered handset. when hand set replies or sends shortcode received message event message text blank.
we using cloudhopper internally simulate smpp server, want confirm there isn't problem on our end when receiving messages can not figure out way simulate mo (mobile originated) message sent cloudhopper server our connected ardanclient. ideas ?
you have 2 questions in 1 pal. suggest break up. first 1 have override firepdurequestreceived methos of class defaultsmppsessionhandler:
@override public pduresponse firepdurequestreceived(pdurequest pdurequest) { pduresponse response = pdurequest.createresponse(); if (pdurequest.getcommandid() == smppconstants.cmd_id_deliver_sm) { processmo(pdurequest); } homecoming response; } private void processsmo(pdurequest request){ deliversm mo = (deliversm) request; int length = mo.getshortmessagelength(); address sourceaddr = mo.getsourceaddress(); address destaddr = mo.getdestaddress(); byte[] shortmessage = mo.getshortmessage(); string sms= new string(shortmessage); //do something.... }
java smpp
Comments
Post a Comment