3

I am using SMSLib 3.5.2 library to send/receive sms. I do not receive message when I try to do so by implementing call back methods. Moreover, even the function of incoming call notification is never being called. Any help would be highly appreciated.....

gateway = new SerialModemGateway(MODEM_IDENTIFIER, SERIAL_PORT, BAUD_RATE, MODEM_MANUFACTURER,"");

gateway.setInbound(true);

gateway.setOutbound(true);

ICallNotificationI ic = new ICallNotificationI();
Service.getInstance().setCallNotification(ic);

Service.getInstance().addGateway(gateway);

Service.getInstance().startService();

and the class implementing interface ICallNotification never gets called:

public class ICallNotificationI implements ICallNotification {

@Override 
public void process(AGateway gateway, String callerId) {

    System.out.print("Hello Buddy in the call");
    MLog.log(Level.INFO, ".ICallNotification.Process", "We rececived call"
            + " from this number "+callerId);

}
erad
  • 1,766
  • 2
  • 17
  • 26
Zohaib
  • 7,026
  • 3
  • 26
  • 35

0 Answers0