You are right.

Moved here: http://code.google.com/p/smslib/issues/detail?id=312

Thank you!

On Jan 12, 11:33 am, Azam Kargar <[email protected]> wrote:
> Hi,
> I am using SMSLibv3[1].4.4 to send and receive sms via GSM modem.
> when I send SMS to a specified group Synchrounously , it do
> successfully,
> But in Asynchrounus mode I  receive Error.
>
> I saw Service.java code and found the following code.
>         /**
>          * Queues a message for sending. The gateway selection logic is the
> same as
>          * for sendMessage(). The method does not block - returns
> immediately. If
>          * you wish to be alerted about the fate of the message, you may
> implement a
>          * IOutboundMessageNotification listener.
>          *
>          * @param msg
>          *            Message to be sent
>          * @return True if the message is accepted in the Queue.
>          * @see #queueMessageAt(OutboundMessage, Date)
>          * @see #sendMessage(OutboundMessage)
>          * @see IOutboundMessageNotification
>          */
>         public boolean queueMessage(OutboundMessage msg)
>         {
>                 if (getServiceStatus() != ServiceStatus.STARTED) return false;
>                 List<String> recipients = expandGroup(msg.getRecipient());
>                 if (recipients.size() == 0) return 
> getQueueManager().queueMessage
> (msg);
>                 for (String to : recipients)
>                 {
>                         OutboundMessage newMessage = new OutboundMessage();
>                         msg.copyTo(newMessage);
>                         newMessage.setRecipient(to);
>                         getQueueManager().queueMessage(msg);
>                 }
>                 return true;
>         }
>
> I think it should be used       getQueueManager().queueMessage
> (newMessage); , instead of  getQueueManager().queueMessage(msg);
>
> Best regards
-- 
You received this message because you are subscribed to the Google Groups 
"SMSLib for Java User 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