Friday, August 24, 2018

chan_dongle CLI commands

chan_dongle provides the following CLI commands:
  • dongle cmd <device> <at_command>
    Send <at_command> to the rfcomm port on the device with the specified <device>
  • dongle reset <device>
    Send reboot command to modem AT+CFUN=1,1
  • dongle stop gracefully <device>
    Stop <device> gracefully. Prevents new incoming and outgoing calls and SMS and outgoing USSD from starting up, but allows calls/SMS/USSD in progress to continue. When all the calls/SMS/USSD have finished, <device> stops
  • dongle stop now <device>
    Stop <device> now. Stops <device> immediately, ending any calls/SMS/USSD in progress
  • dongle stop when convenient <device>
    Stop <device> when convenient. Waits until <device> has no calls/SMS/USSD in progress, and then it stops <device>. It does not prevent new calls/SMS/USSD from entering the <device>.
  • dongle show device settings <device>
    Shows settings for <device>
  • dongle show device state <device>
    Shows detailed state for <device>
  • dongle show device statistics <device>
    Shows statistics for <device>
  • dongle show devices
    Shows summarized state for all devices
  • dongle show version
    Show module version
  • dongle sms <device> <number> <message>
    Send SMS to <number> with the <message> using <device>
  • dongle pdu <device> <pdu>
    Send PDU using <device>
  • dongle ussd <device> <ussd>
    Send USSD command <ussd> using <device>
  • dongle start <device>
    Start <device> if not removed from before.
  • dongle restart gracefully <device>
    Prevents new incoming and outgoing calls and SMS and outgoing USSD from starting up in <device>, but allows calls/SMS/USSD in progress to continue. When call/SMS/USSD has finished, <device> restarts. Restart mean first stop device and second reopen and initialize.
  • dongle restart now <device>
    Restarts <device> immediately, ending any calls/SMS/USSD in progress.
  • dongle restart when convenient <device>
    Waits until <device> has no calls/SMS/USSD in progress, and then it restarts <device>. It does not prevent new calls/SMS/USSD from entering the <device>.
  • dongle remove gracefully <device>
    Prevents new incoming and outgoing calls and SMS and outgoing USSD from starting up in <device>, but allows calls/SMS/USSD in progress to continue. When call/SMS/USSD has finished, <device> stopping and removed from module.
  • dongle remove now <device>
    Remove <device> from Asterisk immediately.
  • dongle remove when convenient <device>
    Waits until <device> has no calls/SMS/USSD in progress and then remove <device>. It does not prevent new calls/SMS/USSD from entering the <device>.
  • dongle reload gracefully
    Reloads the chan_dongle configuration gracefully
  • dongle reload now
    Reloads the chan_dongle configuration now
  • dongle reload when convenient
    Reloads the chan_dongle configuration when convenient. BUG: complete removed devices from dongle.conf not removed from module after reload. Use disable=yes as workaround.

No comments:

Post a Comment