freeswitch-types 1.0.0-rc.2

FreeSWITCH ESL protocol types: channel state, events, headers, commands, and variables
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! SIP user ping status enum.

wire_enum! {
    /// SIP user ping status from `sofia::sip_user_state` events.
    ///
    /// The `Ping-Status` header value, mapping to `sofia_sip_user_status_name()`.
    #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
    pub enum SipUserPingStatus {
        Unreachable => "UNREACHABLE",
        Reachable => "REACHABLE",
        Invalid => "INVALID",
    }
    error ParseSipUserPingStatusError("sip user ping status");
    tests: sip_user_ping_status_wire_tests;
}