Professional Documents
Culture Documents
Introduction
CLI is a feature of pjsua that enables user to execute commands from telnet/console interface.
Features:
• Command completion, the system will detect if a fraction of a word makes up a unique command.
• Arguments/command-params completion.
• Command history (the use of up and down arrow).
Commands
Commands are specified using tree structure (commands/sub-commands).
Command shortcuts are executed on the root command without the need to specify the full command path.
Some commands might need parameters/arguments to be entered. There are 3 types of arguments:
• Choice. User needs to pick the option from the option list (by typing ?tab? or ??? key).
[0] <sip:192.168.1.6:5060>
[1] *<sip:192.168.1.6:5060;transport=TCP>
[2] <sip:192.168.1.6:5061;transport=TLS>
The following commands can be specified when invoking pjsua in CLI mode.
Root commands
Commands 2
transfer x Transfer call
transfer_replaces X Transfer replace call
redirect R Redirect call
d_2833 # Send DTMF (RFC 2833)
d_info * Send DTMF with SIP INFO
dump_q dq Dump (call) quality
send_arb S Send arbitrary request
list Show current call