<div dir="ltr">Thanks a lot Daniel.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 10, 2016 at 9:31 PM, Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
<br>
On 10/10/16 13:21, Gholamreza Sabery wrote:<br>
> I want to be able to return a Busy code foe a user that is talking to<br>
> someone else and receives an INVITE for a new call. How can I<br>
> implement this in Kamailio?<br>
><br>
</span>You can use dialog module to track active calls and group them in<br>
profiles using user id. When a new call is coming you check the dialog<br>
profile size for the user id and send a 486 if the profile is not empty.<br>
Look at the readme of the dialog and sl module for the functions that<br>
you can use in the kamailio.cfg.<br>
<br>
Cheers,<br>
Daniel<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Daniel-Constantin Mierla<br>
<a href="http://twitter.com/#!/miconda" rel="noreferrer" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" rel="noreferrer" target="_blank">http://www.linkedin.com/in/<wbr>miconda</a><br>
Kamailio Advanced Training, Berlin, Oct 24-26, 2016 - <a href="http://www.asipto.com" rel="noreferrer" target="_blank">http://www.asipto.com</a><br>
<br>
<br>
______________________________<wbr>_________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
</font></span></blockquote></div><br></div>