pub struct IncomingCall {
pub offer: AudioOffer,
pub from: String,
/* private fields */
}Expand description
A ringing inbound call: answer it onto a session, or reject it.
Fields§
§offer: AudioOfferThe caller’s parsed audio offer.
from: StringThe caller’s From header, for screening/logging.
Implementations§
Source§impl IncomingCall
impl IncomingCall
Sourcepub fn filler(self, config: FillerConfig) -> Self
pub fn filler(self, config: FillerConfig) -> Self
Play a latency-masking filler clip when the model stays silent too
long after the caller stops speaking — see
bridge::spawn_latency_filler. The clip must be mono PCM16 at
8 kHz (the call’s playback rate).
Sourcepub async fn answer(self, handle: &LiveHandle) -> Result<SipCall, SipError>
pub async fn answer(self, handle: &LiveHandle) -> Result<SipCall, SipError>
Answer the call onto a connected session: bind an RTP socket, send the SDP answer in the 200 OK, and start the media loop.
When the offer proposes RFC 4733 telephone events, the answer accepts
them and keypresses are written to session state via
bridge::record_dtmf. The caller’s From identity lands under
bridge::KEY_CALLER.
Auto Trait Implementations§
impl Freeze for IncomingCall
impl !RefUnwindSafe for IncomingCall
impl Send for IncomingCall
impl Sync for IncomingCall
impl Unpin for IncomingCall
impl !UnwindSafe for IncomingCall
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].