I want to be able to return a Busy code foe a user that is talking to someone else and receives an INVITE for a new call. How can I implement this in Kamailio?
Regards
On 10/10/16 13:21, Gholamreza Sabery wrote:
I want to be able to return a Busy code foe a user that is talking to someone else and receives an INVITE for a new call. How can I implement this in Kamailio?
You can use dialog module to track active calls and group them in profiles using user id. When a new call is coming you check the dialog profile size for the user id and send a 486 if the profile is not empty. Look at the readme of the dialog and sl module for the functions that you can use in the kamailio.cfg.
Cheers, Daniel
Thanks a lot Daniel.
On Mon, Oct 10, 2016 at 9:31 PM, Daniel-Constantin Mierla <miconda@gmail.com
wrote:
On 10/10/16 13:21, Gholamreza Sabery wrote:
I want to be able to return a Busy code foe a user that is talking to someone else and receives an INVITE for a new call. How can I implement this in Kamailio?
You can use dialog module to track active calls and group them in profiles using user id. When a new call is coming you check the dialog profile size for the user id and send a 486 if the profile is not empty. Look at the readme of the dialog and sl module for the functions that you can use in the kamailio.cfg.
Cheers, Daniel
-- Daniel-Constantin Mierla http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio Advanced Training, Berlin, Oct 24-26, 2016 - http://www.asipto.com
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users