Skip to content

telequick/rust-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TeleQuick Rust SDK

Idiomatic Rust client for TeleQuick — telephony origination, media streaming, and zero-trust JWT auth, built on Tokio + Quinn (QUIC).

Add to your project

[dependencies]
telequick-sdk = "1.0"
tokio          = { version = "1", features = ["full"] }

Quick start

use telequick_sdk::TeleQuickClient;

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    let client = TeleQuickClient::connect("pbx.telequick.com:443").await?;

    let resp = client
        .originate(
            "+1234567890",
            "wss://my-chatbot.com/media",
        )
        .await?;

    println!("call sid = {}", resp.call_sid);
    Ok(())
}

The native FFI core (libtelequick_core_ffi.{so,dylib,dll}) is loaded at runtime via libloading. Set TELEQUICK_LIB_PATH if it isn't on the default loader path.

Crate layout

  • src/client.rs — high-level TeleQuickClient (originate, hangup, media).
  • src/ffi.rsextern "C" bindings to the C++ core.
  • src/method_id.rs — wire-format method IDs (mirrored across all SDKs).
  • tests/ — integration tests against a mock gateway.

About

Rust SDK for TeleQuick

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors