<div dir="ltr">Hi Joel,<div><br></div><div>AFAIR you have default timer in sems which will drop the call after 6h. </div><div><br></div><div><div>sbc:</div><div> calltimer_enable: 'yes'</div><div> calltimer_max: 21600 </div>
</div><div><br></div><div>On the other hand, i was playing with another approach. From dialog module you can use timeout_avp for the same effect.</div><div><br></div><div># kamailio.cfg</div><div>modparam("dialog","timeout_avp", "$avp(s:timeout)") ### you can specify this avp in proxy.cfg or put some value here<br>
</div><div><br></div><div># proxy.cfg</div><div># in order to send bye to specific dialog put this line before dlg_manage</div><div>$dlg_ctx(timeout_bye) = 1;<br></div><div><br></div><div><div> # set dialog for calls from subscriber</div>
<div> #$dlg_ctx(timeout_bye) = 1;</div><div> dlg_manage();</div><div> set_dlg_profile("total");</div><div> xlog("L_INFO", "Dialog set total - [% logreq -%]\n");</div>
<div> set_dlg_profile("user","$avp(s:caller_uuid)");</div><div> set_dlg_profile("userout","$avp(s:caller_uuid)");</div><div> set_dlg_profile("account","$avp(s:caller_account_id)");</div>
<div> set_dlg_profile("accountout","$avp(s:caller_account_id)");</div></div><div><br></div><div><br></div><div>## for processing BYE from proxy</div><div><div>event_route[tm:local-request]</div>
<div>{</div><div> if (is_method("BYE"))</div><div> {</div><div> xlog("L_INFO", "Event route processing dialog BYEs - [% logreq -%]\n");</div><div> acc_db_request("200 Dlg","acc");</div>
<div> exit;</div><div> }</div></div><div>}</div><div><br></div><div>Regards,</div><div>Ivan</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jan 8, 2014 at 5:44 PM, Joel Smith | VOZELIA <span dir="ltr"><<a href="mailto:joel@vozelia.com" target="_blank">joel@vozelia.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi everybody,<br>
<br>
Is it possible to set a global call duration limit?<br>
<br>
Thanks in advanced.<br>
<br>
Best regards,<br>
Joel.<br>
<br>
<br>
_______________________________________________<br>
Spce-user mailing list<br>
<a href="mailto:Spce-user@lists.sipwise.com">Spce-user@lists.sipwise.com</a><br>
<a href="http://lists.sipwise.com/listinfo/spce-user" target="_blank">http://lists.sipwise.com/listinfo/spce-user</a><br>
</blockquote></div><br></div>