Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Python smpplib

217 views
Skip to first unread message

santosh.y...@gmail.com

unread,
May 18, 2017, 3:55:29 AM5/18/17
to
Hello Everyone,

I need help in python smpplib, I am trying to send message through smpplib but I can't.

Actually, In web I seen one video regarding this

link : http://fosshelp.blogspot.in/2014/01/python-howto-send-sms-using-smpp.html

In this video, he is able to send sms through the same code. He is getting output as
==client.state==== 2
==client.state==== 1
==client.state==== 0

But If I am trying to do the same I am getting

==client.state==== 2
==client.state==== 2
==client.state==== 0

And I am not receiving any message also.

Please guide me, If anyone knows about this.

Thanks in advance.

Steve D'Aprano

unread,
May 18, 2017, 8:28:29 AM5/18/17
to
On Thu, 18 May 2017 05:55 pm, santosh.y...@gmail.com wrote:

> Hello Everyone,
>
> I need help in python smpplib, I am trying to send message through smpplib
> but I can't.

What have you tried? Are we supposed to guess what code you have written?

Without seeing your code, the only thing I can suggest is:

"Write less buggy code."

If that doesn't help you, then please help us to help you:

http://sscce.org/

Please read that link. Even though it is written for Java, it applies to
Python as well. If you want help, following the instructions there is the
second best way to get it.

The best way is to hire an expert Python programmer to fix your code. That
will cost you money, but you won't have to any work or think about it.



> Actually, In web I seen one video regarding this
>
> link :
> http://fosshelp.blogspot.in/2014/01/python-howto-send-sms-using-smpp.html

Forget it, I'm not watching a video. Do you have instructions written down
somewhere?



--
Steve
Emoji: a small, fuzzy, indistinct picture used to replace a clear and
perfectly comprehensible word.

dieter

unread,
May 19, 2017, 2:36:05 AM5/19/17
to
santosh.y...@gmail.com writes:
> I need help in python smpplib, I am trying to send message through smpplib but I can't.
>
> Actually, In web I seen one video regarding this
>
> link : http://fosshelp.blogspot.in/2014/01/python-howto-send-sms-using-smpp.html
>
> In this video, he is able to send sms through the same code. He is getting output as
> ==client.state==== 2
> ==client.state==== 1
> ==client.state==== 0

Like many (higher level) internet protocol, "smpp" is connection based.
A connection can be in one of several states: e.g. "open", "closed",
"outbound", "inbound", ...
The output above likely shows numeric representations of the state
of the client connection.

The discrepancy, you observed, likely means the an indended state change
did not work. Looking at the code should allow you to determine
which state change was affected.

If the analysis above is correct (no garantee), then the code
is not very good. It should provide better diagnostics if something
goes wrong. It would also have been better to provide "speaking"
representations for the states rather than numeric ones.

0 new messages