Hi all,
I have set up a class that implements IUSSDNotification:

public class ModemStatusUpdater
        extends Thread
        implements IUSSDNotification
  {

   @Override
   public void process(AGateway gateway, GatewayStatuses oldStatus,
           GatewayStatuses newStatus)
   {
      System.out.println("ModemStatusUpdater.process(AGateway,
GatewayStatus):"
              + gateway.getGatewayId() + " " + oldStatus + "->" +
newStatus);
   }

   @Override
   public void run()
   {
      keepRunning = true;
      Service.getInstance().setUSSDNotification(this);

      while (keepRunning)
      {
// do stuff
      }
   }

  @Override
   public void process(AGateway gateway, USSDResponse ussdResponse)
   {
 
System.out.println("ModemStatusUpdater.processs(AGateway,USSDResponse):"
              + gateway.getGatewayId() + " " +
ussdResponse.getContent());
   }


Here's how I send the request for minutes left on an AT&T network:

   public void askForMinutesLeft()
   {
        cmd = "*777#";
       // cmd = "AADBED3602"; // also tried 7 bit hex

         boolean val = Service.getInstance().sendUSSDRequest(
                 new USSDRequest(cmd),
theSerialModemGateway.getGatewayId());
   }

>From the log, it looks like SMSLib is formatting it and sending
correctly:
9703   2012-02-07 18:08:36,844 [main] DEBUG
org.smslib.modem.AModemDriver  - GTW: Ruby.COM: SEND :AT
+CUSD=1,"*777#",15(cr)

But the callback is never called.  What am I doing wrong?

thanks in advance,
Jordan

-- 
You received this message because you are subscribed to the Google Groups 
"SMSLib Discussion Group" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/smslib?hl=en.

Reply via email to