Search found 984 matches

by alt
Thu Jul 15, 2021 1:39 pm
Forum: Inetlab.SMPP v2.x (.NET Standard, .NET Core)
Topic: ESME_RSUBMITFAIL when trying to send SMS
Replies: 10
Views: 45952

Re: ESME_RSUBMITFAIL when trying to send SMS

The value of the user_message_reference parameter can take only 2 bytes. Please use ushort type:

Code: Select all

ushort value = 111;
byte[] data = new byte[2];
data[1] = (byte)(value & 255);
data[0] = (byte)((value >> 8) & 255);
by alt
Thu Jul 15, 2021 8:22 am
Forum: Inetlab.SMPP v2.x (.NET Standard, .NET Core)
Topic: ESME_RSUBMITFAIL when trying to send SMS
Replies: 10
Views: 45952

Re: ESME_RSUBMITFAIL when trying to send SMS

The smpp stream looks correct. I will try to examine this case today and understand why wireshark considers it as malformed packet.
by alt
Tue Jul 13, 2021 1:29 pm
Forum: Inetlab.SMPP v2.x (.NET Standard, .NET Core)
Topic: SmppClient.DisconnectAsync lasts long time
Replies: 6
Views: 31446

Re: SmppClient.DisconnectAsync lasts long time

vikarius wrote:
Tue Jul 13, 2021 1:16 pm
How can I switch on and use logging functionality?
https://docs.inetlab.com/smpp/v2.9/arti ... gging.html

Samples with some popular logging frameworks https://gitlab.com/inetlab/smpp-samples/
vikarius wrote:
Tue Jul 13, 2021 1:16 pm
We use 2.9.9 version.
Please update to latest version 2.9.12
by alt
Tue Jul 13, 2021 10:53 am
Forum: Inetlab.SMPP v2.x (.NET Standard, .NET Core)
Topic: SmppClient.DisconnectAsync lasts long time
Replies: 6
Views: 31446

Re: SmppClient.DisconnectAsync lasts long time

some possible reasons of such behavior:
- smpp client waits until all received PDUs are processed.
- evDisconnected event handler method in the application does some processing
by alt
Tue Jul 13, 2021 10:32 am
Forum: Inetlab.SMPP v2.x (.NET Standard, .NET Core)
Topic: SmppClient.DisconnectAsync lasts long time
Replies: 6
Views: 31446

Re: SmppClient.DisconnectAsync lasts long time

Hi vikarius,

Which library version are you using now?
Is library logging enabled in your application?
by alt
Mon Jul 12, 2021 3:02 pm
Forum: Inetlab.SMPP v2.x (.NET Standard, .NET Core)
Topic: ESME_RSUBMITFAIL when trying to send SMS
Replies: 10
Views: 45952

Re: ESME_RSUBMITFAIL when trying to send SMS

I think the new SMSC doesn't support user_message_reference TLV parameter. Better to ask the SMSC directly.
by alt
Mon Jul 12, 2021 10:25 am
Forum: Inetlab.SMPP v2.x (.NET Standard, .NET Core)
Topic: ESME_RSUBMITFAIL when trying to send SMS
Replies: 10
Views: 45952

Re: ESME_RSUBMITFAIL when trying to send SMS

Hi If you send test SMS to the server created with SmppServer class, you should subscribe on evClientSubmitSm event. The ESME_RSUBMITFAIL status is returned when the SmppServer instance is not subscribed on this event. If you send to the third-party SMPP server, you have to ask your provider for the...
by alt
Tue Jun 01, 2021 12:25 pm
Forum: Inetlab.SMPP v2.x (.NET Standard, .NET Core)
Topic: Best practice for a client that connects to multiple servers
Replies: 8
Views: 39257

Re: Best practice for a client that connects to multiple servers

When you start UpdateMessageStatus task, the DeliverSmResp will be sent at the same time without waiting for task completion. If you want to send response after task completion you need to send it manually as it described in "Control SMPP responses" article. without blocking the main thread from con...
by alt
Tue Jun 01, 2021 10:17 am
Forum: Inetlab.SMPP v2.x (.NET Standard, .NET Core)
Topic: Best practice for a client that connects to multiple servers
Replies: 8
Views: 39257

Re: Best practice for a client that connects to multiple servers

The same way you can implement evDeliverSm event handler method.
by alt
Tue Jun 01, 2021 8:57 am
Forum: Inetlab.SMPP v2.x (.NET Standard, .NET Core)
Topic: SmppClient thread safe
Replies: 2
Views: 18723

Re: SmppClient thread safe

Yes, SmppClient is thread-safe.
by alt
Wed May 26, 2021 7:21 pm
Forum: Inetlab.SMPP v2.x (.NET Standard, .NET Core)
Topic: Best practice for a client that connects to multiple servers
Replies: 8
Views: 39257

Re: Best practice for a client that connects to multiple servers

Hi bencover, SmppClient represents a connection to the SMPP server. You need to create at least one SmppClient instance for each provider. In general you should keep the connection with SMPP server alive. The connection recovery feature helps you here. The extension method RetryUntilConnectedAsync h...
by alt
Tue May 25, 2021 4:18 pm
Forum: Inetlab.SMPP v2.x (.NET Standard, .NET Core)
Topic: SourceAddress encoding issue
Replies: 4
Views: 24714

Re: SourceAddress encoding issue

Hello

you need to set correct encoding for the property _client.EncodingMapper.AddressEncoding
by alt
Mon May 17, 2021 7:15 pm
Forum: Inetlab.SMPP v2.x (.NET Standard, .NET Core)
Topic: TPS
Replies: 3
Views: 22643

Re: TPS

The issue is fixed in the version 2.9.9. The send buffer was only 4096 bytes. Now it uses standard value for .NET Socket class.
by alt
Tue May 04, 2021 9:33 pm
Forum: Inetlab.SMPP v2.x (.NET Standard, .NET Core)
Topic: TPS
Replies: 3
Views: 22643

Re: TPS

Hi ammar,

You can read about performance in documentation. Try to run local test on the server.

You can also run SmppClientDemo and SmppServerDemo applications on different machines and test the performance with batch sending in SmppClientDemo.