mozes / smpp.twisted

SMPP 3.4 client built on Twisted
Other
46 stars 29 forks source link

How to send MT messages example #10

Closed JoanBofill closed 10 years ago

JoanBofill commented 10 years ago

In the example to bind as transceiver, there is a function in which I supose there are catched all the MOs received from the SMPP, but there is no example (and I do not know how to do so) on how to send MT messages once bound to the SMPP server. Could you add an example on how to send and MT message, and then how the DR from this MT is received as an MO?

Thank you very much.

theduderog commented 10 years ago

Take a look at the test cases. You use SMPPClientProtocol#sendDataRequest(). I think the delivery report should trigger a call to the handler you registered when creating the SMPPClientTransceiver object.

https://github.com/mozes/smpp.twisted/blob/master/smpp/twisted/tests/smpp_client_test.py#L133