Skip to content

Commit

Permalink
新增: sendEvent新增报体内容
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouhailin committed Nov 6, 2020
1 parent e097127 commit 7f24227
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,20 @@ public void addLine(String name, String value) {
msgLines.add(name + ": " + value);
}

/**
* A generic method to add a message line. The constructed line in the sent message will be in the
* form:
* <pre>
* name: value
* </pre>
*
* @param line part of line
*/
public void addBody(String line) {
msgLines.add("");
msgLines.add(line);
}

/**
* The list of strings that make up the message to send to FreeSWITCH.
*
Expand Down

0 comments on commit 7f24227

Please sign in to comment.