mix ussd.simulate (Ussd v0.2.0)

Copy Markdown View Source
mix ussd.simulate MyApp.Ussd.States.Welcome
mix ussd.simulate MyApp.Ussd.States.Welcome --phone 233200000000 --response Ussd.Responses.AfricasTalking

Options:

  • --phone - the subscriber identifier to simulate (random by default)
  • --with KEY=VALUE - extra context bag values, repeatable
  • --configurator MODULE - a Ussd.Configurator to apply, repeatable
  • --response MODULE - a Ussd.Response to preview the gateway payload alongside the message
  • --continuing-mode start|continue|confirm (default start)
  • --continuing-state MODULE - required when --continuing-mode=confirm
  • --continuing-ttl SECONDS
  • --store MODULE - a Ussd.Cache implementation to use

Type :restart to drop the call without ending the session, :exit to hang up.