Open GoogleCodeExporter opened 9 years ago
Read first - http://docs.python.org/tutorial/modules.html
Read second - http://guide.python-distribute.org/
Put all .py into smpplib into site-packages directory, so python could find/use
it as a package you can import.
Original comment by 2to...@gmail.com
on 14 Jun 2011 at 12:41
I download file too, change these settings, and launch the script:
client = smpplib.client.Client("my_ip_address", my_port)
client.send_message(...,
destination_addr='my_cellphone_number',
...)
The sms is sent, but no body message in the sms
DEBUG: Connecting to my_ip_address:my_port...
DEBUG: Sending bind_transmitter PDU
DEBUG: >> 0000001e000000020000000000000001535953504c414e00000034000000 30 bytes
DEBUG: Waiting for PDU...
DEBUG: << 0000001d80000002000000000000000148595045525f47534d53475700 29 bytes
DEBUG: Read bind_transmitter_resp PDU
DEBUG: Sending submit_sm PDU
DEBUG: >>
000000e10000000400000000000000030000054d6500000130333435363030303830000000000000
0000000000020c00020001020e000102020f000101042400a0546869732069732061207465737420
6d6573736167652e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e
2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e
2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e
2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e 225 bytes
DEBUG: Waiting for PDU...
DEBUG: << 0000001b8000000400000000000000033034313030303030303500 27 bytes
DEBUG: Read submit_sm_resp PDU
DEBUG: Sending submit_sm PDU
DEBUG: >>
000000460000000400000000000000050000054d6500000130333435363030303830000000000000
0000000000020c00020001020e000102020f000102042400055061727432 70 bytes
DEBUG: Waiting for PDU...
DEBUG: << 0000001b8000000400000000000000053034313030303030303600 27 bytes
DEBUG: Read submit_sm_resp PDU
Sent..
DEBUG: Sending unbind PDU
DEBUG: >> 00000010000000060000000000000007 16 bytes
DEBUG: Waiting for PDU...
DEBUG: << 00000010800000060000000000000007 16 bytes
DEBUG: Read unbind_resp PDU
DEBUG: Disconnecting...
in the log of SMS Gateway, it says there is no PDU sent from the SMPP client,
does anyone tell what's wrong ?
Thanks
Original comment by shinikag...@gmail.com
on 27 Mar 2013 at 2:09
I use Debian Wheezy 64Bits, and I use this script and launch it like this:
~/$ python example.py
Original comment by shinikag...@gmail.com
on 27 Mar 2013 at 2:14
Original issue reported on code.google.com by
ahmedsha...@gmail.com
on 26 Apr 2011 at 12:13