WIP: Support sending SMS more than 140 characters long
This is a WIP merge request with the patchs so that portal_sms supports sending SMS more than 140 characters long.
For now, we implemented that for mobyt only without taking care of other gateway implementations.
When discussing with @gabriel on eb7abe51 , we considered ( at least ) the following tasks :
- Maybe message_type should become a property of the gateway and not be defined in ShortMessage_send.
- The API endpoint is http. Using the same URL with https seems to work.
We also said that (this seems less critical):
- (jerome) This API is old, I found the doc using archive.org wayback machine. The new API is slightly different, so I am not sure we want to implement that.
- (gabriel) I think API URL should be also part of the gateway(or at least set a default and be editable)
- (gabriel) move getAllowedMessageType to ERP5 (as script or categories?). (jerome) but I think that the possible messages types varies from one gateway to another, so in what I have in mind, each gateway implementation must define the possible allowed message types and let the user choose
- (jerome) With mobyt, messages with more than 140 characters are rejected when using text mode, if we use MULTITEXT, multiple messages are sent. This also means that the cost of sending such message is higher. Probably we want a way to configure we want to send only one message and fail if messages are too long instead of sending multuiple messages and increase the cost of sending.
- (jerome) the whole product/ERP5ShortMessage can be moved to components, as we are doing in !172 (closed)