ConsoleUser

Copyright (c) 2010-2023 Skaion Corporarion, www.skaion.com

This project was developed in part by numerous sponsorships from the U.S. Government. The U.S. Government is authorized to reproduce and distribute reprints of Governmental purposes notwithstanding any copyright notation thereon.

All content reflects those of the authors and should not be interpreted as necessarily representing the official policies or endorsements, either expressed or implied, of the U.S. Government or Skaion Corporation.

class Sipcmd.Sipcmd(system, config)

Sipcmd is a commandline tool that can be used to have “phone call” conversations. It does not support the full interface. It is able to do full conversations, just not step-by-step calls.

Parameters:

converse(dest, phrases)

Have a full conversation, as given by the list of things to say in the phrases list.

If a phrase starts with DTMF the rest of that phrase is treated as DTMF characters to send.

exit(save=False)

This is a stub that will often exit the application. Many applications should implement their own version of this, especially any that open dialogs. Because of the specific nature of saving applications, save here will always be ignored.

Parameters:

  • save: ignored here, accepted to preserve the common function prototype

open()

Open a prompt that will be ready for us to hold our conversations.