java.lang.Object
link.thingscloud.freeswitch.esl.transport.SendMsg

public class SendMsg extends Object

SendMsg class.

版本:
1.0.0
作者:
: zhouhailin
  • 构造器详细资料

    • SendMsg

      public SendMsg()
      Constructor for use with outbound socket client only. This client mode does not need a call UUID for context.
    • SendMsg

      public SendMsg(String uuid)
      Constructor for use with the inbound client.
      参数:
      uuid - of the call to send message to (it should be in 'park' to be operated on).
  • 方法详细资料

    • addCallCommand

      public SendMsg addCallCommand(String command)
      Adds the following line to the message:
         call-command: command
       
      参数:
      command - the string command [ execute | hangup ]
      返回:
      a SendMsg object.
    • addExecuteAppName

      public SendMsg addExecuteAppName(String appName)
      Adds the following line to the message:
         execute-app-name: appName
       
      参数:
      appName - the string app name to execute
      返回:
      a SendMsg object.
    • addExecuteAppArg

      public SendMsg addExecuteAppArg(String arg)
      Adds the following line to the message:
         execute-app-arg: arg
       
      参数:
      arg - the string arg
      返回:
      a SendMsg object.
    • addLoops

      public SendMsg addLoops(int count)
      Adds the following line to the message:
         loops: count
       
      参数:
      count - the int number of times to loop
      返回:
      a SendMsg object.
    • addHangupCause

      public SendMsg addHangupCause(String cause)
      Adds the following line to the message:
         hangup-cause: cause
       
      参数:
      cause - the string cause
      返回:
      a SendMsg object.
    • addNomediaUuid

      public SendMsg addNomediaUuid(String value)
      Adds the following line to the message:
         nomedia-uid: value
       
      参数:
      value - the string value part of the line
      返回:
      a SendMsg object.
    • addEventLock

      public SendMsg addEventLock()
      Adds the following line to the message:
          event-lock: true
        
      返回:
      a SendMsg object.
    • addGenericLine

      public SendMsg addGenericLine(String name, String value)
      A generic method to add a message line. The constructed line in the sent message will be in the form:
         name: value
       
      参数:
      name - part of line
      value - part of line
      返回:
      a SendMsg object.
    • getMsgLines

      public List<String> getMsgLines()
      The list of strings that make up the message to send to FreeSWITCH.
      返回:
      list of strings, as they were added to this message.
    • hasUuid

      public boolean hasUuid()
      Indicate if message was constructed with a UUID.
      返回:
      true if constructed with a UUID.
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object