Skip to content

Commit

Permalink
feat: more data
Browse files Browse the repository at this point in the history
  • Loading branch information
Emir Aganovic committed Aug 29, 2024
1 parent 357f60b commit c074932
Show file tree
Hide file tree
Showing 11 changed files with 74 additions and 171 deletions.
14 changes: 0 additions & 14 deletions categories/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,20 +82,6 @@
class="hx-text-sm contrast-more:hx-text-gray-700 contrast-more:dark:hx-text-gray-100 hx-relative -hx-ml-2 hx-hidden hx-whitespace-nowrap hx-p-2 md:hx-inline-block hx-text-gray-600 hover:hx-text-gray-800 dark:hx-text-gray-400 dark:hover:hx-text-gray-200"
>
<span class="hx-text-center">Documentation</span>
</a><a
title="Blog"
href="/diago/blog"

class="hx-text-sm contrast-more:hx-text-gray-700 contrast-more:dark:hx-text-gray-100 hx-relative -hx-ml-2 hx-hidden hx-whitespace-nowrap hx-p-2 md:hx-inline-block hx-text-gray-600 hover:hx-text-gray-800 dark:hx-text-gray-400 dark:hover:hx-text-gray-200"
>
<span class="hx-text-center">Blog</span>
</a><a
title="About"
href="/diago/about"

class="hx-text-sm contrast-more:hx-text-gray-700 contrast-more:dark:hx-text-gray-100 hx-relative -hx-ml-2 hx-hidden hx-whitespace-nowrap hx-p-2 md:hx-inline-block hx-text-gray-600 hover:hx-text-gray-800 dark:hx-text-gray-400 dark:hover:hx-text-gray-200"
>
<span class="hx-text-center">About</span>
</a><div class="search-wrapper hx-relative md:hx-w-64">
<div class="hx-relative hx-flex hx-items-center hx-text-gray-900 contrast-more:hx-text-gray-800 dark:hx-text-gray-300 contrast-more:dark:hx-text-gray-300">
<input
Expand Down
14 changes: 0 additions & 14 deletions docs/examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,20 +94,6 @@
class="hx-text-sm contrast-more:hx-text-gray-700 contrast-more:dark:hx-text-gray-100 hx-relative -hx-ml-2 hx-hidden hx-whitespace-nowrap hx-p-2 md:hx-inline-block hx-font-medium"
>
<span class="hx-text-center">Documentation</span>
</a><a
title="Blog"
href="/diago/blog"

class="hx-text-sm contrast-more:hx-text-gray-700 contrast-more:dark:hx-text-gray-100 hx-relative -hx-ml-2 hx-hidden hx-whitespace-nowrap hx-p-2 md:hx-inline-block hx-text-gray-600 hover:hx-text-gray-800 dark:hx-text-gray-400 dark:hover:hx-text-gray-200"
>
<span class="hx-text-center">Blog</span>
</a><a
title="About"
href="/diago/about"

class="hx-text-sm contrast-more:hx-text-gray-700 contrast-more:dark:hx-text-gray-100 hx-relative -hx-ml-2 hx-hidden hx-whitespace-nowrap hx-p-2 md:hx-inline-block hx-text-gray-600 hover:hx-text-gray-800 dark:hx-text-gray-400 dark:hover:hx-text-gray-200"
>
<span class="hx-text-center">About</span>
</a><div class="search-wrapper hx-relative md:hx-w-64">
<div class="hx-relative hx-flex hx-items-center hx-text-gray-900 contrast-more:hx-text-gray-800 dark:hx-text-gray-300 contrast-more:dark:hx-text-gray-300">
<input
Expand Down
42 changes: 11 additions & 31 deletions docs/getting_started/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
<link fetchpriority="low" href="/diago/site.webmanifest" rel="manifest" />

<title>Diago</title>
<meta name="description" content="Getting starteddiago can act as UAS(User Agent Server) and UAC(User Agent Client), and on top it adds bridging to build B2BUA services.
<meta name="description" content="Getting starteddiago can act as UAS(User Agent Server) and UAC(User Agent Client), and ofcourse adds bridging capability to build B2BUA services.
To keep abstractions low it intentionally distincts dialog received (Acting as server) and dialog created (Acting as client) Therefore it distincts your dialog/session control with this structs:
DialogServerSession when receving incoming dialog (SIP INVITE) and setups session (media) DialogClientSession when it creates outgoing dialog (SIP INVITE) and setups session (media) Further it is explicit which media stack it uses" />
DialogServerSession when receving incoming dialog (SIP INVITE) and setups session (media) DialogClientSession when it creates outgoing dialog (SIP INVITE) and setups session (media) Setup diago: ua, _ := sipgo." />


<link rel="canonical" href="https://emiago.github.io/diago/docs/getting_started/" itemprop="url" />
Expand All @@ -23,25 +23,25 @@


<meta property="og:title" content="" />
<meta property="og:description" content="Getting starteddiago can act as UAS(User Agent Server) and UAC(User Agent Client), and on top it adds bridging to build B2BUA services.
<meta property="og:description" content="Getting starteddiago can act as UAS(User Agent Server) and UAC(User Agent Client), and ofcourse adds bridging capability to build B2BUA services.
To keep abstractions low it intentionally distincts dialog received (Acting as server) and dialog created (Acting as client) Therefore it distincts your dialog/session control with this structs:
DialogServerSession when receving incoming dialog (SIP INVITE) and setups session (media) DialogClientSession when it creates outgoing dialog (SIP INVITE) and setups session (media) Further it is explicit which media stack it uses" />
DialogServerSession when receving incoming dialog (SIP INVITE) and setups session (media) DialogClientSession when it creates outgoing dialog (SIP INVITE) and setups session (media) Setup diago: ua, _ := sipgo." />
<meta property="og:type" content="article" />
<meta property="og:url" content="https://emiago.github.io/diago/docs/getting_started/" /><meta property="article:section" content="docs" />




<meta itemprop="name" content="Diago">
<meta itemprop="description" content="Getting starteddiago can act as UAS(User Agent Server) and UAC(User Agent Client), and on top it adds bridging to build B2BUA services.
<meta itemprop="description" content="Getting starteddiago can act as UAS(User Agent Server) and UAC(User Agent Client), and ofcourse adds bridging capability to build B2BUA services.
To keep abstractions low it intentionally distincts dialog received (Acting as server) and dialog created (Acting as client) Therefore it distincts your dialog/session control with this structs:
DialogServerSession when receving incoming dialog (SIP INVITE) and setups session (media) DialogClientSession when it creates outgoing dialog (SIP INVITE) and setups session (media) Further it is explicit which media stack it uses">
<meta itemprop="wordCount" content="290">
DialogServerSession when receving incoming dialog (SIP INVITE) and setups session (media) DialogClientSession when it creates outgoing dialog (SIP INVITE) and setups session (media) Setup diago: ua, _ := sipgo.">
<meta itemprop="wordCount" content="258">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Diago">
<meta name="twitter:description" content="Getting starteddiago can act as UAS(User Agent Server) and UAC(User Agent Client), and on top it adds bridging to build B2BUA services.
<meta name="twitter:description" content="Getting starteddiago can act as UAS(User Agent Server) and UAC(User Agent Client), and ofcourse adds bridging capability to build B2BUA services.
To keep abstractions low it intentionally distincts dialog received (Acting as server) and dialog created (Acting as client) Therefore it distincts your dialog/session control with this structs:
DialogServerSession when receving incoming dialog (SIP INVITE) and setups session (media) DialogClientSession when it creates outgoing dialog (SIP INVITE) and setups session (media) Further it is explicit which media stack it uses">
DialogServerSession when receving incoming dialog (SIP INVITE) and setups session (media) DialogClientSession when it creates outgoing dialog (SIP INVITE) and setups session (media) Setup diago: ua, _ := sipgo.">

<link rel="preload" href="/diago/css/compiled/main.min.c1fe2c80102c9dc9ddc66184191e646769052d36a21b38ac5ab5077713cf7a81.css" as="style" integrity="sha256-wf4sgBAsncndxmGEGR5kZ2kFLTaiGzisWrUHdxPPeoE=" />
<link href="/diago/css/compiled/main.min.c1fe2c80102c9dc9ddc66184191e646769052d36a21b38ac5ab5077713cf7a81.css" rel="stylesheet" integrity="sha256-wf4sgBAsncndxmGEGR5kZ2kFLTaiGzisWrUHdxPPeoE=" />
Expand Down Expand Up @@ -95,20 +95,6 @@
class="hx-text-sm contrast-more:hx-text-gray-700 contrast-more:dark:hx-text-gray-100 hx-relative -hx-ml-2 hx-hidden hx-whitespace-nowrap hx-p-2 md:hx-inline-block hx-font-medium"
>
<span class="hx-text-center">Documentation</span>
</a><a
title="Blog"
href="/diago/blog"

class="hx-text-sm contrast-more:hx-text-gray-700 contrast-more:dark:hx-text-gray-100 hx-relative -hx-ml-2 hx-hidden hx-whitespace-nowrap hx-p-2 md:hx-inline-block hx-text-gray-600 hover:hx-text-gray-800 dark:hx-text-gray-400 dark:hover:hx-text-gray-200"
>
<span class="hx-text-center">Blog</span>
</a><a
title="About"
href="/diago/about"

class="hx-text-sm contrast-more:hx-text-gray-700 contrast-more:dark:hx-text-gray-100 hx-relative -hx-ml-2 hx-hidden hx-whitespace-nowrap hx-p-2 md:hx-inline-block hx-text-gray-600 hover:hx-text-gray-800 dark:hx-text-gray-400 dark:hover:hx-text-gray-200"
>
<span class="hx-text-center">About</span>
</a><div class="search-wrapper hx-relative md:hx-w-64">
<div class="hx-relative hx-flex hx-items-center hx-text-gray-900 contrast-more:hx-text-gray-800 dark:hx-text-gray-300 contrast-more:dark:hx-text-gray-300">
<input
Expand Down Expand Up @@ -354,19 +340,13 @@

<div class="content">
<h1></h1>
<h1>Getting started</h1><p>diago can act as <strong>UAS</strong>(User Agent Server) and <strong>UAC</strong>(User Agent Client), and on top it adds <strong>bridging</strong> to build B2BUA services.</p>
<h1>Getting started</h1><p>diago can act as <strong>UAS</strong>(User Agent Server) and <strong>UAC</strong>(User Agent Client), and ofcourse adds <strong>bridging</strong> capability to build B2BUA services.</p>
<p>To keep abstractions low it intentionally <strong>distincts</strong> dialog received (<strong>Acting as server</strong>) and dialog created (<strong>Acting as client</strong>)
Therefore it distincts your dialog/session control with this structs:</p>
<ul>
<li><code>DialogServerSession</code> when receving incoming dialog (SIP INVITE) and setups session (media)</li>
<li><code>DialogClientSession</code> when it creates outgoing dialog (SIP INVITE) and setups session (media)</li>
</ul>
<p>Further it is explicit which media stack it uses</p>
<ul>
<li><code>Answer</code> -&gt; RTP/UDP</li>
<li><code>AnswerWebrtc</code> -&gt; Webrtc stack SRTP/DTLS (Experimental)</li>
</ul>
<p>NOTE: webrtc stack is experimental and not on full focus currently</p>
<h4>Setup diago:<span class="hx-absolute -hx-mt-20" id="setup-diago"></span>
<a href="#setup-diago" class="subheading-anchor" aria-label="Permalink for this section"></a></h4><div class="hextra-code-block hx-relative hx-mt-6 first:hx-mt-0 hx-group/code">

Expand Down Expand Up @@ -425,7 +405,7 @@ <h4>Outgoing<span class="hx-absolute -hx-mt-20" id="outgoing"></span>
<a href="#outgoing" class="subheading-anchor" aria-label="Permalink for this section"></a></h4><div class="hextra-code-block hx-relative hx-mt-6 first:hx-mt-0 hx-group/code">


<div><div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-go" data-lang="go"><span style="display:flex;"><span><span style="color:#a6e22e">dialog</span>, <span style="color:#a6e22e">err</span> <span style="color:#f92672">:=</span> <span style="color:#a6e22e">d</span>.<span style="color:#a6e22e">Dial</span>(<span style="color:#a6e22e">ctx</span>, <span style="color:#a6e22e">recipient</span> <span style="color:#a6e22e">sip</span>.<span style="color:#a6e22e">Uri</span>, <span style="color:#a6e22e">bridge</span> <span style="color:#f92672">*</span><span style="color:#a6e22e">Bridge</span>, <span style="color:#a6e22e">opts</span> <span style="color:#a6e22e">sipgo</span>.<span style="color:#a6e22e">AnswerOptions</span>)
<div><div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-go" data-lang="go"><span style="display:flex;"><span><span style="color:#a6e22e">dialog</span>, <span style="color:#a6e22e">err</span> <span style="color:#f92672">:=</span> <span style="color:#a6e22e">d</span>.<span style="color:#a6e22e">Invite</span>(<span style="color:#a6e22e">ctx</span>, <span style="color:#a6e22e">recipient</span> <span style="color:#a6e22e">sip</span>.<span style="color:#a6e22e">Uri</span>, <span style="color:#a6e22e">opts</span> <span style="color:#a6e22e">diago</span>.<span style="color:#a6e22e">InviteOptions</span>)
</span></span><span style="display:flex;"><span><span style="color:#a6e22e">dialog</span>.<span style="color:#a6e22e">Hangup</span>()</span></span></code></pre></div></div><div class="hextra-code-copy-btn-container hx-opacity-0 hx-transition group-hover/code:hx-opacity-100 hx-flex hx-gap-1 hx-absolute hx-m-[11px] hx-right-0 hx-top-0">
<button
class="hextra-code-copy-btn hx-group/copybtn hx-transition-all active:hx-opacity-50 hx-bg-primary-700/5 hx-border hx-border-black/5 hx-text-gray-600 hover:hx-text-gray-900 hx-rounded-md hx-p-1.5 dark:hx-bg-primary-300/10 dark:hx-border-white/10 dark:hx-text-gray-400 dark:hover:hx-text-gray-50"
Expand Down
14 changes: 0 additions & 14 deletions docs/guides/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,20 +88,6 @@
class="hx-text-sm contrast-more:hx-text-gray-700 contrast-more:dark:hx-text-gray-100 hx-relative -hx-ml-2 hx-hidden hx-whitespace-nowrap hx-p-2 md:hx-inline-block hx-font-medium"
>
<span class="hx-text-center">Documentation</span>
</a><a
title="Blog"
href="/diago/blog"

class="hx-text-sm contrast-more:hx-text-gray-700 contrast-more:dark:hx-text-gray-100 hx-relative -hx-ml-2 hx-hidden hx-whitespace-nowrap hx-p-2 md:hx-inline-block hx-text-gray-600 hover:hx-text-gray-800 dark:hx-text-gray-400 dark:hover:hx-text-gray-200"
>
<span class="hx-text-center">Blog</span>
</a><a
title="About"
href="/diago/about"

class="hx-text-sm contrast-more:hx-text-gray-700 contrast-more:dark:hx-text-gray-100 hx-relative -hx-ml-2 hx-hidden hx-whitespace-nowrap hx-p-2 md:hx-inline-block hx-text-gray-600 hover:hx-text-gray-800 dark:hx-text-gray-400 dark:hover:hx-text-gray-200"
>
<span class="hx-text-center">About</span>
</a><div class="search-wrapper hx-relative md:hx-w-64">
<div class="hx-relative hx-flex hx-items-center hx-text-gray-900 contrast-more:hx-text-gray-800 dark:hx-text-gray-300 contrast-more:dark:hx-text-gray-300">
<input
Expand Down
14 changes: 0 additions & 14 deletions docs/guides/sip_and_media/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,20 +99,6 @@
class="hx-text-sm contrast-more:hx-text-gray-700 contrast-more:dark:hx-text-gray-100 hx-relative -hx-ml-2 hx-hidden hx-whitespace-nowrap hx-p-2 md:hx-inline-block hx-font-medium"
>
<span class="hx-text-center">Documentation</span>
</a><a
title="Blog"
href="/diago/blog"

class="hx-text-sm contrast-more:hx-text-gray-700 contrast-more:dark:hx-text-gray-100 hx-relative -hx-ml-2 hx-hidden hx-whitespace-nowrap hx-p-2 md:hx-inline-block hx-text-gray-600 hover:hx-text-gray-800 dark:hx-text-gray-400 dark:hover:hx-text-gray-200"
>
<span class="hx-text-center">Blog</span>
</a><a
title="About"
href="/diago/about"

class="hx-text-sm contrast-more:hx-text-gray-700 contrast-more:dark:hx-text-gray-100 hx-relative -hx-ml-2 hx-hidden hx-whitespace-nowrap hx-p-2 md:hx-inline-block hx-text-gray-600 hover:hx-text-gray-800 dark:hx-text-gray-400 dark:hover:hx-text-gray-200"
>
<span class="hx-text-center">About</span>
</a><div class="search-wrapper hx-relative md:hx-w-64">
<div class="hx-relative hx-flex hx-items-center hx-text-gray-900 contrast-more:hx-text-gray-800 dark:hx-text-gray-300 contrast-more:dark:hx-text-gray-300">
<input
Expand Down
14 changes: 0 additions & 14 deletions docs/guides/understanding_sip/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,20 +103,6 @@
class="hx-text-sm contrast-more:hx-text-gray-700 contrast-more:dark:hx-text-gray-100 hx-relative -hx-ml-2 hx-hidden hx-whitespace-nowrap hx-p-2 md:hx-inline-block hx-font-medium"
>
<span class="hx-text-center">Documentation</span>
</a><a
title="Blog"
href="/diago/blog"

class="hx-text-sm contrast-more:hx-text-gray-700 contrast-more:dark:hx-text-gray-100 hx-relative -hx-ml-2 hx-hidden hx-whitespace-nowrap hx-p-2 md:hx-inline-block hx-text-gray-600 hover:hx-text-gray-800 dark:hx-text-gray-400 dark:hover:hx-text-gray-200"
>
<span class="hx-text-center">Blog</span>
</a><a
title="About"
href="/diago/about"

class="hx-text-sm contrast-more:hx-text-gray-700 contrast-more:dark:hx-text-gray-100 hx-relative -hx-ml-2 hx-hidden hx-whitespace-nowrap hx-p-2 md:hx-inline-block hx-text-gray-600 hover:hx-text-gray-800 dark:hx-text-gray-400 dark:hover:hx-text-gray-200"
>
<span class="hx-text-center">About</span>
</a><div class="search-wrapper hx-relative md:hx-w-64">
<div class="hx-relative hx-flex hx-items-center hx-text-gray-900 contrast-more:hx-text-gray-800 dark:hx-text-gray-300 contrast-more:dark:hx-text-gray-300">
<input
Expand Down
Loading

0 comments on commit c074932

Please sign in to comment.