Hi to all!<div><br></div><div>I'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't account the call without a BYE.</div>
<div><br></div><div>I tried to use sst module to solve this problem but I'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 "dialog.so"</div><div>modparam("dialog", "default_timeout", 10)</div><div>modparam("dialog", "timeout_avp", "$avp(i:10)")</div>
<div>modparam("dialog", "dlg_flag", 4)</div><div>modparam("dialog", "bye_on_timeout_flag", 5)</div><div><br></div><div>loadmodule "sst.so"</div><div>modparam("sst", "timeout_avp", "$avp(i:10)")</div>
<div>modparam("sst", "sst_flag", 6)</div><div>modparam("sst", "min_se", 90)</div><div>modparam("sst", "sst_interval", 30)</div></div><div><br></div><div>...</div>
<div><br></div><div><div>if (is_method("INVITE")) {</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("1")) {</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>xlog("$ci: $C(rx)422 Session Timer Too Small reply sent.$C(xx)\n");</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>