SMPP
If your system already speaks SMPP 3.4, connect it to GioSMS instead of using the REST API. An SMPP send follows the same rules and prices as any other send.
Connection
| Setting | Value |
|---|---|
| Host | smpp.giosms.com.bd |
| Port | 2775 (plain TCP) |
| Window | 10 submit_sm waiting for a response, per bind |
| Idle timeout | 2 minutes: send enquire_link more often than that |
Credentials
Under Developers, open the SMPP tab and create a credential. GioSMS chooses its system_id, such as gs4k7p2m9x, and an 8-character password. The password is shown once, so store it straight away. You must enter your own password again to create one.
Each credential has:
- Bind mode: transceiver (the default) may bind as transmitter, receiver or transceiver. A transmitter or receiver credential may bind only as itself.
- Speed limit: messages per second across all of its binds, 10 by default, at most 500. Faster submits are refused with
ESME_RTHROTTLED. - Message category:
transactional(the default) orotp, used for every message it sends. - IP allowlist: up to 50 addresses or ranges. Empty allows any.
- Allowed Sender IDs: up to 50. Empty allows any Sender ID your Account may use.
You can change these at any time. The system_id and password never change: revoke the credential and create another to replace them. A revoked credential's binds are closed within a minute.
Sending
- Set
source_addrto your Sender ID anddestination_addrto the Recipient's number. - Text is read according to
data_coding. - For text longer than one part, put the whole text in the
message_payloadTLV. GioSMS splits it into parts itself. Asubmit_smthat carries its own UDH, setting the UDHI bit inesm_class, is refused withESME_RINVESMCLASS. submit_sm_respreturns the GioSMS Message ID asmessage_id.
Delivery receipts
Set registered_delivery to ask for a receipt. GioSMS sends a deliver_sm to a receiver or transceiver bind, with the receipt flag set in esm_class and the Recipient as source_addr:
id:0193a6f2-6d2b-7e5c-8a9f-3b7c2d4e6f80 sub:001 dlvrd:001 submit date:2611280930 done date:2611280931 stat:DELIVRD err:000 text:
stat |
Means |
|---|---|
DELIVRD |
delivered |
UNDELIV |
undelivered; err holds the Operator's code |
REJECTD |
never sent, and not charged |
The receipted_message_id and message_state TLVs carry the same Message ID and status. Answer each deliver_sm with deliver_sm_resp within 30 seconds.
Errors
command_status |
Why |
|---|---|
ESME_RINVPASWD |
wrong system_id or password, or the credential is revoked |
ESME_RBINDFAIL |
the bind was refused for another reason, such as the bind mode or an address outside the allowlist. Repeated failed binds are limited to 5 a minute. |
ESME_RALYBND |
the session is already bound |
ESME_RINVBNDSTS |
the bind may not do this, such as a receiver sending submit_sm, or its credential was revoked while it was bound |
ESME_RTHROTTLED |
over the credential's speed limit; slow down and retry |
ESME_RINVSRCADR |
the Sender ID may not be used, or is not allowed for this credential |
ESME_RINVDSTADR |
the Recipient is not a valid Bangladeshi mobile number |
ESME_RINVMSGLEN |
the text is empty, too long or may not be sent |
ESME_RINVESMCLASS |
the submit_sm carries its own UDH; use message_payload instead |
ESME_RSUBMITFAIL |
the send was refused, for example because the balance is too low or the address is outside the credential's allowlist |
ESME_RSYSERR |
GioSMS failed; retry later |