Topic
  • No replies
PabloAc_ISAltda
PabloAc_ISAltda
1 Post

Pinned topic Problem sending SIA notification using the INS API

‏2006-12-18T19:21:39Z |
Hello,

I'm trying to send a SIA notification using the INS API. So far, I get the following messages when a query the status of the delivery after I send the notification:


CONTENTS..... MessageStatusDetail
Message ID = '0000001700000006' NotificationRequest ID = '00000000' Completed = true Completion Date = '2006-12-18 16:31:26.203' Elapsed time = oo:oo:oo.047 To Field = 'nicolas' StateSet: Birth date: 2006-12-18 16:31:26.156 Current State: State= 'COMPLETED:DELIVERY_FAILED' Time= 2006-12-18 16:31:26.203 ET= oo:oo:oo.000 corID= 'NOTIFICATION_REQUEST' State History: 0) State= 'NEW_INSTANCE:BIRTHDATE' Time= 2006-12-18 16:31:26.156 ET= oo:oo:oo.032 corID= 'NOTIFICATION_REQUEST' 1) State= 'EXECUTING:VERIFYING_PARAMETERS' Time= 2006-12-18 16:31:26.188 ET= oo:oo:oo.000 corID= 'NOTIFICATION_REQUEST' 2) State= 'COMPLETED_ERR:NO_DELIVERY_PERM_OFFLINE' Time= 2006-12-18 16:31:26.188 ET= oo:oo:oo.015 corID= 'CHANNEL_ADAPTER.0' 3) State= 'COMPLETED:DELIVERY_FAILED' Time= 2006-12-18 16:31:26.203 ET= oo:oo:oo.000 corID= 'NOTIFICATION_REQUEST' Total ET= oo:oo:oo.047 Channel Adapter Set: 0) 'SIA#SIA'
End Of MessageStatusDetail

And the notification never arrives at the phone.
On the other hand, if I use the preinstalled INS portlet to send a SIA notification, this message arrives ok at the target phone and the corresponding replication is initiated.

Currently, the portion of the source code that send the sia message is:

Notification notf = new Notification();

SiaDeliveryChannel dc = new SiaDeliveryChannel();
dc.setExtendedData(SiaDeliveryChannel.XDATA_SIA_CODE, "010000");
dc.setAddressType(SiaDeliveryChannel.ADDRESS_TYPE_PLMN);

notf.addDeliveryChannel(dc);
notf.setMsgPriority(Request.MSG_PRIORITY_URGENT);
notf.setMultiDevices(true);
notf.setTextMsgType();
notf.setToUserID(receiver);
notf.setFromUserID(sender);
notf.setSubjectText(subject);
notf.setMsgText(texto);

String msgID = nmClient.sendMessage(notf);

Any help will be appreciated.
Sincerely,
Pablo.