类 SendMsg
java.lang.Object
link.thingscloud.freeswitch.esl.transport.SendMsg
SendMsg class.
- 版本:
- 1.0.0
- 作者:
- : zhouhailin
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明addCallCommand(String command) Adds the following line to the message:Adds the following line to the message:addExecuteAppArg(String arg) Adds the following line to the message:addExecuteAppName(String appName) Adds the following line to the message:addGenericLine(String name, String value) A generic method to add a message line.addHangupCause(String cause) Adds the following line to the message:addLoops(int count) Adds the following line to the message:addNomediaUuid(String value) Adds the following line to the message:The list of strings that make up the message to send to FreeSWITCH.booleanhasUuid()Indicate if message was constructed with a UUID.toString()
-
构造器详细资料
-
SendMsg
public SendMsg()Constructor for use with outbound socket client only. This client mode does not need a call UUID for context. -
SendMsg
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
Adds the following line to the message:call-command: command
- 参数:
command- the string command [ execute | hangup ]- 返回:
- a
SendMsgobject.
-
addExecuteAppName
Adds the following line to the message:execute-app-name: appName
- 参数:
appName- the string app name to execute- 返回:
- a
SendMsgobject.
-
addExecuteAppArg
Adds the following line to the message:execute-app-arg: arg
- 参数:
arg- the string arg- 返回:
- a
SendMsgobject.
-
addLoops
Adds the following line to the message:loops: count
- 参数:
count- the int number of times to loop- 返回:
- a
SendMsgobject.
-
addHangupCause
Adds the following line to the message:hangup-cause: cause
- 参数:
cause- the string cause- 返回:
- a
SendMsgobject.
-
addNomediaUuid
Adds the following line to the message:nomedia-uid: value
- 参数:
value- the string value part of the line- 返回:
- a
SendMsgobject.
-
addEventLock
Adds the following line to the message:event-lock: true- 返回:
- a
SendMsgobject.
-
addGenericLine
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 linevalue- part of line- 返回:
- a
SendMsgobject.
-
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
-