Dialling and call options

From GnokiiWiki

Jump to: navigation, search
Command Line Options
         gnokii --getspeeddial number
         gnokii --setspeeddial number memory_type location
         gnokii --dialvoice number
         gnokii --senddtmf string
         gnokii --answercall callid
         gnokii --hangup callid
         gnokii --divert {--op|-o} {register|enable|query|disable|erasure}
                {--type|-t} {all|busy|noans|outofreach|notavail}
                {--call|-c} {all|voice|fax|data}
                [{--timeout|-m} time_in_seconds]
                [{--number|-n} number]

Contents

--getspeeddial

         gnokii --getspeeddial number

Reads speed dial associated to number.

number to which key the speed dial is assigned (1 may be reserved for voice mailbox and unavailable as speed dial)

Example:

         gnokii --getspeeddial 2

--setspeeddial

         gnokii --setspeeddial number memory_type location

Specify speed dial.

number to which key the speed dial is to be assigned (1 may be reserved for voice mailbox and unavailable as speed dial)

memory_type is a memory type code of two or three letters. The most common ones are ME (internal memory) and SM (SIM card).

location is the phonebook position in which the phone number you want to assign to number is stored.

Example:

         gnokii --setspeeddial 2 SM 42

--dialvoice

         gnokii --dialvoice number

Initiate voice call. On success prints the callid identifier to be used with the --hangup command. The --monitor command can be used to show the callid.

--senddtmf

      gnokii --senddtmf string

Send DTMF sequence.

--answercall

      gnokii --answercall callid

Answer an incoming call.

callid is a small integer number used to identify one of the incoming calls. The --monitor command can be used to show the callid.

--hangup

      gnokii --hangup callid

Hangup an incoming call or an already established call.

callid is a small integer number used to identify one of the calls; if you initiated the call with --dialvoice this is the number printed by that command. The --monitor command can be used to show the callid.

--divert

         gnokii --divert {--op|-o} {register|enable|query|disable|erasure}
                {--type|-t} {all|busy|noans|outofreach|notavail}
                {--call|-c} {all|voice|fax|data}
                [{--timeout|-m} time_in_seconds]
                [{--number|-n} number]

Manage call diverting/forwarding.

Some operators will not accept arbitrary numbers (if this command fails try to set the desired number using phone menus or the method shown in Divert, if this fails too check with your operator's customer service).

Available operations, specified with the --op argument, are:

  • register
  • enable
  • query
  • disable
  • erasure

Note that the AT driver doesn't yet parse the values returned by --op query (gnokii 0.6.26).

Available event types, specified with the --type argument, are:

  • busy
  • noans
  • outofreach
  • notavail
  • unconditional
  • all all of the above

Available call types, specified with the --call argument, are:

  • voice
  • fax
  • data
  • all all of the above

--timeout is the number of seconds an incoming call will ring before being forwarded to the registered number (useful with --type noans)
Note: Sony Ericssons do not support setting or getting a timeout (source: dg_at_2006--07_r3a.pdf)

--number is the phone number to which calls are to be forwarded when timeout expires (some operators only accept their voicemail numbers)

Personal tools