Hi to all!<div><br></div><div>I&#39;ve been setting up a media-less SIP proxy server using OpenSIPS. We need to account (and bill) every call that goes through the proxy and one of our main concerns is the issue of missing BYEs wherein we can&#39;t account the call without a BYE.</div>
<div><br></div><div>I tried to use sst module to solve this problem but I&#39;m not sure if I used it correctly for the purpose that I want.</div><div><br></div><div>Here is a snippet of my opensips.conf (some of the values are just for testing purposes though):</div>
<div><br></div><div>...</div><div><br></div><div><div>loadmodule &quot;dialog.so&quot;</div><div>modparam(&quot;dialog&quot;, &quot;default_timeout&quot;, 10)</div><div>modparam(&quot;dialog&quot;, &quot;timeout_avp&quot;, &quot;$avp(i:10)&quot;)</div>
<div>modparam(&quot;dialog&quot;, &quot;dlg_flag&quot;, 4)</div><div>modparam(&quot;dialog&quot;, &quot;bye_on_timeout_flag&quot;, 5)</div><div><br></div><div>loadmodule &quot;sst.so&quot;</div><div>modparam(&quot;sst&quot;, &quot;timeout_avp&quot;, &quot;$avp(i:10)&quot;)</div>
<div>modparam(&quot;sst&quot;, &quot;sst_flag&quot;, 6)</div><div>modparam(&quot;sst&quot;, &quot;min_se&quot;, 90)</div><div>modparam(&quot;sst&quot;, &quot;sst_interval&quot;, 30)</div></div><div><br></div><div>...</div>
<div><br></div><div><div>if (is_method(&quot;INVITE&quot;)) {</div><div><span class="Apple-tab-span" style="white-space:pre">                </span># Check minimum SE for SST</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>if (sstCheckMin(&quot;1&quot;)) {</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>xlog(&quot;$ci: $C(rx)422 Session Timer Too Small reply sent.$C(xx)\n&quot;);</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>route(EXIT);</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>}</div><div><span class="Apple-tab-span" style="white-space:pre">                </span></div><div><span class="Apple-tab-span" style="white-space:pre">                </span># Set INVITE flags</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>setflag(1); # Accounting</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>setflag(2); # Account Missed Calls</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>setflag(3); # Account failed transactions</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>setflag(4); # Dialog flag</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>setflag(5); # Bye-on-dialog-timeout flag</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>setflag(6); # SST flag</div>
</div><div><br></div><div>                ...</div><div>}</div><div><br></div><div>...</div><div><br></div><div>Am I using sst module correctly here or is it even possible to use sst module for the said purpose?</div><div>
<br></div><div>Thanks!</div><div><br></div><div>Regards,</div><div>Ronald</div>