From dc2f7b366a437db67d2409da61ba0e83380c6cb4 Mon Sep 17 00:00:00 2001 From: Emir Aganovic Date: Tue, 17 Sep 2024 21:42:44 +0200 Subject: [PATCH] fix: add more api docs --- docs/api_docs/index.html | 20 +++++++++++++++++++- docs/index.xml | 15 +++++++++------ docs/why_diago/index.html | 34 +++++----------------------------- en.search-data.json | 2 +- 4 files changed, 34 insertions(+), 37 deletions(-) diff --git a/docs/api_docs/index.html b/docs/api_docs/index.html index ba3eb6e..e749547 100644 --- a/docs/api_docs/index.html +++ b/docs/api_docs/index.html @@ -42,7 +42,7 @@ Dialog Sessions diago can act as UAS(User Agent Server) and UAC(User Agent Client), and adds bridging capability to build B2BUA services. It intentionally distincts dialog received (Acting as server) and dialog created (Acting as client): DialogServerSession when receving incoming dialog (SIP INVITE) and setups session (media) DialogClientSession when it creates outgoing dialog (SIP INVITE) and setups session (media) For best understanding here some docs with short code reference."> - + Answering call +
  • + Media handling +
  • Answering call
  • +
  • + Media handling + +
  • Playback @@ -570,6 +580,14 @@

    Answering call +

    Media handling +

    Every session comes with 2 streams (Audio for now). In diago case it is referenced as reader/writer.

    + +

    Normally you mostly deal with writing audio so Playback is created for easier dealing with audio streams.

    +

    NOTE: Diago does not automatically reads audio stream in background. This can happen with explicit call or bridging.

    Playback

    Playing audio file is done with audio playback. Library provides prebuilt playback functionality

    Playback can:

    diff --git a/docs/index.xml b/docs/index.xml index 9193c41..c18a7a7 100644 --- a/docs/index.xml +++ b/docs/index.xml @@ -294,6 +294,14 @@ Dialog created is scoped (Like HTTP request serving). Once dialog exists, it is </div> +<h2>Media handling<span class="hx-absolute -hx-mt-20" id="media-handling"></span> + <a href="#media-handling" class="subheading-anchor" aria-label="Permalink for this section"></a></h2><p>Every session comes with 2 streams (Audio for now). In diago case it is referenced as reader/writer.</p> +<ul> +<li><code>AudioReader</code> reads incoming stream</li> +<li><code>AudioWriter</code> writes outgoing stream</li> +</ul> +<p>Normally you mostly deal with writing audio so <strong>Playback</strong> is created for easier dealing with audio streams.</p> +<p><strong>NOTE</strong>: Diago does not automatically reads audio stream in background. This can happen with explicit call or <em>bridging</em>.</p> <h2>Playback<span class="hx-absolute -hx-mt-20" id="playback"></span> <a href="#playback" class="subheading-anchor" aria-label="Permalink for this section"></a></h2><p>Playing audio file is done with audio playback. Library provides prebuilt playback functionality</p> <p>Playback can:</p> @@ -514,12 +522,7 @@ Publishing local IP like above is problem for NAT and there different approaches - <h2>Why Diago?<span class="hx-absolute -hx-mt-20" id="why-diago"></span> - <a href="#why-diago" class="subheading-anchor" aria-label="Permalink for this section"></a></h2><p>Development of VOIP services can be slow or it was full workarrounds. -Diago try to offer more modern Stack and put you closer to protcol,network,media but offering High level and low level API calls.</p> -<p>Diago is built with GO language and we are keeping well optimized sip and media stack to have performance and low GC latency. Major win is Go offers fast development speed and memory safety, but also tooling to tweak best performance.</p> -<p>In case you wondering is Go right language, there are already good benchmark results with just <a href="https://github.com/emiago/sipgo" target="_blank" rel="noopener">sipgo</a>.</p> - + diff --git a/docs/why_diago/index.html b/docs/why_diago/index.html index 6877a9d..5be7030 100644 --- a/docs/why_diago/index.html +++ b/docs/why_diago/index.html @@ -12,8 +12,7 @@ Diago - + @@ -22,8 +21,7 @@ - + @@ -31,13 +29,8 @@ - - - @@ -224,14 +217,6 @@ >Why Diago - -
  • @@ -310,12 +295,8 @@