problem sending sms

Smpp v3.4 client

Moderator: alt

Locked
mysterious_mz
Posts: 10
Joined: Sat Dec 13, 2008 8:57 am

problem sending sms

Post by mysterious_mz » Sat Dec 13, 2008 9:20 am

hello,

i'm using your .dll. It works fine when i use a smpp server simulator. i got a problem when i try to send to my SMS gateway. When i tried with your previous .dll (2.5.0) after sending sms i got RCV_TIMEOUT. Now with the last .dll (2.5.5) after sending sms i don't receive any confirmation as DeliverSm and when the application (ESME) is idle it disconnects.
Please help me how to send sms using your .dll to my SMS gateway.

i appreciate any reply.

Regards

:wink:
alt
Site Admin
Posts: 988
Joined: Tue Apr 25, 2006 9:45 am

Post by alt » Sun Dec 14, 2008 9:02 am

Hello,

Can you send me you code via Private Messages?
pranjali
Posts: 2
Joined: Mon Dec 15, 2008 10:32 am

Hi

Post by pranjali » Mon Dec 15, 2008 10:39 am

I am also having the same problem, can you plz help me as to how you solved your own problem?
mysterious_mz
Posts: 10
Joined: Sat Dec 13, 2008 8:57 am

Post by mysterious_mz » Fri Dec 19, 2008 12:30 pm

Hello alt.
Thanks for your reply.

I'm using the same "ALT.SMS.SmppClient Demo" that you provide in the download section.
I simply added some events like: evAlertNotification, evDataSmComplete, evDeliverSmComplete and evSubmitComplete.

Thanks again.
mysterious_mz
Posts: 10
Joined: Sat Dec 13, 2008 8:57 am

Post by mysterious_mz » Tue Dec 23, 2008 4:38 pm

Hello.
Please help me how to send a simple sms.
I tried but no results.
To get the root of the problem i also tried jsmpp (http://code.google.com/p/jsmpp/), but when i send a sms i get "ResponseTimeoutException".
I prefer your .dll, it's easy to use.

Please Help me.
Regards.
mysterious_mz
Posts: 10
Joined: Sat Dec 13, 2008 8:57 am

Post by mysterious_mz » Sat Jan 10, 2009 9:04 am

Hello alt.

1. I can not send a simple sms;
2. I don't receive any confirmation of sending sms;
3. When I tried to disconnect obtained a SMPPCLIENT_RCVTIMEOUT.


=========================================
This is the log information from demo application:

10:03:02: SmppClient connected
10:03:02: Binding SmppClient for SystemId: <my replaced id>
10:03:03: SmppClient bound
10:03:03: Bind result : system is with status ESME_ROK
10:03:03: Sending Data: 00000020000000090000000062ad15f63435360034353600777a740034010100
10:03:03: Received Data: 00000011800000090000000062ad15f600
10:04:49: Sending Data: 00000045000000040000000062ad15f700010138323730303700010138323637333830383000000000003039303131323130303334383030302b0000000000057465737465
10:04:49: Sending Data: 00000010000000150000000062ad15f8
10:20:58: Unbinding SmppClient
10:20:58: SmppClient disconnected
10:21:58: Bad status returned during UnBind : UnbindResp with status SMPPCLIENT_RCVTIMEOUT

=========================================
This is the System.Diagnostics log file (system_net)

System.Net.Sockets Verbose: 0 : [3184] DNS::GetHostEntry(192.168.0.5)
System.Net.Sockets Verbose: 0 : [3184] Exiting DNS::GetHostEntry() -> IPHostEntry#46544415
System.Net.Sockets Verbose: 0 : [3184] Socket#16246551::Socket(InterNetwork#2)
System.Net.Sockets Verbose: 0 : [3184] Exiting Socket#16246551::Socket()
System.Net.Sockets Verbose: 0 : [3184] Socket#16246551::BeginConnect(6:6060#101171052)
System.Net.Sockets Verbose: 0 : [3184] Exiting Socket#16246551::BeginConnect() -> ConnectAsyncResult#12001237
System.Net.Sockets Verbose: 0 : [3964] Socket#16246551::EndConnect(ConnectAsyncResult#12001237)
System.Net.Sockets Verbose: 0 : [3964] Exiting Socket#16246551::EndConnect()
System.Net.Sockets Verbose: 0 : [3184] Socket#16246551::BeginReceive()
System.Net.Sockets Verbose: 0 : [3184] Exiting Socket#16246551::BeginReceive() -> OverlappedAsyncResult#40902273
System.Net.Sockets Verbose: 0 : [3184] Socket#16246551::BeginSend()
System.Net.Sockets Verbose: 0 : [3184] Exiting Socket#16246551::BeginSend() -> OverlappedAsyncResult#32576140
System.Net.Sockets Verbose: 0 : [3964] Data from Socket#16246551::PostCompletion
System.Net.Sockets Verbose: 0 : [3964] 00000000 : 00 00 00 20 00 00 00 09-00 00 00 00 62 AD 15 F6 : ... ........b...
System.Net.Sockets Verbose: 0 : [3964] 00000010 : 34 35 36 00 34 35 36 00-77 7A 74 00 34 01 01 00 : 123.123.wzt.4...
System.Net.Sockets Verbose: 0 : [3964] Socket#16246551::EndSend(OverlappedAsyncResult#32576140)
System.Net.Sockets Verbose: 0 : [3964] Exiting Socket#16246551::EndSend() -> 32#32
System.Net.Sockets Verbose: 0 : [3964] Data from Socket#16246551::PostCompletion
System.Net.Sockets Verbose: 0 : [3964] 00000000 : 00 00 00 11 80 00 00 09-00 00 00 00 62 AD 15 F6 : ............b...
System.Net.Sockets Verbose: 0 : [3964] 00000010 : 00 : .
System.Net.Sockets Verbose: 0 : [3964] Socket#16246551::EndReceive(OverlappedAsyncResult#40902273)
System.Net.Sockets Verbose: 0 : [3964] Exiting Socket#16246551::EndReceive() -> 17#17
System.Net.Sockets Verbose: 0 : [3964] Socket#16246551::BeginReceive()
System.Net.Sockets Verbose: 0 : [3964] Exiting Socket#16246551::BeginReceive() -> OverlappedAsyncResult#6044116
System.Net.Sockets Verbose: 0 : [3184] Socket#16246551::BeginSend()
System.Net.Sockets Verbose: 0 : [3184] Exiting Socket#16246551::BeginSend() -> OverlappedAsyncResult#5109846
System.Net.Sockets Verbose: 0 : [3964] Data from Socket#16246551::PostCompletion
System.Net.Sockets Verbose: 0 : [3964] 00000000 : 00 00 00 45 00 00 00 04-00 00 00 00 62 AD 15 F7 : ...E........b...
System.Net.Sockets Verbose: 0 : [3964] 00000010 : 00 01 01 38 32 37 30 30-37 00 01 01 38 32 36 37 : ...827007...8265
System.Net.Sockets Verbose: 0 : [3964] 00000020 : 33 38 30 38 30 00 00 00-00 00 30 39 30 31 31 32 : 32450.....090112
System.Net.Sockets Verbose: 0 : [3964] 00000030 : 31 30 30 33 34 38 30 30-30 2B 00 00 00 00 00 05 : 100348000+......
System.Net.Sockets Verbose: 0 : [3964] 00000040 : 74 65 73 74 65 : test sms
System.Net.Sockets Verbose: 0 : [3964] Socket#16246551::EndSend(OverlappedAsyncResult#5109846)
System.Net.Sockets Verbose: 0 : [3964] Exiting Socket#16246551::EndSend() -> 69#69
System.Net.Sockets Verbose: 0 : [2456] Socket#16246551::BeginSend()
System.Net.Sockets Verbose: 0 : [2456] Exiting Socket#16246551::BeginSend() -> OverlappedAsyncResult#37121646
System.Net.Sockets Verbose: 0 : [3964] Data from Socket#16246551::PostCompletion
System.Net.Sockets Verbose: 0 : [3964] 00000000 : 00 00 00 10 00 00 00 15-00 00 00 00 62 AD 15 F8 : ............b...
System.Net.Sockets Verbose: 0 : [3964] Socket#16246551::EndSend(OverlappedAsyncResult#37121646)
System.Net.Sockets Verbose: 0 : [3964] Exiting Socket#16246551::EndSend() -> 16#16
System.Net.Sockets Verbose: 0 : [3184] Socket#16246551::Shutdown(Both#2)
System.Net.Sockets Verbose: 0 : [3184] Exiting Socket#16246551::Shutdown()
System.Net.Sockets Verbose: 0 : [3184] Socket#16246551::Close()
System.Net.Sockets Verbose: 0 : [3184] Socket#16246551::Dispose()
System.Net.Sockets Verbose: 0 : [3184] Exiting Socket#16246551::Close()


I hope you can help me.
Regards.
Thanks in advance.
mysterious_mz
Posts: 10
Joined: Sat Dec 13, 2008 8:57 am

Post by mysterious_mz » Sat Jan 10, 2009 9:18 am

Hello.

I forgot to say that I am having these problems using the latest version (2.5.8.0) and demo v1.1.3270.23179

Regards.
alt
Site Admin
Posts: 988
Joined: Tue Apr 25, 2006 9:45 am

Post by alt » Mon Jan 19, 2009 9:09 am

In order to receive confirmation as DeliverSm, you have to enable registered_delivery field.

Code: Select all

SubmitSm.RegisteredDelivery = 1;
Please also try to set

Code: Select all

client.NeedEnquireLink = true;
client.EnquireInterval = 30;
This helps you to keep connection alive.
mysterious_mz
Posts: 10
Joined: Sat Dec 13, 2008 8:57 am

Post by mysterious_mz » Tue Jan 27, 2009 4:18 pm

I did exactly what you told me but the problems remain
mysterious_mz
Posts: 10
Joined: Sat Dec 13, 2008 8:57 am

Post by mysterious_mz » Mon Jun 15, 2009 1:30 pm

Hello alt.
Thanks a lot.

I found that the problem was with the password field (more than 8 characters), but the reply was always "ESME_ROK" instead of "ESME_RINVPASWD".

But now it's all fine and working perfectly.

Thank's a lot to everyone.
Locked