FSModEvent.Packet
Parses FreeSWITCH packets.
Copyright 2015 Marcelo Gornstein marcelog@gmail.com
Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Summary↑
is_response?(pkt) | true if the given packet is a response to an issued command |
parse(char_list, acc \\ []) | Parses all packets found in the given input buffer. Returns a tuple with the buffer leftovers and the packets parsed |
Types ↑
t :: %FSModEvent.Packet{complete: term, custom_payload: term, headers: term, headers_complete: term, job_id: term, length: term, parse_error: term, payload: term, payload_complete: term, rest: term, success: term, type: term}
Functions
Specs:
- is_response?(FSModEvent.Packet.t) :: boolean
true if the given packet is a response to an issued command.
Specs:
- parse(char_list, [FSModEvent.Packet.t]) :: {char_list, [FSModEvent.Packet.t]}
Parses all packets found in the given input buffer. Returns a tuple with the buffer leftovers and the packets parsed.