Video Calls


To initiate video calls with Your customers please follow these steps:

  1. Configure a Jitsi Meet conference server and register it's domain name in a server property called MEETDOMAIN in todo4teams.
    You might also use the public Jitsi server https://meet.jit.si/ and set the value meet.jitsi.si as the property named MEETDOMAIN.
  2. Set a task property named CALLID for each task for which you want to allow a video support call.
    For example use this code in a on-receive-script in a mailbox:

    var callId = "MeetMe-"+java.util.UUID.randomUUID().toString()+"-"+task.id;
    task.addProperty("CALLID", callId);


    This sets a unique error call id for this ticket which is later used as the room name for the video call.

  3. When an agent accepts a ticket we will send him an invitation saying that the agent is ready for the video call. Use this code for the 'accept' script of the relevant group:

    var callId =task.getProperty("CALLID");
    var callUrl="https://YOURTODO4TEAMSSERVER/todo4teams/videoCallServlet?callId="+callId;
    var text = "<html><head></head><body><p>Dear customer,<br/><br/>\n";
    text += "Your support agent is ready for a video call right now!<br/><br/>";
    text += "Please follow this link to start the video call:<br/><br/>\n";
    text += "<a href='"+callUrl+"'>Start Video Call</a><br/><br/>";
    text += "Kind regards<br/>\n"; 
    text += "Your support team<br/></p>\n";
    text += "\n<br/><br/>";
    helper.sendmail(task.source.sourcemailbox.emailAddress, "Video Call: (ID: "+task.id+")", text, task.email, null, null, null, true);


    Please replace YOURTODO4TEAMSSERVER with the server name of your todo4teams installation!

  4. As soon as the customer clicks the link and enter the call the agent will be notified, opens the ticket and starts the call:
    image-20241126115839-2.png