Session Flow
Understand how USSD sessions are managed between the user, the carrier, and your server.
Session Lifecycle
1
Session Initiation (New)
The user dials the USSD code. Sendexa receives the request and triggers your actionUrl with type: "new".
2
Input/Response (Cont)
If you return a response with shouldClose: false, the user is prompted for input. When they respond, your server receives type: "continue".
3
Session Termination (End)
The session ends when your server returns shouldClose: true or the user cancels the session.
Timeouts
USSD sessions are highly time-sensitive. If your server doesn't respond within 5-10 seconds (depending on the carrier), the session will automatically time out and disconnect the user.