Design Generative Call Control

Example use cases:

  • Simultaneous ring
  • Call Hunt
  • Voicemail
  • DTMF captcha for inbound calls (press 1 to connect to customer)
  • Call recording

The call recording part of this is described in more detail in #104.

Could we build simultaneous ring + call hunt as a single “bot” that you call and it does the ringing/hunting? This would allow chaining in any order. Or could do at two bots, one for hunt and one for simultaneous, and have the hunter call the simultaneous.

SIP URIs have a length cap, so it might not be desirable to stuff all the context into the URI for this one. Even if we go with JIDs it’s probably better to have some kind of configurable state.

Voicemail bot:

  • Calls go to escapedjid@voicemail.cheogram.com
  • OGM can detect from the JID vcard as per usual. What about custom OGM: stored as state at this component? Passed in somehow? Detected via a PEP node on the JID? (The JID is likely going to be a proxied-via-cheogram or proxied-via-jmp one so we could control the PEP a bit if desired.) What about fallback to “say the phone number” since it doesn’t naturally know the phone number anymore this way? Pass it as resource?
  • Play OGM, play beep, record audio, submit audio for transcription where relevant – currently we have an option to disable transcription, that’s another piece of state isn’t it.
  • Send voicemail as XMPP message to the target JID

DTMF captcha bot:

  • Calls go to escapedjid@dtmfcaptcha.cheogram.com
  • Generate random two-digit number, say please press those to connect
    • If dial wrong, hangup
    • If dial right, dial out to escapedjid and bridge the call

People might want “contacts” to not need to do the DTMF. We don’t have access to their roster from anywhere really. Cheogram kind of does due to knowing (or being able to know, we don’t store this right now) which contacts have a presence subscription.

Call recording bot:

  • Calls go to escapedjid@record.cheogram.com
  • Dial out to escapedjid, record and resulting call, then send the recording URL as a message to escapedjid

Except escapedjid is probably the call hunt / simultaneous ring jid? Where do the messages get routed? Just to all of the possible targets?

Call hunt / simultaneous ring as a bot: if it can call phone numbers, the user has to be a customer or something else they get free calls. So maybe this can’t be built as a genericly open federated bot.

RE: DTMF captcha bot, it will need a timeout set as well so that if no input is entered it still hangs up after the given time?