DISA and Mobile Contact Center

I think this is the approach I am going to take:

Basic flow:

  • Read the caller ID of the mobile agent calling the number for DISA
  • Activate the DND for the extension based on the incoming caller ID (mobile phone number matches extension)
  • Send the agent to the DISA app
  • Post call use the perform a custom action on hangup outlined by @lgaetz on their post the turns the DND off for that agent (We don’t use this box for anything else so this could be applied globally without issue)
    Hooking for fun and income

Questions:

  • Does anyone know how to activate DND from the server side command line (feature code *78)?
  • I’ve not used the macros before:
    1. I know I would use the [macro-dialout-one-predial-hook] to call [cc-do-this-on-hangup]
    2. I am not sure what to call here to ensure the original calling DISA agent has their DND turned off (feature code *79) when they hang up the DISA call.
    3. Will the original agent caller ID be available, or do I need to define if as a unique channel variable (${OCID} so I can call it from the hangup_handler_push?

Any guidance?

Thanks All!