require("Core")
 
function handleVoiceRequest(flavor, source, destination, tag)
  --[[
 
    *** This function is called from Parrot link while processing voice call
 
    Parameters:
      flavor - set of bits that defines call type, see SESSION_TYPE_FLAG_*
      source - source ID of call
      destination - destination ID of call
      tag - route tag
 
    Returns:
      nil or string with playing text in syntax of AnswerMatchine
 
  ]]--
 
  -- Interactive voice request demonstration
  if (destination == 250991) or
     (destination == 262991) or
     (destination == 222991)
  then
    return "1,2,3,4,5,6,7,8,9,0"
  end
 
  if (destination == 204991)
  then
    return "4,2,4,2,4,2,1,3,3,7"
  end
 
  -- Value of nil means to perform echo functionality of Parrot
  return nil
end