Here is Sending and Receiving Data
16:24:50: ALT.SMS.SubmitMultiResp
16:24:50: ESME_RINVNUMDESTS
16:24:50: Sending Data: 00000063000000210000000025f067ed00050056636c7562000000000201013737303236323036303138000101373730323632303630313300000000000000000800200064006100740020007400690072006900200064006100740020006400610074
16:24:50: Received Data: 00000012800000210000003325f067ed0000
How to use Submit Multi method?
Moderator: alt
-
- Posts: 2
- Joined: Mon Jul 26, 2010 10:07 am
Submit with submit multi returns GENERIC_NACK
I tried using Submit with SubmitMulti, but the only response is GENERIC_NACK. My code is in Boo (http://boo.codehaus.org), a Python-like .NET language. I'm using the interpreter, and also copied the output (output lines DO NOT begin with >>>:
Please note the last 2 lines in particular.
Code: Select all
>>>import ALT.SMS
>>>c = SmppClient()
ALT.SMS.SmppClient
>>>import System.Net
>>>c.EnquireInterval = 60;
60
>>>c.Connect(IPEndPoint(IPAddress.Parse('192.168.0.173'), 11000))
true
>>>c.Bind('dip', 'dip')
BindTransceiverResp, Length: 28, Status: ESME_ROK, Sequence:209595723
>>>sm = SubmitMulti()
SubmitMulti, Length: 16, Status: ESME_ROK, Sequence:209595724
>>>d1 = DestinationAddress()
ALT.SMS.DestinationAddress
>>>d1.Address = '234xxxxxxxxxx'
'234xxxxxxxxxx'
>>>d1.DestType = DestinationAddressType.SMEAddress
SMEAddress
>>>d2 = DestinationAddress()
ALT.SMS.DestinationAddress
>>>d2.DestType = DestinationAddressType.SMEAddress
SMEAddress
>>>d2.Address = '234yyyyyyyyyy'
'234yyyyyyyyyy'
>>>sm.DestinationAddresses.Add(d1)
>>>sm.DestinationAddresses.Add(d2)
>>>sm.DataCoding = DataCodings.Default
Default
>>>sm.SrcAddr = 'Tester'
'Tester'
>>>sm.ShortMessage = 'Testing, testing, 1, 2, 3...'
'Testing, testing, 1, 2, 3...'
>>>sm.SMSCReceipt = SMSCDeliveryReceipt.SuccessFailure
SuccessFailure
>>>c.Submit(sm)
SubmitMultiResp, Length: 16, Status: SMPPCLIENT_NOCONN, Sequence:0
>>>c.Connect()
-------------^
ERROR: No appropriate version of 'ALT.SMS.SmppClient.Connect' for the argument l
ist '()' was found.
>>>c.Connect(IPEndPoint(IPAddress.Parse('192.168.0.173'), 11000))
true
>>>c.Submit(sm)
SubmitMultiResp, Length: 16, Status: SMPPCLIENT_UNBOUND, Sequence:0
>>>c.Bind('dip', 'dip')
BindTransceiverResp, Length: 28, Status: ESME_ROK, Sequence:209595725
>>>c.Submit(sm)
SubmitMultiResp, Length: 16, Status: SMPPCLIENT_GENERIC_NACK, Sequence:209595724
-
- Posts: 2
- Joined: Mon Jul 26, 2010 10:07 am
I found out that to be the case in my situation. Thanks for the heads up. I also noticed that the client automatically generates a value for the Sequence property. That's proactive.alt wrote:Some SMSC does not support SubmitMulti. Please ask them if this message allowed to you.
Thanks for the prompt response.
Re: How to use Submit Multi method?
Hi everyone,
I need your help ... I'm developing with this library, but I try to make multi submit of sms and the object SubmitMultiResp answer me the following:
Status -> ESME_RINVCMDID;
Command -> SubmitMultiResp;
Length -> 18;
MessageId ->;
Sequence -> 920196187;
I know that status means that the PDU is not known or is incorrect by the MC, but I do not know how to fix it.
This segment of code I use:
...
try
{
SubmitMulti objSubmitMulti = new SubmitMulti();
SubmitMultiResp objSubmitResp = new SubmitMultiResp();
DestinationAddress objDestination = new DestinationAddress();
objDestination.Address = this.DestinationAddress;
objDestination.DestType = DestinationAddressType.SMEAddress;
objDestination.Npi = this.DestinationNPIAddress;
objDestination.Ton = this.DestinationTONAddress;
objSubmitMulti.DestinationAddresses.Add(objDestination);
objSubmitMulti.DestinationAddresses.Add(objDestination);
objSubmitMulti.DataCoding = DataCodings.UCS2;
objSubmitMulti.ShortMessage = this.TextMessaje;
objSubmitMulti.SrcAddr = this.SourceAddress;
objSubmitMulti.SMSCReceipt = SMSCDeliveryReceipt.SuccessFailure;
objSubmitResp = _SmppClient.Submit(objSubmitMulti);
}
...
Thanks, and I appreciate your help
Unlocked Samsung Phones
I need your help ... I'm developing with this library, but I try to make multi submit of sms and the object SubmitMultiResp answer me the following:
Status -> ESME_RINVCMDID;
Command -> SubmitMultiResp;
Length -> 18;
MessageId ->;
Sequence -> 920196187;
I know that status means that the PDU is not known or is incorrect by the MC, but I do not know how to fix it.
This segment of code I use:
...
try
{
SubmitMulti objSubmitMulti = new SubmitMulti();
SubmitMultiResp objSubmitResp = new SubmitMultiResp();
DestinationAddress objDestination = new DestinationAddress();
objDestination.Address = this.DestinationAddress;
objDestination.DestType = DestinationAddressType.SMEAddress;
objDestination.Npi = this.DestinationNPIAddress;
objDestination.Ton = this.DestinationTONAddress;
objSubmitMulti.DestinationAddresses.Add(objDestination);
objSubmitMulti.DestinationAddresses.Add(objDestination);
objSubmitMulti.DataCoding = DataCodings.UCS2;
objSubmitMulti.ShortMessage = this.TextMessaje;
objSubmitMulti.SrcAddr = this.SourceAddress;
objSubmitMulti.SMSCReceipt = SMSCDeliveryReceipt.SuccessFailure;
objSubmitResp = _SmppClient.Submit(objSubmitMulti);
}
...
Thanks, and I appreciate your help
Unlocked Samsung Phones