How to use Submit Multi method?

Smpp v3.4 client

Moderator: alt

araxno
Posts: 21
Joined: Thu Jul 30, 2009 12:35 pm

Post by araxno » Wed Oct 07, 2009 9:41 am

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
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Post by alt » Wed Oct 14, 2009 8:44 am

please try with version 2.7.1
projxchange
Posts: 2
Joined: Mon Jul 26, 2010 10:07 am

Submit with submit multi returns GENERIC_NACK

Post by projxchange » Mon Aug 02, 2010 11:49 am

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 >>>:

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
Please note the last 2 lines in particular.
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Post by alt » Mon Aug 02, 2010 11:59 am

Some SMSC does not support SubmitMulti. Please ask them if this message allowed to you.
projxchange
Posts: 2
Joined: Mon Jul 26, 2010 10:07 am

Post by projxchange » Mon Aug 02, 2010 12:19 pm

alt wrote:Some SMSC does not support SubmitMulti. Please ask them if this message allowed to you.
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.

Thanks for the prompt response.
Britney84
Posts: 2
Joined: Fri Jul 08, 2011 12:25 pm

Re: How to use Submit Multi method?

Post by Britney84 » Mon Jul 11, 2011 11:22 am

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
Locked